yashsingh1/xdaforums huggingface dataset:
[One (M8) General] downwiththebanksters:
Yes I'm totally backed up, thanks! So will installing that firmware set the partitions correctly? I see it is flashed as an RUU, so it might have the capacity to redo partitions.

But nightmare of nightmares, will this firmware contain Plurk (whateva the frack that is?!!? Ham anyone?) and other crapware like Weibo, KKBox, facebook, and twitter that come with the stock Taiwan Sense ROMs?
[One (M8) General] ckpv5:
Firmware & ROM are two different thing.

Firmware - redo your partitions

ROM - stock one has your nightmare in it.

RUU - firmware + stock ROM

Flashing firmware alone, nothing is added.
[One (M8) General] ckpv5:
all these questions should not be here, you can post in Q&A section (HELP thread) or you can ask in my thread that I linked earlier.

Don't use Hasson's tool as the tool was last updated more than two years ago. You're running a Marshmallow now.

You need to install latest TWRP - recommended 3.0.2-0

Do you format data as explained before ? Format data not wipe data (they are different)

Post current getvar all details after the firmware flashed.
[One (M8) General] downwiththebanksters:
Yes I was worried about cluttering this thread since we've moved off pure MID issues, but who knows if this puts me back on that road. If I should move to a new thread where exactly would you like me to move? I have successfully got Blues on there, but couldn't do the Sense camera which was one of my big things. I guess no comment about the output of the flash of your firmware above indicates that it was successful? I only use hassoon as it is a one click to recovery/bootloader, but I saw the option for TWRP install so installed "custom" (twrp-3.0.2-0-m8.img) TWRP as I hoped it idiot proofs the process. Yes I did "format data" using TWRP 3.0.2.0, but I just noticed (when I tried to take the April update on the /system modified Blues, which of course failed) that #022 Blues has rolled TWRP back to 3.0.1.0.

E:\Android\M8\One_M8_All-In-One_Kit_v2.0\One_M8_All-In-One_Kit_v\data>fastboot g

etvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.29.214500021.24_2G

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 6.20.709.2

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

(bootloader) serialno: FA44xxxxxxxx

(bootloader) imei: 358xxxxxxxxxxxx

(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: 205bdca3

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.010s

E:\Android\M8\One_M8_All-In-One_Kit_v2.0\One_M8_All-In-One_Kit_v\data>

UPDATE: I remember reading somewhere in my travels that sometimes a second flash can cure things, so I decided to simply try to reinstall Blues over the first attempt, and the second time was the charm. During the second flash I was allowed to install the camera etc, so I guess the first flash got the partitioning sorted out, and the second flash found a perfect home.
[One (M8) General] ckpv5:
You can ask in Blues ROM thread to get help to install the ROM.

There is an updated for April patches - http://xdaforums.com/showpost.php?p=66737928&postcount=1271

Check your bootloader, if the OS is written 6.20.709.2 in green (with nothing in red) then the firmware is flashed correctly.
[One (M8) General] olimjon:
Please help out of topic. i have htc desire eye and tried this thread http://xdaforums.com/desire-eye/general/update-to-android-5-0-2-t3081580 to change my mid. I did what this instruction said but when i restart my phone has been hard bricked. Display doesnt show anything. i did try press vol up and down+power button and go to fastboot mode. So how can use adb in twrp to restore my mmcblk0p5.bin file which i backed up. i cant control twrp on my phone because the display doesnt show anything.
[One (M8) General] rahes23:
i tried this method my device is s off rooted and twrp recovery but it gives permission denied error????? what am i missing.

---------- Post added at 05:02 PM ---------- Previous post was at 04:55 PM ----------

C:\Users\Dell\Desktop\HTC booting\android-sdk-windows\platform-tools>fastboot reboot

rebooting...

finished. total time: 0.016s

C:\Users\Dell\Desktop\HTC booting\android-sdk-windows\platform-tools>adb shell

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

dd: /dev/block/mmcblk0p5: Permission denied

how can i fix that.
[One (M8) General] ckpv5:
Read again post #1

You missed "su", you must have "#" prompt before you proceed with the codes.

"$" won't work
[One (M8) General] rahes23:
how to go to su i am new here please help me.
[One (M8) General] jshamlet:
After you start the ADB shell, type "su" to get a root shell. If necessary, grant permissions from your root daemon. THEN proceed with the instructions.
[One (M8) General] ckpv5:
Since you have TWRP installed .. you boot to recovery, select mount and mount system

then run the commands

adb shell

the codes

exit

no need "su" here
[One (M8) General] jakhar13:
[MENTION=3437245]scotty1223[/MENTION] I know that this thread is not for HTC desire 816 but i was wondering if you could help me and others looking for a solution to the following:

I have been trying to flash the ruu zip of a5_dwg(india) on my a5_dug(europe) but come across the model id error thing when i try to flash it through the RUU flash steps on fastboot. I want to change my phone to an indian variant because (1)-I am currently living in INDIA and (2)- I want to change mobile network to 2g only instead of the usual Auto 2g/3g mode in the europe variant. Hoping for your help.
[One (M8) General] scotty1223:
i do not recomend trying to convert across platforms(dwg to dug) as they are not neccesarily the same and bad things can happen.

even if you can determine that this is a safe conversion,doing sois not going to change anything in your mobile network or the bands available. these things are controled at a deeper level than what an ruu can access. i.e., its not going to behave any differently than what it currently does.
[One (M8) General] eranda84:
I need to change my Sprint M8 MID (Harm/Kar) to Europe MID. Is it possible?
[One (M8) General] ckpv5:
Don't you read the warning on post #2 ?

It's easy to change MID from Sprint to EU ...

BUT ... BUT ... you'll brick your device once you flash EU firmware.

Sprint & EU has different partition layout.
[One (M8) General] ahmedhakim39:
i have htc m8 verzion can i convert to europe without problem ???
[One (M8) General] ckpv5:
Same as above .....

Don't you read the warning on post #2 ?

It's easy to change MID from Verizon to EU ...

BUT ... BUT ... you'll brick your device once you flash EU firmware.

Verizon & EU has different partition layout.
[One (M8) General] ahmedhakim39:
thanks for reply but i face big problem to use my network in this edition cant call any number start from 011 i need help i try many custom rom same problem
[One (M8) General] Robert 2:
Please help me. I don't understand what you mean by su and # statements. I need to change to European mid 0p6b1000. But i dont understand the commands very well.

Thanks
[One (M8) General] jshamlet:
You might want to be extraordinarily careful about what you are considering. That said, su is the command that elevates a process to root - in this case, your command shell. The # is the prompt when your shell has root privileges. (if you see the #, you can run commands as root)
[One (M8) General] Robert 2:
Can i do it with out the # thing coz i don't have root attached is my info maybe it can help how to carry out the whole process .
[One (M8) General] jshamlet:
No, you can't, because the partitions you are attempting to change are write protected for normal users for fairly obvious reasons. That is why you have to be both S-off, and using a root shell, to make these changes.
[One (M8) General] Robert 2:
Forgive me if am asking too much but its because i have no option. Can i root my phone with kingroot and will b good to go?
[One (M8) General] jshamlet:
You need both root AND S-off for this mod. Which means you will need to buy a license for Sunshine, the only tool that can perform an S-off. Once you are S-off, there are several methods of obtaining root depending on what version you are on.

Given the questions you are asking, I would back up a bit and make sure you are up to speed on what you are doing. To alter your MID/CID, you will need to:

0) MAKE SURE THIS ISN'T A VERIZON/SPRINT device. If it is, just stop right now because you WILL brick hard.

1) S-off using sunshine. Depending on variant, you may have to use Kingroot to get a temp-root to allow Sunshine to work. This costs $25

2) Root your device (again) either permanently or temporarily. If you only need temp root, Kingroot again is fine. Otherwise,

2A) Install TWRP recovery and use it to permanently root your phone. The recommended procedure varies with OS version.

3) Turn on developer options and ADB support in Settings if you haven't already.

3) Get a root shell on your device using ADB (DO NOT ATTEMPT TO USE A LOCAL TERMINAL) Note that you will be asked to authorized adb the first time you run it as root, so be prepared.

4) Use one of the strings Scotty provided to alter your MID

5) Check the related thread to alter your CID
[One (M8) General] Einwod:
He's S-OFF already as shown in his earlier attachment.
[One (M8) General] Robert 2:
I hav root now from kingroot. I entered these commands

Adb shell and su when phone was in normal and the # appeared. So should i nw reboot to bootloader and paste commands from the post straight

:'(
[One (M8) General] Einwod:
Follow the instructions in the first post. It cannot be more simple.
[One (M8) General] Robert 2:
Thanks for your help. I did it
[One (M8) General] mctodd:
Hi, Do you have MID that works for Asian Network? I want to get OTA. Thanks
[One (M8) General] rhohpex:
Is it possible for someone to post the mid string for 0p6b670? I dont think is mentioned here.
[One (M8) General] ckpv5:
Please edit and remove your big OP quoted in your post.

Is your ROM rooted ? You get permission denied if it is not rooted.

You have TWRP installed, just boot to TWRP then mount system then run command

adb shell (no need to type su after adb shell)

then code for the MID
[One (M8) General] cdarkie:
Thanks

ckpv5 thanks for the info to change the MID, it has changed from 0P6B10\x000 to 0P6B200000 with one extra 0, instead of 0P6B20000 don't know if that will be an issue, will let viewers know. Can you direct me to a link to flash appropriate radio firmware. Thanks again ckpv5 you Rock:D:D
[One (M8) General] cdarkie:
((((( Thank you XDA you are the best ))))))

Big Thanks again ckpv5, found a working nandroid for my VZW M8 here https://www.androidfilehost.com/?fid=24438995911973388 and with the huge help from ckpv5 with the guide to change my modelid here http://xdaforums.com/show....php?t=2708581 and I still could not get Signal until i saw a post from Sojourner353 at http://xdaforums.com/htc-one-m8/general/vomerguides-m8-bootldr-unlock-s-off-t2800727/page5. Got my signal back up and running. Think am gonna hold off for a while on the Roms. :laugh::laugh::laugh: for a day or so.............Thanks guys, love you all, hope I can help someone who has a similar issue as I have gotten help........
[One (M8) General] batryke:
Hello guys, Need help! Im trying to change my MID from Sprint to Europe edition but got stuck because of this problem “permission denied”.

-USB debugged is enable.

-installed adb/htc driver on pc.

-im using windows 10 pro (I tried windows 7 as well but same problem)

Did I miss something or do wrong? Please advice. thanks

C:\miniadb_m8>adb shell

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

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

dd: /dev/block/mmcblk0p5: Permission denied

1|shell@htc_m8:/ $

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.09.20.1112

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 6.20.651.3

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

(bootloader) serialno: xxxxxxxxxxxx

(bootloader) imei: xxxxxxxxxxxxxxx

(bootloader) imei2: Not Support

(bootloader) meid: 99000499068745

(bootloader) product: m8_whl

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B70000

(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: 205bdca3

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0
[One (M8) General] Einwod:
Big mistake. Sprint will never become a European device. It will become an expensive paper weight. Stop the modification NOW.
[One (M8) General] batryke:
Thanks Einwod.. for advice.

I manage to change my MID and flash new european firmware, and rom.. but no signal. I guess thats d reason why i cannot modified sprint into europe. Anyway i change back to Sprint and flashed ICE 8.2.2 rom (european base 6.12.401.4 which support multi variant) and now it works perfectly fine. :good::good::good:
[One (M8) General] redpoint73:
You

cannot

"convert" the Sprint version to

any

other M8 version. The Sprint version is fairly unique. It has different partitioning, radios, etc. from most other M8 versions. Trying to convert it to Euro or any other M8 version will not work, and a

permanent

radio brick is possible (we've seen it happen a number of times). You're lucky in this case you were able to fix the issue with the proper firmware or RUU.

As Einwod directed, do not modify the MID (from the Sprint MID). In the case of the Sprint variant, there is no safe, good reason to change the MID.
[One (M8) General] batryke:
Thanks for clarification,, I dont know which one is correct, on my back phone it is written MODEL OP6B120 which is dev edition, right? and my getvar all showing M8_whl OP6B70000 which is Sprint. I bought my m8 in china 2nd hand. For dev edition m8, it is possible to change into sprint? Im confused :confused: thats why before im trying to change to european. Tnx
[One (M8) General] Einwod:
You have to take the information from fastboot getvar all. The cover has been replaced at some stage. You don't have a dev edition device. Do NOT modify to European. You will get an expensive paper weight.
[One (M8) General] redpoint73:
As Einwod, indicated, you need to go by getvar, which represents the internal hardware of the phone (motherboard, SoC, etc.).

The model ID on the back cover is misleading, and you can't go by it. The back cover was probably replaced to remove the Sprint carrier logo.
[One (M8) General] batryke:
Thanks Einwod and redpoint73 for clarifying :D:D:D
[One (M8) General] nawazdj:
My device is bricked after root and stuck on HTC One logo.

I tried to put your commands to change MID. I enterd "adb shell", my cmd says "Error: device not found". Any solution?
[One (M8) General] ckpv5:
You installed the old version SuperSu zip I believe. Use the latest version SuperSU 2.79

https://s3-us-west-2.amazonaws.com/supersu/download/zip/SuperSU-v2.79-201612051815.zip

You don't need to change MID or anything ... just get back to recovery and install correct SuperSU zip.

If it doesn't work .. restore your ROM backup.
[One (M8) General] nawazdj:
I want to change MID to install European ruu to t-mobile phone. that's why it needed root. After installing SuperSu via twrp it installed successfully the phone booted. I opened SuperSU, tapped on twrp method and something downloaded and the device restarted. From then it stuck on boot logo. Though I can enter Fastboot. Now you tell me what to do.
[One (M8) General] Einwod:
Never take root from twrp. Now, download the latest version of TWRP and flash it. Flash supersu.zip again and DO NOT TAKE THE ROOT OFFERED BY TWRP. Restart your device.
[One (M8) General] nawazdj:
Thanks man. I didn't know that info.

Btw, I've solved the problem. My bootloader was messed up. I flashed it with stock firmware found in [MENTION=830797]ckpv5[/MENTION]'s profile. Then I used HTC's official rom installer and the devices is running fine now. Though I intended to install European rom but it's ok since I got 6.0. Thanks [MENTION=830797]ckpv5[/MENTION], you're life saver.
[One (M8) General] Korshun:
Hello! My phone is Sprint m8 but I notice some weird problem. Why my mid is 11 symbols lenght?

[IMG="My MID"]https://s3.postimg.org/v4fq2pvub/mymid.png[/IMG]
[One (M8) General] Einwod:
Nothing to worry about.
[One (M8) General] Azhar261:
which RUU can instal pleas help me

version: 0.5 version-bootloader: 3.19.0.00version-baseband: 1.09.20.020version-cpld: None version-microp: None version-main: 4.25.651.14 version-misc: PVT SHIP S-OFF serialno: HT44WSF03325 imei: 990004995842964 imei2: Not Support meid: 99000499584296 product: m8_whl platform: hTCBmsm8974 modelid: 0P6B7**** cidnum: BS_US001 battery-status: good battery-voltage: 0mV partition-layout: Generic security: off build-mode: SHIP boot-mode: FASTBOOT commitno-bootloader: 26d3ff23hbootpreupdate: 11 gencheckpt: 0
[One (M8) General] redpoint73:
I see you are new to the forum. This really isn't directly relevant to this thread, and doesn't really belong here. Posts here should relate directly to the process of how to change MID, etc.

But to address your question: you have the Sprint version M8. This version is fairly unique (along with Verizon version) in that it also contains CDMA network support (along with GSM, LTE) for use on the US Sprint network. Due to hardware, partition, and other differences in the Sprint version, you cannot flash the RUU or firmware form any other M8 version. They are not compatible, will not work, and may lead to permanent damage to the device. Further, it is

not

recommended to change the CID or MID for this Sprint device. It looks like you tried to change to the US Developer's Version (CID BS_US001).

I recommend you change back to the Sprint CID (or alternately SuperCID) then try a Sprint RUU: https://xdaforums.com/showthread.php?t=2729173
[One (M8) General] erlange:
I have a Rogers version and wish to enable LTE on Band 3 and 8, which I believe, cannot be done on my phone due to its read-only LTE NV values. Seems the carrier is locked from the hardware. I'm on s-off and can't seem to change the NV values with QXDM. The values always revert back to the original.

Apart from enabling to get the appropriate OTA, will changing the mid also enable me to write the NV values?
[One (M8) General] redpoint73:
No, it won't.

Changing NV values only works for the M8 CDMA variants Verizon and Sprint (and not even Sprint sometimes).

Since you have s-off, you can try to install a radio baseband/firmware for an M8 version which supports LTE bands 3 and 8 (such as Euro or Asia versions M8). But you may still not get LTE service after that.

Also, be really careful what you flash with s-off. Flashing the wrong radio or firmware can brick the phone. But radio of firmware for any "GSM" M8 (not CDMA, or other variants such as dual SIM, eye, etc.) should be okay.
[One (M8) General] morfeas-dsl-:
Is there a way guys to change my MID without rooting?
[One (M8) General] Behold_this:
Sure, all you have to do is run down to your local electronic or carrier store and buy a new device. New device=new mid.

In all seriousness root won't even give you access to change your mid, you need s off.
[One (M8) General] morfeas-dsl-:
i am already with s-off, i am trying to avoid having to root my mobile and set up my data all over again.
[One (M8) General] Behold_this:
Rooting your phone has piss all to do with your data. If you are already s-off and unlocked, like you claim, then there is no reason you can't perform this. Simply flash the latest Superuser package and proceed. If you don't have a custom recovery, of course, you'll need to flash that first but there's no reason you can't if you are unlocked and s-off. Whatever the case, simply ROOTING your phone will never ever remove your data. The only thing that erases your data is unlocking via the official method on HTC Dev.
[One (M8) General] morfeas-dsl-:
If i understood correctly in order to root a HTC m8 i have to unlock my bootloader. If i unlock my bootloader it will erase everything , so that is what i am trying to avoid.

I am just s-off , i havent said anything about unlocked :)
[One (M8) General] jshamlet:
Remember, TWRP offers a root ADB shell and most users can boot it, as opposed to installing it. I haven't tried it myself, but I would imagine that you could boot TWRP from fastboot and alter your MID from there, all without touching any other partition. I'm not sure, but I believe you could even skip the bootloader lock/unlock as well.
[One (M8) General] morfeas-dsl-:
dont i have to unlock the bootloader in order to flash the TWRP though?
[One (M8) General] jshamlet:
You don't understand. I'm saying you can use TWRP's root shell instead of rooting. That is, you want to alter your MID without touching /system or rooting. You aren't flashing anything.

I'm on the developer edition, which behaves differently than the carrier versions, so I can't speak to whether you would need to unlock the bootloader to flash things from TWRP while S-off. However, if you do need to, you should also be able to write to the lock flag from TWRP as well.
[One (M8) General] morfeas-dsl-:
But i am saying to you that i have the original recovery not TWRP.
[One (M8) General] thelangosta:
Check this out. You can boot into twrp from a PC without flashing it. Yes I know my link is for a different phone.

https://forum.fairphone.com/t/howto-use-twrp-without-flashing-it-e-g-for-backup/23747
[One (M8) General] ckpv5:
May I know why actually you want to change MID ? In other thread I read that you want to install EU RUU.

Do note installing RUU will wipe everything on your device so you will lose all settings & data (a thing that you want to avoid).

Is the bootloader UNLOCKED ? Or is it currently LOCKED or RELOCKED ?

It's a simple process to change MID when your device is already S-OFF. Will tell more when I see your feedback on above questions.
[One (M8) General] morfeas-dsl-:
Hello :) .

I have flashed successfully the EU RUU and all went great. I want to change the MID of the Phone ( and the CID since i now have super CID ) to be as stock as possible to the EU version.

My bootloader is not unlocked. It says LOCKED.
[One (M8) General] jshamlet:
It works on the M8 as well. While in flashboot mode, run "flashboot boot twrp.img" It will download the recovery and start it without ever touching the local file system.
[One (M8) General] Behold_this:
If you are s off there's no reason you can't unlock your bootloader
[One (M8) General] redpoint73:
fastboot boot twrp.img
[One (M8) General] ckpv5:
Have you manage to change MID ? With a LOCKED bootloader you need to install a flashable twrp zip and this require no bootloader unlocking so no data lost.

I maybe wrong but AFAIK, you can't fastboot boot or fastboot flash twrp on a LOCKED bootloader even on S-Off device
[One (M8) General] morfeas-dsl-:
no i havent. I do not want to unlock and relock again my bootloader and i dont want to start from a windows twrp. Guess that when i root my phone i will do then the whole procedure :)
[One (M8) General] Einwod:
You won't be rooting without unlocking the bootloader. Why not just unlock it and be done with it? Simple.