How to make system partition in AVD in emulator writable

后端 未结 4 1514
醉话见心
醉话见心 2021-01-11 23:28

This is fairly a very old question but I am surprised that none of the solutions are working for me. I need to run an android app as system app in an AVD (in emulator) creat

4条回答
  •  被撕碎了的回忆
    2021-01-11 23:44

    In my case, I use a avd( Based on: Android 8.0 (Oreo) Tag/ABI: google_apis/x86_64 ).

    $ emulator -avd Nexus_5X_API_26_APIs -writable-system 
    $ adb root 
    $ adb remount
    

    Then, /system is writeable.

    $ adb push somefile /system/bin/ is work.

提交回复
热议问题