Note that there are some explanatory texts on larger screens.

plurals
  1. POInstall apps silently, with granted INSTALL_PACKAGES permission
    primarykey
    data
    text
    <p>I am trying to silently install apk into the system. My app is located in /system/app and successfully granted permission "android.permission.INSTALL_PACKAGES"</p> <p>However I can't find anywhere how to use this permission. I tried to copy files to /data/app and had no success. Also I tried using this code</p> <pre><code> Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType( Uri.parse("file:///sdcard/app.apk"), "application/vnd.android.package-archive"); startActivity(intent); </code></pre> <p>But this code opens standard installation dialog. How can I install app silently without root with granted <code>android.permission.INSTALL_PACKAGES</code>?</p> <p>PS I am writing an app that will install many apks from folder into the system on the first start (replace Setup Wizard). I need it to make firmware lighter. </p> <p>If you think that I am writing a virus: All programs are installed into /data/app. Permission Install_packages can only be granted to system-level programs located in /system/app or signed with the system key. So virus can't get there.</p> <p>As said <a href="http://www.mail-archive.com/android-porting@googlegroups.com/msg06281.html" rel="noreferrer">http://www.mail-archive.com/android-porting@googlegroups.com/msg06281.html</a> apps CAN be silent installed if they have install_packages permission. Moreover you don't need Install_packages permission to install packages not silently. Plus <a href="http://www.androidzoom.com/android_applications/tools/silent-installer_wgqi.html" rel="noreferrer">http://www.androidzoom.com/android_applications/tools/silent-installer_wgqi.html</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload