Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,740,354 Members 44,049 Now Online
XDA Developers Android and Mobile Development Forum

Superuser su binary

Tip us?
 
dangdang
Old
#1  
dangdang's Avatar
Senior Member - OP
Thanks Meter 3
Posts: 166
Join Date: Jan 2009
Location: Texas
Default Superuser su binary

I've noticed that the su binary installed by superuser doesn't survive a reboot. Anyone else have this problem? Any fixes?

Sent from my SPH-D700 using XDA App
 
sultan.of.swing
Old
#2  
sultan.of.swing's Avatar
Senior Member
Thanks Meter 56
Posts: 1,054
Join Date: Apr 2010
Location: Fayetteville, N.C.

 
DONATE TO ME
Same here. Have to re update after each reboot

Sent from my SPH-D700 using Tapatalk
She took off a silver locket, said remember me by this.
She put her hand in my pocket, I got a keep sake and a kiss.
And in the roar of dust and diesel, I stood I watched her walk away.
I could have caught up with her easy enough but something must have made me stay.
 
vavaud
Old
#3  
vavaud's Avatar
Member
Thanks Meter 6
Posts: 47
Join Date: Aug 2009
same here, had to update the binary too
 
plmiller0905
Old
#4  
plmiller0905's Avatar
Senior Member
Thanks Meter 240
Posts: 5,035
Join Date: Apr 2010
Location: Janesville,Wisconsin
How do you update the su?
 
dangdang
Old
#5  
dangdang's Avatar
Senior Member - OP
Thanks Meter 3
Posts: 166
Join Date: Jan 2009
Location: Texas
Launch superuser, go to settings and scroll to the bottom.

Sent from my SPH-D700 using XDA App
 
dangdang
Old
#6  
dangdang's Avatar
Senior Member - OP
Thanks Meter 3
Posts: 166
Join Date: Jan 2009
Location: Texas
I've found 3 su:

/system/bin/jk-su (original from the oneclick/permanent)
/system/xbin/su (symlink to /sdx/su)
/sdx/su (superuser updates this one)

Superuser does not update /system/bin/jk-su so I decided to.

So far its working.

Sent from my SPH-D700 using XDA App
 
rjmjr69
Old
#7  
rjmjr69's Avatar
Senior Member
Thanks Meter 116
Posts: 1,773
Join Date: Dec 2008
Location: Southie
Quote:
Originally Posted by dangdang View Post
I've found 3 su:

/system/bin/jk-su (original from the oneclick/permanent)
/system/xbin/su (symlink to /sdx/su)
/sdx/su (superuser updates this one)

Superuser does not update /system/bin/jk-su so I decided to.

So far its working.

Sent from my SPH-D700 using XDA App

How did you update it yourself?
 
dangdang
Old
#8  
dangdang's Avatar
Senior Member - OP
Thanks Meter 3
Posts: 166
Join Date: Jan 2009
Location: Texas
Here's what worked for me. Keep in mind I am rooted using oneclick 2.2.4 which comes with busybox and remount scripts.

1. Update the su binary using superuser.
2. Launch a terminal (I use better terminal emulator pro)
3. Run 'su' from the terminal
4. Mount system rw with 'remount rw'
5. Remove jk-su with 'rm /system/bin/jk-su'
6. Copy the su binary superuser installed with 'cp /sdx/su /system/bin/jk-su'
7. Reboot and it should survive.

Notes:

Do not include single quotes when running the commands.

I'm paranoid about permissions so as root in terminal I ran:

chown root.shell /system/bin/jk-su
chmod 755 /system/bin/jk-su

To match the permissions of the removed jk-su. I'm not sure if this was necessary.

I haven't tested using adb yet so I don't know the steps.

Sent from my SPH-D700 using XDA App
 
vavaud
Old
(Last edited by vavaud; 20th September 2010 at 09:23 PM.)
#9  
vavaud's Avatar
Member
Thanks Meter 6
Posts: 47
Join Date: Aug 2009
Code:
Select Code
#cp /sdx/su /system/bin/jk-su
cp: not found
the last part does not work (i have the same root method)

i have to re-root the phone when i get home today. but i will try to move the updated binary with root explorer instead of the command line.
 
dangdang
Old
#10  
dangdang's Avatar
Senior Member - OP
Thanks Meter 3
Posts: 166
Join Date: Jan 2009
Location: Texas
Replace 'cp' with 'busybox cp'.

Sent from my Android using CDMA

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...