tags:

views:

2053

answers:

3

Hi!

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.

+1  A: 

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

Erich Douglass
If I just install my package that way, I don't get system permissions like INSTALL_PACKAGES. Thanks ;-D
Tsimmi
This is the correct way to do it. You cannot push an APK or write anything to `/system` even if you do have root access to the device, as that partition is mounted as read-only.
Christopher
+1  A: 

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.

Eclipsed4utoo
Before making "adb push ...", I used as well adb root,that should give me root privileges.Thanks
Tsimmi
+1  A: 

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
Pavel P