Questions tagged «silent»


16
以授予的INSTALL_PACKAGES权限静默安装应用
我正在尝试将apk静默安装到系统中。我的应用位于/ system / app中,并已成功授予权限“ android.permission.INSTALL_PACKAGES” 但是,我在任何地方都找不到如何使用此权限。我试图将文件复制到/ data / app,但没有成功。我也尝试使用此代码 Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType( Uri.parse("file:///sdcard/app.apk"), "application/vnd.android.package-archive"); startActivity(intent); 但是此代码将打开标准安装对话框。如何在没有root授予的情况下静默安装应用程序android.permission.INSTALL_PACKAGES? PS我正在编写一个应用程序,它将在首次启动时将许多APK从文件夹安装到系统中(替换安装向导)。我需要它来减轻固件的重量。 如果您认为我正在写病毒:所有程序都安装在/ data / app中。只能将许可Install_packages授予/ system / app中的系统级程序,或者使用系统密钥对其进行签名。因此病毒无法到达那里。 如前所述,如果http://www.mail-archive.com/android-porting@googlegroups.com/msg06281.html应用程序具有install_packages权限,则可以将其静默安装。而且,您不需要Install_packages权限即可非静默地安装软件包。加上http://www.androidzoom.com/android_applications/tools/silent-installer_wgqi.html
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.