DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 8 of 8

Thread: how to root/get root access in android emulator?

  1. Junior Droid
    preetb123's Avatar
    Member #
    170391
    Join Date
    Feb 2011
    Posts
    25
    Phone
    Android Emulator(1.5 to 2.3)
    #1

    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..!!
  2.  
     
     
     
  3. Developer
    jeffv2's Avatar
    Member #
    151962
    Join Date
    Dec 2010
    Location
    south jersey
    Posts
    1,241
    Liked
    3 times
    Phone
    galaxy nexus
    DroidForums.net Developer
    #2
    Quote Originally Posted by preetb123 View Post
    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..!!
    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
  4. Junior Droid
    preetb123's Avatar
    Member #
    170391
    Join Date
    Feb 2011
    Posts
    25
    Phone
    Android Emulator(1.5 to 2.3)
    #3
    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 by preetb123; 02-26-2011 at 10:58 PM.
  5. Developer
    jeffv2's Avatar
    Member #
    151962
    Join Date
    Dec 2010
    Location
    south jersey
    Posts
    1,241
    Liked
    3 times
    Phone
    galaxy nexus
    DroidForums.net Developer
    #4
    thats impossible. are you trying to use the honeycomb preview to do this?
  6. Junior Droid
    preetb123's Avatar
    Member #
    170391
    Join Date
    Feb 2011
    Posts
    25
    Phone
    Android Emulator(1.5 to 2.3)
    #5
    Quote Originally Posted by jeffv2 View Post
    thats impossible. are you trying to use the honeycomb preview to do this?
    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.!!
  7. Developer
    jeffv2's Avatar
    Member #
    151962
    Join Date
    Dec 2010
    Location
    south jersey
    Posts
    1,241
    Liked
    3 times
    Phone
    galaxy nexus
    DroidForums.net Developer
    #6
    where did you get the iptables executable?
    Last edited by jeffv2; 03-01-2011 at 02:52 PM.
  8. Junior Droid
    preetb123's Avatar
    Member #
    170391
    Join Date
    Feb 2011
    Posts
    25
    Phone
    Android Emulator(1.5 to 2.3)
    #7
    Quote Originally Posted by jeffv2 View Post
    where did you get the iptables executable?
    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?
  9. Developer
    jeffv2's Avatar
    Member #
    151962
    Join Date
    Dec 2010
    Location
    south jersey
    Posts
    1,241
    Liked
    3 times
    Phone
    galaxy nexus
    DroidForums.net Developer
    #8
    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 ?

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. Why use Easy Root, when you could use Universal Android Root?
    By babyman287 in forum Android Hacks and Help
    Replies: 62
    Last Post: 08-03-2012, 01:31 PM
  2. how to root/get root access in android emulator?
    By preetb123 in forum Android Tech Support
    Replies: 0
    Last Post: 02-23-2011, 10:35 AM
  3. how to root/get root access in android emulator?
    By preetb123 in forum Android Forum
    Replies: 0
    Last Post: 02-23-2011, 10:32 AM
  4. Terminal emulator to root?
    By koralyne in forum Droid Incredible Hacks
    Replies: 3
    Last Post: 02-06-2011, 10:54 AM
  5. Replies: 5
    Last Post: 04-20-2010, 02:13 PM

Search tags for this page

android terminal emulator not allowed to su
,

android terminal emulator permission denied

,
how to root android emulator
,
how to root android using terminal emulator
,
root android avd
,
root android using terminal emulator
,

root avd

,
terminal emulator android permission denied
,

uid not allowed to su

,
uid not allowed to su android
Click on a term to search our site for related topics.

Tags for this Thread

Find us on Google+