Push my apk to /system/app

Viewed 95472

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 gives me this:

"failed to copy: ... No space left on device"

Although from settings -> sdCard & Phone Storage, I get 37Mb of internal free space.

The whole point of this need is
related to permissions.

I need to have INSTALL_PACKAGES permission
and I know that by puting my application there,
in /system/app, I get that permission.

14 Answers

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.

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

Even before adb remount you should change the permissions for the /system in the adb shell. you can use chmod to change the permissions.

If you're simply looking to install it, you can always do: adb install myApk.apk.

Related