Android development RecoverySystem.installPackage() cannot write to /cache/recovery/command permission denied

前端 未结 5 1673
陌清茗
陌清茗 2020-12-10 03:42

I have been asked to write a small simple app for an Android-based product. The device comes with two Android system images with different features. The app I\'m writing is

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-10 04:13

    I have problem the same with you when create custom OtaUpdate app in android 5.0.2 and i have resolved it. I will share with you with 2 steps below:

    1. Add android:sharedUserId="com.google.uid.shared" in AndroidManifest.xml
    2. Push your apk to system/app or system/priv-app

    For android 4.1.2 :

    1. Add android:sharedUserId="android.uid.system" in AndroidManifest.xml
    2. Push your apk to system/app

提交回复
热议问题