[Change CID and MID][S-ON]An interesting way to modify cid and mid on s-on devices

Cherser

Member
Sep 2, 2016
22
3
0
Palakkad
Sorry I forgot to post full instructions - here they are:-

1) Download all the relevant files. You'll need:-
a) RUU from https://forum.xda-developers.com/htc-u11/how-to/htc-u11-stock-rom-ruu-t3741849 (1.24.401.2 Europe)
b) Hex Editor (I used HxD from https://mh-nexus.de/en/hxd/
c) TWRP from https://github.com/sabpprook/android_device_htc_ocm/releases/download/3.2.1-2/twrp-3.2.1-2-ocm.img

2) Unlock your bootloader by going to https://www.htcdev.com/bootloader/

3) Boot into download mode, connect your phone via USB and run (just for reference):-
fastboot getvar cid

4) Install TWRP by running:-
fastboot flash recovery twrp-3.2.1-2-ocm.img

5) Boot into TWRP recovery

6) Select Advanced -> Terminal and enter:-
dd if=/dev/block/sdf1 of=/sdcard/sdf1.img

7) On your PC run:-
adb pull /sdcard/sdf1.img

8) Open the image in HxD and locate HTC__621. Replace with HTC__001. Save the updated disk image

9) On you PC run:-
adb push sdf1.img /sdcard

10) Back in TWRP run:-
dd if=/sdcard/sdf1.img of=/dev/block/sdf1

11) Boot into download mode and verify your updated CID by running:-
fastboot getvar cid

12) Prepare an SD card with the RUU in the root of the card, renamed as 2Q4DIMG.zip.

13) Power off phone & insert SD card. Boot back into Fastboot.

14) You should be prompted to install the RUU. Use volume and power to start the process. This will take a long time.

15) Phone should then boot up in WWE mode.

16) At this point you can relock your bootloader by booting back into download mode and entering:-
fastboot oem lock

Sent from my HTC U11 plus using Tapatalk
adb pull : permission denied
Please help
 
Last edited by a moderator:
  • Like
Reactions: demetrieswain

DeeZZ_NuuZZ

Senior Member
May 16, 2012
11,494
4,548
253
25
Hanover
Sorry can you explain getting files through windows explorer.
Wtf, when you connect the phone, either be in TWRP (it should be mounted via MTP already) or when phone is booted into system (there choose file transfer), then you can see the phone's storage.
Then look in the root of the either internal storage or external storage and transfer the file to your PC to edit it.

Sent from my Google Pixel 3 XL using XDA Labs
 
  • Like
Reactions: demetrieswain

Cherser

Member
Sep 2, 2016
22
3
0
Palakkad
Wtf, when you connect the phone, either be in TWRP (it should be mounted via MTP already) or when phone is booted into system (there choose file transfer), then you can see the phone's storage.
Then look in the root of the either internal storage or external storage and transfer the file to your PC to edit it.

Sent from my Google Pixel 3 XL using XDA Labs
Thank You,
With your information I was able to change from Russian firmware (CID__A70) 1.24.401.2 to Indian firmware (CID__060) 1.24.400.2. I now have VoLTE, also I get ViLTE (carrier video Calling) by rooting the phone, on Jio network.
 
Last edited:
  • Like
Reactions: demetrieswain

mehrdad_esmaeeli

Senior Member
Nov 30, 2017
114
38
0
Sorry I forgot to post full instructions - here they are:-

1) Download all the relevant files. You'll need:-
a) RUU from https://forum.xda-developers.com/htc-u11/how-to/htc-u11-stock-rom-ruu-t3741849 (1.24.401.2 Europe)
b) Hex Editor (I used HxD from https://mh-nexus.de/en/hxd/
c) TWRP from https://github.com/sabpprook/android_device_htc_ocm/releases/download/3.2.1-2/twrp-3.2.1-2-ocm.img

2) Unlock your bootloader by going to https://www.htcdev.com/bootloader/

3) Boot into download mode, connect your phone via USB and run (just for reference):-
fastboot getvar cid

4) Install TWRP by running:-
fastboot flash recovery twrp-3.2.1-2-ocm.img

5) Boot into TWRP recovery

6) Select Advanced -> Terminal and enter:-
dd if=/dev/block/sdf1 of=/sdcard/sdf1.img

7) On your PC run:-
adb pull /sdcard/sdf1.img

8) Open the image in HxD and locate HTC__621. Replace with HTC__001. Save the updated disk image

9) On you PC run:-
adb push sdf1.img /sdcard

10) Back in TWRP run:-
dd if=/sdcard/sdf1.img of=/dev/block/sdf1

11) Boot into download mode and verify your updated CID by running:-
fastboot getvar cid

12) Prepare an SD card with the RUU in the root of the card, renamed as 2Q4DIMG.zip.

13) Power off phone & insert SD card. Boot back into Fastboot.

14) You should be prompted to install the RUU. Use volume and power to start the process. This will take a long time.

15) Phone should then boot up in WWE mode.

16) At this point you can relock your bootloader by booting back into download mode and entering:-
fastboot oem lock

Sent from my HTC U11 plus using Tapatalk
hi my phon is htc u 11
do you sure complet steps is here?
i fear about

---------- Post added at 05:15 AM ---------- Previous post was at 05:12 AM ----------

hi my phon is htc u 11
do you sure complet steps is here?
i fear about
until the fifth step i have no problem
 
Last edited by a moderator:

TThuanAn

Member
Mar 16, 2010
38
9
0
HELPP

2.Open the image file by text editor, find the cid of your phone. For me, it is
Quote:
HTCCN701

change it to the cid you want.
3.Push the image back to your phone by
Quote:
adb push ./sdf1.img /sdcard/sdf1.img


I'm edit sdf1 by text editor.
after flash sdf1.img and reboot. Phone only black screen,
Cannot turn on. no light, PC can recognize phone in fastboot mode.
HELP ME....
 

Ram0007

New member
Apr 30, 2018
4
0
0
Thank You,
With your information I was able to change from Russian firmware (CID__A70) 1.24.401.2 to Indian firmware (CID__060) 1.24.400.2. I now have VoLTE, also I get ViLTE (carrier video Calling) by rooting the phone, on Jio network.
Yup followed the same steps. changed CID__J15 (middle east) to CID__060 (Indian), VoLTE on Jio works fine. I also had to change "version-main" from 1.24.401.12 to 1.24.400.2 by editing the sde1 file located at /dev/block/
 

mehrdad_esmaeeli

Senior Member
Nov 30, 2017
114
38
0
Hi. when I try change version main by htc__version_ tools it's answer 1. Auto and manual????!!!!!!?!? What is this?????
I try in twrp 33 .unluck bootloader and custom rom leedroid
Please explain!!

---------- Post added at 04:56 PM ---------- Previous post was at 04:54 PM ----------

I will change cid for flash ruu 709 tw for update pie
I'm now 401
I unlocked and leedroid custom rom
And twrp installed
 

Lerich2019

New member
Jul 15, 2019
1
0
0
Hi. when I try change version main by htc__version_ tools it's answer 1. Auto and manual????!!!!!!?!? What is this?????
I try in twrp 33 .unluck bootloader and custom rom leedroid
Please explain!!

---------- Post added at 04:56 PM ---------- Previous post was at 04:54 PM ----------

I will change cid for flash ruu 709 tw for update pie
I'm now 401
I unlocked and leedroid custom rom
And twrp installed
Good day) decided to change the seed according to the instructions from the cap, changed to A07, (fastboot getvar cid cid: HTC__A07 Finished. Total time: 0.002s) I reboot into the recovery, throw in the firmware, reboot, but nothing happens. The firmware does not go. What am I doing wrong, tell me
 

jilin.denis2011

New member
Jul 13, 2019
3
0
0
2.Open the image file by text editor, find the cid of your phone. For me, it is
Quote:
HTCCN701

change it to the cid you want.
3.Push the image back to your phone by
Quote:
adb push ./sdf1.img /sdcard/sdf1.img

I'm edit sdf1 by text editor.
after flash sdf1.img and reboot. Phone only black screen,
Cannot turn on. no light, PC can recognize phone in fastboot mode.
HELP ME....
Good day. Solution for firmware and change of cid and mid not found for u11plus Chinese version 2Q4D200 HTCCH701?
 

neoncloud4399

Member
Jun 19, 2018
8
9
0
i think i know why there is FAIL 14
perhaps download mode will check the model name as well, rather than mid and cid only.
DUGL can't flash to be DTWL, vice versa, even if you changed mid and cid.

so if someone knows how to change model name, and change DTWL to DUGL, there should be no problem when flashing any ruu.
 

foosoomin

Senior Member
Oct 1, 2007
184
4
0
How do i get sdf1.img file, is it through typing ADB & type dd if=/dev/block/sdf1 of=/sdcard/sdf1.img ?


I want to change CID for my U12+


Anyone can enlighten me ?

---------- Post added at 02:19 PM ---------- Previous post was at 02:17 PM ----------

My U12+ status

"Locked" bootloader
S-On
Official software


Where to type this dd if=/dev/block/sdf1 of=/sdcard/sdf1.img to get this image file ?
 

foosoomin

Senior Member
Oct 1, 2007
184
4
0
I received this info on my HTC Exodus 1

my phone status

Locked bootloader
S-On
Official software


adb shell
htc_exodugl:/ $ dd if=/dev/block/sdf2 of=/sdcard/sdf2.img
dd: /dev/block/sdf2: Permission denied


Why is it denied ?
 

bnwg

Senior Member
Sep 2, 2010
423
62
28
I received this info on my HTC Exodus 1

my phone status

Locked bootloader
S-On
Official software


adb shell
htc_exodugl:/ $ dd if=/dev/block/sdf2 of=/sdcard/sdf2.img
dd: /dev/block/sdf2: Permission denied


Why is it denied ?
TWRP with Locked bootloader?
 

foosoomin

Senior Member
Oct 1, 2007
184
4
0
@bnwg



Tried booting to temporary TWRP, failed


fastboot flash boot "C:\Program Files (x86)\Minimal ADB and Fastboot\twrp-3.2.3-5-ime.img"

target reported max download size of 995200000 bytes
sending 'boot' (31032 KB)...
OKAY [ 2.113s]
writing 'boot'...
(bootloader) HOSD CL#1067605
FAILED (remote: 9 RU_SECURITY_FAIL boot and bootloader isn't BL_UNLOCKED)
finished. total time: 3.200s



even tried boot_a & failed too




My phone status

Locked bootloader
S-On
Software: Official




Are there any method we can temporary boot TWRP with Locked bootloader ?

---------- Post added at 11:02 PM ---------- Previous post was at 10:48 PM ----------

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot boot "C:\Program Files (x86)\Minimal ADB and Fastboot\twrp-3.2.3-5-ime.img"
downloading 'boot.img'...
OKAY [ 2.025s]
booting...
FAILED (status read failed (Too many links))
finished. total time: 147.912s