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.


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

1sudo 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

1sudo /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

1/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)

1/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

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

Andy should now we rooted, you can check it using RootChecker

Andy rooted

Zend Framework 2: Authentication + Acl Using EventManager
comments powered by Disqus