android应用静默安装程序,android app 静默安装

博客围绕Android应用静默安装权限问题展开,添加权限并将app放到system/app里仍报错,提示缺少android.permission.INSTALL_PACKAGES权限。指出该权限仅系统应用可用,给出获取权限的方法,还提供了无源码和有源码的解决办法链接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

添加了如下权限,同事也把app放到了    system/app 里了,还是不行

09-16 15:14:49.057: E/AndroidRuntime(4610): java.lang.SecurityException: Neither user 10049 nor current process has android.permission.INSTALL_PACKAGES. 09-16 15:14:49.057: E/AndroidRuntime(4610):

at android.content.pm.IPackageManager$Stub$Proxy.installPackageWithVerificationAndEncryption(IPackageManager.java:3602)

09-16 15:14:49.057: E/AndroidRuntime(4610):

at com.android.commands.pm.Pm.runInstall(Pm.java:957)

09-16 15:14:49.069: E/PackageUtils(2693): installSilent successMsg:, ErrorMsg:WARNING: linker: libvc1dec_sa.ca7.so has text relocations. This is wasting memory and is a security risk. Please fix.

pkg: /storage/sdcard0/download/.um/apk/e7dae448aeadd44d57d34a78fe16e07e.apkjava.lang.SecurityException: Neither user 10049 nor current process has android.permission.INSTALL_PACKAGES.

at android.os.Parcel.readException(Parcel.java:1465)

at android.os.Parcel.readException(Parcel.java:1419)

at android.content.pm.IPackageManager$Stub$Proxy.installPackageWithVerificationAndEncryption(IPackageManager.java:3602)

at com.android.commands.pm.Pm.runInstall(Pm.java:957)

at com.android.commands.pm.Pm.run(Pm.java:116)

at com.android.commands.pm.Pm.main(Pm.java:79)

at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)

at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:243)

at dalvik.system.NativeStart.main(Native Method)Killed

百度到

http://blog.youkuaiyun.com/murphykwu/article/details/8282585

http://stackoverflow.com/questions/23453942/neither-user-10051-nor-current-process-has-android-permission-install-packages

This permission is only given to system apps. In order to get this permission, your app:

1) must be signed with the system certificates. These certificates are generally available only to the device manufacturers.

2) be installed in /system/app partition. 然后 百度 :“android system app 签名”

无源码解决办法 (需要有系统的签名程序)

http://gqdy365.iteye.com/blog/2111949

有源码的

http://blog.chinaunix.net/uid-12845622-id-3046666.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值