yashsingh1/xdaforums huggingface dataset:
[Verizon HTC One (M8)] evanl81:
EDIT: Ahh, finally fixed. Read back through this thread carefully.

You must uninstall SuperSU through the full unroot option in the app's settings prior to issuing the S-ON command. I had to use Sunshine to S-OFF again, remove all the flags, uninstall SuperSU, then S-ON.

No matter what I do, I can not remove SuperSU. Everything else in this guide works perfectly - but every time I reboot SuperSU is back. Things I have tried:

1) Removing through the app itself. It removes itself from my app tray but reappears on reboot.

2) Universal Unroot App. Reboots - still there.

3) Removing /system/bin/su, /system/xbin/su, /system/app/SuperUser.apk, and /system/bin/.ext.

Anyone have any other ideas? I really need to bring this back under warranty, but just can't get rid of this app. I made the mistake of updating to 4.4.3, which kept the app but broke root. I managed to restore root with towelroot, go through sunshine, RUU, etc. all over again. Right now I am fully rooted on 4.4.2 and just want to get rid of this app before updating and returning.

Any ideas?
[Verizon HTC One (M8)] dottat:
This?

http://xdaforums.com/showthread.php?t=2883845
[Verizon HTC One (M8)] dadams312:
Having a problem going back to stock. I've been able to do everything but am failing at trying to S-ON, keep getting the same failure message.

When trying to S-On it always end with

I need to S-ON because I'm taking the phone back to Verizon or maybe back to HTC because my top speaker quit working. No stereo speakers, can't use the phone without speakerphone on.
[Verizon HTC One (M8)] Hitman23DB:
Does this need to be done for a cracked screen replacement?
[Verizon HTC One (M8)] dottat:
I wouldn't let HTC know and have proof the phone was ever rooted if I had control over it.

If anyone has any doubts about how to do this process please please please post here or pm or someone else who supports this device before taking actions that could lock you out.
[Verizon HTC One (M8)] sergioperalta81:
Will this work in 4.4.4 and if not is it possible to downgrade?
[Verizon HTC One (M8)] dottat:
Same general steps as I posted in the other thread... Just substitute in 4.4.4 ruus
[Verizon HTC One (M8)] Freedom First:
I'm having trouble getting lock. When I send the command to lock, adb returns "cannot open for write: permission denied".

This is a phone I'm sending in for warranty repair (blown speakers). I'm currently rooted and S-off, and I've run dottat's RUU app. I just need to get lock and S-on...
[Verizon HTC One (M8)] dottat:
Did you grant adb su rights on your phone?
[Verizon HTC One (M8)] Freedom First:
I... AM... A... DUMBA$$... :o (didn't have "enable su on boot" checked).

Sheeza locked, now. Proceeding to S-on...

Thank you, dottat!! One more quick question: unroot/uninstall superSU before or after S-on? Or, does it (not) matter?
[Verizon HTC One (M8)] dottat:
For the cleanest results....flash my s-on ruu exe before turning s-on.
[Verizon HTC One (M8)] EvoNotion:
Just a quick questions.

Dottat, if I run your RUU, that's a rooted Stock rom right? Do I run that, then turn S-ON, then do a full un-root from SUapp?
[Verizon HTC One (M8)] dottat:
No. Run the adb to command Scotty has posted to lock bl from twrp. Then flash s-on ruu. That should leave you locked with stock ROM and no root. As long as it looks good you will be safe to turn s-on.

The way you suggested would write protect supersu on system before you remove it making the s-on ruu the only way you can remove it.
[Verizon HTC One (M8)] EvoNotion:
OKay..... I don't follow.

Just download the RUU in Step 3, then do the ADB commands to lock bootloader?
[Verizon HTC One (M8)] dottat:
The assumption here is you are on a custom recovery at the moment. Boot into twrp and run scotty's command to lock the bootloader using adb. Once locked you run the s-on RUU i have posted (yes i know you are still s-off but doing this will flash stock EVERYTHING). Factory reset and make sure you have no red text and/or supersu installed. If all looks good you turn s-on via the fastboot command.

Do that make sense?
[Verizon HTC One (M8)] EvoNotion:
OKay, just to clarify, as I'm not 100% yet.

Yes, I'm on a TWRP Recovery.

Okay, So I downloaded the 4.4.2 S-ON RUU from here:

http://xdaforums.com/verizon-htc-one-m8/general/official-ruu1-55-605-2-t2883845

Do I download the Hboot file and flash that before doing the RUU, or does the RUU flash the Hboot when doing the upgrade?

I ran the Bootloader Locked command from the OP on page 1.

I fixed the Red Nag screen

From there I rebooted to the OS.

Then I ran the ADB Commands to get to fastboot, with your IMG file on my SD card, let it load and update the the phone.

Once booted - then I ADB and writesecure flag to turn S-On

Edit: All Done, successfully Locked and S-On, ready for Warranty to Verizon
[Verizon HTC One (M8)] dottat:
Stop fixing the red text manually.. You can actually brick a phone a that has been hex edited. Just lock in TWRP using adb command. Flashing the s-on RUU will always clear that flag. You likely need to factory reset depending on the rom you are coming from. After that, you just need to verify all is well and turn s-on. (you can even run the s-on RUU again after that if you wish for fun)
[Verizon HTC One (M8)] EvoNotion:
All done, flashed S-ON RUU and successfully locked and S-ON'd

Thanks!
[Verizon HTC One (M8)] Rugged96:
for some reason my phone is taking what seems like entirely too long to flash the RUU. Going on 12 minutes now. I'm worried....help....
[Verizon HTC One (M8)] furrelkt:
[Q] Can someone check my steps before i proceed please?

Hello All, Let's see if i have this right...please let me know if these steps are correct, as I only changed to the newest RUU and added the last step just to make sure I clear everything.

This is my only phone and is also used for business... so i don't want to mess anything up prior to doing all the steps. I do have a question, do we need to rename these zips (0P6BIMG.zip) when we do RUU fastboot option or leave as is? Thanks all.

For Verizon

Step #1: Download file:4.17.605.5_NoRedText_hboot.zip

No Red Text Hboot

modelid: 0P6B20000

cidnum: VZW__001

mainver: 4.17.605.5

btype:1

aareport:1

hbootpreupdate:12

link: http://xdaforums.com/showthread.php?t=2710503

**Instructions:

a. Enter the following commands from terminal/command prompt in the fastboot directory, one at a time:

b. fastboot oem rebootRUU (this puts the device in RUU mode)

c. fastboot flash zip 4.17.605.5_NoRedText_hboot.zip (this flashes the modified hboot zip file)

Important: the flash process halts at around 75% to 90% on phone screen! This is normal and a safety precaution!

The last few percent is the reboot, which is NOT happening automatically, so you get a chance to check the console output before reboot to make sure it is safe to reboot!

The bar will only fill up to 100% once you type the following command:

d. fastboot reboot-bootloader (this reboots the device to bootloader)

Step #2: Flash RUU from: EXE/ZIP RUU M8_VZW 5.0.1 (s-off only)(tweaks zip)(newest)

link: http://xdaforums.com/verizon-htc-on...zip-ruu-m8vzw-5-0-1-s-off-onlynewest-t3047103

a. download DOTTAT_VZWM8_S_OFF_5.0.1_RUU.zip

b. issue command with adb: fastboot oem rebootRUU

b. issue command with adb: fastboot flash DOTTAT_VZWM8_S_OFF_5.0.1_RUU.zip

c. issue command with adb: fastboot reboot-bootloader

Step #3: Uninstall SuperSU through the full unroot option in the app's settings

Note:I had to use Sunshine to S-OFF again, remove all the flags, uninstall SuperSU, then S-ON.

Step #4: to LOCK your bootloader:

a. issue command with adb: adb devices

b. issue command with adb: adb shell

c. issue command with adb: su (if needed to get a # prompt)

d. issue command with adb: echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796

Note:(i would very strongly recomend you copy/paste this)

e. issue command with adb: exit

Note:(exit a second time if you need to to get back to a normal > prompt)

f. issue command with adb: adb reboot bootloader

g. verify you are now locked

h. for S-ON, issue command with adb: fastboot oem writesecureflag 3

Step #5: Use Option 1 for flashing the DOTTAT_VZWM8_S_ON_5.0.1_RUU.zip

link: http://xdaforums.com/verizon-htc-one-m8/general/official-ruu1-55-605-2-t2883845

a. download DOTTAT_VZWM8_S_ON_5.0.1_RUU.zip

b. issue command with adb: fastboot oem rebootRUU

b. issue command with adb: fastboot flash DOTTAT_VZWM8_S_ON_5.0.1_RUU.zip

c. issue command with adb: fastboot reboot-bootloader
[Verizon HTC One (M8)] dottat:
No no no. This is the craziest method ever. Red text hboots should NEVER be used in a true back to stock effort. You do realize the ruu will over write that hboot right?

Simply boot phone to twrp.

Open adb shell on your phone and run the following command

echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796

Exit

Exit

Adb reboot-bootloader.

***verify now locked.

Now run the applicable s-on ruu for whatever os/firmware you are current on from here ...http://xdaforums.com/verizon-htc-one-m8/general/official-ruu1-55-605-2-t2883845

When that completes you may need to factory reset to boot.

You will be locked. Fully stock. No red text. No supersu. Once all is verified you reboot to boot loader fastboot mode and turn s on with

Fastboot oem writesecureflag 3
[Verizon HTC One (M8)] furrelkt:
Worked perfectly. I am back to complete stock. Now time for another phone. :) thanks a bunch dottat
[Verizon HTC One (M8)] GarnerArms:
Sorry for the noob question, but the Ruu will wipe the phones internal memory but not an external sd card correct?

Thanks
[Verizon HTC One (M8)] furrelkt:
Correct
[Verizon HTC One (M8)] dottat:
S-on ruu will not wipe a thing.
[Verizon HTC One (M8)] furrelkt:
Ohhhh yeah.... The wipe comes from resetting the phone back using factory reset. That's what I did using the steps
[Verizon HTC One (M8)] GarnerArms:
That makes sense. Thank you. Going to give it a shot.
[Verizon HTC One (M8)] GarnerArms:
So I gave it a shot and this is what I got on Terminal (I am on a Mac).

~ # echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796*

dd: invalid number '33796*'

~ # ./echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796*

/sbin/sh: ./echo: not found

dd: invalid number '33796*'

Not sure if you all can help or not, I tried running it a couple of times and end up with the same results. Any help is greatly appreciated.
[Verizon HTC One (M8)] GarnerArms:
Do you have any suggestions for this. I can't seem to proceed any further, I am on a Mac not sure if that changes anything

~ # echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796*

dd: invalid number '33796*'

~ # ./echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796*

/sbin/sh: ./echo: not found

dd: invalid number '33796*'

Not sure if that is helpful to you at all but any help is greatly appreciated. :fingers-crossed :fingers-crossed:
[Verizon HTC One (M8)] GarnerArms:
Well I managed to get past my last problem. I know have locked boot loader again. But when I tried to continue and download the 5.0.1 RUU I came up with this. Any help is appreciated. Maybe I should downgrade to 4.4.2 with that RUU then S-Lock and let my phone take the Ota's?

android jessicarauth$ ./fastboot oem rebootRUU

...

(bootloader) Start Verify: 0

OKAY [ 0.020s]

finished. total time: 0.020s

Jessica-Rauths-MacBook-Pro:android jessicarauth$ ./fastboot flash zip 0P6BIMG.zip

target reported max download size of 1826418688 bytes

sending 'zip' (1692389 KB)...

OKAY [ 67.215s]

writing 'zip'...

(bootloader) zip header checking...

(bootloader) shift signature_size for header checking...

FAILED (remote: 32 header error)

finished. total time: 69.445s
[Verizon HTC One (M8)] dottat:
Use SD card method. Mac fastboot doesn't know what to do anymore with HTC ruu files. Do you have a windows PC you could use?
[Verizon HTC One (M8)] GarnerArms:
I just have one thing to say.......... dottat you da man!!!! No but seriously I appreciate your help. I ended up using the sd card method and it worked. So I am back to stock and ready for something new.
[Verizon HTC One (M8)] Kreeker:
So I just got around to try this and I'm having some trouble.

I'm in TWRP, and attempt these commands from my computer. When I try the echo command it says '33796*' is an invalid number. What am I doing wrong? I found someone who encountered the same problem, but he never posted what he did to resolve it...

C:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell

~ # [6necho -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796*

echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796*

dd: invalid number '33796*'

~ # [6n
[Verizon HTC One (M8)] dottat:
Can you try running it from this version of adb/fastboot? Make sure you open your cmd prompt in this folder using the shortcut within it. Then make sure you copy that entire line as one line. Even if you have to use notepad to do so.

https://www.androidfilehost.com/?fid=24052804347780554
[Verizon HTC One (M8)] Kreeker:
I tried it using the adb you provided and still no good. Just to make sure, the adb version being reported is 1.0.31.

I'm running Windows 10 could this have anything to do with it?

The steps I'm following:

- Phone is in recovery mode (TWRP)

- Open abd terminal via command prompt shortcut in the files you attached

- Issue 'adb shell' command via terminal

- Issue 'echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796*' command via terminal

Still getting error.
[Verizon HTC One (M8)] dottat:
Drop the asterisk
[Verizon HTC One (M8)] Kreeker:
Looks like that worked. "*** LOCKED ***" now at the top of bootloader screen. Was that a typo or do some phones requires the asterisk?

Now I'm going to run your "DOTTAT_VZWM8_S_ON_5.0.1_RUU.exe" and then "Fastboot oem writesecureflag 3" after the RUU completes.
[Verizon HTC One (M8)] dottat:
Dude I have no idea where the hell that came from. I edited my original post to remove it. On my mobile device tonight and only noticed it on the last look. Should be good to proceed.
[Verizon HTC One (M8)] donguason:
Im on Viper 3.2.1 Android 4.4.4 and want to sell my HTC M8, how do I return it to stock. Any help would be greatly appreciated.
[Verizon HTC One (M8)] dottat:
Look for my post a page or two back
[Verizon HTC One (M8)] DeeJay250:
It worked

I can confirm I followed the steps and Verizon successfully took my device, 0 problems at all.
[Verizon HTC One (M8)] smokawhat:
when I go to your link for the RUU "Now run the applicable s-on ruu for whatever os/firmware you are current on from here ...http://xdaforums.com/veri...605-2-t2883845" I'm unsure if I should chose this "5.0.1 RUU zip with stage fright patch " or this "5.0.1 RUU zip" how do I tell which os/firmware im on... thanks
[Verizon HTC One (M8)] dottat:
Stagefright patched one is the most recent... 4.17.605.9

IF you are returning for warranty etc i would probably just use that one.
[Verizon HTC One (M8)] smokawhat:
I am, so even though my current os is 4.17.605.5 and im (rooted, s-off, viperone, TWRP) once i get to that step its fine to use the stagefright one..
[Verizon HTC One (M8)] dottat:
Yessir
[Verizon HTC One (M8)] smokawhat:
ok so Im at the step:

"Now run the applicable s-on ruu for whatever os/firmware you are current on from here ...http://xdaforums.com/veri...605-2-t2883845"

and I ran this RUU: "DOTTAT_VZWM8_S_ON_5.0.1_SF_RUU.exe" and its been stuck on step 3/8 for like the last hour... is says "Updating...(3/8 Updating System....." and at the top it says 100% which I assume 3/8 is 100% but it still has the rest of the steps. Also it says it should take about 5 min..

What should I do? Is this normal?

Thanks
[Verizon HTC One (M8)] dottat:
Not for an hour. You can restart the process... by unplugging it and restarting the exe. If you are pressed for time you can simply install teamviewer and shoot me the ID/passcode and I can help you over the hurdle.
[Verizon HTC One (M8)] smokawhat:
ok I just sent you my teamviewer info
[Verizon HTC One (M8)] Ryan829:
I am on RUU 5.0.1 rooted S-OFF. I am returning my phone for warranty because the charging port is bad. What steps do I need to do since I am already RUU
[Verizon HTC One (M8)] dottat:
Post 71

http://xdaforums.com/showthread.php?p=61772177
[Verizon HTC One (M8)] Ryan829:
hmm. i am stuck. so how do you get to a command prompt from twrp? I went to terminal command and it wants me to press a location to do the command prompt on. And i tried through adb but it is not working either. I am on windows 10. When the phone is plugged in and I press adb devices it shows up. However when it is plugged in AND in fastboot mode, it does not show up. It says null device not found. Im not exactly sure what to do here

---------- Post added at 07:45 PM ---------- Previous post was at 07:37 PM ----------

nevermind i got it locked
[Verizon HTC One (M8)] dottat:
Sorry man you didn't quote me so I didn't see this until now but it looks like you got it.
[Verizon HTC One (M8)] Ryan829:
Yeah i got it locked. Flashed the RUU, then turned s-off. But now bootloader screen is showing modified instead of official on the top. I tried running the RUU exe again but it says "error get the correct firmware utility". Any ideas?
[Verizon HTC One (M8)] dottat:
Flash it manually or using SD card method.
[Verizon HTC One (M8)] Ryan829:
I tried manually and it says cannot load file

---------- Post added at 11:24 PM ---------- Previous post was at 10:34 PM ----------

Nevermind. I finally got it. I installed the HTC version of adb and it finally worked. I royal pain in the butt but i am finally back to 100 percent stock
[Galaxy Y GT-S5360 Themes and Apps] MOSIR:
PLEASE EDIT MY VOLD.FSTAB TO SWAP SDCARD TO INTERNAL MEMORY...AS YOU KNOW GALAXY Y HAS 160MB MEMORY..THIS IS NOT ENOUGH FOR APPS.GAMES SO PLEASE EDIT MY vold.fstab FILE OR GIVE MODDED CODE FOR THIS LINK FOR FILE http://www.datafilehost.com/d/2b1f331e
[Galaxy Y GT-S5360 Themes and Apps] Killnolife:
Windows/EXE file, not vold.fstab everyone you should not download this file and ignore that :good:
[Galaxy Y GT-S5360 Themes and Apps] TheFixItMan:
actually it not an exe file - you forgot to untick use our download manager therefore it will first try to download that websites download manager which will be an exe file

just untick that box and it will download the file with your web browsers download manager

this post is in the wrong section - the themes and app sections is ironically for posting themes and apps - if you have a question or require support post in the Questions and Answers section

also if you want more storage space you can create virtual internal storage on your sd card with a 2nd exe partition and use link2sd
[Nexus 5 Q&A, Help & Troubleshooting] ripped.animal:
Thats nice , but lots of ppls have the signal issues with nexus 5 , and it isn't antena disconect for 90 % if us. :) I have separated the phone many times. , done about 5 hard resets's tried diffrent verions of radio's diffrent ROM's etc... nothing work's. Frineds have nexus 5 2 of them , and they can get 3g and 4g when they want, and i can only get Edge which is 2g. which is unusable..... I noticed that i have 3g only when i am in other towns, but not mine home town.... I tried diffrent sim cards, and diffrent netowrks, nothing seams to get the 3g at home, plus the gsm sucks, it interupts the calls.. So i must be the frequencies of the working 3g network in mine home town ? Then how i don't get 4g ? Why other ppl with the same phone, and same network have 3g when put next to mine ? NO one knows...
[Nexus 5 Q&A, Help & Troubleshooting] musawir:
Same Issue

i am having the same issue, just having "E" Edge and cannot connect to 3G/4G, done everything to resolve the issue, took apart the antenna part of my phone but all the connectors and wires are intact, did hard reset several times, tried different ROMS including stock ROMS, tried the *#*#4636#*#* selected all the Radios but no luck, used 2 different sim cards but no use, same damn "E" in the status bar, APNs are all in place, nothing is wrong with the settings so far, dont know wots da problem with this set.

Please help us.:(:(:(
[General Topics] Sunnychad:
Found a link whilst browsing around.

Have a look and tell me what you think.

Anyone know what this new XDA device is?

http://www.tatsdiy.com/
[General Topics] 100:
Isn't that an apache? I'm sure I've seen something exactly like that recently, with the cam up on the right.
[General Topics] Sunnychad:
Not an apache in my eyes...come on someone must know!!!
[Ornate TrueSmart] corey0928:
How many people are still waiting? I backed early in the Kick start campaign. Rarely get a response when I email and when I do it sounds so generic.

Thought all the October Dev editions were supposed to ship by April.
[Ornate TrueSmart] funky0308:
Omate finally sent my fuc**ng watch and guess what...

Those odd crew called Omate really don't know what are they doing...

No CE (FCC for EU), no invoice or any document in box of .

Now my watch is sitting in custom office and will be sent back to China...

They (probably) won't accept Amazon payment invoice because that's not enough.

There's only Roki mentioned and amount, no item, description...nothing..

So...I know you want your watch, I want it too but I gave up and really don't care anymore - it's not worth of all that stress...

Belgium users aslo have problems because there's no CE, customs could even destroy devices - that's practice in whole EU - no CE and confirmation of origin - it'll be destroyed...

Really sad and quite annoying...
[Galaxy S Advance I9070 Q&A, Help & Troubleshooting] maurit43:
Hi ! i got a question.. using stock rom, my battery run out in 10 hours if dont use it , and 6 hours if I use it . But if I use a custom rom my battery run out in 6 hours if dont use it , and 2 hours if i use it . wich is the problem ?

The majoritie of costum rom aren stable, is it the problem ?
[Galaxy S Advance I9070 Q&A, Help & Troubleshooting] shut_down:
http://xdaforums.com/showpost.php?p=52402937&postcount=2
[Galaxy S Advance I9070 Q&A, Help & Troubleshooting] maurit43:
Thank u ! but.. where can i find this rom ? because i using Argentina Stock, and really i dont know the difference between deodexed and not deodexed.
[Galaxy S Advance I9070 Q&A, Help & Troubleshooting] shut_down:
I was not gonna tell you about ROM, I am telling you that most of users have battery that got old.
[Galaxy S Advance I9070 Q&A, Help & Troubleshooting] maurit43:
jajaja well... thanks, can u give me a donwload link of this rom please ? or its very difficult...
[Galaxy S Advance I9070 Q&A, Help & Troubleshooting] TPD-21:
Here...
[Galaxy S Advance I9070 Q&A, Help & Troubleshooting] maurit43:
thank u

Thank u !! im donwloading this, how to install ? the same that a custom rom ? thank u !

but what is zipaligned ? and how to install ?

thank a lot !
[Galaxy S Advance I9070 Q&A, Help & Troubleshooting] TPD-21:
See the following thread HERE, how to install the rom. And the explanation do you mean already there.
[Galaxy S Advance I9070 Q&A, Help & Troubleshooting] shut_down:
That is not a ROM, that is flashable zip with deodexed system files.

And again [MENTION=5589071]maurit43[/MENTION] it is not about ROM, it is about battery. That user has new battery.
[Galaxy S Advance I9070 Q&A, Help & Troubleshooting] TPD-21:
He asks a deodex ROM link and zipligned, senior. I guess what I gave him was not misleading. Maybe I have to repeat a previous question:
[Galaxy S Advance I9070 Q&A, Help & Troubleshooting] TPD-21:
Yes, i agree with you senior. But, I think he must have thought that: "if i have downloaded the ROM it is for battery life or to be installed to the device?!" :D

Sent from Glonass Satellite.
[Galaxy S Advance I9070 Q&A, Help & Troubleshooting] maurit43:
thank u

thank u a lot !
[Galaxy S Advance I9070 Q&A, Help & Troubleshooting] TPD-21:
No problem, glad I could help. :)
[Sony Smartwatch] omidmr:
I try to recover my broken SW2 with dfu-utils, but it returns this error:

Error: Only DfuSe file version 1.1a is supported

What can I do?