File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes how to root/get root access in android emulator? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "how to root/get root access in android emulator?" Watch "how to root/get root access in android emulator?" New topic
Author

how to root/get root access in android emulator?

Preetam Bhosle
Greenhorn

Joined: Feb 12, 2011
Posts: 6
Hi all,

I have All android SDK versions(from 1.5 to 2.3.3), and i tried many methods for getting root in android emulator. I don't use any android device and test everything on emulator(AVD).

below are my android versions and emulator specification::

Android SDK Version 1.5:
Kernel Version:
2.6.27-00110-g132305e
mikechan@cheetara #6
Build Number:
sdk-eng 1.5 CUPCAKE 150240 test-keys

Android SDK Version 1.6:
Kernel Version:
2.6.29-00177-g24ee4d2
veenstra@jackv)
Build Number:
sdk-eng 1.6 Donut 20842 test-keys


Android SDK Version 2.1 update1:
Kernel Version:
2.6.29-00261-g0097074
digit@digit#14
Build Number:
sdk-eng 2.1-update1 ECLAIR 35983 test-keys


Android SDK Version 2.2:
Kernel Version:
2.6.29-00261-g0097074-dirty
digit@digit#20
Build Number:
sdk-eng 2.2 FRF91 43546 test-keys

Android SDK Version 2.3.3:
Kernel Version:
2.6.29-00261-g0097074-dirty
digit@digit#20
Build Number:
sdk-eng 2.3.3 GRI34 101070 test-keys

I need to get root access in any one of the android emulator to use the 'iptables' and 'busybox' functionality. And to use iptables i must have root access. Atleast 'su' command should execute in the terminal emulator.

I also installed 'z4root' application, but it takes very long time and doesn't finish rooting, and gets stuck. some say that if we downgrade the system to below RC30, this way we can get root access...if this is true, then how to do this, i use both linux and windows OS.

please someone tell me any method to root my emulator...

i, very urgently need this. please please help.....


Thank you very much..!!
Hardik Trivedi
Ranch Hand

Joined: Jan 30, 2010
Posts: 252
Use adb shell.
Adb shell provides facility to give command like we give on Linux terminal.

http://developer.android.com/guide/developing/tools/adb.html

I hope it is helpful to you.
Preetam Bhosle
Greenhorn

Joined: Feb 12, 2011
Posts: 6
Hardik Trivedi wrote:Use adb shell.
Adb shell provides facility to give command like we give on Linux terminal.

http://developer.android.com/guide/developing/tools/adb.html

I hope it is helpful to you.


i tried through adb shell also, there too same problem. root access not available, 'su' command doesnt executes successfully.
it gives error like this "uid 10057 not available to su".
how can i downgrade my emulator to RC29, that may work, but i dont know how to do it. please help..
Preetam Bhosle
Greenhorn

Joined: Feb 12, 2011
Posts: 6
this thread is solved. details can be found at http://stackoverflow.com/questions/4924391/how-to-get-root-access-on-android-2-3-emulator
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to root/get root access in android emulator?