Root emulator ICS; pressing su does not work with "Out of memory",

I am trying to run my ICS AVD and have tried this:

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 

The following error failed:

could not copy 'su' to '/ system / xbin / su': Out of memory

How can i fix this?

+5
android android-emulator su
Mar 29 '12 at 8:40
source share
2 answers

This blog explains the problem:

To avoid the "Out of memory" error when trying to copy su-executable to /system/bin , you need to start the emulator manually using the –partion-size large argument:

 $ emulator -avd MYNAME -partition-size 300 

Then:

 $ adb remount $ adb push su /system/bin/su $ adb shell chmod 06755 /system/bin/su 

Note that MYNAME above is the name of the emulator. Also note that if you use snapshots, you will need to run the emulator without it due to a hardware configuration change. Add -no-snapshot-load for this.

+17
Apr 10 2018-12-12T00:
source share

You will have 512 MB of size in / system

ICS is the name I gave my Android emulator:

android-sdk-linux / tools $ emulator -avd ICS 512 partition

+8
Apr 03 '12 at 7:20
source share



All Articles