After enabling privileged mode F-Droid disappeared from app drawer so I rebooted my phone. It ended in a bootloop. Fortunately recovery mode still worked.
Sony Xperia Z, Stock Lollipop 5.0.2, rooted with SuperSu, F-Droid 0.95
Designs
An error occurred while loading designs. Please try again.
Child items
0
Show closed items
GraphQL error: The resource that you are attempting to access does not exist or you don't have permission to perform this action
No child items are currently open.
Linked items
0
Link issues together to show that they're related.
Learn more.
Has anyone figured yet exactly what is causing the bootloop? So far the only information we have is that it has something to do with /system/priv-app/FDroid/ (on 5.X), since removing the directory fixes it.
My best guess for now is that the process didn't complete successfuly and it's making the Android startup process crash. For example, I could see the bootloop occuring due to the app optimizer crashing if an apk in /system/priv-app/ is malformed, e.g. due to a corrupt apk file. Maybe the cat (copy) command didn't end successfully?
@dschuermann is there a way to check if all the commands ran successfully and returned 0? Maybe join them via && and add something that says OK at the end, or writes to a file, then check that file? Rebooting without making sure that all the changes succeeded seems wrong.
I am using 0.96 (not alpha) and after installation as a privileged FDroid is moved to /system/priv-app/FDroid as FDroid.apk.tmp. Renaming and rebooting solves this problem.
I see. Please refer to #363 (closed), which will solve this. It will basically stop if any commands fail, which is most probably what happened here. Either the copy or the rename failed, and we should not be rebooting if that happens.