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

后端 未结 4 848
甜味超标
甜味超标 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:47

    About the error:

    SecurityException: Neither user 10057 nor current process has android.permission.INSTALL_PACKAGES
    

    To get INSTALL_PACKAGES permission:

    1. Put your app in /system/app
    2. Sign the app with the system's key
    3. In the manifest.xml file, put this attribute inside the tag manifest:

提交回复
热议问题