[One (M8) General] syntropic:
The Free Google Drive space promotion was recently increased from 65GB to 100GB. So, there is more reason than ever to get this great offer.

If however, like me, you rooted your phone and found out you couldn't redeem it... and also read some people claiming that HTC wouldn't provide a code to redeem the offer because you had unlocked the bootloader... Follow the steps below to get this offer without dealing at all with HTC.

There are two primary obstacles to redeeming this offer. Since you rooted your phone, you have unlocked the bootloader. Even if you have relocked it using fastboot oem lock, this will still prevent the Drive App from displaying the offer screeen. The problem is that when you use fastboot oem lock, you are changing the status of the bootloader to ***RELOCKED*** . What you need is a factory default bootloader lock, which displays as ***LOCKED*** on the hBoot screen.

Plus, if you attain S-Off after unlocking your bootloader following HTCDev, it is very possible you will have a

*** TAMPERED ***

banner on your hboot screen. This must be removed as well.

HUGE thanks to Scotty1223 who first shared the methods for removing the TAMPERED banner and locking the bootloader to factory default several months ago. I am just consolidating those steps plus some other minor info into a sequential series of steps in one place for convenience.

These steps presume you have ADB installed, and have not changed your CID.

STEPS to GET TO STOCK FOR PURPOSES OF THE GOOGLE DRIVE PROMO.

1. Make a Nandroid backup using TWRP or CWM.

2. Get S-Off.

Use Sunshine or some other method to get S-Off. Link to Sunshine S-Off apk

3. Remove ***TAMPERED*** Banner.

If you have a ***TAMPERED*** banner on your hboot screen, follow the steps below (thanks to Scotty1223 for sharing this method). ADB must be installed!!! You can go to the first step of this thread to install a compact version

Connect your phone to your PC. Open up a terminal (as administrator in Windows...or as root in Linux) and cd to the adb directory (which contains fastboot, etc.).

Enter the following:

adb devices

You should see your device's serial number appear on the screen... If so, you are all good. If not, please check your ADB install..... there are many many guides to getting this set up.

Now we are going into the ADB Shell, which is like a terminal emulator from the OS on your phone. Enter the following:

adb shell

to enter the shell. You will be presented with a prompt... most likely it will be

shell@htc_m8: / $

Enter the following command to get root in ADB

su

[Very important note: You need this for superuser privileges on your phone... Make sure to wait for a prompt that looks like the following:

root@htc_m8:/ #.

(if you are getting something different, don't worry... Just make sure there is a '#' at the end of the prompt)

If it hangs and only shows the first prompt like this:

shell@htc_m8: / $ <== note the '$' at the end

Then hit return in your terminal window on your PC (whether in windows or linux). It may exit automatically from the shell.

If this happens, it is because you have not used adb shell yet and have SuperSU (or Superuser) on default settings, which is to prompt the first time an app asks for root privileges. You should see a toast/dialog box on your phone that requests superuser permissions for "ADB Shell". Grant them, and then enter adb shell again from the terminal window on your PC. Now the root prompt (in red above) should show up in the terminal window.]

Now copy the line below and paste it into the terminal window on your PC at the root prompt:

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

You should get something like this in response:

ock/mmcblk0p6 bs=1 seek=5314564 <

1+0 records in

1+0 records out

1 bytes transferred in 0.007 secs (142 bytes/sec)

If not, double check that you copied the above line correctly, that there are no spaces before the 'echo', and enter it again.

Then enter:

adb reboot bootloader

This will boot into hboot. Confirm that the ***TAMPERED*** is in fact not showing on the hboot screen.

Back in your terminal on your PC, enter:

fastboot reboot

to reboot the phone.

4. Lock the bootloader.

To lock the bootloader the correct way, you must follow the steps below. As far as I have determined, it is the same for all carriers of the HTC One M8. Again, a big thanks to Scotty1223 for this very cool route to locking the bootloader.

Like step 3, above, we are going into the ADB Shell, which is like a terminal emulator from the OS on your phone. If you do not have ADB installed on your PC, there are ample resources all over the internet for getting this installed...

Enter the following:

adb shell

to enter the shell. You will be presented with a prompt... most likely it will be

shell@htc_m8: / $

Enter the following command to get root in ADB

su

[IMPORTANT NOTE: See warning under Step 3 about getting a root prompt]

Then copy and paste this into your terminal on your PC:

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

And lastly:

exit

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

adb reboot bootloader

Confirm that your bootloader shows a ***LOCKED*** banner (and not ***RELOCKED***).

Back in your terminal on your PC, enter:

fastboot reboot

to reboot the phone

5. Getting to Stock.

****If you have NOT touched the stock Rom at all, nor deleted any system apps (essentially you have merely rooted and flashed a stock recovery) you can skip this step (no need to perform either step 5a or 5b). Just Reboot and finish with step 7.

To get the Google Drive storage you need to be running near to stock.. This means you need the stock firmware, and the stock Sense Rom (including all system applications). Many people will not have to worry about firmware or system applications. However, if you switched to an AOSP/AOKP Rom or a different kernel, then you do. Depending on your situation, follow step 5a

OR

step 5b.

5a. If you have switched to an AOSP/AOKP Rom, and are unsure about your firmware being correct and/or stock, an easy way to get all of the components which make up full stock (stock rom, stock firmware, stock hboot) is to flash an RUU from your carrier (see M8 forum for your carrier...there should be a roll-up thread with links and instructions to flash an RUU.

NOTE

: For anyone reading this thread that somehow managed to lock the bootloader without S-off, It is highly recommended NOT TO FLASH AN RUU WITH BOOTLOADER LOCKED AND S-ON. You must have S-OFF to flash an RUU with a locked bootloader).​

5b. If you don't have to worry about firmware, but have deleted several system apps or otherwise altered the stock Rom, then you should restore a stock nandroid or find and flash a stock Rom. You should again go to the HTC One M8 forum for your carrier to get these items. If restoring a stock nandroid backup, make sure you have made a backup (as instructed in Step 1) so you have the right folder structure (whether you are using TWRP stock nandroid or a CWM stock nandroid) on the SD in which to place the stock nandroid.​

6. Reboot.

7. REDEEM OFFER!

Go to the Play Store and uninstall any and all Google Drive updates (I did not have any, but in some cases Drive may have updated while you were rooted). After uninstalling any Drive updates, you should be able to go into the Drive app, and see the promo screen immediately and redeem the promo. If you do not see any screen with the offer, select "Product Tour" from the dropdown menu and go through the various "tour" screens. At the end it will show you the offer—it will probably be for 65GB. After you accept the offer however, it will say "an extra 50GB has been added to your Google Drive storage (so 65GB + 50GB = 115GB)

Again a big thank you to Scott1223 for the methods which allow us to go back and get this offer!!!

....and also thank you to jshamlet, kabuts, rcharliesam, phil.culler for helping me in some other threads!!!!

And exocetdj for his awesome help!!!!!!!

Please comment!