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

前端 未结 5 1671
陌清茗
陌清茗 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:32

    For Android 5.1.0

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

      adb root
      adb shell setenforce 0
      

提交回复
热议问题