How to get *root* access in Android Emulator

***This article is current as of Sept 2013***

I read many articles and forums for getting the root access on Android Emulator or phone but none of them worked for me *as is*, so I thought of putting together a series of instructions that worked for me and hopefully will work for you as well.

  1. Here is what you need to download
    1. su
    2. Superuser.apk
  2. Did you set Android SDK path in your environment variables or in short can you open a command or terminal window and type adb and see if the path is set?
    1. if yes then you can copy the above two files anywhere you want and just move to that directory
    2. If no then just copy the above two files to your <YOUR_SDK_INSTALL_DIR_PATH>/platform-tools/
  3. Make sure to start your emulator now and wait until it is all good or basically it shows up when you execute “adb devices” command. Also make sure only one emulator is running and no other devices are connected.
  4. In your terminal/command window go to the following location <YOUR_SDK_INSTALL_DIR_PATH>/platform-tools/ and get ready to execute few commands.
    1. adb remount
    2. adb push su /system/xbin/su
    3. adb shell chmod 06755 /system
    4. adb shell chmod 06755 /system/xbin/su
    5. adb install Superuser.apk

If all goes well so far then you have root access now. You can check that by following commands
adb shell
You should now get su access!

Note: Any time you restart the emulator then you have to repeat step 4.C and 4.D

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>