View Single Post
Old February 17th, 2010, 12:07 PM   #1 (permalink)
BH_MAN
Senior Member
 
BH_MAN's Avatar
 
Join Date: Feb 2010
Posts: 1,382
 
Device(s): Behold 2 w/ BH_MAN Galaxy 1.6 / R7 Do Not PM me With Problem's Post in Thread!
Thanks: 156
Thanked 1,673 Times in 433 Posts
Default [How-to] Root for App's working with Persistent root

First off, I want to say thanks to Kam187 & the Creators of asroot

Okay, Below is the Method I used for getting Root working for my app's.
Even though Shell is running as Root, any Call's made to su trigger's the white List Superuser.apk, So don't think your phone is wide open. G1's & MT3G Setup's are the same regard sh.

I'm not sure is the apk is counted as warez or not, if so I hope a Mod will remove the link to the Apk or let me know to Remove it...

Okay, File's Need to complete the Task is....

Try3 Placed in C:\SDK\tools> found here > try3

SU for /system/bin found here > su

Superuser app control for our App's found Here > Superuser.apk

Next, Mount the SDCARD and place the SU file in the root of the sdcard like so ( /sdcard ). This is Important!!!

From here we do the Following.. ( Kam187 script the I edited ).

Quote:
adb push try3 /data/local
adb shell chmod 0755 /data/local/try3
adb shell
/data/local/try3 /system/bin/sh
mount -o rw,remount /dev/st9 /system
chmod 04755 /system/bin/sh
cat /sdcard/su > /system/bin/su1
cat /sdcard/su > /system/bin/su
chmod 04755 /system/bin/su
su
cat /system/bin/playlogo > /system/bin/playlogo_real
/system/bin/chmod 0755 /system/bin/playlogo_real



echo "#!/system/bin/sh
/data/local/try3 /system/bin/sh
mount -o rw,remount /dev/st9 /system
chmod 04755 /system/bin/sh
cat /system/bin/su1 > /system/bin/su
chmod 04755 /system/bin/su
/system/bin/playlogo_real" > /system/bin/playlogo
Once Done, place the Superuser.apk in your SDK tools Directory.
Mine happens to look like this
Quote:
C:\SDK\tools>
Once you have that Copied over, Open a Command prompt and CD to your sdk\tools directory and type the following.
Quote:
adb install Superuser.apk
Once done, do a reboot of the Phone, Once boot up is complete open a Command Prompt ( or app that needs Root ).

For Command Prompt, type:
Quote:
adb shell
Quote:
su
If done correctly you will now see the deny or allow prompt on the Phone, or just open any app that needs root & you will see the same window.

Here's some Picture of it working

SU working with SU apk on Twitpic & SU working with SU apk on Twitpic
BH_MAN is offline  
Last edited by BH_MAN; February 17th, 2010 at 02:15 PM.
Reply With Quote