1. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

how to root/get root access in android emulator?

Discussion in 'Android Hacks and Help' started by preetb123, Feb 23, 2011.

  1. preetb123
    Offline

    preetb123 New Member

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

    jeffv2 Developer Developer

    Joined:
    Dec 23, 2010
    Messages:
    1,240
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    south jersey
    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
  3. preetb123
    Offline

    preetb123 New Member

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

    jeffv2 Developer Developer

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

    preetb123 New Member

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

    jeffv2 Developer Developer

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

    preetb123 New Member

    Joined:
    Feb 13, 2011
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    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?
  8. jeffv2
    Offline

    jeffv2 Developer Developer

    Joined:
    Dec 23, 2010
    Messages:
    1,240
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    south jersey
    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 ?
Search tags for this page
android terminal emulator not allowed to su
,

android terminal emulator permission denied

,
how to get root access on android emulator
,
how to get su permission on android using terminal emulator
,
how to root android emulator
,
how to root android using terminal emulator
,
not allowed to su
,
root android avd
,
root android using terminal emulator
,

root avd

,
root using terminal emulator
,
root with terminal emulator
,
terminal emulator android permission denied
,
terminal emulator permission denied
,

uid not allowed to su