Silent applications

1

Some applications, or most of them, have a silent or silent "silent install" option, which is to install an application without the user or support team needing interact with that application in your installation.

I started working on a third-party application, which has the following related permission:

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

By default Eclipse issues the following error:

Permission is only granted to system apps.

What should be considered when creating a silent app for Android outside the Google Play Store ? Why does this type of error occur?

    
asked by anonymous 13.09.2016 / 14:48

2 answers

4

The error informs that this permission can only be obtained by system applications.

To do this, the application must exist in Android ROM and be signed with the same key , or a rooted device installed in /system/app ( /system/priv-app API4.4 +) source

In order for Eclipse to stop issuing this error follow the steps source :

  

Window - > Preferences - > Android - > Lint Error Checking

Look for ID = ProtectedPermission in the list and set Severity for something other than error

If you want to install the app outside the Google Play Store , you do not need the android.permission.INSTALL_PACKAGES permission, just the device, where it will be installed, be configured to "allow unknown sources".

android.permission.INSTALL_PACKAGES permission is required for applications that install other applications.

    
13.09.2016 / 15:33
1
  • In Eclipse:

    Window - > Preferences - > Android - > Lint Error Checking.

  • In the list find an entry with the id Protected permission . Set gravity to something more recent than error. This way, you can still compile the project using Eclipse.

  • In Android Studio

    File - > Settings - > Editor - > Inspections

  • Under the Android Lint option, find Using system app permission . Clear the check box or choose a lower severity than this error.

    Source: link

        
    13.09.2016 / 15:33