Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4625634
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:18:03+00:00 2026-05-22T03:18:03+00:00

i am trying to get root access on my android emulator to run iptables.

  • 0

i am trying to get root access on my android emulator to run iptables. i went through many forums and tried many methods but nothing seems to work. the following is my device specification and i try everything on emulator.

version – 2.3
kernel version – 2.6.29-00261-g0097074-dirtydigit@digit #20

build number – sdk-eng 2.3 GRH55 79397 test-keys

so how to become root in the android. please help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T03:18:04+00:00Added an answer on May 22, 2026 at 3:18 am

    On the emulator provided with the SDK r10, you can get a root shell executing “adb shell” from your host computer. Once you have such root shell, you cat follow this steps to get a command that can log you as root from the terminal emulator:

    # Remount /data to allow executables and setuids on it
    mount -o remount,rw /dev/block/mtdblock1 /data
    
    # There's no "cp" command on Android
    cat /system/bin/sh > /data/su
    
    # Give setuid permissions to the shell
    chmod 7755 /data/su
    

    Now, from the emulator, just run “/data/su” and that’s it, you’re root.

    The normal “/system/xbin/su” command included in the SDK performs internal user id checks, so these commands…

    mount -o remount,rw /dev/block/mtdblock0 /system
    chmod 7755 /system/xbin/su
    

    …just won’t work. There’s no way to trick /system/xbin/su to allow the normal user (UID 10018 in my case) to become root.

    Please note that dealing with setuid programs can be a security risk (not higher than having a universal “su” command, though). Use this solution at your own risk.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get my .htaccess file to work from the root, but also
I am trying to get the path to a folder in my website root
Trying to get an ASP application deployed; it worked for a while but then
I'm trying to loop through this XML to get specifically to the count fields.
I'm trying to install virtual-python on linux server which I don't have root access.
I am trying to access /proc/net/dev file with -r--r--r-- 1 root root 0 privileges
I'm trying to get plaxo's Address Book Access working. I'm having the following problem:
I'm trying to get a proof-of-concept PivotViewer application up and running, but I can't
Hey, i'm trying to get a project to work, but i am having trouble
I'm trying get values from a GridView using the following code: foreach (GridViewRow row

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.