Skip to content

F-Droid privileged extension error #1

@corna

Description

@corna

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions