[Galaxy Ace S5830 Android Development] mdfzhi:
just found out something interesting about root permission.

ive tried everything from replacing su binaries to copy it to /system/bin, but in the end when reboot my device loses root permission again.

then i tried to send su command from adb shell from my pc to the device, and suprisingly it works, my device got root permission again :)

but, when reboot it loses root permissin again :mad:

then again when i send su command via adb shell from my pc, it got it root permission again. very, very weird.

anyway this is my device logcat when i send that magical su command that gives it root permisson, ive done it several time to make sure the uid, sender is the same or not but the result is it differ from each time i've send it:

06:10:11.920 Debug su 637 0 /system/bin/sh executing 0 /system/bin/sh using shell /system/bin/sh : sh
06:21:18.630 Debug su 638 0 /system/bin/sh executing 0 /system/bin/sh using shell /system/bin/sh : sh
06:32:26.378 Debug su 620 0 /system/bin/sh executing 0 /system/bin/sh using shell /system/bin/sh : sh
06:51:44.937 Debug su 625 0 /system/bin/sh executing 0 /system/bin/sh using shell /system/bin/sh : sh

so i began an experiment.

reboot my device, so obviously it loses root permission.

then i ran terminal emulator on my device trying to get root permission but it failed and the logcat is:

07:09:27.868 Error su 608 Couldn't open database
07:09:27.868 Warning su 608 request rejected (10058->0 /system/bin/sh)

then i ran root explorer, it failed to gain root access and logcat is:

07:11:07.270 Error su 667 Couldn't open database
07:11:07.270 Warning su 667 request rejected (10010->0 /system/bin/sh)

then i ran setcpu, it failed to gain root access and logcat is:

07:12:10.220 Error su 702 Couldn't open database
07:12:10.220 Warning su 702 request rejected (10060->0 /system/bin/sh)

then i send the magical su command from adb shell from my pc that i know it can bring root permisson back to my device, and logcat is:

07:13:31.334 Debug su 715 0 /system/bin/sh executing 0 /system/bin/sh using shell /system/bin/sh : sh

so obviously i know that my device can get root permission now, so i ran terminal emulator, got root permission and logcat is:

07:13:51.100 Debug su 720 10058 /system/bin/sh executing 0 /system/bin/sh using shell /system/bin/sh : sh

now i ran root explorer, it got root permisson and logcat is:

07:14:41.224 Debug su 733 10010 /system/bin/sh executing 0 /system/bin/sh using shell /system/bin/sh : sh

lastly i ran setcpu, it got root permisson and logcat is:

07:15:41.689 Debug su 768 10060 /system/bin/sh executing 0 /system/bin/sh using shell /system/bin/sh : sh

so there is my long story :D now my temporary solution to get back root permission each time after reboot is to plug it into my pc and send su command via adb shell. it worked each time. so hopefully this story with its logcat of my device can help the dev solve this :)

btw im using QtADB to get all those logcat displayed on my pc. its an awesome tool to debug btw. turn off my device, plug it into my pc and ran it, turn my device on and i can see all the realtime logcat displayed on my big pc monitor :p