Troubles installing programmatically an app with INSTALL_PACKAGES permission from /system/app

后端 未结 4 851
甜味超标
甜味超标 2020-12-16 16:36

I\'m trying to install programmatically an app without user interaction and i\'m getting this error

 SecurityException: Neither user 10057 nor current proces         


        
4条回答
  •  长情又很酷
    2020-12-16 16:54

    Refer to signatureOrSystem permissions on custom ROM

    Basically,

    1. add the required
    2. push apk to /system/priv-app

    Done (well, at least works for me).

    You do not need to add android:protectionLevel="signatureOrSystem" or android:sharedUserId="android.uid.system". You could sign with any certification.

提交回复
热议问题