EmuTempRoot - Root tool for Android Virtual Device

xdaid

Inactive Recognized Developer
Jul 12, 2009
514
648
0
This is my tool to apply a temporary root to the (already open) android's emulator. If you're a developer or simply want to run apps with root access in the emulator you may find this useful.

Please note, launching the AVD directly from EmuTempRoot is highly recommended (especially if root fails).

The emulator can also be launched from this tool;
this option is recommended since the AVD will be automatically configured in order to ensure a succesful root process.
You can still deploy apps to the emulator from eclipse.

Requirements:

- Windows Vista (it should work on XP and 7, not tested)
edit: i still can run it successfully on windows 8
- .NET Compact Framework 3.5 or higher
- Android SDK for 2.1 or higher

Usage:

- Unzip to desktop or any folder where special rights are not required
(e.g. do not unzip to the program files folder)
- Open EmuTempRoot (double-click)
- Open the AVD (better to open AVD from EmuTempRoot)
- Root! it lasts untill the AVD is rebooted

Download from the link below. Optionally
 

Attachments

Last edited:

liujeffqi

Member
Aug 28, 2010
11
0
0
got a error message when try to apply root how to fix it?

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at EmuTempRoot.EmuTempRoot.run_command(String path, String args, Boolean wait)
at EmuTempRoot.EmuTempRoot.emuRootButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
EmuTempRoot
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Jeff/Desktop/EmuTempRoot/EmuTempRoot.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5458 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
 

Paresh Kalinani

Senior Member
Apr 28, 2012
622
172
0
24
Mumbai
Doesn't work!

When I click 'Apply Root' it says 'please wait...' and after a few seconds, it says 'failed: cannot connect to emulator.':crying:
But my Emulator is still open!
 

xdaid

Inactive Recognized Developer
Jul 12, 2009
514
648
0
When I click 'Apply Root' it says 'please wait...' and after a few seconds, it says 'failed: cannot connect to emulator.':crying:
But my Emulator is still open!
Excuse me for taking so long to answer :) you should try to launch the AVD directly from EmuTempRoot, once the AVD is up and running apply the root.
 

Paresh Kalinani

Senior Member
Apr 28, 2012
622
172
0
24
Mumbai
Excuse me for taking so long to answer :) you should try to launch the AVD directly from EmuTempRoot, once the AVD is up and running apply the root.
Hehe... I wanted to root the emulator 'cause I was afraid of rooting my phone... but now I've rooted.. :p no need now.. thanks for not answering for so long! Otherwise, I'd never root my phone!! :p

Sent from my One V
 
P

parthbhatia98

Guest
Helpp!!

I have made a adt folder in d drive and in that i have extracted the three files (sdk,eclipse and SDK Manager.exe)..
so my directory is D:\adt\
I have made an emulator of name "mob"
So i wanted to know in which text box what to fill(what directory)??
I filled by my own this way(Pic)..

But i got error..
Am i filling wrong details??:rolleyes:
 

Attachments