Skip to content

Crash when clicking uninstall on Privileged Extension

  • Device OS and version: CM/5.1
  • Device model/manufacturer: Samsung GT-N7100
  • F-Droid version (in the about screen): 0.101-alpha5

I tried to uninstall privileged extension from AppDetails screen of org.fdroid.fdroid.privileged when it has been flashed via update.zip. Here's the stacktrace:

java.lang.RuntimeException: Unable to start activity ComponentInfo{org.fdroid.fdroid/org.fdroid.fdroid.privileged.views.UninstallDialogActivity}: java.lang.RuntimeException: Cannot remove system apps unless we're uninstalling updates
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2359)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2421)
	at android.app.ActivityThread.access$900(ActivityThread.java:154)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1324)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:135)
	at android.app.ActivityThread.main(ActivityThread.java:5329)
	at java.lang.reflect.Method.invoke(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:372)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
Caused by: java.lang.RuntimeException: Cannot remove system apps unless we're uninstalling updates
	at org.fdroid.fdroid.privileged.views.UninstallDialogActivity.onCreate(UninstallDialogActivity.java:68)
	at android.app.Activity.performCreate(Activity.java:5990)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2312)
	... 10 more
java.lang.RuntimeException: Cannot remove system apps unless we're uninstalling updates
	at org.fdroid.fdroid.privileged.views.UninstallDialogActivity.onCreate(UninstallDialogActivity.java:68)
	at android.app.Activity.performCreate(Activity.java:5990)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2312)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2421)
	at android.app.ActivityThread.access$900(ActivityThread.java:154)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1324)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:135)
	at android.app.ActivityThread.main(ActivityThread.java:5329)
	at java.lang.reflect.Method.invoke(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:372)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information