次のコマンドを使用して、エミュレータを手動でルート化しました
adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system
adb push su /system/xbin/su
adb shell chmod 06755 /system
adb shell chmod 06755 /system/xbin/su
adb install superuser.apk
正常にルート化され、su コマンドが機能していますが、エミュレーターを閉じてから再びエミュレーターを開くと、su コマンドが機能しません。これを克服するために、上記のコマンドをプログラムで実行するためのサンプルアプリを作成したいと思います
Runtime.getRuntime().exec();
上記のコマンドをプログラムで実行する方法を教えてください。