HOW TO: Go back to stock, unroot, Lock bootloader, go S-ON(non-Tampered.) - Verizon HTC One (M8)

This tutorial will hopefully guide you through the process of Returning Your HTC ONE M8 (VERIZON) back to Stock Lollipop, Unrooted, S-ON, “Locked” bootloader.
I assume this would work for other variants but I offer no guarantees. Make sure you get the RUU or FUU for your specific carrier.
Prerequisites:
Backup all your data before proceeding with firmware installation.
HTC One M8 with S-OFF, I used sunshine originally, and it’s still available at theroot.ninja.
Download and install HTC USB Drivers on your computer. If you have installed HTC Sync, uninstall it temporarily to avoid any problem.
You must have ADB (Android Debug Bridge) installed and setup on your computer: Refer to this or this guide to setup ADB, or use Minimal ADB and Fastboot
Enable USB Debugging on your HTC One M8. (Settings > About > Software Info > More > tap Build # several times until you see “You are now a developer” > back to Settings page > Developer Options > Select On > Check on Allow USB Debugging)
Go to Settings> Power and turn off Fastboot option.
Downloads:
Download the Verizon FUU by Dotat Here [/URL]:
[*]If your phone isn’t the Verizon variant DO NOT flash this
(https://www.androidfilehost.com/?fid=95916177934538714)
Run the FUU utility, this will give you a Stock Lollipop Rom and Stock Recovery.
Connect your phone to PC using the USB cable provided by the OEM.
Extract DOTTAT_VZWM8_S_OFF_5.0.1_FUU.zip file and open the folder.
Now double click ARUwizard.exe.
When the FUU launches, follow the on-screen prompts until your One M8 reboots. Please note that your phone might take 5-8 minutes to reboot after firmware installation.
Congrats, you have successfully restored your Verizon HTC One M8 to stock Lollipop pre-rooted ROM!
Relock Bootloader –
Now you’re ready –
Navigate to the directory where you have setup the Android SDK. Open the folder the platform-tools directory where ADB and Fastboot files are found.
( If you’re using Minimal ADB the rest of this step isn’t necessary just open it) Press the Shift key and then do a right-click on the mouse at an empty space in the platform-tools folder. Select Open command window here option to launch cmd prompt.
Connect your phone to the computer using USB cable.
Double check to make sure the phone is recognized by adb by typing in the command:
adb devices
If you see the serial number of the device and says attached, you are good to go.
Type or copy/paste the commands on the cmd line –
adb shell
su
echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796
exit
exit
You should see the bootloader as LOCKED. To check, reboot your M8 into the Bootloader Mode by using the command:
adb reboot bootloader
Unroot/ Uninstall SuperSu –
I put the unroot here unlike other tutorials because this is the last step that you could mess up before going S-ON. After you go S-ON you have to go back w/ Sunshine. Whereas if you trip the tampered flag or something you can just re-run the FUU/RUU.
Go to SuperSu app > Settings > Full unroot option > Reboot
If you are having trouble getting SuperSu to stay off use the Universal Unroot App to remove root. This is the app I had to use.
Get S-On –
Adb reboot bootloader
From Fastboot:
fastboot oem writesecureflag 3
Reboot bootloader and verify S-On
That’s it you’re done!
I compiled this Tutorial from other tutorials, so if it looks a little janky, that’s why.
Sources
DroidViews.com (for instructions on FUU)
Banetech.com (for the rest)
I had to adjust because neither was complete for what I needed.

Related

[how to] lock/unlock your bootloader without htcdev(s-off required)

READ THIIS!
*this thread is for E8. it will NOT work on m7,or any older device. please check the general forum for your particular device for a similar thread.
this thread will let you unlock your bootloader without htcdev,or let you change your hboot watermark from relocked or locked back to stock.
advantages
-no hassle with htcdev,tokens,or unlock codes
-no submitting your phones personal info to htc
-the ability to get back to 100% stock without any visual traces or records of having been s off or unlocking your bootloader.
you do NOT need to downgrade your hboot. this simple adb command works without any scary hboot downgrades.
*you must be s off.
*you must have superuser installed
read this:
this will not work if your s on. its not a way to magically unlock
the usual disclaimers:
use this info at your own risk. if it melts your phone into a little pile of aluminum goo,its not my fault.
credits
-beaups for schooling me on echo comand protocol
-strace for originally discovering the location of the lock status flag(check out this thread for more info)
-ian.anindya and a couple others have provided dumps. let me know and ill add you to the credits. if someone wants to provide screen shots,i can add those as well.
IF you are an advanced user with adb/fastboot set up and some basic knowlede of the cmd window,you can skip to #2
1)set up adb(windows 7 and older)
-download this file
-install drivers: if you have htc sync installed,you should allready have drivers. if not,you can install htc sync,or install these modified htc drivers from revolutionary (driver mirror)
-unzip your miniadb_v1031.zip file. this is native funtionality in windows 7. you otherwise may need a utility such as "7-zip" to extract,or unzip it. place the unzipped folder onto the root of your C drive on your PC. root means the top level,not inside any folders. so just copy and paste,or drag and drop the folder onto C with everything else that is there. you may want to rename it to "miniadb_m7" since youll be putting some device specific files in here.
-open a command window. on windows 7,click the start bubble in the lower left and type "command" in the search box. xp i believe is similar or the same. doing this should open a small black command window.
-change to your miniadb_m7 directory. type the following at the prompt in your cmd window:
cd c:\miniadb_m7
your command promt should change to "c:miniadb_m7>" provided you: 1)unzipped the miniadb_v1031 zip file,and 2)put the folder on your c drive,and 3)entered the name of the folder correctly ("miniadb_m7" in this case)
-now make sure usb debugging is checked in developer options(you will need to turn it on first),and plug your phone into your PC with a usb cable
-make sure your phone is being recognized- type:
adb devices
if your drivers are installed correctly,this should return your phones serial number. you should hear the "found device" noises when you plug your phone in. if it starts installing drivers,wait for it to finish before typing the adb devices command.
if you get your serial number back,then enter this command:
adb reboot bootloader
this should take your phone to the "fastboot" screen,wich is white with colored letters. this is one mode of your bootloaders interactive modes. at the top youll see fastboot devices as confirmation youre in fastboot.
now enter:
fastboot devices
again,this should return your phones serial number. you should hear the "found device" noises when you plug your phone in. if it starts installing drivers,wait for it to finish before typing the adb devices command.
if you get your serial number back,you can enter the following to boot back to the phones OS:
fastboot reboot
and now,youve installed adb/fastboot and tested youre phones drivers. if at either spot,you have trouble and dont get your serial number back,there is some sort of connection issue. use these steps to troubleshoot:
troubleshooting connectivity issues:
-try a reboot of the PC
-try different usb cables and ports
-dont use a usb hub
-dont use usb 3.0
-make sure nothing capable of comunicating with the phone is enabled and running. htc sync,pdanet,easy tether,and even itunes have all been known to cause issues.
-windows 8 has been known to have issues. try a windows 7 or older machine
failing the above,
-i use these drivers for fastboot and adb(donwload and run as admin): http://downloads.unrevoked.com/HTCDriver3.0.0.007.exe (mirror)
failing that,try manually updating the drivers in the following manner:
-put the phone in fastboot mode(select fastboot from the hboot menu)
-open device manager on the PC
-plug in phone,watch for it to pop up in device manager.
-update drivers with device manager,pointing the wizard to the extracted
driver download folder from above
note that you can check the connectivity of the phone,and make sure drivers are working by in the following manner:
-open cmd window. change to directory containing adb/fastboot utilities
-adb with the phone in the booted OS,usb debug enabled,enter:
adb devices in a cmd window
-fastboot with phone in fastboot,enter:
fastboot devices in cmd window
in either case,a properly connected phone with working drivers installed should report back the phones serial number.
Click to expand...
Click to collapse
this process,in your cmd window,should look something like this:
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Scott>[COLOR="red"]cd c:\miniadb_m7[/COLOR]
c:\miniadb_m7>adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
FAxxxxxxxxxx device
c:\miniadb_m7>[COLOR="red"]adb reboot bootloader[/COLOR]
c:\miniadb_m7>[COLOR="red"]fastboot devices[/COLOR]
FAxxxxxxxxxx fastboot
c:\miniadb_m7>[COLOR="red"]fastboot reboot[/COLOR]
rebooting...
finished. total time: 0.037s
c:\miniadb_m7>
2)reset your "lock status flag"
to LOCK your bootloader,enter the following:
adb devices
adb shell
su (if needed to get a # prompt)
echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796
(i would very strongly recomend you copy/paste this)
exit
(exit a second time if you need to to get back to a normal > prompt)
adb reboot bootloader
verify you are now locked
_____________________________________________________________________________________________
to UNLOCK your bootloader,enter the following:
adb devices
adb shell
su (if needed to get a # prompt)
echo -ne "HTCU" | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796
(i would very strongly recomend you copy/paste this)
exit
(exit a second time if you need to to get back to a normal > prompt)
adb reboot bootloader
verify you are now unlocked
(yes this is m7. i dont have an E8. if someone wants to provide correct screenshots,ill add them)
other useful threads:
remove tampered banner: http://forum.xda-developers.com/one-e8/general/how-to-remove-tampered-banner-t3019164
change mid without an eng bootloader: http://forum.xda-developers.com/one-e8/general/how-to-change-mid-eng-bootloader-t3019148
sorry for the delay,guys. hope you find it useful
This way doesn't wipe out all the data, right?
buggerman said:
This way doesn't wipe out all the data, right?
Click to expand...
Click to collapse
Correct. It will not wipe any data
Sent from my HTC One max
Good job.
Any way to do S-OFF to S-ON ??
greg
gregferns said:
Good job.
Any way to do S-OFF to S-ON ??
greg
Click to expand...
Click to collapse
Sunshine again..
windows 8 and above
am using windows 10 but it seems the required tool does not support the operating system
any other option for me?
cant get # prompt
hi, when i enter the Su command it says su not found and the prompt still remains $ instead of #. Is it something am not getting right or something. Thanks

[Tutorial][Recovery][Root] Intex Aqua Music [Mediatek MT6735]

Hi there!!
Well I was trying to root this phone since a month but due to lack of developers, it wasn't possible. So I tried and at last succeeded in rooting and porting TWRP recovery for Intex Aqua Music.
I tried to elaborate every step as much as I can so the tutorial becomes user friendly for everyone.
Disclaimer: Rooting immediately voids your phone's warranty, you should consider very carefully whether you need to gain root privileges. And this tutorial will format your phone. So backup you important files at the very first.
Tutorial
First download all the files which i left and the end of the thread and proceed with the tutorial.
First of all you need to install ADB Drivers.
Once drivers are installed, you need to enable USB Debugging in your phone.
(goto phone settings->About phone->scroll down and you’ll see an entry labelled ‘Build number.’ Keep on tapping till you see a prompt that says ‘You are now a developer)
Now in phone settings you will see a new option called Developer Options.
Now goto Developer Options and enable OEM Unlocking(for unlocking the bootloader so you can flash the TWRP recovery) and USB Debugging.
Now connect you phone with usb cable to computer and open the adb and fastboot folder which you downloaded.
Then open command prompt there(shift+right click) and type:
Code:
adb devices
You will see a popup on you phone screen, Select allow and ok
Now you will see your device listed there in command prompt.
Now type the following commands:
Code:
adb reboot bootloader
Phone will switch off and go into bootloader. Then type
Code:
fastboot oem unlock
Now you phone will ask for confirmation. Use Volume UP Button to select yes then type
Code:
fastboot continue
.
Now your device will reboot(it will take some time so don't worry)
Now once your phone boot up you will see its formatted and bootloader will be unlocked.
Now again goto setting and enable USB Debugging like before and connect you phone with pc.
Now copy the recovery.img from recovery zip which you downloaded to adb and fastboot folder.
Then in adb command prompt type the following commands like before
Code:
adb reboot bootloader
Wait for the phone to go into bootloader mode, then
Code:
fastboot flash recovery recovery.img
fastboot continue
Now twrp is flashed in your phone. Now to root your device copy the supersu zip to you phone.
Switch off your mobile, then press Volume Up + Power button together then choose recovery mode with Volume UP Button and
press Volume Down Button.
Now phone will boot into TWRP recovery mode.
Click Install and choose the Super Su zip from file manager then install it.
The click reboot and once your phone boots up its rooted now.
Enjoy!
Thanks button will be appreciated if the tutorial works for you.
Thanks
Thanks man, helpful

[ROOT][GUIDE][NOOB-FRIENDLY]Unlock Bootloader + Root for Lenovo K8 Plus

How to unlock bootloader & get root for Lenovo K8 Plus
**********Pre-requirements***********
1. Make sure you have 70% charge or more then that.
2. Follow all steps correctly otherwise you will end up with a bricked phone.
3. I'm not responsible for any damage to your phone.
4. Make sure that you have installed usb drivers.
5. Download ADB & Fastboot Drivers
Steps to Unlock Bootloader
1. First of all, enable the Developer Option
To Enable the Developer Option, Go to your Settings -> About -> Software Information -> More -> Now Tap on the Build Number 7-8 Times until you see a toast message “Developer option enabled"
2. Go back to settings -> Now you need to enable the OEM Unlock by going to Settings -> Developer Option and Enable OEM Unlock and USB Debugging
3. Download and Extract the Downloaded ADB fastboot Zip file on your phone.
4. Now connect your phone to Computer using USB Cable.
When you connect your Phone to Computer, please wait until all the drivers get installed.
5. In your ADB fastboot folder open a command prompt window by pressing Shift Key + Right Mouse Click
Now type the command in your command window
Code:
adb devices
6. If you see a pop up to allow USB Debugging on your phone, Click OK
Now type the command below to reboot your phone to bootloader
Code:
adb reboot bootloader
7. Once your phone reboot into bootloader, make sure your phone shows the bootloader locked and then type the command below to make sure fastboot drivers are installed properly.
Code:
fastboot devices
8. This command will list the connected devices. If your phones serial number shows up you are good to go and may continue. If the phone is NOT listed this indicates that your drivers are not installed correctly. In order for you to continue, you must fix your drivers so that your phone is listed under fastboot devices.
9. If the phone has been recognized by the command above, proceed to unlock the bootloader with the following command:
Code:
Remember that this step will wipe EVERYTHING off the phone
Code:
fastboot oem unlock
10. After the above command has finished executing, run the following
Code:
fastboot reboot
The phone will reboot. Wait until the phone has fully booted up into Android.
Root method
Note:- All credits for it goes to @topjohnwu for his amazing magisk
Requirements:-
1. Make sure you are on latest September patch firmware.
2. Download patched_boot.img created from magisk mangaer.
Instructions:-
1. Connect up your phone then type:-
Code:
adb reboot bootloader
2. Copy patched_boot.img in adb folder.
Now type
Code:
fastboot flash boot patched_boot.img[/url]
3. Open up you device & install magisk manager from [url=https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445]here[/url]
Voilla you're rooted.
Mod Edit
Duplicate thread is closed
malybru
Senior Moderator

[ROOT][GUIDE][NOOB-FRIENDLY]ROOT+UNLOCK BOOTLOADER for Lenovo K8 Plus

How to unlock bootloader & get root for Lenovo K8 Plus
**********Pre-requirements***********
1. Make sure you have 70% charge or more then that.
2. Follow all steps correctly otherwise you will end up with a bricked phone.
3. I'm not responsible for any damage to your phone.
4. Make sure that you have installed usb drivers.
5. Download ADB & Fastboot Drivers
Steps to Unlock Bootloader
1. First of all, enable the Developer Option
To Enable the Developer Option, Go to your Settings -> About -> Software Information -> More -> Now Tap on the Build Number 7-8 Times until you see a toast message “Developer option enabled"
2. Go back to settings -> Now you need to enable the OEM Unlock by going to Settings -> Developer Option and Enable OEM Unlock and USB Debugging
3. Download and Extract the Downloaded ADB fastboot Zip file on your phone.
4. Now connect your phone to Computer using USB Cable.
When you connect your Phone to Computer, please wait until all the drivers get installed.
5. In your ADB fastboot folder open a command prompt window by pressing Shift Key + Right Mouse Click
Now type the command in your command window
Code:
adb devices
6. If you see a pop up to allow USB Debugging on your phone, Click OK
Now type the command below to reboot your phone to bootloader
Code:
adb reboot bootloader
7. Once your phone reboot into bootloader, make sure your phone shows the bootloader locked and then type the command below to make sure fastboot drivers are installed properly.
Code:
fastboot devices
8. This command will list the connected devices. If your phones serial number shows up you are good to go and may continue. If the phone is NOT listed this indicates that your drivers are not installed correctly. In order for you to continue, you must fix your drivers so that your phone is listed under fastboot devices.
9. If the phone has been recognized by the command above, proceed to unlock the bootloader with the following command:
Code:
Remember that this step will wipe EVERYTHING off the phone
Code:
fastboot oem unlock
10. After the above command has finished executing, run the following
Code:
fastboot reboot
The phone will reboot. Wait until the phone has fully booted up into Android.
Root method
Note:- All credits for it goes to @topjohnwu for his amazing magisk
Requirements:-
1. Make sure you are on latest September patch firmware.
2. Download patched_boot.img created from magisk mangaer.
Instructions:-
1. Connect up your phone then type:-
Code:
adb reboot bootloader
2. Copy patched_boot.img in adb folder.
Now type
Code:
fastboot flash boot patched_boot.img[/url]
3. Open up you device & install magisk manager from [url=https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445]here[/url]
Voilla you're rooted.
Mod Edit
Duplicate thread is closed
malybru
Senior Moderator

[ROOT][GUIDE][NOOB-FRIENDLY]ROOT+UNLOCK BOOTLOADER for Lenovo K8 Plus

How to unlock bootloader & get root for Lenovo K8 Plus
**********Pre-requirements***********
1. Make sure you have 70% charge or more then that.
2. Follow all steps correctly otherwise you will end up with a bricked phone.
3. I'm not responsible for any damage to your phone.
4. Make sure that you have installed usb drivers.
5. Download ADB & Fastboot Drivers
Steps to Unlock Bootloader
1. First of all, enable the Developer Option
To Enable the Developer Option, Go to your Settings -> About -> Software Information -> More -> Now Tap on the Build Number 7-8 Times until you see a toast message “Developer option enabled"
2. Go back to settings -> Now you need to enable the OEM Unlock by going to Settings -> Developer Option and Enable OEM Unlock and USB Debugging
3. Download and Extract the Downloaded ADB fastboot Zip file on your phone.
4. Now connect your phone to Computer using USB Cable.
When you connect your Phone to Computer, please wait until all the drivers get installed.
5. In your ADB fastboot folder open a command prompt window by pressing Shift Key + Right Mouse Click
Now type the command in your command window
Code:
adb devices
6. If you see a pop up to allow USB Debugging on your phone, Click OK
Now type the command below to reboot your phone to bootloader
Code:
adb reboot bootloader
7. Once your phone reboot into bootloader, make sure your phone shows the bootloader locked and then type the command below to make sure fastboot drivers are installed properly.
Code:
fastboot devices
8. This command will list the connected devices. If your phones serial number shows up you are good to go and may continue. If the phone is NOT listed this indicates that your drivers are not installed correctly. In order for you to continue, you must fix your drivers so that your phone is listed under fastboot devices.
9. If the phone has been recognized by the command above, proceed to unlock the bootloader with the following command:
Code:
Remember that this step will wipe EVERYTHING off the phone
Code:
fastboot oem unlock
10. After the above command has finished executing, run the following
Code:
fastboot reboot
The phone will reboot. Wait until the phone has fully booted up into Android.
Root method
Note:- All credits for it goes to @topjohnwu for his amazing magisk
Requirements:-
1. Make sure you are on latest September patch firmware.
2. Download patched_boot.img created from magisk mangaer.
Instructions:-
1. Connect up your phone then type:-
Code:
adb reboot bootloader
2. Copy patched_boot.img in adb folder.
Now type
Code:
fastboot flash boot patched_boot.img[/url]
3. Open up you device & install magisk manager from [url=https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445]here[/url]
Voilla you're rooted.
twrp please for lenovo k8 +++++
Mod Edit
Duplicate thread is closed
malybru
Senior Moderator

Categories

Resources