Q&A and Troubleshooting for "NexusHD2-JellyBean-CM10.2"

For general discussion and questions specific to Android development for HTC HD2/Leo
Moderator: Forum Moderator

Re: Photo and SuperSU

Postby tytung » Wed Oct 16, 2013 5:57 am

benlm72 wrote:Hi tytung,
Help ! I've disabled superuser, but now (as I always don't manage to install SuperSU) superuser has disappeared from settings so I can't reactivate it by this way. I've reinstalled your rom, but superuser is always not visible (and I've lost root rights). How can I get superuser back ?
Thank's

Manage Apps -> clear Settings app's data.
Paste your logcat to GitHub Gist or any similar websites, and link it in your post if you need any help. (Don't forget to tell us your HD2 setup/configuration.)

Device: HTC HD2 (LEO512)
HSPL: 2.08.HSPL
Radio: Leo_RADIO_2.15.50.14
Bootloader: MAGLDR v1.13
Recovery: ClockworkMod Recovery 5.0.2.6

My work for Android on HD2:
Image
User avatar
tytung
Site Admin
 
Posts: 588
Joined: Sun Jun 09, 2013 2:12 pm
Country: Taiwan (tw)
Has thanked: 204 times
Been thanked: 1349 times

Advertisement
 

Re: Photo and SuperSU

Postby benlm72 » Wed Oct 16, 2013 7:47 am

tytung wrote:Manage Apps -> clear Settings app's data.

Thank's for your quick answer !
I've made that, but it makes the developer option disappear without getting back the superuser one !
benlm72
Junior Member
 
Posts: 59
Joined: Sat Aug 31, 2013 6:17 pm
Country: France (fr)
Has thanked: 14 times
Been thanked: 19 times

Re: Photo and SuperSU

Postby tytung » Wed Oct 16, 2013 9:27 am

benlm72 wrote:Thank's for your quick answer !
I've made that, but it makes the developer option disappear without getting back the superuser one !

OK. Try to delete /data/data/com.android.settings/ folder and then reboot.
It should completely remove all settings data. But I'm not sure if there's any side effect or not. So remember to backup your ROM data before doing it.
Paste your logcat to GitHub Gist or any similar websites, and link it in your post if you need any help. (Don't forget to tell us your HD2 setup/configuration.)

Device: HTC HD2 (LEO512)
HSPL: 2.08.HSPL
Radio: Leo_RADIO_2.15.50.14
Bootloader: MAGLDR v1.13
Recovery: ClockworkMod Recovery 5.0.2.6

My work for Android on HD2:
Image
User avatar
tytung
Site Admin
 
Posts: 588
Joined: Sun Jun 09, 2013 2:12 pm
Country: Taiwan (tw)
Has thanked: 204 times
Been thanked: 1349 times

Re: Photo and SuperSU

Postby benlm72 » Wed Oct 16, 2013 11:17 am

tytung wrote:OK. Try to delete /data/data/com.android.settings/ folder and then reboot.
It should completely remove all settings data. But I'm not sure if there's any side effect or not. So remember to backup your ROM data before doing it.

Hé hé ! To do that, it seems I need root rights, that I no more have after disabling superuser...
benlm72
Junior Member
 
Posts: 59
Joined: Sat Aug 31, 2013 6:17 pm
Country: France (fr)
Has thanked: 14 times
Been thanked: 19 times

Re: Photo and SuperSU

Postby tytung » Wed Oct 16, 2013 1:41 pm

benlm72 wrote:Hé hé ! To do that, it seems I need root rights, that I no more have after disabling superuser...


You can run it using adb on Windows or Linux.

adb shell rm -rf /data/data/com.android.settings/
adb shell reboot
Paste your logcat to GitHub Gist or any similar websites, and link it in your post if you need any help. (Don't forget to tell us your HD2 setup/configuration.)

Device: HTC HD2 (LEO512)
HSPL: 2.08.HSPL
Radio: Leo_RADIO_2.15.50.14
Bootloader: MAGLDR v1.13
Recovery: ClockworkMod Recovery 5.0.2.6

My work for Android on HD2:
Image
User avatar
tytung
Site Admin
 
Posts: 588
Joined: Sun Jun 09, 2013 2:12 pm
Country: Taiwan (tw)
Has thanked: 204 times
Been thanked: 1349 times

Re: Photo and SuperSU

Postby benlm72 » Wed Oct 16, 2013 5:32 pm

tytung wrote:
You can run it using adb on Windows or Linux.

adb shell rm -rf /data/data/com.android.settings/
adb shell reboot

I've tried this, as my HD2 has rebooted after the second command I assume the first one (no error message) was OK, but superuser is still desactivated and unvisible in settings.
benlm72
Junior Member
 
Posts: 59
Joined: Sat Aug 31, 2013 6:17 pm
Country: France (fr)
Has thanked: 14 times
Been thanked: 19 times

Re: Q&A and Troubleshooting for "NexusHD2-JellyBean-CM10.2"

Postby Odysseus » Wed Oct 16, 2013 6:03 pm

Are you trying to use the superuser that's built in to the ROM or SuperSu or Superuser .apk? If you're trying to use a version other than what's included already in cyanogenmod then you need to flash it from recovery or else you won't be able to overwrite the default binary already in /system/xbin. You can manage the included su from system settings, but there won't be any applet unless you install one of the other versions from the market and overwrite by flashing as previously mentioned. If you choose to go this route I highly recommend SuperSu as It's still being actively developed where as superuser isn't anymore.

I hope this helps.

Ciao
Current device: HTC Amaze 4G
Bootloader: HTC - Dev unlocked, S-on
Recovery: 4ext - smart flash enabled
ROM: CM-10 - Compiled and customized by me - thanks spostsstar89 - CM - Team Nightmare
Xposed framework - rovo89
GravityBox - C3C076

Previous device: HTC HD2 (TMOUS - LEO1024)
Final ROM: NexusHD2-JellyBean-CM10.1.3 v2.7 - Tytung
Had more lives than a cat, best handset I ever owned
Lesson: If it ain't broke, don't fix it!
RIP
User avatar
Odysseus
Recognized Contributor
 
Posts: 117
Joined: Sun Jul 07, 2013 10:44 pm
Location: Miami, FL
Country: United States (us)
Has thanked: 89 times
Been thanked: 132 times

Re: Photo and SuperSU

Postby tytung » Wed Oct 16, 2013 6:11 pm

benlm72 wrote:I've tried this, as my HD2 has rebooted after the second command I assume the first one (no error message) was OK, but superuser is still desactivated and unvisible in settings.

Maybe the permission of /system/xbin/su is incorrect.
Code: Select all
adb shell chmod 6755 /system/xbin/su
adb shell ls -l /system/xbin/su

If not, then I'm out of idea since I didn't see any logcat.

Odysseus wrote:Are you trying to use the superuser that's built in to the ROM or SuperSu or Superuser .apk? If you're trying to use a version other than what's included already in cyanogenmod then you need to flash it from recovery or else you won't be able to overwrite the default binary already in /system/xbin. You can manage the included su from system settings, but there won't be any applet unless you install one of the other versions from the market and overwrite by flashing as previously mentioned. If you choose to go this route I highly recommend SuperSu as It's still being actively developed where as superuser isn't anymore.

I hope this helps.

Ciao

As Odysseus said, maybe to flash SuperSu is quicker for you since you cannot see Settings -> Superuser option.
Paste your logcat to GitHub Gist or any similar websites, and link it in your post if you need any help. (Don't forget to tell us your HD2 setup/configuration.)

Device: HTC HD2 (LEO512)
HSPL: 2.08.HSPL
Radio: Leo_RADIO_2.15.50.14
Bootloader: MAGLDR v1.13
Recovery: ClockworkMod Recovery 5.0.2.6

My work for Android on HD2:
Image
User avatar
tytung
Site Admin
 
Posts: 588
Joined: Sun Jun 09, 2013 2:12 pm
Country: Taiwan (tw)
Has thanked: 204 times
Been thanked: 1349 times

Re: Photo and SuperSU

Postby coohdeh » Wed Oct 16, 2013 7:12 pm

tytung wrote:As Odysseus said, maybe to flash SuperSu is quicker for you since you cannot see Settings -> Superuser option.


flashing supersu to nativesd rom is more difficult no?
maybe put in zip file and install rom again?
coohdeh
Junior Member
 
Posts: 13
Joined: Sun Jun 30, 2013 12:32 am
Has thanked: 41 times
Been thanked: 2 times

Re: Photo and SuperSU

Postby tytung » Wed Oct 16, 2013 7:34 pm

coohdeh wrote:
flashing supersu to nativesd rom is more difficult no?
maybe put in zip file and install rom again?

You don't need to flash the whole ROM.
Download any flashable updater file, e.g., HD2_HW_video_decoding_and_encoding_for_CM-10.1_updater.zip, remove all files in the system path in the zip file and add SuperSu.apk to system/app/ path.
Paste your logcat to GitHub Gist or any similar websites, and link it in your post if you need any help. (Don't forget to tell us your HD2 setup/configuration.)

Device: HTC HD2 (LEO512)
HSPL: 2.08.HSPL
Radio: Leo_RADIO_2.15.50.14
Bootloader: MAGLDR v1.13
Recovery: ClockworkMod Recovery 5.0.2.6

My work for Android on HD2:
Image
User avatar
tytung
Site Admin
 
Posts: 588
Joined: Sun Jun 09, 2013 2:12 pm
Country: Taiwan (tw)
Has thanked: 204 times
Been thanked: 1349 times

PreviousNext

Return to HD2 Android Q&A, Help & Troubleshooting and General

Who is online

Users browsing this forum: No registered users and 0 guests