How can I push my application package to Android emulator \"/system/app\" folder?
I\'ve already tried to use:
\"adb push myApk.apk /system/app\"
and it giv
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 with cp
command due to cp
is not supported. So use cat
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
.
settings -> sdCard & phone storage says about /data folder.
/system is mounted separately and I guess there is no way of writing there unless you make your own Android build.
See mounts by running
adb shell
# df
If your apk is smaller enough to push in, then try some times again. I met the same problem and tried twice to push the apks to /system/app/
If you're simply looking to install it, you can always do: adb install myApk.apk
.
You have to mount system as read/write and then push the application.
This is answered in this question: Push .apk to /system/app/ in HTC HERO
Apparently, there is not enough space for your application in "/system" mount. You can check that with "adb shell df" command.
To solve this issue, you need to set partition-size parameter adequately while starting your AVD like this:
emulator.exe -avd <your avd name> -partition-size 512