yashsingh1/xdaforums huggingface dataset:
[One (M8) Q&A, Help & Troubleshooting] cliffordmoyo:
Hie everyone i am new here and i have an htc one m8 which is bootloader locked , s on and i dont have root access nor custom recovery installed .

All other tutorials i found here are more so related to those htc m8 devices with either bootloader unlocked or custom recovery installed and since the device is stuck on decrypt storage page i cant install an RUU firmware exe i downloaded and also i cant install a custom firmware too .

i found a tutorial on how to unlock bootloader and did got my token id from fastboot since it is the only thing working so far and am stuck with the stock recovery so i cannot get into adb mode.

when flashing the unlock code bin file in fastboot it says successfully and the warning page also appears which prompts me to choose to unlock bootloader or not . and after selecting unlock bootloader the device restarts into recovery mode i which i thought i have to factory reset for the bootloader process to be complete but still after factory reset the device boots straight to the decrypt storage page and when i reboot again into fastboot mode the bootloader is still locked like nothing happened . tried all methods to unlock bootloader and not factory reset in hope of getting better results but still its the same problem . so if there is another solution that might help me to unlock my bootloader or flash custom recovery or force it to install my RUU exe firmware without debugging i would greatly appreciate it

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.25.214500021.06G

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 4.16.401.13

(bootloader) version-misc: PVT SHIP S-ON

(bootloader) serialno: Sxxxxxxxxxx

(bootloader) imei: 35xxxxxxxxxxxxx

(bootloader) imei2: Not Support

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B10000

(bootloader) cidnum: HTC__016

(bootloader) battery-status: good

(bootloader) battery-voltage: 0mV

(bootloader) partition-layout: Generic

(bootloader) security: on

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: f063fb42

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

thats from getvar

and i also downloaded this firmware i dont know if it is the correct one for my device since its showing region as south africa (Region : VODA-Africa-South)

RUU_M8_UL_M60_SENSE70_ATT_MR_Cingular_US_6.20.502.5_combined.exe

any help related to my problem is greatly appreciated
[One (M8) Q&A, Help & Troubleshooting] ahmed.ismael:
Just follow this ,Might help

The correct RUU for your device

http://xdaforums.com/showpost.php?p=64926626&postcount=6
[One (M8) Q&A, Help & Troubleshooting] cliffordmoyo:
ok let me try it and update you with the results
[One (M8) Q&A, Help & Troubleshooting] cliffordmoyo:
hie when i type fastboot oem rebootRUU it reboots and boots into the system where it shows decrypt storage again . installed htc sync and uninstalled it leaving the drivers installed i dont know what is happening now , what should it display when it is in RUU MODE?
[One (M8) Q&A, Help & Troubleshooting] cliffordmoyo:
i dont know how i did it but for a moment is showed me the allow usb debug screen and i could see the device on adb devices command prompt screen then i tried to install the RUU.exe firmware but it failed and rebooted now its no longer detected on adb :crying:
[One (M8) Q&A, Help & Troubleshooting] xunholyx:
The RUU.exe from your first post?

That will not work for you. That RUU is for AT&T devices. The only way you would be able to flash that would be if you were S-Off and changed you CID to 11111111 (or AT&T's CID)

Take the RUU.zip (6.12.401.4 ~ the 401 being the important part, that is the identifier for your model) and rename the .zip to 0P6BIMG.zip (that's a zero, not the letter). The best way to do rename would be to place it onto your extSD so you can see the .zip extension (it is sometimes hidden on your PC) and use a file explorer so you don't accidentally rename it to 0P6BIMG.zip.zip

Boot to bootloader after this is renamed and on extSD (formatted to FAT32), and you should be prompted to flash it by pressing vol up. When the flash is finished, you'll be prompted to press power to reboot, and you are done.

Hope this helps
[One (M8) Q&A, Help & Troubleshooting] cliffordmoyo:
thank you for the reply . so i did download this firmware with the 6 .12.401.4 in its original name hope it is the correct one please confirm

(0P6BIMG_M8_UL_M60_SENSE70_MR_HTC_Europe_6.12.401.4_Radio_1.29.214500021.12G_20.72.4196t.01_release_464360_signed.zip)

and using extsd card is the best way to flash my device than using fastboot command prompt with RUU zip file stil in pc ? hope i am getting the steps right
[One (M8) Q&A, Help & Troubleshooting] xunholyx:
Yeah, you can also flash it in fastboot from PC. You'll probably get an "Error 90". That's the hboot pre-update and nothing to worry about. When you get it don't disconnect, just enter the flash command (fastboot flash zip "name of firmware".zip) a second time to reflash it.
[One (M8) Q&A, Help & Troubleshooting] cliffordmoyo:
sadly i guess i have got a bigger problem than i thought , so i tried with pc using these commands fastboot oem rebootRUU and the devices reboots straight into normal mode , and i did also the extsd tutorial you gave me and the device checks the file and prompts me if i want to continue bt after pressing the vol up button the device reboots again straight into normal mode where i am having the decrypt storage issue .if only i had that usb debugging screen prompt again i guess i would have had better odds since before it failed it actually went into RUU flash mode showing only the htc logo with black background

thank you for the quick response by the way
[One (M8) Q&A, Help & Troubleshooting] xunholyx:
You can turn on usb debugging in settings > developer options, but it shouldn't be needed for fastboot commands.

Try flashing this firmware.zip first, then run the RUU.zip again.
[One (M8) Q&A, Help & Troubleshooting] cliffordmoyo:
tried that last firmware zip but just want to confirm if i did the correct procedure ......

i downloaded this file you linked me : M8_6.12.401.4_WWE_TWRP2870.zip renamed it to 0P6BIMG.zip , copied it to my sdcard and and rebooted into bootloader . i could see the checking progress bar but then it just doesnt give me the prompt screen for vol up to continue or vol down to cancel , its just saying press power to reboot.

then tried fastboot oem rebootRUU but the fone is just stubborn and reboots into normal mode again not in RUU mode so i cant flash the zip firmware with fastboot . Another thing i noticed is when i finish unlocking bootloader and gets the success message with continue to unlock bootloader screen and then phone reboots into recovery (stock recovery) there is a chain of errors like "cannot mount data , cannot mount emmc" too but when i repeat the bootloader unlock process again this time with an sdcard in device i get "no cw files in sdcard" message when it reboots into recovery but still the bootloader wont be unlocked despite of repeating the process several times. the phone is still brand new never opened and i think this is somehow software related for i was beginning to think that its hardware issue but an app cause this "device decrypt storage" after the phone rebooted :(

Any idea where i can get htc mtp device drivers as i have reinstalled my operating system and installed htc syn too but those are the only ones failling to install now am on 32bit windows os , the ones i have downloaded are not installing maybe if those install i might recieve an "allow usb debugging " screen as i did earlier on before the screen didnt want to show up again
[One (M8) Q&A, Help & Troubleshooting] cliffordmoyo:
do you have any idea what might cause device to reboot into os/normal mode when executing the fastboot reboot-bootloader same as fastboot oem rebootRUU the device quickly reboots and enter into normal mode and does not hold those command . also if have downloaded almost 17 unlockcode.bin files from htc dev i kept on requesting after the bootloader wont get unlocked , it shows unlockcode flashed successfully in command prompt but when device reboots the bootloader is still locked . i still love my htc m8 but it seems i am the only one in this enter forum who has this problem since other are successfully getting their devices fixed :crying::crying:
[Mate 8 Q&A, Help & Troubleshooting] Tiggarenstal:
So I have a Mac and I want to root/unlock bootloader in my Mate 8. Is there anyway to do this?
[BLU R1 HD Questions & Answers] ravishankar_sitar:
Hi, I tried network reset on BLU R1 . I tried resetting my beats studios headphones by holding the power button and then making it enter the pair mode. Nothing seems to work. My beats studios is not detected by BLU R1 HD.

Can you please suggest something?
[Galaxy S I9000 Q&A, Help & Troubleshooting] kokoazzam:
i downloaded this recovery v6.0.1.3

the power button don't work i can move on options but can't seclet them and it reboot on recovery and can't open the mobile how can i fix it and when i open download mode it don't show me the yellow warning to press volume up to continue so recognize download mode
[Galaxy S I9000 Q&A, Help & Troubleshooting] kokoazzam:
i found this on wiki

xdaforums.com/showpost.php?p=24831012&postcount=1330

and the fix but odin don't read my phone and tried another usb cable and another pc and the same
[Android Q&A, Help & Troubleshooting] SpookehAndroid:
Is there any Xposed version that works with the Galaxy Tab A 8.0?
[Verizon Samsung Galaxy S III] XxInSaNeClOwNxX:
I have a straight talk S3 (Verizon based) and a cricket sim card. How do I make the cricket sim work in the phone?
[Verizon Samsung Galaxy S III] Droidriven:
You need a CDMA SIM from any CDMA carrier and it will work as soon as you put it in, then you set your APNs to Tracfone APNs.

If your Cricket SIM is a GSM SIM then it won't work, it MUST be a CDMA SIM.

Verizon CDMA LTE SIMs are only $3-5 on eBay. I'm sure you can afford the price and the wait while it is mailed to you.
[Verizon Samsung Galaxy S III] vdoug:
I used a friend's Verizon Galaxy SIII at one point... kind of... it took a while to detect the network each time the phone started up and it was only EDGE/2G

So, it works for phone calls and very slow data... might be okay if you're usually on wifi, but it's really better to just have a phone that is compatible with Cricket's HSPA+ 3G and 4G LTE network(s).
[Verizon Samsung Galaxy S III] Droidriven:
They are asking about the SIM because they have a straight talk s3 and that device has to use Verizon S3 ROMs and that makes the Straight Talk S3 require a SIM to have working mobile data, it won't work without the SIM. They weren't asking if they can use a Straight Talk S3 on Cricket network.
[G4 General] blake_spector:
---

DISCLAIMER: Everything mentioned in this thread is

not for personal use

and

will destroy your device.

---

I know (seriously) I should wait for xVANKO to finish his guide but, I really want to unlock the bootloader and/but before I do that even more so take the precautions to be able to relock it again (ILAPO, warranty, you know the deal).

Back in the days I used http://xdaforums.com/g4/general/lg-g4-100-root-success-directives-root-t3180586 and http://xdaforums.com/showpost.php?p=62028523&postcount=2 to root, so I am familiar with "dd" etc.

The following information is collected from across these forums, therefore I neither take any credit nor any responsibility!

Trying to execute those commands on my H815EU (DO NOT TRY THIS AT HOME, especially with anything other than H815EU. It will destroy your device and your house will catch on fire!)

dd if=/dev/block/mmcblk0 bs=8192 skip=585216 count=32768 of=/data/media/0/cust.img
dd if=/dev/block/mmcblk0 bs=8192 skip=16384 count=2048 of=/data/media/0/misc.img
dd if=/dev/block/mmcblk0 bs=8192 skip=23808 count=256 of=/data/media/0/persistent.img

In addition to that - to my understanding these then would be the commands to flash the dumped data back to the unlocked device?

(You have been warned!)

dd if=/data/media/0/cust.img bs=8192 seek=585216 count=32768 of=/dev/block/mmcblk0
dd if=/data/media/0/misc.img bs=8192 seek=16384 count=2048 of=/dev/block/mmcblk0
dd if=/data/media/0/persistent.img bs=8192 seek=23808 count=256 of=/dev/block/mmcblk0

Anyhow,

TLDR; and this is basically the problem here - it simply sais "FAIL".

Is this because of Marshmallow? Do I have to downgrade to Lollipop first?

I am able to use Send_Command.exe and I have set the right COM port, proper drivers installed (autoprime), connected via USB 2.0 on Win10x64.

THANKS SO MUCH FOR YOUR HELP, IT REALLY IS MUCH APPRECIATED!

PS: Obviously I would ask this in the dedicated thread, but it is locked atm. Sorry for the inconvenience!

Honorable mention aka 'Credits' not including any responsibility for aforementioned potential damages!

xVANKO (for: http://xdaforums.com/g4/general/h815-relock-bootloader-t3506634)

^ btw, please please continue your awesome work for this community! <3
[G4 General] blake_spector:
Mislick, my bad.. If a kind moderator would please move this to http://xdaforums.com/g4/help, thanks!
[G4 General] jskasia:
If you wanna use Send_Command.exe with MM, please visit this thread and examine Method 2. :fingers-crossed:
[G4 General] blake_spector:
Ah, I see! Thanks.

Seems a bit troublesome, I guess I'll just flash a Lollipop KDZ for the Send_Command.exe tasks.

Then unlock, TWRP, Root, and "back" to MM . . . :angel:

. . . and eventually, flash Lollipop KDZ again, and "relock" Bootloader for warranty round#2.
[G4 General] JoHnNy08PL:
No, it is really simple. After few times you can do this with eyes closed(ok only one eye ;) ). It's the Marshmallow's bootloader "security".

So after all it's as simple as dumping few partitions to SD and uploading them back again? No HEX editing or other stuff?

Or is it dumping before bootloader unlock and to relock just flash them back?
[G4 General] letama:
You don't have to downgrade to be able to use the send_command.exe

There is only an extra trick: you have to use LGUP to enable the com port in download mode.

Here is how to do it:

- Backup your data first :)

- launch LGUP, select a kdz (preferably the one you currently have),

- Make sure you select upgrade, not refurbish. I missed it once, it will do a factory reset right away!

- start flashing.

- Your device will go in download mode. Few seconds later (around 5% I believe), it will display a com port.

- As soon as you see the COM port displayed on the G4 screen, unplug the usb cable.

- Close LGUP

- Replug the usb cable, send_commands is now working.

If you still want to go ahead before having xVANKO information, I would suggest to also dump the drm partition. And if you want to be extra cautious, dump the whole mmc until userdata. It's a bit big, around 5 GB, but it would allow to extract any other partition if needed.
[G4 General] dnkncht:
How do you find out you got a H815EU model?

I'm based in germany and bought a local one. The package simply says LG-H815 as well as the hardware informations inside the settings menu.

Edit: I know there are different types out there, but haven't read about a 'H815EU' model. Do you mean a european device or the unique 'H815EU' type?

Edit 2: Running the commands to backup the partitions shouldn't brick your device. The 'dd' command only reads bytes between skip and count. Executing without those parameter would simply clone your flash drive. Since it seems that there are different partition sizes per model, it could only happen that you read invalid data from the storage. Flashing those backups are the main reason for hard-bricks.
[G4 General] Minto107:
H815EU or H815 EUR is another name for unkockable H815 variant(keep in mind that not every H815 variant can be unlocked, that's why we call it like that). To determine if you have H815EU just download LG phone info check provider. There should be 3 letter long text. There is a list of unkockable H815s so check your letters and find yours on the list. Fortunately, my G4 is H815EU/H815 EUR ;)

Wysłane z mojego LG-H815 przy użyciu Tapatalka
[G4 General] blake_spector:
Thanks a lot for the clear instructions!

In regard to dumping drm partition, or whole mmc . . . I found this, but I don't know how those values translate to the "skip" and "count" parts of the dd command. Do you know the appropriate values?

A german H815 does apply to the shenanigans discussed here. My device is the same.

To 'edit 2', you're right! The "reading" part isn't the problem . . . still, better safe than sorry.
[G4 General] blake_spector:
Marvellous piece of information, vielen vielen Dank! :)
[G4 General] hard74:
blake_spector

Read private message?
[G4 General] blake_spector:
Wow, great post!! Thank you so much for that! :good:
[G4 General] petro_ionut:
Relocking works if you have cust and misc partitions saved before unlock, tested myself on H815!

Sent from my LG-H815
[G4 General] OllieD:
Interesting because it did not work for me. :confused:
[G4 General] blake_spector:
I made a lil "thing" to help with the calculations . . .

http://codepen.io/blake_spector/pen/yVrNxg?editors=0010

(feel free to fork, expand, what not . . .)

Again, thanks to letama for the data!
[G4 General] blake_spector:
I read your post in xVANKOs thread. I wonder what the issue was . . . other ppl confirmed it worked. :confused:

^ that is basically why i started this thread, to make sure to take all possible precautions.

:good:

As of yet, my phone is still untouched/locked from when I got back the few days after LG warranty.

But I will, as soon as possible, backup all the partitions and see how it turns out.
[G4 General] OllieD:
I reverted to lollipop, Dumped my partitions. Unlocked my Bootloader and restored the partitions and my bootloader remained unlocked.

I do have some other dumps and cannot remember the exact commands i used to dump the partitions.

I believe i just reversed the DD commands he issued in his video (swapping the if= and of= )

I also took some partition backups with flashfire before unlocking but havent tried to restore those.

My initial test however proved unsucessful.

I was waiting for him to release his method but he has since locked the thread.

His account was created just before he made his claims which is mildly suspicious.

If it were me, in the true spirit of the XDA Developers community, i would have just released all the information i had regardless of it not working on certain devices. the community could have helped fill the gaps in my work.

I think he is holding off with the aim of claiming the full unofficial unlock bounty, however i feel he will be lucky to recieve much of that given that most people dont pay and most of those who would have long since moved on to other devices.

Time will tell if this is just another hoax.

I'm hoping its not since i'm probably not the only one to unlock my device due to his claims.
[G4 General] blake_spector:
I am not quite sure that it's a bland hoax (the RElocking part, unlocking all devices . . . another story)

petro_ionut confirmed in this thread it was working for him (as in the original thread) as well as polfrank in the original thread.

Suspisions aside, why would anyone registered a couple of years ago suddenly claim some hoax bs?!

I still have to come up with my own results obviously, but still I trust those guys?! I see no reason not to.

Anyhow, I take your feedback/results very seriously! In the end, I want this to work for me (and others), right?

Also I'm 100% with you on the community part! That's how it should be done . . . I try my best to do it that way.

PS: Did you only swap of= and if= . . . ? or also the seek and skip? I made extra sure to include this tiny detail in my harmful tool http://codepen.io/blake_spector/pen/yVrNxg?editors=0010
[G4 General] jskasia:
[MENTION=447404]OllieD[/MENTION], as the OP mentioned, actually when you change from 'dump' to 'flash' command, you will need to change from 'skip' to 'seek' as well.
[G4 General] blake_spector:
So, for a clean "starting point" I flashed v20j using LGUP over the v20g that was installed. Basically because that was a KDZ quick to download (LG servers) and something that is fresh, proper and working on H815EUR devices.

Next I will dump the partitions in question, unlock via official LG unlock.bin and try to relock.

Stay tuned and happy holidays!
[G4 General] Minto107:
Can't wait to hear about results! I'm on v20g right now, didn't touch a thing but if you'll be able to get relock working on marshmallow I'm in for unlocking(thank God that my H815EU is unlockable)

Wysłane z mojego LG-H815 przy użyciu Tapatalka
[G4 General] letama:
Well, just did the test, I confirm that it works! (at least on my device)

I was able to relock without any issue.

Good news also, I did dd back the partitions backup I did after unlock, it does re-unlock the bootloader without factory reset. That's great!
[G4 General] ObiDanKenobi:
Which partitions did you dd? Misc, cust and persistent only?

---------- Post added at 02:30 PM ---------- Previous post was at 02:27 PM ----------

Better still, please post the commands to lock and the commands to unlock.
[G4 General] letama:
I only did misc, persistent and drm partitions. I didn't bother with cust, I do have a full backup if needed.

****

disclaimer: you can brick permanently your device with this!

This is for my device with my partition layout, I can't be sure that your device has the same one

****

Here are the commands I used to relock (H815 EUR/FRA):

dd if=/data/media/0/BL/misc_pre.ext4 of=/dev/block/mmcblk0 bs=512 seek=262144 count=32768
dd if=/data/media/0/BL/persistent_pre.ext4 of=/dev/block/mmcblk0 bs=512 seek=380928 count=4096
dd if=/data/media/0/BL/drm_pre.ext4 of=/dev/block/mmcblk0 bs=512 seek=655360 count=16384

the _pre.ext4 were stored in internal storage in a BL directory.

_pre files were done from the full backup (pre_unlock.dmp) I did before unlocking with these commands on PC:

dd if=pre_unlock.dump of=misc_pre.ext4 bs=512 skip=262144 count=32768
dd if=pre_unlock.dump of=persistent_pre.ext4 bs=512 skip=380928 count=4096
dd if=pre_unlock.dump of=drm_pre.ext4 bs=512 skip=655360 count=16384

I took the pre_unlock.dump directly from device in flash mode with:

dd if=/dev/block/mmcblk0 of=/data/media/0/pre_unlock.dump bs=512 count=12419072

You have to chmod/chown it to be able to access it afterwards:

chmod 666 /data/media/0/pre_unlock.dump
chown media_rw:media_rw /data/media/0/pre_unlock.dump

(these two are from memory, I didn't capture the log)

Again, be very cautious with the dd commands!
[G4 General] blake_spector:
That's great news! Thanks so much for your help! :good::good:
[G4 General] blake_spector:
I will put all the information gathered here in a "guide" when i perform the procedure on my device.

I will try to record it on video with screencapture. . . from locked, send_command.exe on MM, dumping the partitions, unlocking with unlock.bin and relocking it again with the prior saved data.
[G4 General] letama:
Oups, you're right, this is for a 512 block size ;). I'm editing the post.
[G4 General] kingtm:
Hello and Merry Christmas to all. I have a question for you. Will it be possible is to lock the bootloader on unlocked phones?

Изпратено от моят LG-D855 с помощта на Tapatalk
[G4 General] Minto107:
Nah I don't think so. We're using partitions from locked phone to lock it again, ppl who unlocked without dumping their partitions can't relock

WysÅ‚ane z mojego LG-H815 przy uÅ¼yciu Tapatalka
[G4 General] Engelm:
You can Try to compare some Partitionen Front different phones.

Maybe there is a pattern you could find....
[G4 General] JoHnNy08PL:
Great! More and more people reporting success with locking bootloader! So I guess it is now confirmed that European H815 can be relocked. A nice Christmas present :)
[G4 General] petro_ionut:
Something in the commands is wrong, I assure you that it has to work, did it 2 times!