Last active
December 19, 2015 08:19
-
-
Save rainyear/5924703 to your computer and use it in GitHub Desktop.
root android emulator 4.2.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd adt-X/sdk/platform-tools/ | |
./adb shell | |
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system | |
cd /system/bin | |
# try | |
cat sh > su | |
chmod 4755 su | |
su | |
# end try | |
# if try failed | |
# /system Out of memory | |
# try this | |
cd /data && mkdir bin && cd bin | |
cp /system/bin/sh ./su | |
chmod 4755 su | |
./su | |
# end if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment