FORUMS

Analysis & Opinion

Top Forum Discussions

Superuser su binary

184 posts
Thanks Meter: 3
 
By dangdang, Senior Member on 17th September 2010, 02:35 AM
Post Reply Subscribe to Thread Email Thread
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
 
 
17th September 2010, 04:00 AM |#2  
sultan.of.swing's Avatar
Senior Member
Flag Fayetteville, N.C.
Thanks Meter: 60
 
Donate to Me
More
Same here. Have to re update after each reboot

Sent from my SPH-D700 using Tapatalk
17th September 2010, 06:16 PM |#3  
vavaud's Avatar
Member
Thanks Meter: 6
 
More
same here, had to update the binary too
18th September 2010, 02:57 AM |#4  
plmiller0905's Avatar
Senior Member
Flag Janesville,Wisconsin
Thanks Meter: 247
 
More
How do you update the su?
18th September 2010, 06:11 AM |#5  
dangdang's Avatar
OP Senior Member
Flag Texas
Thanks Meter: 3
 
More
Launch superuser, go to settings and scroll to the bottom.

Sent from my SPH-D700 using XDA App
18th September 2010, 06:32 AM |#6  
dangdang's Avatar
OP Senior Member
Flag Texas
Thanks Meter: 3
 
More
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
18th September 2010, 10:42 AM |#7  
rjmjr69's Avatar
Senior Member
Flag Southie
Thanks Meter: 116
 
More
Quote:
Originally Posted by dangdang

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?
18th September 2010, 05:08 PM |#8  
dangdang's Avatar
OP Senior Member
Flag Texas
Thanks Meter: 3
 
More
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
20th September 2010, 09:16 PM |#9  
vavaud's Avatar
Member
Thanks Meter: 6
 
More
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.
Last edited by vavaud; 20th September 2010 at 09:23 PM.
21st September 2010, 12:02 AM |#10  
dangdang's Avatar
OP Senior Member
Flag Texas
Thanks Meter: 3
 
More
Replace 'cp' with 'busybox cp'.

Sent from my Android using CDMA
21st September 2010, 09:08 AM |#11  
rjmjr69's Avatar
Senior Member
Flag Southie
Thanks Meter: 116
 
More
Quote:
Originally Posted by dangdang

Replace 'cp' with 'busybox cp'.

Sent from my Android using CDMA

will try I had the same issues

Read More
Post Reply Subscribe to Thread

Quick Reply
Message:
Options
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes