yashsingh1/xdaforums huggingface dataset:
[One (M8) General] elpicard:
The CID and MID only allow you to use proper firmware from a specific region and / or carrier. This will not unlock extra frequencies, Even if you changes the radios.
[One (M8) General] ckpv5:
No.. you can't convert a Verizon device to other global version. It kills your radio.

Verizon needs to stay as Verizon, same as Sprint needs to be Sprint only.
[One (M8) General] piyushkohli97:
So if we flash verizon radio over other version it still wont work, right?
[One (M8) General] Mr Hofs:
Read the comment again .......
[One (M8) General] ckpv5:
Just corrected a typo in my comment .. it should read can't instead of can..

but I guess the whole sentence means cannot (even with typo) ;)
[One (M8) General] Mr Hofs:
Yeah, the rest of the sentence drew the picture very clear !

:)
[One (M8) General] aash01:
Hi guys, I have te following problem after changing the MID of my HTC m8

Basically the issue is this: ":-:ukonoto" (unquoted) after MID. The phone works fine, but OTAs no.

I've come all this forum looking for a solution and the only thread that is directly related is this, I hope you can help me.

Pd: Excuse the bad english.
[One (M8) General] thejosh86:
Hey buddy

I had the same issue with mine but I've resolved it by exporting that block and then editing in a hexeditor like HxD on your PC and then importing it back.

I take no responsibility for anything that happens, this is what worked for me:

Whilst connected to your PC in a command prompt

adb shell

su

dd if=/dev/block/mmcblk0p5 of=/sdcard/mmcblk0p5

exit

Disconnect your device, wait a moment and you should see the file you just exported mmcblk0p5. Copy to your PC and keep a copy of this file incase you mess it up. I used HxD on my pc but thre are probably apps you can use in the playstore.

Scroll down to around line: 00004000 and clear the unknown part so it reads as just what your MID should be. Leave everything else as is.

Save the file

Copy it back to your phone in the root of sdcard

Start the phone up again

Whilst connected to your PC in a command prompt

adb shell

su

dd if=sdcard/mmcblk0p5 of=/dev/block/mmcblk0p5

exit

If you reboot to bootloader and do a fastboot getvar all should now be fixed up.

Goodluck!
[One (M8) General] aash01:
Heeeeeey thejosh86,

Thanks for your great instructions :good:... Your tutorial works perfect... You made my day!!! :good::good::good::laugh:
[One (M8) General] iamaniff:
check your superuser acces
[One (M8) General] n1234d:
[MENTION=3437245]scotty1223[/MENTION] would it be possible to make one for 0P6B65000? Thanks!
[One (M8) General] scotty1223:
OP6B6500

echo -ne '\x30\x00\x50\x00\x36\x00\x42\x00\x36\x00\x35\x00\x30\x00\x30\x00\x30' | dd of=/dev/block/mmcblk0p5 bs=1 seek=16384

what variant is that?
[One (M8) General] n1234d:
Thanks! This is the Indian/Asian variant, M8_UHL with CID HTC__038
[One (M8) General] kullum79:
switching from sense to GOE

I had learned the hard way that if you switched to GPE from sense it will change your MID. Do not forget to change your MID back to your carrier before you are switching back to sense to prevent a bootloop
[One (M8) General] adryesp2000:
Omg, I did that and it didn't change my Mid

Enviado desde mi HTC One_M8 mediante Tapatalk
[One (M8) General] dave.michael:
I realized its because my OS isn't rooted. It would have worked on my Mac, but the OS simply isn't rooted to allow me to get the elevated prompt.
[One (M8) General] yourunlikegus:
Sorry to say, but I have changed my CID to developer version. I think I have the original saved on my PC somewhere but right now it is out of commission and I am waiting on a few parts. I will check once the parts come in and I reassamble everything.
[One (M8) General] craig0r:
Rogers MID

FYI, here's the command to get the Rogers MID of 0P6B16000 back:

echo -ne '\x30\x00\x50\x00\x36\x00\x42\x00\x31\x00\x36\x00\x30\x00\x30\x00\x30' | dd of=/dev/block/mmcblk0p5 bs=1 seek=16384

Follow the steps in the OP, of course, but use this command.
[One (M8) General] kirdroid:
[MENTION=221956]Scotty[/MENTION] - Isn't the model id of Google play edition 0P6B17000? How do I change it to that model id?

From Anandtech review article where it lists different models.

NM80P6B100 EMEA

NM80P6B120 AT&T

NM80P6B130 T-Mobile

NM80P6B200 Verizon

NM80P6B700 Sprint

NM80P6B160 Canada

NM80P6B170 Google Play Edition
[One (M8) General] scotty1223:
That may be. For some reason no one has stepped forward in this thread or my getvar all requests thread with a getvar all from an actual gpe phone. The assumption that the gpe shared a mid with att,unlocked and dev edition was based on the mid shared by those models on m7. Do you know someone with a real gpe that can verify?

assuming the GPE to have a mid of 0P6B17000,the code would be this:

echo -ne '\x30\x00\x50\x00\x36\x00\x42\x00\x31\x00\x37\x00\x30\x00\x30\x00\x30' | dd of=/dev/block/mmcblk0p5 bs=1 seek=16384

as soon as we can confirm ill add the info to the OP
[One (M8) General] kirdroid:
Thanks. I'm 100% sure that GPE model id is not the same. AT&T, Developer and unlocked versions are the same SKU but GPE is a different SKU and model.

I'm going to change my model id to 0P6B17000. Thanks for the instructions :)
[One (M8) General] sari94:
I do not have S-off .I need help in getting my M8 the S-off with CID HTC__J15!

who can help?
[One (M8) General] exad:
I've converted my Telus device to gpe using the ruu zip. Haven't changed the MID and I have been getting OTA updates... Is changing the mid really necessary for some?
[One (M8) General] scotty1223:
Your mid may have allready been the same,or the gpe updates may for some reason not be as strict in their requirements.

If you're getting gpe otas with an incorrect cid/mid this is an exception,not a rule,as an ota typically checks them and will fail if one is not correct.

If you're supercid,that may be bypassing the mid check,but accepting otas while supercid is not something I'd recomend.

As such,if you want to fully convert to another variant,the safest way IMO is to change the cid and mid to the correct values.
[One (M8) General] exad:
I don't see why accepting otas with supercid and soff would be a problem. If I was s-on I could understand.
[One (M8) General] scotty1223:
They were bricks off evita and Ville when folks tried to OTA on SuperCID, and we never really did figure out why.

Running an ruu is one thing, but accepting an OTA is another. Is easy enough to change cid and mid, that I personally would not risk it.
[One (M8) General] exad:
Only s-on phones bricked but I suppose I can understand your caution never the less. Also, it was both RUUs and OTAs so if you're going to be cautious about one, I'd be cautious about the other too.
[One (M8) General] scotty1223:
There were s off bricks as well. There were also lots of folks who did it with no issue. I do not remember any incidents while using an ruu.

May have been a really odd fluke, and could be perfectly safe now. But like I said, we never did figure out why.

Folks look to the threads here for solid advice. As such, I use an extreme amount of caution as to what I recommend is safe. If it caused even one brick, I don't want to be responsible for it
[One (M8) General] exad:
I'll cross my fingers and hope not to brick. Never saw an S-off brick from ota or RUU personally and I lived on the evita forums and Irc for quite some time. I remember seeing you there as well from time to time. Maybe you caught something I didn't. *shrugs*

And I agree, accurate information is most helpful.
[One (M8) General] mehmetolgungun:
Hi, Could you please post the verizon mid? I changed it to developer edition and I cant change it back now.
[One (M8) General] scotty1223:
added to the second post.

in the future,please do not quote the OP in its entirety when responding to things in the forums. its un-neccessary and makes it extremely dificult to find the actual comment/question when reading email notifications. we know what the OP says. theres no reason to quote it.
[One (M8) General] cronojay:
I am on viper one for t-mobile us and trying to go to developer ed. I get this error. Any ideas

ViperOne@/# echo -ne '\x30\x00\x50\x00\x36\x00\x42\x00\x31\x00\x32\x00\x30\x00\x

30\x00\x30' | dd of=/dev/block/mmcblk0p5 bs=1 seek=16384

echo -ne '\x30\x00\x50\x00\x36\x00\x42\x00\x31\x00\x32\x00\x30\x00\x30\x00\x30'

| dd of=/dev/block/mmcblk0p5 bs=1 seek=16384

00\x30' | dd of=/dev/block/mmcblk0p5 bs=1 seek=16384 <

/dev/block/mmcblk0p5: write error: No space left on device

1+0 records in

0+0 records out

0 bytes transferred in 0.002 secs (0 bytes/sec)

1|ViperOne@/#
[One (M8) General] russellvone:
could you copy and paste

ALL of the command from start to finish?

it looks like you copy and pasted the command twice??? before you hit enter?
[One (M8) General] cronojay:
Here it is from start to finish

Microsoft Windows [Version 6.1.7601]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\windows\system32>cd C:\Users\jkrizman\Downloads\adb

C:\Users\jkrizman\Downloads\adb>adb devices

List of devices attached

xxxxxxxxxxxxxxxxx device

C:\Users\jkrizman\Downloads\adb>adb shell

ViperOne@/# su

su

ViperOne@/# echo -ne '\x30\x00\x50\x00\x36\x00\x42\x00\x31\x00\x32\x00\x30\x00\x

30\x00\x30' | dd of=/dev/block/mmcblk0p5 bs=1 seek=16384

echo -ne '\x30\x00\x50\x00\x36\x00\x42\x00\x31\x00\x32\x00\x30\x00\x30\x00\x30'

| dd of=/dev/block/mmcblk0p5 bs=1 seek=16384

00\x30' | dd of=/dev/block/mmcblk0p5 bs=1 seek=16384 <

/dev/block/mmcblk0p5: write error: No space left on device

1+0 records in

0+0 records out

0 bytes transferred in 0.001 secs (0 bytes/sec)

1|ViperOne@/#
[One (M8) General] russellvone:
yah, um you've posted the "echo ne bla bla bla"

twice before hitting enter
[One (M8) General] rudresh128631:
getting error 155 during developer edition ruu flash

i'm getting 155 error during ruu flash. below i mentioned my device details. changed mid into developers mid. still no luck.:confused:

version: 0.5

version-bootloader: 3.19.0.0000

version-baseband: 1.08.20.0612_4

version-cpld: None

version-microp: None

version-main: 3.30.651.2

version-misc: PVT SHIP S-OFF

serialno: HTxxxxxxxxx2

imei: 9xxxxxxxxxxxxx8

imei2: Not Support

meid: 99000499317748

product: m8_whl

platform: hTCBmsm8974

modelid: 0P6B12000

cidnum: 11111111

battery-status: good

battery-voltage: 0mV

partition-layout: Generic

security: off

build-mode: SHIP

boot-mode: FASTBOOT

commitno-bootloader: 3aa067db

hbootpreupdate: 11

gencheckpt: 0
[One (M8) General] hoang555:
any guide to change MID on M9 ???
[One (M8) General] Uzephi:
Please check the m9 section. Some of us do not own an m9 yet. You can also ask if anyone knows in the m9 Q&A section.
[One (M8) General] hoang555:
Looks eveywhere on M9 section and nothing's found and just thinking about this thread and asking for help
[One (M8) General] Mr Hofs:
Just make sure you do not follow this thread with the instructions. Partition tables will be different and you will brick your device !

:)
[One (M8) General] DjSkreem:
i am getting this

127|shell@htc_m8:/ $ echo -ne '\x30\x00\x50\x00\x36\x00\x42\x00\x31\x00\x32\x00\x30\x00\x30\x00\x30' | dd of=/dev/block/mmcblk0p5 bs=1 seek=16384

\x00\x30\x00\x30\x00\x30' | dd of=/dev/block/mmcblk0p5 bs=1 seek=16384 <

dd: /dev/block/mmcblk0p5: Permission denied

1|shell@htc_m8:/ $

i want my marshmallow update with sense 7
[One (M8) General] Einwod:
It might be to your benefit to tell us what model MID/CID device you have and what you are actually trying to achieve with these commands. We're not all rocket scientists, you know. Marshmallow updates are out for 4 device types at the moment.
[One (M8) General] DjSkreem:
MID 0P6B16000 it has the rogers MID

when i get the phone it had the GPE software and CID on it

i converted back to the unlocked version of sense (developer edition sense) which worked

but this morning the phone said it had an update to marshmallow 6.0 but it says i have a non genuine os or variation

i have the super cid on currently so i wanted to change the mid and cid to match and then take my OTA update

but the bootloader is also unlocked so ill need to lock that back as well
[One (M8) General] Einwod:
What you need to do is go back to Sense, not GPE. I think you may have been Rogers originally. If you can find an RUU for Rogers, it will take you back to Stock Sense, which you need to get OTA updates to work. There are 2 Canadian models that currently have Marshmallow available, but unless you are completely stock, UNrooted, you will not be able to take it.
[One (M8) General] DjSkreem:
i am already on sense 5.02 but i flashed the developer rom the birght start ruu to convert back im guessing either this was a rogers unit (box and everthing is completely stock no carier branding) so im not sure or when the guy a bought the phone from converted it to GPE he changed the MID so im wondering if i should just use the 6.0 Ruu to update or turn the phone back into rogers sigh

i think i also need to be rooted for the MID change to work ? i am soff
[One (M8) General] ckpv5:
Yes .. it needs root access.

If you don't have root access, you can change MID while in TWRP recovery.

Just boot to TWRP recovery, mount system then

adb shell

your MID code
[One (M8) General] DjSkreem:
thanks i just rooted and changed the MID so everything is set for the Developer edition CID BS_US002 and MID 0P6B120000

so ill either just use the RUU to go back to stock or flash a nandroid and go back from there
[One (M8) General] Me20056:
You don't have super user acces , you have a $ instead of #
[One (M8) General] kukubau:
[MENTION=3437245]scotty1223[/MENTION]

I've posted in the wrong thread. I will continue to post here, as it is about M8. I've successfully changed my M8's MID using the command lines you posted here. I want to go back to stock rom (European). Is there a similar command line for changing the MID to 0P6B10000?
[One (M8) General] ckpv5:
Have you read at least post #1 ?

You shouldn't miss it.
[One (M8) General] DjSkreem:
yes i knw i rooted the phone and changed it i'm back to stock on marshmallow now .... thanks for your input
[One (M8) General] ckpv5:
... it's on post #1
[One (M8) General] thejosh86:
Blank space in mmcblk0p5 file

Hi Guys

Can anyone help me remove this blank space from my mmcblk0p5 file, it's causing issues with OTA's saying they're corrupted after download, thanks in advance.

D:\Downloads\Android>fastboot getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.26.214500021.24G

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 4.16.401.10

(bootloader) version-misc: UNKNOWN SHIP S-OFF

(bootloader) serialno:

(bootloader) imei:

(bootloader) imei2: Not Support

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B11000

(bootloader) cidnum: 11111111

(bootloader) battery-status: good

(bootloader) battery-voltage: 0mV

(bootloader) partition-layout: Generic

(bootloader) security: off

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: 3aa067db

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.062s
[One (M8) General] Einwod:
Just an observation: my getvar all gives this: PVT SHIP S-OFF. Could that have something to do with it? How did you gain S-OFF? Sunshine or the old way?
[One (M8) General] thejosh86:
I noticed that as well but didn't think much of it, I gained S-OFF through sunshine.

This probably popped up when I changed MID and I had this pop up in the getvar (bootloader) modelid:0P6B11000:-:ukonoto and I cleared it out of the file with HxD.

http://xdaforums.com/showpost.php?p=64090662&postcount=373

I'll see if I can fix that line up as well, otherwise I don't suppose anyone out there would kind enough to pass me a copy of their mmcblk0p5 for me to compare against or vice versa.

Or if anyone is willing to give me some pointers on editing the file, I'm currently using HxD but maybe it's not the best app for it?
[One (M8) General] ckpv5:
I don't know how to fix your problem, but I see something interesting here ... with MID 0P6B11000, I don't think it's going to be a successful OTA when the version-main is 4.16.401.10

4.16.401.10 will go with MID 0P6B10000 only.

So you have a corrupted OTA after download or a system variant error after the OTA downloaded ?
[One (M8) General] thejosh86:
After the download competes it advises it's corrupt and if I would like to try again. If I try to flash the OTA from fastboot it mentions mainver error:24 I think from memory.

I don't think it's the mainver as previously I've had all different sorts of mainvers and restored an early Telstra backup and run through the OTA process from there without any issue.

With being S-OFF + SuperCid I don't think the versions matter.

It's probably more to do with some bad data in my mmcblk05 partition. Possibly the unknown part of the S-OFF bit or maybe the space after that modelid.

I can still flash FW through fastboot and run RUUs no problem.

With the 4.16.401.10 you'll find it's compatible with this mid otherwise I'd have to change it to flash the FW which I didn't have to.

Just to rule it out I'll find a Telstra hboot from one of the OTA's I've got downloaded and report back.
[One (M8) General] ckpv5:
Have you try again with a Telstra backup and see whether the download is corrupted too or it will be a successful OTA

SuperCID, version does not matter but MID will.

Telstra MID is 0P6B11000 (as what you currently have on the device)

4.16.401.10 MID is 0P6B10000
[One (M8) General] thejosh86:
Thanks for your response, you're right about the MID but I've never had this problem before when I used to switch between all different firmwares and then back to my provider by the same method till after I stuffed the mmcblk05

I'm leaning towards the problem being with some data in the mmcblk05 as in the past I could be running any firmware and flash an early telstra backup then run through the ota process from there so long as I had a htc stock recovery.

I've tried Telstra, I tried the 4.16.401.10 and the one before that all downloads say they are corrupted as well as when I place previous OTA's downloaded that have worked before.

Someone I know has the same device with the same provider so I'll try and get a copy of their file and do a compare in HxD and report back, hopefully I'll be able to fix it from there.
[One (M8) General] ckpv5:
Hopefully that helps .. I don't know whether this screenshot will help you or not .. not a Telstra but Asia WWE
[One (M8) General] scotty1223:
Have you fixed your issue yet? Dump your p 5, and send me a link and I'll have a look
[One (M8) General] thejosh86:
Cheers man, appreciate it, will still have a crack myself through the day. Link PM'd

Thanks again

[MENTION=830797]ckpv5[/MENTION] is that just HxD which editor is that?

Just for anyone who was curious I got a hold of a friends to test the integrity of the OTA and it passed so the corruption was definitely related to the bad data in the p05 partition. Scotty fixed up the PVT S-OFF part but it was still failing so the spacing between mid + cid was still the culprit.

Thanks to everyone who helped.
[One (M8) General] ckpv5:
I'm using xvi32 for HEX editing. Is there anything that you need from me that may help you ?
[One (M8) General] thejosh86:
I think I'm all sorted mate, thanks for trying to help, much appreciated ? ? ?
[One (M8) General] KevYoshi:
Can someone help me? When i change my mid to european, my mid is:0PB1000000, any solutions?
[One (M8) General] long.nguyen:
I have a m8 whl sprint abd does not use CDMA only gsm network. I can I change the mid and convert the phone to get latest ota for dev edition version? I thanks
[One (M8) General] Einwod:
You have a Sprint device, CDMA. It has nothing to do with GSM. If you continue, you'll probably brick it permanently. Should have bought a proper version instead of an American one.
[One (M8) General] redpoint73:
I answered your questions elsewhere: http://xdaforums.com/att-htc-one-m8/help/verizon-m8-att-fo-official-t3296520/page2

And to reiterate what Einwod stated, do

not

try to change your MID or flash any other versions firmware, radio, RUU, etc. You will probably brick the device. The Sprint version is partitioned differently from other M8 versions, and therefore

cannot

be converted.
[One (M8) General] long.nguyen:
i am sorry because i read on the forum and people say i can flash the dev version and exclude radio it may works fine, or flash the working sprint kernel (custom or stock). I read it a few times. Please clarify
[One (M8) General] Einwod:
Show us the posts where you read this. Don't just say "I read it somewhere". You have been advised on what to do and what NOT to do. Should you choose to continue in your venture, then enjoy your expensive paperweight.
[One (M8) General] madhavdhoot:
Change MID

Someone please help me to change my MID to 0P6B65000.

PLEASE HELP!
[One (M8) General] madhavdhoot:
[MENTION=3437245]scotty1223[/MENTION] Please share code to change MID to 0P6B65000.
[One (M8) General] Rjev07:
Check post no 292 of this thread for indian echo command...
[One (M8) General] madhavdhoot:
[MENTION=3437245]scotty1223[/MENTION] [MENTION=4389636]Rjev07[/MENTION]

Thanks a lot. :):)
[One (M8) General] long.nguyen:
Dear all

I read it here, especially in post 3

http://xdaforums.com/htc-one-m8/general/how-to-convert-cdma-m8-sprint-vzw-gsm-t3303812
[One (M8) General] redpoint73:
???

This is post #3 (of this thread): http://xdaforums.com/showpost.php?p=51700651&postcount=3

---------- Post added at 12:35 PM ---------- Previous post was at 12:29 PM ----------

"may work fine" sounds pretty sketchy to me. Again, cite the proper source.

Anyway, it won't work, and you will likely brick. For one thing, the recovery partition is in a different location on Sprint then the Dev Ed, and this has already led to some bricks when folks have flashed the wrong recovery.

This also doesn't make any sense, since you originally asked about OTAs. If you replace the kernel, you don't have official software anymore, and OTAs will be blocked from install.

You may be confusing this with the process to install custom ROMs on the Sprint device, where if the ROM does not explicitly support Sprint, the possible way to get the ROM to boot is by replacing with the proper kernel.

This has nothing to do with "converting" the phone for OTA, etc., which is not possible with the Sprint version.
[One (M8) General] long.nguyen:
thank you very much, yesterday i forgot to post the links :D, but since you are also there so maybe it is better to go over there and discuss that thread
[One (M8) General] long.nguyen:
I read from here

http://xdaforums.com/htc-one-m8/general/guide-update-to-official-developer-t3002003/

And here

http://xdaforums.com/htc-one-m8/general/how-to-convert-cdma-m8-sprint-vzw-gsm-t3303812

And here

http://xdaforums.com/att-htc-one-m8/help/verizon-m8-att-fo-official-t3296520

And this post confirm working on verizon

http://xdaforums.com/showpost.php?p=58225445&postcount=71

I am sorry but you are the only persion to speak against it. Did you have a sprint or Verizon on hand?