• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Persistant root

kam187

Android Expert
Aug 3, 2009
1,320
46
UK
EDIT: This is probably a better way to do it http://androidforums.com/samsung-behold-2/46137-how-root-apps-working-persistent-root.html

So we have persistant root :)

Thanks to chaoscentral for testing it out :)

You need this file - try3:
http://rapidshare.com/files/304169950/try3
alt link http://www.4shared.com/file/14856430...e869/try3.html

Code:
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
cat /system/bin/sh > /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
cat /system/bin/sh > /system/bin/su
chmod 04755 /system/bin/su
/system/bin/playlogo_real" > /system/bin/playlogo

Reboot, adb shell in and type 'su' to become root :p


EDIT:
People seem to be confused what this means! So here's a simple explanation.

- The above means you can root the phone, and so use any programs which NEED root to work. eg market enabler, or market apps marked (ROOT)

- This is the first step to a custom ROM, but doesnt mean we can just make one up as simply as we can for other phones like the galaxy or HTC.

- If you don't understand the above, then you most likely DONT need to run it!

- If you don't need to run any 'root' only apps you DONT need to run the above!

This is more a proof that persistant root is possible, and the first step that rom cookers will need to make a custom rom. However there are still some obsticles to get over. We need to kill the running processes and rerun the custom ones. This hasnt been done before and would be a new technique - so it will take time.

EDIT2:
I've decided against buying a behold 2/swapping my galaxy for one, so someone else will have to carry on from here. Good luck guys :)
 
Upvote 0
thanks guys for all the work. I'm an Android newbie and have two rooting questions specific to this phone:

If I root do the phone do I
a) lose the pulldown status bar at the top that i really like?
b) preclude myself from any updates from Samsung (including version 2.0)?

This phone is coming together now...thanks everyone here!
kchop
 
Upvote 0
I keep getting "playlogo: no such file or directory" on the "cat playlogo > playlogo_real" step. any help for this would be greatly appreciated

slight oversight on the code, should be

Code:
cat /system/bin/playlogo > /system/bin/playlogo_real




thanks guys for all the work. I'm an Android newbie and have two rooting questions specific to this phone:

If I root do the phone do I
a) lose the pulldown status bar at the top that i really like?
b) preclude myself from any updates from Samsung (including version 2.0)?

This phone is coming together now...thanks everyone here!
kchop

a) this has no effect on removing what your phone currently has. This isn't a custom ROM, it just simply allows you to have complete control over your phone.
b) it does not block any OTA updates such as the 2.0 update, but be warned, if you do update there might not be a way to get root back.
 
Upvote 0
So it looks like the system partition isnt restored, but instead some script must check the su and sh commands. I assume then that the recovery partition isnt flashing because its either in a different place (odin), or it needs to be signed properly.

Since we have a script that can run on boot, we can store a file on the sdcard called updat.zip, and extract it over system on boot.

However the playlogo (and any other file we choose) HAS to run AFTER the init.rc because the init.rc mounts the partitions.

That means running a custom rom is a little more tricky, because we need to kill system processes and restart them. I'm definatly up for making a custom rom, and have several ideas how to do it. I really want to port the sense UI actually.

As soon as i get a behold i'll start on it :)
 
Upvote 0
So it looks like the system partition isnt restored, but instead some script must check the su and sh commands. I assume then that the recovery partition isnt flashing because its either in a different place (odin), or it needs to be signed properly.

Since we have a script that can run on boot, we can store a file on the sdcard called updat.zip, and extract it over system on boot.

However the playlogo (and any other file we choose) HAS to run AFTER the init.rc because the init.rc mounts the partitions.

That means running a custom rom is a little more tricky, because we need to kill system processes and restart them. I'm definatly up for making a custom rom, and have several ideas how to do it. I really want to port the sense UI actually.

As soon as i get a behold i'll start on it :)

Yeah, but thanks to this its gone from impossible to tedious. I'll help out once mine comes in.
 
Upvote 0
Yeah, but thanks to this its gone from impossible to tedious. I'll help out once mine comes in.

Well not quite tedious. It can still be packaged up into an easy procedure. Its just alot more complicated to make the custom rom in the first place to start all the processes properly.

this is driving me crazy... I must be missing something. I cant do it.

It might help if you described your problem a bit more. 'i cant do it' isnt going to get u much help!!
 
Upvote 0
I posted that out of frustration. I was talking about the whole root process in general. I downloaded the latest sdk and I couldn't get my serial number to show up in the command box on my pc. But I see that chaoscentral is going to post a video which is greatly appreciated. Once I see the video I will probably smack myself! Dohhh!! Thanks again chaos and kam for your replies.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones