After fixing networking as described in #480 (closed), F-Droid still will not refresh repos and list apps. No error is displayed, and networking works fine in every other app.
Edited
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items 0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items 0
Link issues together to show that they're related.
Learn more.
04-24 13:46:14.814 111 382 I ActivityManager: Start proc 675:org.fdroi .fdroid/u0a38 for broadcast org.fdroid.fdroid/.receiver.StartupReceiver04-24 13:46:14.854 111 123 W SchedPolicy: add_tid_to_cgroup failed to write '675' (Permission denied); fd=2704-24 13:46:14.855 111 123 W ActivityManager: Failed setting process group of 675 to 004-24 13:46:14.855 111 123 W System.err: java.lang.IllegalArgumentException: Invalid argument: 67504-24 13:46:14.855 111 123 W System.err: at android.os.Process.setProcessGroup(Native Method)04-24 13:46:14.855 111 123 W System.err: at com.android.server.am.ActivityManagerService.applyOomAdjLocked(ActivityManagerService.java:20491)04-24 13:46:14.856 111 123 W System.err: at com.android.server.am.ActivityManagerService.updateOomAdjLocked(ActivityManagerService.java:21063)04-24 13:46:14.856 111 123 W System.err: at com.android.server.am.BroadcastQueue.processCurBroadcastLocked(BroadcastQueue.java:274)04-24 13:46:14.856 111 123 W System.err: at com.android.server.am.BroadcastQueue.sendPendingBroadcastsLocked(BroadcastQueue.java:315)04-24 13:46:14.856 111 123 W System.err: at com.android.server.am.ActivityManagerService.sendPendingBroadcastsLocked(ActivityManagerService.java:17582)04-24 13:46:14.856 111 123 W System.err: at com.android.server.am.ActivityManagerService.attachApplicationLocked(ActivityManagerService.java:6669)04-24 13:46:14.856 111 123 W System.err: at com.android.server.am.ActivityManagerService.attachApplication(ActivityManagerService.java:6713)04-24 13:46:14.856 111 123 W System.err: at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:539)04-24 13:46:14.856 111 123 W System.err: at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2812)04-24 13:46:14.856 111 123 W System.err: at android.os.Binder.execTransact(Binder.java:565)04-24 13:46:14.899 675 675 W System : ClassLoader referenced unknown path: /system/app/FDroid/lib/arm6404-24 13:46:15.519 675 675 I ACRA : ACRA is enabled for org.fdroid.fdroid, initializing...04-24 13:46:15.603 675 675 I InstalledAppProvider: selectNotSystemSignature: systemSignature == null, querying for it04-24 13:46:15.656 675 675 I InstalledAppProvider: excluding InstalledApps signed by system signatures04-24 13:46:15.684 532 674 W MediaScanner: Error opening directory '/oem/media/', skipping: No such file or directory.04-24 13:46:16.593 532 674 V MediaProvider: pruneThumbnails04-24 13:46:16.599 532 674 V MediaProvider: /pruneDeadThumbnailFiles...04-24 13:46:16.759 532 674 V MediaProvider: pruneThumbnails04-24 13:46:16.768 532 674 V MediaProvider: /pruneDeadThumbnailFiles...04-24 13:46:16.963 268 268 I VvmSimChangeReceiver: Received SIM change for invalid subscription id.04-24 13:46:16.995 561 561 D AlertReceiver: onReceive: a=android.intent.action.PROVIDER_CHANGED Intent { act=android.intent.action.PROVIDER_CHANGED dat=content://com.android.calendar flg=0x20000010 cmp=com.android.calendar/.alerts.AlertReceiver }04-24 13:46:17.021 561 701 D AlertService: 0 Action = android.intent.action.PROVIDER_CHANGED04-24 13:46:17.057 675 703 I SDCardScannerService: getExternalFilesDirs /storage/emulated/0/Android/data/org.fdroid.fdroid/files04-24 13:46:17.058 675 703 I SDCardScannerService: getExternalFilesDirs /storage/emulated/0/Android/data/org.fdroid.fdroid/files04-24 13:46:17.061 675 703 I SDCardScannerService: sdcard files []
also, for all it's worth, and for future reference: one can launch F-Droid from the command-line using adb shell am start org.fdroid.fdroid/.views.main.MainActivity.
I don't see anything in that logcat that relates to networking. F-Droid's networking is relatively plain Android, so it should work like other apps. There might be something odd if Anbox makes its network device something other than cellular or WiFi.
Administratorchanged title from Anbox: F-Droid will not refresh repos (maybe PinePhone specific) to Anbox: F-Droid will often not refresh repos (maybe PinePhone specific)·
Imported
changed title from Anbox: F-Droid will not refresh repos (maybe PinePhone specific) to Anbox: F-Droid will often not refresh repos (maybe PinePhone specific)
sudo apk add cmd:lxc-entersudo /usr/share/anbox/anbox-shell.ship route add default dev eth0 via 192.168.250.1ip rule add pref 32766 table mainip rule add pref 32767 table local
I'm closing this in favor of #480 (closed), because it really is the same issue (the first workaround was partial and didn't fix it on the java parts, I guess)
Also this was also, a problem in vannila android or distributions based on it, not so common, but still happend especially after f-droid installation, ussually 2/3 first times you launched f-droid client. So this might notbe a problemwith anbox, but with f-droid client itself. @afontain
after discussion on matrix room, would like to share this references also given they might be usefull for further investigation on this issue, "yes I do https://gitlab.com/fdroid/fdroidclient/-/issues/1978. This would be the main one afontain, but there are other issues that also relate to this one, from what I can gather.
like for example the ##1396 (closed) "Repo refresh on every user switch when users' locales differ" issue.
##1688 (closed) is not realted related to this problems but it part of the whole dynamic related tosuch,and also should be considered if a fix is ever made." all this are refering to f-droid client upstream codebase not anbox.
@afontain could you fix titlet then given your reopen the issue and this is not specific to pinephone? Cheers.
By . |3vast.org on 2020-12-14T12:37:40
11
Administratorchanged title from Anbox: F-Droid will often not refresh repos (maybe PinePhone specific) to Anbox: F-Droid will often not refresh repos·
Imported
changed title from Anbox: F-Droid will often not refresh repos (maybe PinePhone specific) to Anbox: F-Droid will often not refresh repos