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
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.
/system
$ adb push somefile /system/bin/ is work.
$ adb push somefile /system/bin/