Androidのエミュレータ/system/libにファイルを書き込む方法

問題

エミュレータの/system/lib配下にファイルを書き込む

方法

リードオンリーファイルシステムなのでリマウントする

adb root

adb remount

ファイルをpush

adb push libxxx.so /system/lib

以下のエラーが出る場合は emulator起動時に「–partition-size 128」の
オプションを付ける

and meet problems like “failed to copy file to /system/…”, such as:

failed to copy ‘file’ to ‘/system/…’: No space left on device
failed to copy ‘file’ to ‘/system/…’: Out of memory

$emulator –avd youravdname –partition-size 128