Push my apk to /system/app
I can install an APK to /system/app
with following steps.
-
Push APK to SD card.
$ adb push SecureSetting.apk /sdcard/
-
Enter the console and get the shell
$ adb shell
-
Switch to superuser. If your device is not rooted, get it rooted first. (If you don't know how to do that, just Google.)
$ su
-
Remount the system partition with WRITE permission.
$ mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
-
Cat your APK from
/sdcard/
to/system/
, some guys get a fail withcp
command due tocp
is not supported. So usecat
instead.$ cat /sdcard/SecureSetting.apk > /system/app/SecureSetting.apk
-
Remout
/system
partition back to READ-ONLY, and exit$ mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system $ exit
Then reboot your device, the APK should have been installed on /system/app
.
Normally, the only way to get access to the "/system/" directory is to have a device rooted. I don't exactly know if that is required for the emulator though. That could be your issue.