IllegalStateException in ApkTable renders phone unusable
- Device OS and version: Android 5.1.1
- Device model/manufacturer: LG-K120
- F-Droid version (in the About screen): 0.103.2
- F-Droid privileged extension version (if installed): none
What did you do? (clear steps if possible)
Add a repo from another phone's wifi hotspot via app swapping.
What did you expect to see?
The repo added without errors.
What did you see instead?
All the time in short intervals, even if not using F-Droid directly, the F-Droid crash reporter showed up out of nowhere making it difficult to do anything with the phone. The quick solution I found for making the phone useable again was to go to Android Settings and clear F-Droid App Data. Removing the faulty repo from F-Droid was not possible, because whenever F-Droid was opened it crashed right away.
java.lang.IllegalStateException: Apk needs to have both Schema.ApkTable.Cols.REPO_ADDRESS and Schema.ApkTable.Cols.NAME set in order to calculate URL.
at org.fdroid.fdroid.data.Apk.checkRepoAddress(Apk.java:247)
at org.fdroid.fdroid.data.Apk.getUrl(Apk.java:253)
at org.fdroid.fdroid.AppUpdateStatusService.findApkMatchingHash(AppUpdateStatusService.java:125)
at org.fdroid.fdroid.AppUpdateStatusService.processDownloadedApk(AppUpdateStatusService.java:87)
at org.fdroid.fdroid.AppUpdateStatusService.onHandleIntent(AppUpdateStatusService.java:63)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)
Edited by username-removed-26331