depau / fdroid_shizuku_privileged_extension

F-Droid Privilege Extension that works with Shizuku (rootless) - UPDATES ARE BROKEN (unfortunately I don't have much time to fix it, sorry :( )
https://depau.github.io/fdroid_shizuku_privileged_extension/fdroid/repo/
Apache License 2.0
61 stars 4 forks source link

fdroid updates stalled #1

Open sn0wD4N opened 1 year ago

sn0wD4N commented 1 year ago

After installing the Shizuku Fdroid Privileged Extension, it is impossible to install updates as they keep on going forever in "Downloading and Installing" status in the app and in the notification bar as well.

Samsung Note9 Android 10 Latest Fdroid Latest fdroid_shizuku_privileged_extension

depau commented 1 year ago

Hi, I also experience this issue but unfortunately the problem is with F-Droid. You may have noticed it sometimes gets killed during the download and it leaves a halfway filled download progress bar.

I'll try to troubleshoot it at some point cause it's indeed annoying.

GBT7 commented 1 year ago

I'm having this same issue on a Galaxy A53 and I would be happy to help in troubleshooting if there's anything I can provide there

For me, it never gets killed during the download. The download always succeeds but the update installation always freezes up.

depau commented 1 year ago

Hi, what you say is correct and it's really annoying. It's in my backlog but I haven't had the time, energy or willpower to actually fully troubleshoot and fix it.

I'll do it at some point, it's in my backlog, sorry about that. If anyone wants to go ahead and attempt to fix it themselves I don't think it should be too hard, I think you can reproduce it by just downgrading an app somehow then trying to upgrade it.

WTechNinja commented 1 year ago

Hey, don't know if it will help or not but here's a chunk of my adb logcat from trying to update with the extension:

logcat

``` 07-22 09:17:31.845 17158 18582 D PrivilegedExtension: Checking if package is allowed to access privileged extension: org.fdroid.fdroid 07-22 09:17:31.845 17158 18582 D PrivilegedExtension: Allowed package name: org.fdroid.fdroid 07-22 09:17:31.845 17158 18582 D PrivilegedExtension: Package name: org.fdroid.fdroid 07-22 09:17:31.845 17158 18582 D PrivilegedExtension: Package name allowed: true 07-22 09:17:31.845 17158 18582 D PrivilegedExtension: Allowed cert hash: 43238d512c1e5eb2d6569f4a3afbf5523418b82e0a3ed1552770abb9a9c9ccab 07-22 09:17:31.845 17158 18582 D PrivilegedExtension: Package cert hash: 43238d512c1e5eb2d6569f4a3afbf5523418b82e0a3ed1552770abb9a9c9ccab 07-22 09:17:31.845 17158 18582 D PrivilegedExtension: Cert hash allowed: true 07-22 09:17:31.845 17158 18582 D PrivilegedExtension: Package is allowed to access the privileged extension! 07-22 09:17:31.845 17158 18582 D PrivilegedExtension: hasPrivilegedPermissionsImpl() 07-22 09:17:31.846 17158 18582 D PrivilegedExtension: canInstallPackages: true, canDeletePackages: true 07-22 09:17:31.848 17158 17286 D PrivilegedExtension: installPackage() 07-22 09:17:31.849 17158 17286 D PrivilegedExtension: Checking if package is allowed to access privileged extension: org.fdroid.fdroid 07-22 09:17:31.849 17158 17286 D PrivilegedExtension: Allowed package name: org.fdroid.fdroid 07-22 09:17:31.849 17158 17286 D PrivilegedExtension: Package name: org.fdroid.fdroid 07-22 09:17:31.849 17158 17286 D PrivilegedExtension: Package name allowed: true 07-22 09:17:31.849 17158 17286 D PrivilegedExtension: Allowed cert hash: 43238d512c1e5eb2d6569f4a3afbf5523418b82e0a3ed1552770abb9a9c9ccab 07-22 09:17:31.849 17158 17286 D PrivilegedExtension: Package cert hash: 43238d512c1e5eb2d6569f4a3afbf5523418b82e0a3ed1552770abb9a9c9ccab 07-22 09:17:31.849 17158 17286 D PrivilegedExtension: Cert hash allowed: true 07-22 09:17:31.849 17158 17286 D PrivilegedExtension: Package is allowed to access the privileged extension! 07-22 09:17:31.849 17158 17286 D PrivilegedExtension: hasPrivilegedPermissionsImpl() 07-22 09:17:31.853 17158 17286 D PrivilegedExtension: canInstallPackages: true, canDeletePackages: true 07-22 09:17:31.853 17722 17773 D Service : transact: uid=10357, descriptor=android.content.pm.IPackageManager, code=135 07-22 09:17:31.855 17722 17773 D Service : transact: uid=10357, descriptor=android.content.pm.IPackageInstaller, code=1 07-22 09:17:31.862 17722 17773 D Service : transact: uid=10357, descriptor=android.content.pm.IPackageInstaller, code=5 07-22 09:17:31.903 17722 17773 D Service : transact: uid=10357, descriptor=android.content.pm.IPackageInstallerSession, code=4 07-22 09:17:32.856 19624 19637 W System : A resource failed to call release. 07-22 09:17:32.857 19624 19637 W System : A resource failed to call release. 07-22 09:17:32.857 19624 19637 W System : A resource failed to call close. 07-22 09:17:33.175 17722 17735 D Service : transact: uid=10357, descriptor=android.content.pm.IPackageInstallerSession, code=9 07-22 09:17:33.186 17722 17735 D Service : transact: uid=10357, descriptor=android.content.pm.IPackageInstallerSession, code=8 07-22 09:17:33.928 19624 19741 D PackageManager: isGPVerificationDisabled = false 07-22 09:17:33.951 15225 15225 I Finsky : [2] agkx.c(75): VerifyApps: Install-time verification requested for package de.spiritcroc.riotx, id = 4 07-22 09:17:33.979 15225 18796 I Finsky : [3559] VerifyAppsInstallTask.akr(58): VerifyApps: Anti-malware verification task started for package=de.spiritcroc.riotx 07-22 09:17:33.982 15225 18796 I Finsky : [3559] agpe.a(65): Single user settings service is not running, bind it now 07-22 09:17:33.993 15225 15225 I Finsky : [2] qgc.onServiceConnected(96): Single user settings service is connected 07-22 09:17:33.998 19624 19741 I PackageManager: Integrity check passed for file:///data/app/vmdl1045679900.tmp 07-22 09:17:34.006 15225 18796 W Settings: Setting install_non_market_apps has moved from android.provider.Settings.Global to android.provider.Settings.Secure, returning read-only value. 07-22 09:17:35.308 19624 19893 D JobScheduler.Temperature: get temperature=34.8 07-22 09:17:35.993 15225 18796 I Finsky : [3559] ooh.e(31): Task 7 requested foreground 07-22 09:17:35.996 15225 18796 I Finsky : [3559] ooh.e(118): Not entering foreground 07-22 09:17:36.361 15225 18800 I Finsky : [3563] agkc.f(77): VerifyApps: Verification package=de.spiritcroc.riotx, id=4, response=0, upload_requested=false 07-22 09:17:36.392 15225 18796 E Finsky : [3559] VerifyPerSourceInstallationConsentInstallTask.d(20): Package name null is not an installed package 07-22 09:17:36.393 15225 18796 I Finsky : [3559] VerifyPerSourceInstallationConsentInstallTask.akr(231): PSIC verification started with installer uid: 2000 package name: null, originating uid: -1 07-22 09:17:36.434 15225 18796 E Finsky : [3559] VerifyV31SignatureInstallTask.d(34): VerifyApps V31SignatureVerification: Successful verification for the package: de.spiritcroc.riotx using APK Signature Scheme v3 07-22 09:17:36.434 15225 18796 I Finsky : [3559] VerifyInstallTask.i(29): VerifyApps: Returning package verification result id=4, result=ALLOW 07-22 09:17:36.436 15225 15225 I Finsky : [2] VerifyInstallTask.akq(53): VerifyApps: Verification complete: id=4, package_name=de.spiritcroc.riotx 07-22 09:17:36.654 19624 19741 W PackageManager: Attempt to re-install de.spiritcroc.riotx without first uninstalling. 07-22 09:17:36.654 19624 19716 I ActivityManager: Force stopping de.spiritcroc.riotx appid=10290 user=-1: installPackageLI 07-22 09:17:36.671 1306 2022 E installd: Couldn't opendir /data/app/vmdl1045679900.tmp: No such file or directory 07-22 09:17:36.671 1306 2022 E installd: Failed to delete /data/app/vmdl1045679900.tmp: No such file or directory 07-22 09:17:36.691 19624 19741 V PackageManager: install fail 07-22 09:17:36.692 1376 1376 D CriticalLog: CriticalService ACTION_REQUEST_WRITE_RAW handle type = 40 07-22 09:17:36.692 1376 1376 D CriticalLog: CriticalLogService::writeRawPartition criticallog, do not add to socket type=40 07-22 09:17:36.692 1376 1376 D CriticalLog: criticallog, isReachLimit id = 40 thisVsersionCount = 3, historyCount = 58 07-22 09:17:36.693 1376 1376 D CriticalLog: etCriticalDataToCache find in cache mDataCache[40]=40:APK安装失败:2, data=40:APK安装失败:3 07-22 09:17:36.693 1376 1376 D CriticalLog: criticallog, isReachLimit id = 40 thisVsersionCount = 3, historyCount = 58 07-22 09:17:36.693 1376 1376 D CriticalLog: etCriticalDataToCache find in cache mDataCache[1064]=40:APK安装失败:57, data=40:APK安装失败:58 07-22 09:17:36.693 1376 1376 D CriticalLog: criticallog, isReachLimit id = 1064 thisVsersionCount = 4, historyCount = 58 07-22 09:17:36.693 19624 19741 V PackageManager: record end 07-22 09:17:36.707 19624 19724 W BroadcastQueue: Permission Denial: broadcasting Intent { act=org.fdroid.fdroid.privilegedExtension.ACTION_INSTALL_COMMIT flg=0x80010 } from org.fdroid.fdroid.privileged (pid=-1, uid=10357) requires android.permission.INSTALL_PACKAGES due to registered receiver BroadcastFilter{2c17426 10357/u0 ReceiverList{bdf5b81 17158 org.fdroid.fdroid.privileged/10357/u0 remote:2cf2b68}} ```

GBT7 commented 1 year ago

07-22 09:17:34.006 15225 18796 W Settings: Setting install_non_market_apps has moved from android.provider.Settings.Global to android.provider.Settings.Secure, returning read-only value.

this looks to be maybe relevant, the logs near the bottom are referencing write errors from the package installer.