How to Remove Error: “Permission is only granted to system apps”

 

The following configuration is used in androidmanifest.xml:

<uses-permissionandroid:name="android.permission.INSTALL_PACKAGES"/>
<uses-permissionandroid:name="android.permission.DELETE_PACKAGES"/>

An error will be reported: permission is only granted to system apps

The reasons are as follows:

This kind of permission is only granted to the system level application, and the security level of the link error checking item can be modified

Solution:

In Eclipse: Window -> Preferences -> Android -> Lint Error Checking

Find correction – > in the ID column; Protectedpermission, set serverity lower than error, such as warning level

Similar Posts: