yashsingh1/xdaforums huggingface dataset:
[One (M7) General] sieempi:
Y and OTG cables are not the same, make sure you have the Y and it's powered

Trimis de pe al meu HTC One dual sim folosind Tapatalk
[One (M7) General] durius:
Yes, that's what I have. It's a Y powered cable with a micro usb male port that connects to the phone a female micro usb to connect the charger and an usb to connect the usb drive or hard disk
[One (M7) General] andyhostetler:
Lost Power

AT&T sent me a network unlock code for my M7, but it did not register on my phone. I didn't have a Y cable, so I was in the middle of trying a powered USB hub, OTG cable, and jump drive, but everything went South. I thought I had read some success was had using that setup. Regardless, now the jump drive is unrecognizable, and my phone won't even power on. I've tried numerous fixes for no boot (intense light on the sensor, all three buttons, etc.), but nothing has worked. Is it possible to fry the phone and flash drive using a powered hub this way? Any technical explanation?
[One (M7) General] babymatteo:
I just called at&t customer service to get the code. I just called today and got it within 5 mins over the phone.
[One (M7) General] DruoGaby:
hey man hope yall get luck with this soon..looking foward to it ..im on sprint and they wont unlock mines at all!!..tellin me about spending limit!
[One (M7) General] alberto122509:
If it's like the iPhone 5, even if sprint unlocks it for you, it will only work with international gsm networks, it with AT&t or tmobile here in the US
[One (M7) General] DruoGaby:
thats what i mainly need..for away use..international use!..lol
[One (M7) General] fkofilee:
Guys... PEOPLE!!! Calm down ^__^

Could i possibly suggest you have a look at

http://xdaforums.com/showthread.php?t=2024422

its my thread for the HTC Desire C... Is there something we could do by searching the internal storage on the device say as so;

strings -n 8 /dev/block/mmcblk0p6 ?

strings -n 8 /dev/block/mmcblk0p7 ?

Just a thought

After as below

- Adb Shell
SU
strings -n 8 /dev/block/mmcblk0p3

It brings up something about SIMUnlock... now certain areas in the phones memory are going to be conditional and potentially have different data to work with :)
[One (M7) General] mjskraju:
Thanks for chipping in, hope all of your efforts lead to a working solution. Unfortunately, the problem with Sprint version of HTC One is that you won't get the prompt to put unlock code, there are many people who bought unlock codes from 3rd party sites, but there is absolutely no way to put that code in the phone. So, hopefully someone finds the solution for it(Sprint HTC One), which helps international buyers of HTC One like me, I've no way of contacting Sprint, and even if I do, they aren't gonna entertain my request of starting unlocking process. For remaining versions, you can get unlock code around $3. And
[One (M7) General] dirtbikerr450:
I did the same. but in certain country's or different carriers they might not give the code away
[One (M7) General] Zarboz:
[MENTION=4314902]18th.abn[/MENTION]

after talking with kmdm

we got it working

shoot me PM
[One (M7) General] 18th.abn:
Sent you my gtalk
[One (M7) General] mjskraju:
Really!!, so are we gonna hear good news soon?, thanks for all your efforts.
[One (M7) General] Zarboz:
just go ahead and press KMDM's thanks button :D
[One (M7) General] thatotherguy..:
Sprint SIM unlock is working now?
[One (M7) General] retschy:
Nice to hear that it worked in IRC hope I can Start it soon
[One (M7) General] david279:
Gimmie some?
[One (M7) General] Zarboz:
got any linux testers?

and also someone who can do .bat scripts for windows to change over from SH to bat for windows users
[One (M7) General] david279:
I ubuntu...
[One (M7) General] thatotherguy..:
I have it on right now sent it to me
[One (M7) General] twe90kid:
Would be cool if we can see one click options to unlock sim.
[One (M7) General] Zarboz:
well this was a quick bash script i threw together if i get time ill make it more easy but rigth now all you have to do is hit enter and press 1 or 0 depending on a printout of some info

pretty easy if you ask me

and someone CAN CONVERT IT FOR WINDOWS

its just a script

https://www.dropbox.com/s/yt47f35cltc38tu/Sim_unlock.zip

insructions
[One (M7) General] saenz4931:
what sim-unlock will do ?

thanks in advance and sorry for the noob question.
[One (M7) General] mjskraju:
Thanks a lot for your efforts, have done a great job(all the developers KMDM, 18th.abn & every one who contributed to this) :good: Is it tested on Sprint version of HTC One?
[One (M7) General] dbman190:
This won't work for Sprint, unfortunately. I already tried fastboot oem clearsimlock 0 (what the script does) and it doesn't work.

Thanks anyway! It probably will work on all other carriers.
[One (M7) General] pauley:
http://bit.ly/13mLRgc
[One (M7) General] mjskraju:
Damn!! Sprint, can you check one more time by using this new method, if you have Linux PC?
[One (M7) General] tjsooley:
Did not work on att
[One (M7) General] dbman190:
It's the same method as posted earlier and runs the same commands. The script runs the following command after you tell it you have a simlock type 0:

sudo ./fastboot oem clearsimlockcode 0

Which is the same as typing fastboot oem clearsimlockcode 0 on Windows, which is what was in the original instructions.
[One (M7) General] Zarboz:
can you try clearsimlock 2
[One (M7) General] Zarboz:
please give me pastebin of script out put
[One (M7) General] saenz4931:
thanks bro
[One (M7) General] dbman190:
output:

c:\android>fastboot oem readsimlocktype

...

(bootloader) size: simlock = 4256, password = 96, unlock_record = 256

(bootloader) simlock type: 0

OKAY [ 0.016s]

finished. total time: 0.017s

c:\android>fastboot oem clearsimlockcode 2

...

(bootloader) write_simlock(1368): C9F35678, 0

(bootloader) TZ_HTC_SVC_ENC ret = 0

(bootloader) write_simlock(1382): 6E7432F0, 4E07AFC7

(bootloader) [SECURITY] [PGFS] partition_update_pgfs: pg1fs_simlock

OKAY [ 0.044s]

finished. total time: 0.045s

Still get simlock enabled.
[One (M7) General] Zarboz:
odd

it is working on my ATT model
[One (M7) General] david279:
You on sprint?
[One (M7) General] DruoGaby:
Sprint HTC ONE

this is what i get when i do the command

c:\Adb>fastboot oem readsimlocktype

< waiting for device >

...

(bootloader) [ERR] Command error !!!

OKAY [ 0.217s]

finished. total time: 0.218s
[One (M7) General] Zarboz:
have to use ENG hboot

still working on this guys nothing is 100% for everyone yet
[One (M7) General] DruoGaby:
iight bud..i guess the eng boot isnt out there or anything?..or i saw yall say it could be dangerous. id like to see if my sim lock is a 1 or 0..o and will this unlock for it to use with att or tmo?
[One (M7) General] gunnyman:
According to the script I'm now Sim unlocked. FYI script worked on my Mac after replacing the fastboot and adb binaries with Mac versions.
[One (M7) General] david279:
go pop in a SIM.
[One (M7) General] gunnyman:
Don't have one.
[One (M7) General] mjskraju:
Which version of HTC One do you have
[One (M7) General] gunnyman:
AT&T 32 GB
[One (M7) General] thatotherguy..:
I have sprint and it said unlock as well
[One (M7) General] yeahrite:
Just tried the script on mac with adb and fastboot mac version. Script said successfully unlocked on my Rogers HTC One, popped in a Bell SIM but still locked.

Script output:

./simunlock.sh

we only need to be sudo to set permissions and run fastboot properly under ubuntu

feel free to open script and read it first if you want to ensure your security

Password:

4161+0 records in

4161+0 records out

2130432 bytes transferred in 0.755 secs (2821764 bytes/sec)

3708 KB/s (2130432 bytes in 0.561s)

2984 KB/s (2130432 bytes in 0.697s)

4161+0 records in

4161+0 records out

2130432 bytes transferred in 0.188 secs (11332085 bytes/sec)

waiting for fastboot

updated hboot to ENG DONT RUN THIS JUST USE IT FOR THE SIM UNLOCK

please press ENTER to continue

...

(bootloader) size: simlock = 4256, password = 96, unlock_record = 256

(bootloader) simlock type: 1

OKAY [ 0.016s]

finished. total time: 0.016s

is your simlock type 1 or 0? Please input type and press [ENTER]

1...

(bootloader) write_simlock(1368): C9F35678, 1

(bootloader) TZ_HTC_SVC_ENC ret = 0

(bootloader) write_simlock(1382): 40565044, 1CB4405

(bootloader) [SECURITY] [PGFS] partition_update_pgfs: pg1fs_simlock

OKAY [ 0.038s]

finished. total time: 0.038s

Unlocked SIM 1

Congrats your SIM Unlocked :D

Restoring your old Hboot now press any key to continue

...

(bootloader) Start Verify: 0

OKAY [ 0.045s]

finished. total time: 0.045s

press and hold your power key till the black and silver HTC screen

shows up and then please press any key to continue

sending 'hboot' (2080 KB)...

OKAY [ 0.495s]

writing 'hboot'...

OKAY [ 0.429s]

finished. total time: 0.924s

rebooting into bootloader...

OKAY [ 0.036s]

finished. total time: 0.036s

please press and hold power key for 20 seconds or until it reboots

once released phone will boot to bootloader

once in bootloader reboot to system and test your sim unlock

if your device is on black screen and doesnt respond dont panic

type lsusb if qualcomm modem shows you havent held power long enough
[One (M7) General] 18th.abn:
Need help with 2 things......need a sprint user that is simlocked and able to flash hboots. Also needs teamviewer and a second SIM to test with. Pm me

Also a p3 from any HTC one Varients that have been SIM unlocked official thru their carrier...........pm me a dload link and please zip it first...126mb zips to 100kb:)
[One (M7) General] 94tbird:
you got mine so let me know if you need anything else
[One (M7) General] david279:
[MENTION=513895]94tbird[/MENTION] is unlocked...
[One (M7) General] dbman190:
yes
[One (M7) General] 94tbird:
hes got mine already
[One (M7) General] david279:
OK my bad
[One (M7) General] mjskraju:
dbman190 has Sprint One Simlocked & he tried your previous instructions also, so he may help you
[One (M7) General] thatotherguy..:
I have sprint simlock but no extra sim
[One (M7) General] Salival:
So I´m S-OFF. and what is my next step? need to flash eng hboot. but which? I tried enghboot.nb0 in fastboot oem rebootRUU. but failed
[One (M7) General] mjskraju:
I don't know what you are trying to do, but if you are trying for unlocking your phone, then please know that it is still a work in progress, so you may have to wait a little bit.
[One (M7) General] Salival:
Yes I´m trying for unlocking, I know it is dangerous hboot but I will use it only for sim unlock. I did backup my hboot. I´m leaving my country on Monday because of that I need unlock so doing that for 6 hours :/
[One (M7) General] david279:
Chillout it's not ready yet.
[One (M7) General] mjskraju:
Or you(Salival) may contact Zarboz or 18th.abn and see if they can help you out and which version of HTC One you are using?, as of now they only had success in unlocking an AT&T version.
[One (M7) General] Salival:
I know :D. Will wait. better than brick my phone.

---------- Post added at 03:06 AM ---------- Previous post was at 03:04 AM ----------

International GSM. No problem man. I´ll wait. Don´t want to bug them.
[One (M7) General] Wohee:
Well sucks to be the retard and try to follow the guide a few pages back, seems like it never backed up my hboot and now im stuck with the sim unlocking one and i cant load back into my rom.

If anyone can really help unbrick my phone, please send me the backup/myhboot.img , not sure how different it is from one another.

My specifications: 64GB AT&T HTC ONE that was previously S-OFF with Moonshine before attempting sim unlock.

Edit: Well now I think im screwed. Tried flashing the mmcblk0p12 block with a .img I had through recovery adb, now it won't turn on at all.
[One (M7) General] mjskraju:
If you are having an International GSM then what is the need of unlocking your phone.:confused: The international GSM sold by HTC directly are unlocked right out of the box, right?
[One (M7) General] gemini002:
Oh crap tru :eek:

HTC ONE rooted,S-Off,SuperCid

---------- Post added at 02:57 AM ---------- Previous post was at 02:54 AM ----------

Wait moonshine S-off gives you a custom Hboot that is probably your problem

HTC ONE rooted,S-Off,SuperCid
[One (M7) General] djkinetic:
Not sure if this will help but I was in a similar situation yesterday after trying to simunlock then flashing moonshine over revone...I recovered by flashing the stock Att ruu then rerunning moonshine.
[One (M7) General] sanchitgrover:
http://xdaforums.com/showthread.php?t=1659430

Would someone be interested in trying this??
[One (M7) General] 94tbird:
if i wasnt already officially sprint sin unlocked id give it a go right now. But i need my phone in the bahamas in 3 weeks, haha
[One (M7) General] david279:
Well I'm trying
[One (M7) General] DruoGaby:
im on sprint right ..and i tried to flash my new splash and didnt go..i guess this can only be done on moonshine eng hboot?
[One (M7) General] thatotherguy..:
Yea only ms hboot
[One (M7) General] david279:
I tried it and got the config file but bootloader isn't seeing it . gotta find a way for the boot to recognize it.
[One (M7) General] sanchitgrover:
[MENTION=594605]david279[/MENTION] keep us informed !!
[One (M7) General] david279:
Well I got a config file from the link. Put it on the sdcard but the bootloader doesn't see it. It doesn't pick it up.

Funny thing about the file. It has a long number on it followed by a short number.

IEMI+8digitnumber 5digit

I think that 8 digit number is our unlock code. Wonder if there's a way to apply it via a fastboot cmd.
[One (M7) General] djkinetic:
So I tried the script posted which was the same as the instructions posted yesterday, everything said successful, but am still sim locked on ATT, with locktype 1. I'm sure its being worked on as we speak but just throwing my experience in.
[One (M7) General] Salival:
Yeah International GSM but locked on one of my country's carrier. Also I bought code but it's not working.
[One (M7) General] Zarboz:
Try powered otg
[One (M7) General] DruoGaby:
ok i did this for the hell of it just to do it! results!

c:\Adb>adb reboot bootloader

c:\Adb>fastboot oem rebootRUU

...

(bootloader) Start Verify: 0

OKAY [ 0.049s]

finished. total time: 0.049s

c:\Adb>fastboot flash hboot enghboot.nb0

sending 'hboot' (2080 KB)...

OKAY [ 0.460s]

writing 'hboot'...

OKAY [ 0.423s]

finished. total time: 0.884s

c:\Adb>fastboot reboot-bootloader

rebooting into bootloader...

OKAY [ 0.035s]

finished. total time: 0.035s

c:\Adb>fastboot oem readsimlocktype

...

(bootloader) size: simlock = 4256, password = 96, unlock_record = 256

(bootloader) simlock type: 0

OKAY [ 0.017s]

finished. total time: 0.017s

c:\Adb>fastboot oem clearsimlockcode 0

...

(bootloader) write_simlock(1368): C9F35678, 0

(bootloader) TZ_HTC_SVC_ENC ret = 0

(bootloader) write_simlock(1382): 6E7432F0, 4E07AFC7

(bootloader) [SECURITY] [PGFS] partition_update_pgfs: pg1fs_simlock

OKAY [ 0.040s]

finished. total time: 0.040s

...how ever..it still said sim locked when i inserted an old att sim i have lyin around BUT i noticed unlike before...it picked up att's network when i put the sprint sim in and it said ur sim does not allow a connection to this network..dont know if anybody noticed this

Edit: i got confirmation from someone who hasnt done this that they did not pick up any networks :)
[One (M7) General] letmeputdatipin:
Is that eng hboot u flashed there from moonshines S-off?
[One (M7) General] DruoGaby:
nope..same one from in the old post that was deleted..i saw the dropbox link still active so i gave it a shot..lol...someone had quoted it in the sprint forum
[One (M7) General] irishgreen:
I have s sprint variant HTC one and have not done anything. If set phone to gsm/uot and search networks

I get ATT as a result
[One (M7) General] graffixnyc:
I ran the scripts posted yesterday(linux scripts) and everything seemed fine. I have two AT&T One's. Both had locktype 1. However, I popped a TMO sim into one of my One's just now and it shows the sim icon with a lock still, So I'm assuming it didn't take or unlock it. When I went through it all the steps competed without failure so I'm not sure why it didn't unlock it. I will try again later when my battery charges up.
[One (M7) General] david279:
They don't work. Stay tuned for updated info.
[One (M7) General] retschy:
Very hard to wait with a 600€ paperweight on the table :(

Hopefully I will have a chance to change it soon its very hard to leave the One at home when I have to go ;(
[One (M7) General] DruoGaby:
what did u do!!..the one is breakable?..cant read ruu..u cant get to bootloader?..if u can get to bootloader ur phone is fine
[One (M7) General] retschy:
No it is sim locked and there is no code to buy on the unlock sides. I have an old data sim which workes but can not use it like a normal phone.

So if anyone needs help to test something I can try it :)
[One (M7) General] DruoGaby:
ok bro...i have an old att sim to...so i can always check too...just waitin..lol i thought u was bricked...like impossible!
[One (M7) General] igagnidz:
Simlocked Phone - Cant use any SIM

Hi... I was S-OFFing two HTC Ones. Both of them were network unlocked beforehand (using unlock code bought online). After I S-OFFed first phone, I copied mmcblk0p4 from it and edited CID to super CID and then copied it back. It works fine. Then I S-OFFed the second phone and copied already edited mmcblk0p4 from first phone on this one (since it already was edited to super CID). Once I booted the phone it gave me SIM LOCK message. I can enter any code and it tells me network lock successful - rebooting. and after reboot it is sim locked again. It is AT&T Htc One and when I put at&t sim card in, I get same network lock message. First phone was working on AT&T and second one is on T-Mobile... Can anyone help me please? Any help would be greatly appreciated.
[One (M7) General] TheUndertaker21:
Thanks.
[One (M7) General] 18th.abn:
P4 is the main reference to Cid AND imei#. So you now have 2 phones, both with the same imei#. You gotta push the original p4 back to device #2, or hex edit it's correct imei. then enter the unlock code for that imei........
[One (M7) General] 18th.abn:
.......This project is still [WIP] So I'm going to request a moderator to move this thread into the general forums. Thanks everybody for being patient.
[One (M7) General] DruoGaby:
is there a way to obtain this code with out sprint?..or id have to buy one or something..sprint has me on spendin limit so its hard to getsim unlcoked
[One (M7) General] djkinetic:
U still need that image from an unlocked ATT user?

---------- Post added at 03:45 PM ---------- Previous post was at 03:09 PM ----------

Sprint generally doesnt give out unlock codes, they never did when I worked for them years back, and from what I've heard from others they still arent, you could try 3rd party sites, or hope that this S-Off unlock provides results.
[One (M7) General] graffixnyc:
So we can get sim unlock from hex editing the p4 partition?
[One (M7) General] Zarboz:
Just some imei rewriting wich is frowned upon by the FCC
[One (M7) General] DruoGaby:
u ready to spill some beans or what! :)..so ready to unlock my sim!
[One (M7) General] graffixnyc:
Actually you can't really discuss it here due to the legality of it.
[One (M7) General] DruoGaby:
ooO!!!! iight iight..ill pm him
[One (M7) General] pandaball:
Moved to general on OP request.
[One (M7) General] 18th.abn:
No, you can't get SIM unlock thru p4 editing. I was referring to him having the same imei on both phones because he pushed a p4 from 1 device to 2 devices is all
[One (M7) General] djkinetic:
LOL...its more then frowned upon, i'm almost certain IMEI rewriting/spoofing is pretty much considered illegal in any country.
[One (M7) General] Zarboz:
Haha exactly
[One (M7) General] DruoGaby:
i pmed u but no reply man...what im to small to reply to or whut?..help a brotha out!
[One (M7) General] Zarboz:
The details are ........well they violate like four federal laws
[One (M7) General] DruoGaby:
thats why i tried to pm u man...but u dont wanna respond..lol..guess im outta luck..and im not afraid of no lil rules
[One (M7) General] igagnidz:
I did change IMEI to device 2 IMEI. I forgot to mention that. I put same number that was on the back of the device... So I have P4 from first phone with super cid and phone 2 IMEI. It still shows screen with enter SIM IMSI unlock pin. I tried using same unlock pin but it just says successful and then reboots back asking for unlock token.... I didnt make a backup of original p4 partition so my last hope is hboot that allows unlocking simlock...
[One (M7) General] DruoGaby:
yo bro..when u got ur unlock code right..like how do u enter it..through adb or something?
[One (M7) General] 18th.abn:
Were both devices branded to the same carrier at first or were they from different carriers?
[One (M7) General] igagnidz:
I put Tmobile sim and it asks for unlock code... Problem is that now no matter what code i enter, it says unlocked but reboots to locked state. and even if I put at&t sim (that was never locked) shows up as locked...

---------- Post added at 08:48 PM ---------- Previous post was at 08:46 PM ----------

same carriers. both AT&T. both unlocked. Both S-OFFed same way... both have same P4 partition (from first phone, I edited IMEI to correct one before pushing it to second phone). First phone never asked for unlock pin and works with Tmobile. second phone is locked no matter what carrier sim i put in.
[One (M7) General] DruoGaby:
hmm..cool
[One (M7) General] Riyal:
Wow! This was the first time I have heard that changing IMEI is illegal 0.o Here in our country you can just go into a phone repair shop to change your IMEI number using a jtag box and pay a small fee. Some even customize it to their birth dates and some special numbers lol!
[One (M7) General] DruoGaby:
so with all this being said..i can do for example use his imei and his unlock code to unlock sim on my phone?
[One (M7) General] mdiaz33685:
i had my unlocked code may 28, from tmobile, i put a att sim, and old sim, i never wanted to ask for the unlock sim, i never registered there was a sim installed, weird,

I had an old regular sim from Claro from dominican republic, i cut it down, inserted it to my phone, unlocked the sim worked on the 1st shot, installed the att sim, still doesnt register the sim, really weird, i put the claro chip works fine, just that the card is not activated.

i need to get an att sim to try it again.

ps, dont try the unlock sim to many times, u can lockout your phone, i was told that by tmobile.
[One (M7) General] horsetastic:
I've looked in to this stuff a bit. With the last One series phones the SIM unlock was not just to do with IMEI it was a code calculation between IMEI and an unlock code within the same partition file. I've hunted through and done various tests using someone's IMEI, partition and unlock code that they bought to see if I could crack the code but no luck yet.

That said an unlock code that worked for a particular IMEI won't on this phone as it will be looking for the new code combination whatever that may be.
[One (M7) General] DruoGaby:
nice..good luck man..i hopin someone gets a break thru
[One (M7) General] HandlerExploit:
Can someone post a copy of their hboot? I would appreciate it.
[One (M7) General] cschmitt:
Attached is hboot 1.44.0000 pulled from the developer edition 1.29.1540.16 OTA zip.
[One (M7) General] speedyjay:
Was getting really high hopes for this project until I saw the terms "changing imei"....that's illegal in the UK and pretty much everywhere else in the world.
[One (M7) General] HandlerExploit:
Thanks, that is exactly what I needed.
[One (M7) General] zakdoc89:
Not sure how this will fair.. But

http://xdaforums.com/showthread.php?t=2254578

[GUIDE] Sprint HTC One - Obtain SPC / MSL (no root, no activation, no calling Sprint)