how to root/get root access in android emulator?

Discussion in 'Android Forum' started by preetb123, Feb 23, 2011.

  1. preetb123
    Offline

    preetb123 New Member

    Joined:
    Feb 13, 2011
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    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..!!
     
  2. preetb123
    Offline

    preetb123 New Member

    Joined:
    Feb 13, 2011
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    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..!!
     
  3. preetb123
    Offline

    preetb123 New Member

    Joined:
    Feb 13, 2011
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    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..!!
     
  4. jeffv2
    Offline

    jeffv2 Developer Developer

    Joined:
    Dec 23, 2010
    Messages:
    1,240
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    south jersey
    Ratings:
    +0
    the emulator is already "rooted" so to say. with adb you can type adb remount & that remounts system r/w. then you can push busybox to /system/bin or /system/xbin & change the permissions
     
  5. preetb123
    Offline

    preetb123 New Member

    Joined:
    Feb 13, 2011
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    this didn't work. i tried. says, "Permission Denied." i want to use iptables on emulator, so, in the emulator terminal "su" should return some result other than "uid not allowed to su"
     
    Last edited: Feb 26, 2011
  6. jeffv2
    Offline

    jeffv2 Developer Developer

    Joined:
    Dec 23, 2010
    Messages:
    1,240
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    south jersey
    Ratings:
    +0
    thats impossible. are you trying to use the honeycomb preview to do this?
     
  7. preetb123
    Offline

    preetb123 New Member

    Joined:
    Feb 13, 2011
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    sorry, i might have done some mistakes before... actually remounting worked on my android 1.5 emulator yesterday, and also "su" worked in the terminal emulator.
    Will this work for other versions(above 1.5) too?
    and one more problem is, when i pushed iptables binary into andriod, the following error appeared for "su iptables -L"

    "can't open iptables"

    what might be the problem? and what will i have to do to use iptables?

    and, thankyou very much for help.!!
     
  8. jeffv2
    Offline

    jeffv2 Developer Developer

    Joined:
    Dec 23, 2010
    Messages:
    1,240
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    south jersey
    Ratings:
    +0
    where did you get the iptables executable?
     
    Last edited: Mar 1, 2011
  9. preetb123
    Offline

    preetb123 New Member

    Joined:
    Feb 13, 2011
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    i took iptables from droidwall source from code.google.coom(in this iptables binary is a 104KB file). i used this just for testing.
    but actually i have to cross-compile iptables for ARM architecture with BuildRoot and then use the binary that will be generated(i have not done this yet, i'll try it today).
    but rooting using remounting will work for versions higher than 1.5?
     
  10. jeffv2
    Offline

    jeffv2 Developer Developer

    Joined:
    Dec 23, 2010
    Messages:
    1,240
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    south jersey
    Ratings:
    +0
    its not really rooting its just mounting the /system read write & yes it has to be compiled for arm.. but if you got it from something called droid wall then maybe its already compiled for arm ?
     
  11. DaSnOoTeRKiNG
    Offline

    DaSnOoTeRKiNG Member

    Joined:
    Feb 19, 2011
    Messages:
    112
    Likes Received:
    1
    Trophy Points:
    18
    Ratings:
    +1
    You have to root your phone try super one click works plush then you can do whatever you want in the terminal
     
  12. jeffv2
    Offline

    jeffv2 Developer Developer

    Joined:
    Dec 23, 2010
    Messages:
    1,240
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    south jersey
    Ratings:
    +0
    super one click wont work for emulator. the su binary for android phones is different then what is used in the emulator.
     
  13. DaSnOoTeRKiNG
    Offline

    DaSnOoTeRKiNG Member

    Joined:
    Feb 19, 2011
    Messages:
    112
    Likes Received:
    1
    Trophy Points:
    18
    Ratings:
    +1
    Sorry misunderstood I thought he was askin why he couldn't get su perm in terminal emu app.............
     
  14. jeffv2
    Offline

    jeffv2 Developer Developer

    Joined:
    Dec 23, 2010
    Messages:
    1,240
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    south jersey
    Ratings:
    +0
    no problem, you meant well thats all that matters.
     
  15. Xplorer4x4
    Offline

    Xplorer4x4 Active Member

    Joined:
    Mar 9, 2010
    Messages:
    1,004
    Likes Received:
    4
    Trophy Points:
    38
    Location:
    Evansville,IN
    Ratings:
    +4
Search tags for this page
android emulator root
,
android java get root
,
how to root android using android terminal emulator
,
how to root android using terminal emulator
,

how to root using terminal emulator

,
how to rooted android via terminal emulator
,
root android via terminal emulator
,

root using terminal emulator

,
rooting android-using terminal emulator
,
rooting via android terminal emulator