Friday, 24 January 2014

How to root any android phone manually

For rooting the android phone, your android debugging must be ON and you will require following things.



1. A linux machine, in my case ubuntu
2. adb - It can downloaded by following command on linux terminal
     $ sudo apt-get install android-tools-adb
3. busybox, Superuser.apk, psneuter

When you have it execute the following command step-wise.


$ adb devices

          This will list all the devices connected to the computer, if "no devices" is promting, check whether your USB Debugging is ON, which is present in developer options under settings.

$ adb push psneuter /data/local/tmp
          This copy the file in your device and now we will execute this file.
$ adb shell
$ cd /data/local/tmp
$ chmod 777 psneuter
$ ./psneuter

now it will run

$ adb kill-server
$ adb devices
$ adb shell

now # will appear in place of $, or after typing $su

# mount -o remount,rw -t rfs /dev/block/st19/system
# exit
$ adb push busybox /system/bin
$ adb push su /system/bin
$ adb install Superuser.apk
$ adb shell
# chmod 4755 /system/bin/busybox
# chmod 4755 /system/bin/su
# mount -o remount,ro -t rfs /dev/block/st19/system
# exit
$ adb reboot

now device will reboot and device will be rooted and su app will appear in app drawer.

18 comments:

  1. The command for my Debian machine doesn't work:

    $sudo apt-get install android-tools-adb

    Is there any other way I can get the adb?

    ReplyDelete
    Replies
    1. All linux pakages are available pn ububtu community

      Delete
    2. Paul, maybe you need to enable more debian repos. A google search for debian adb shows lots of packages and guides...

      Delete
  2. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. These 3 are independent apps, you can easy find them on web.

      Delete
  3. can u please provide link to busybox and psneuter?also does this work on my gfive a77? thanx

    ReplyDelete
  4. on which version of android will this work?

    ReplyDelete
    Replies
    1. This may work for all versions, but I have tried it on android 4.0 and above only.

      Delete
    2. Have you tried it on 4.3? I think, the psneuter exploit doesn't work with that version. Well, it didn't work for me... Any suggestions?

      Delete
  5. ./psneuter won't work after I enter the shell. What could be the problem?

    ReplyDelete
    Replies
    1. First you have to make it executable by
      $ chmod +x psneuter

      Delete
  6. Hello
    When I start ./psneuter i get "Failed to set prot mask (Inappropriate ioctl for device)". Does anyone have an Idea how I can resolve this?
    cheeers

    ReplyDelete
  7. sir when I run $ ./psneuter then message comes:
    mmap<> failed. invalid argument
    and when I run $ chmod+x psneuter then message comes:
    /system/bin/sh: chmod+x not found

    ReplyDelete
  8. shows Bad mode please help

    ReplyDelete
  9. shows Bad mode please help

    ReplyDelete
  10. ./psneuter
    mmap() failed. Invalid argument

    ReplyDelete