How to Root Andy Emulator under Mac OS X

I will explain here how you can Root the lastest Andy OS under Mac OS X.

Preparation

First of all you need following:

For checking if Andy is rooted, you should download RootChecker.


Install ADB

(if you already have ADB, you can skip this step)

Open a Terminal an install android and android-ndk

sudo port install android android-ndk

After successful installation you should find the android sdk under /opt/local/share/java/android-sdk-macosx, so we can launch the Android SDK Manager

sudo /opt/local/share/java/android-sdk-macosx/tools/android

You need to install Android SDK Platform-tools and Android SDK Build-tools

SDK_Manager

After installation you should find adb under /opt/local/share/java/android-sdk-macosx/platform-tools/adb

Root Andy

We need to open a Terminal to execute adb (Andy must be running to execute the next steps). You should have extracted SuperSU, for example to /tmp/UPDATE-SuperSU-v2.46

Start installing Superuser.apk

/opt/local/share/java/android-sdk-macosx/platform-tools/adb install /tmp/UPDATE-SuperSU-v2.46/common/Superuser.apk

Now we need to copy su to Andy (as /sdcard is readonly, we need to copy files to /data/local/tmp)

/opt/local/share/java/android-sdk-macosx/platform-tools/adb push /tmp/UPDATE-SuperSU-v2.46/x86/su /data/local/tmp/

Next step is to replace existing su with ours

/opt/local/share/java/android-sdk-macosx/platform-tools/adb shell
su -c "sh"
whoami #It should return "root"
mount -o remount,rw /system
mv /system/xbin/su /system/xbin/su.bak
cp /data/local/tmp/su /system/xbin/su
chmod 06755 /system/xbin/su
mount -o remount,ro /system

Andy should now we rooted, you can check it using a href=”http://adf.ly/13182869/play.google.com/store/apps/details?id=com.joeykrim.rootcheck” target=”_blank”>RootChecker

Andy_rooted

Leave a Reply