How to root an Android device under Ubuntu
2013-07-20 09:21
281 查看
I have found a lot of tutorials on this subject, but none really supported Android x86 devices, so I decided to write my own here which will support both ARM and x86. If you have an android phone or tablet, you
have an ARM CPU, and if you have a virtual android device (or have android installed on your computer), you have an x86 CPU. Notice that you are on your own with rooting. I can try to help, but I cannot guarantee that it will work 100% (it might even break
your device). Good luck!
Prerequisites:
Superuser (download the appropriate version, either ARM or x86): http://androidsu.com/superuser/
Psneuter: x86 version: http://ompldr.org/iaGRpOA,
ARM version: http://ompldr.org/iaGRpOQ
An android device (obviously)
First, open up your android device and navigate to Settings -> Applications -> Development, and make sure USB Debugging is on. Next, connect your android device to your computer (if it isn’t already), but make
sure you do NOT mount it. If it’s a virtual device, you don’t have to worry about it. Connect your android device with ADB, and type these commands in the terminal (of your computer, not the android device, replacing “path/to/directory/X/is/located”
with the actual directory where X is located):
We just uploaded everything we need to the android device (under a temporary directory). Now it’s time to root it! If you are using Android x86, press ALT+F1 and type the commands there instead of on the host machine. If you are not using it, first type this
in the host machine’s terminal (it will simply engage a shell with your phone/tablet):
Enter these commands:
On the host machine (yes, this is both for x86 and non-x86), connect to the android device using ADB, and type these commands:
Your android device should now be rooted!
转载地址:http://lkubuntu.wordpress.com/2012/10/26/how-to-root-an-android-device-under-ubuntu/
have an ARM CPU, and if you have a virtual android device (or have android installed on your computer), you have an x86 CPU. Notice that you are on your own with rooting. I can try to help, but I cannot guarantee that it will work 100% (it might even break
your device). Good luck!
Prerequisites:
Superuser (download the appropriate version, either ARM or x86): http://androidsu.com/superuser/
Psneuter: x86 version: http://ompldr.org/iaGRpOA,
ARM version: http://ompldr.org/iaGRpOQ
An android device (obviously)
First, open up your android device and navigate to Settings -> Applications -> Development, and make sure USB Debugging is on. Next, connect your android device to your computer (if it isn’t already), but make
sure you do NOT mount it. If it’s a virtual device, you don’t have to worry about it. Connect your android device with ADB, and type these commands in the terminal (of your computer, not the android device, replacing “path/to/directory/X/is/located”
with the actual directory where X is located):
cd path/to/directory/psneuter/is/located adb push ./psneuter /data/local/tmp/ cd path/to/directory/superuser/is/located mkdir superuser cd superuser unzip ../Superuser-*.zip adb push ./system/app/Superuser.apk /data/local/tmp/Superuser.apk adb push ./system/bin/su /data/local/tmp/su
We just uploaded everything we need to the android device (under a temporary directory). Now it’s time to root it! If you are using Android x86, press ALT+F1 and type the commands there instead of on the host machine. If you are not using it, first type this
in the host machine’s terminal (it will simply engage a shell with your phone/tablet):
adb shell
Enter these commands:
cd /data/local/tmp chmod 755 psneuter ./psneuter
On the host machine (yes, this is both for x86 and non-x86), connect to the android device using ADB, and type these commands:
adb shell busybox ash mount -o remount,rw /dev/block/mtdblock0 /system cp /data/local/tmp/su /system/bin/su chmod 6755 /system/bin/su cp /data/local/tmp/Superuser.apk /system/app/Superuser.apk chmod 777 /system/app/Superuser.apk reboot
Your android device should now be rooted!
转载地址:http://lkubuntu.wordpress.com/2012/10/26/how-to-root-an-android-device-under-ubuntu/
相关文章推荐
- how to run an android emulator in ubuntu 14.04
- How to Get an Android Device Image?
- Pulling Memory off an Android Device How To!
- How to install an Ubuntu VM under CentOS/Red Hat Xen
- how to use BaiduMap in android studio under ubuntu
- How to secure an Ubuntu 12.04 LTS server - Part 1 The Basics
- How to Build Android Applications Based on FFmpeg by An Example
- How to Build Android Applications Based on FFmpeg by An Example
- How to programatically unplug & replug an USB device in linux?
- How to obfuscate an Android application
- How To Set An Android Lock Screen PIN, Password or Unlock Pattern
- How to Compile Android on Ubuntu (12.04)
- How To Open An URL In Android’s Web Browser
- [GUIDE] How to Setup Ubuntu 16.04 LTS Xenial Xerus for Compiling Android ROMs
- How to Make an Pretty "Under Construction" Homepage
- How to Install Laravel with an Nginx Web Server on Ubuntu 14.04(Composer,laravel,nginx)
- How to find large file under root file system on AIX?
- How to compute the square root of an integer?
- [Guide] How to install Google Apps (GApps) on your Android Device / Phone
- an android virtual device that failed to load click 'details' to see the error