Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F-Droid privileged extension error #1

Open
corna opened this issue Jan 27, 2016 · 0 comments
Open

F-Droid privileged extension error #1

corna opened this issue Jan 27, 2016 · 0 comments
Labels

Comments

@corna
Copy link

corna commented Jan 27, 2016

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

@SWW13 SWW13 added the bug label Jan 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants