LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Mobile (http://www.linuxquestions.org/questions/linux-mobile-81/)
-   -   how to root/get root access in android emulator? (http://www.linuxquestions.org/questions/linux-mobile-81/how-to-root-get-root-access-in-android-emulator-864565/)

preetb123 02-23-2011 11:28 AM

how to root/get root access in android emulator?
 
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..!!

MS3FGX 02-24-2011 08:26 PM

You should always have root level permissions when running in the emulator, so I'm not sure what the problem would be. What kind of error messages are you getting when you try to do something that needs root?

preetb123 02-25-2011 12:15 AM

Quote:

Originally Posted by MS3FGX (Post 4270363)
You should always have root level permissions when running in the emulator, so I'm not sure what the problem would be. What kind of error messages are you getting when you try to do something that needs root?

No, we don't have root permissions when running emulator. when i type "whoami", it says 'Permission Denied' and same message for "su" i.e: 'uid 10024 not allowed to su'. I think this can be achieved using downgrading the emulator, please help if you know anything regarding how to downgrade or any other way to get root access..please help. thankyou.


All times are GMT -5. The time now is 08:40 PM.