New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
eugene373
Old
#1  
eugene373's Avatar
Recognized Developer - OP
Thanks Meter 7271
Posts: 5,623
Join Date: Aug 2009

 
DONATE TO ME
Default (Guide) Editing Root Explorer to work with Perma-Temp Root!

First off: This is a Paid app so I will not Post the App its self, This is just a Guide to make Root Explorer Work with our Perma-Temp Root so you never Lose Root Access via Root Explorer!

You need to know how to use smali & able to resign apk's, I wont be covering a how-to for those steps..


Step 1.).. De-compile Root Explorer using smali

Step 2.).. Open the File CommandShell.smali located at > \smali\com\speedsoftware\rootexplorer\CommandShell .smali

Step 3.).. Find the Strings
Code:
    const-string v8, "/system/xbin/su"

    const-string v7, "/system/bin/su"

    const-string v6, "/data/bin/su"
Step 4.).. We now change those string to match these
Code:
    const-string v8, "/sbin/su"

    const-string v7, "/vendor/bin/su"

    const-string v6, "/system/bin/su"
Step 5.).. baksmali it & resign the apk

Step 6.).. Unistall the current version of Root Explorer

Step 7.).. Now we can install via adb install or off the sdcard

That's it.. Hope that helps everyone with Root Explorer!
~Eugene
Image Hosting Provided by http://i.imgur.com
TMO SGS2 & Nexus S
Eugene373's github
T-Mobile US

Follow me on Twitter.
http://twitter.com/#!/Eugene373

Like my Work, Buy Me a RedBull by clicking on my Can


Just Remember, Only you can Stop XDA Forest Fires!
The Following 4 Users Say Thank You to eugene373 For This Useful Post: [ Click to Expand ]
 
setzer715
Old
#2  
setzer715's Avatar
Senior Member
Thanks Meter 195
Posts: 1,174
Join Date: Jan 2009
Location: North Phoenix
I disassembled the app (com.speedsoftware.rootexplorer-1.apk) and I cannot find CommandShell.smali in any of the folders.
Nexus 4 - CM10.1 with Faux Kernel
TMO SGSIII - CM10.1
HTC One S - Sold
TMO SGSII - Sold
Sensation 4G - Sold
MT4G - Got a new one! Stock 2.3.5 with root.
Nexus One - CM9!
Vibrant - Let in-law use it. Just wasn't cutting it for me.
MyTouch3G Slide - Returned
MyTouch 3G - Sold
G1 - Sold
 
bahnburner
Old
#3  
bahnburner's Avatar
Senior Member
Thanks Meter 27
Posts: 606
Join Date: Feb 2009
Location: Memphis
You'll need to decompile the app, not just unzip it.

Sent from my HTC Sensation 4G
 
setzer715
Old
#4  
setzer715's Avatar
Senior Member
Thanks Meter 195
Posts: 1,174
Join Date: Jan 2009
Location: North Phoenix
Quote:
Originally Posted by bahnburner View Post
You'll need to decompile the app, not just unzip it.

Sent from my HTC Sensation 4G
I did, with baksmali. I decompiled the .apk and then also tried the classes.dex. That file is not in there. I have a bunch of .smali files, but not that one.
Nexus 4 - CM10.1 with Faux Kernel
TMO SGSIII - CM10.1
HTC One S - Sold
TMO SGSII - Sold
Sensation 4G - Sold
MT4G - Got a new one! Stock 2.3.5 with root.
Nexus One - CM9!
Vibrant - Let in-law use it. Just wasn't cutting it for me.
MyTouch3G Slide - Returned
MyTouch 3G - Sold
G1 - Sold
 
eugene373
Old
#5  
eugene373's Avatar
Recognized Developer - OP
Thanks Meter 7271
Posts: 5,623
Join Date: Aug 2009

 
DONATE TO ME
Quote:
Originally Posted by setzer715 View Post
I did, with baksmali. I decompiled the .apk and then also tried the classes.dex. That file is not in there. I have a bunch of .smali files, but not that one.
Regardless you need to search for those strings.
Image Hosting Provided by http://i.imgur.com
TMO SGS2 & Nexus S
Eugene373's github
T-Mobile US

Follow me on Twitter.
http://twitter.com/#!/Eugene373

Like my Work, Buy Me a RedBull by clicking on my Can


Just Remember, Only you can Stop XDA Forest Fires!
 
raysacr
Old
#6  
Senior Member
Thanks Meter 4
Posts: 365
Join Date: Sep 2010
Location: Orange County 714
Quote:
Originally Posted by setzer715 View Post
I disassembled the app (com.speedsoftware.rootexplorer-1.apk) and I cannot find CommandShell.smali in any of the folders.

I use apk manager to decompile...didn't find the commandshell.smali either. My root explorer version is 2.16
Samsung Galaxy Note II T889
ROM: Jedi Master

Samsung Galaxy S3 T999
ROM: Darthstalker V8
 
gbzbar
Old
#7  
Senior Member
Thanks Meter 373
Posts: 696
Join Date: Jun 2010

 
DONATE TO ME
Honestly, I'm not sure if this is even needed anymore. With the latest update that Eugene posted, I've been running for almost 24 hours installing apps, uninstalling apps, and playing all around with the phone, and I haven't lost Root or had the Root Explorer error happen once.
Try the latest update and see if you still have the Root Explorer issues that required this mod in the first place.
 
Utking
Old
#8  
Utking's Avatar
Senior Member
Thanks Meter 56
Posts: 286
Join Date: Jun 2008
Location: Arendal
I havent lost root with temp root+ overclock either

Sent from my HTC Sensation Z710e using XDA Premium App
My phones:
HTC touch diamond.
HTC Hero.
HTC Sensation


XDA PORTAL POSTS

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more

Guide to Take Better Control of Your Volume Levels

Would you like to know one of the things that really annoys me on a daily basis? Tough, … more

Get the Android 4.2.2 Status Bar on Your Gingerbread-Based Samsung

There are still quite a few of folks who run Gingerbread on their … more

Responses From Ubuntu Pouring Into Ubuntu Touch Q&A Thread

Ubuntu has become the most successful *nix distribution for a number of reasons, … more