forked from CyanogenMod/android
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
The F-Droid privileged extension is correctly installed but if I try to enable it in the F-Droid's menu -> Other -> Privileged Extension the following error appears:
F-Droid Privileged Extension is not available
The privileged permissions have not been granted to the extension!
Please create a bug report!
I've looked at the F-Droid's code and I found that this error is related to this block of code in Privileged-Extension/src/main/java/org/fdroid/fdroid/privileged/PrivilegedService.java
private boolean hasPrivilegedPermissionsImpl() {
boolean hasInstallPermission =
getPackageManager().checkPermission(Manifest.permission.INSTALL_PACKAGES, getPackageName())
== PackageManager.PERMISSION_GRANTED;
boolean hasDeletePermission =
getPackageManager().checkPermission(Manifest.permission.DELETE_PACKAGES, getPackageName())
== PackageManager.PERMISSION_GRANTED;
return hasInstallPermission && hasDeletePermission;
}
Therefore I suppose that the extension does not have the INSTALL_PACKAGES and DELETE_PACKAGES permissions. Can you please grant these permissions to the F-Droid privileged extension?
Thanks