yashsingh1/xdaforums huggingface dataset:
[One (M9) General] QMeek:
I have a Galaxy S3 i747M (d2can) and I don't see the same files. I have requested an unlock code but nor response yet and I suspect I'm not going to get one. Any suggestions how to proceed? Here is a dump of the blocks on my phone.

root@d2can:/dev # ls -al ./block/platform/msm_sdcc.1/by-name

lrwxrwxrwx root root 2013-12-31 23:43 aboot -> /dev/block/mmcblk0p5

lrwxrwxrwx root root 2013-12-31 23:43 backup -> /dev/block/mmcblk0p20

lrwxrwxrwx root root 2013-12-31 23:43 boot -> /dev/block/mmcblk0p7

lrwxrwxrwx root root 2013-12-31 23:43 cache -> /dev/block/mmcblk0p17

lrwxrwxrwx root root 2013-12-31 23:43 efs -> /dev/block/mmcblk0p11

lrwxrwxrwx root root 2013-12-31 23:43 fota -> /dev/block/mmcblk0p19

lrwxrwxrwx root root 2013-12-31 23:43 fsg -> /dev/block/mmcblk0p21

lrwxrwxrwx root root 2013-12-31 23:43 grow -> /dev/block/mmcblk0p23

lrwxrwxrwx root root 2013-12-31 23:43 modem -> /dev/block/mmcblk0p1

lrwxrwxrwx root root 2013-12-31 23:43 modemst1 -> /dev/block/mmcblk0p12

lrwxrwxrwx root root 2013-12-31 23:43 modemst2 -> /dev/block/mmcblk0p13

lrwxrwxrwx root root 2013-12-31 23:43 pad -> /dev/block/mmcblk0p9

lrwxrwxrwx root root 2013-12-31 23:43 param -> /dev/block/mmcblk0p10

lrwxrwxrwx root root 2013-12-31 23:43 persist -> /dev/block/mmcblk0p16

lrwxrwxrwx root root 2013-12-31 23:43 recovery -> /dev/block/mmcblk0p18

lrwxrwxrwx root root 2013-12-31 23:43 rpm -> /dev/block/mmcblk0p6

lrwxrwxrwx root root 2013-12-31 23:43 sbl1 -> /dev/block/mmcblk0p2

lrwxrwxrwx root root 2013-12-31 23:43 sbl2 -> /dev/block/mmcblk0p3

lrwxrwxrwx root root 2013-12-31 23:43 sbl3 -> /dev/block/mmcblk0p4

lrwxrwxrwx root root 2013-12-31 23:43 ssd -> /dev/block/mmcblk0p22

lrwxrwxrwx root root 2013-12-31 23:43 system -> /dev/block/mmcblk0p14

lrwxrwxrwx root root 2013-12-31 23:43 tz -> /dev/block/mmcblk0p8

lrwxrwxrwx root root 2013-12-31 23:43 userdata -> /dev/block/mmcblk0p15

I don't have a file called mmcblk0p52

I have looked in all of these files (with HxD) and don't see anything like your locked file.
[One (M9) General] iBowToAndroid:
A Samsung phone isn't going to be anything like an HTC phone, when it comes to something like this.

If you still have the phone and still are need of getting it SIM unlocked, I can help with that. PM if interested
[One (M9) General] QMeek:
Thanks for the offer but i managed to unlock it with the code i received ($19). Had to try many times and i believe when i was successful, it was because i had a stock ROM flashed, no root or twrp.
[One (M9) General] iBowToAndroid:
Ahh okay good :)
[One (M9) General] Yamabong joel:
Greetings please I need a code to unlock my HTC one m 9
[One (M9) General] iBowToAndroid:
What country and network is it originally from?
[One (M9) General] stifilz:
Thank you for testing. I am adding you to the credits and I am updating the first post now :)

EDIT: [MENTION=6602852]bigp951[/MENTION]

You may want to check out http://xdaforums.com/one-m9/general/how-to-change-network-bands-gsm-devices-t3135401 for adding bands to your At&T device for T-Mobile :)
[One (M9) General] bigp951:
I will thank you.

Also thank you for clear and precise instructions! It does not get any easier than that. :D
[One (M9) General] grim489:
Glad you guys were able to confirm, I still haven't come across anybody :/
[One (M9) General] stifilz:
Yeah aye, not much point if you can't test with a Sim :p
[One (M9) General] bigp951:
I believe it failed because I did not delete the pulled file from the sd card. So I think after pulling the file to compare there is a file that is left on the sd card and it needs to be deleted or renamed before attempting to push a new one on with the same name. Not really sure though. When I manually put it on the root of my card using file explorer I renamed the old file before pasting the new one in and it was smooth sailing from there. The phone is now on the Eragon rom using the newest firmware and working great.
[One (M9) General] stifilz:
Ah yes, that would be it. I automatically use rm (remove) commands where need be. Lol. I have updated the OP to dump to mmcblk0p52old and write from mmcbl0p52new. :) Simple as. I am still stoked that it actually worked... It seemed possible in theory.

$4 well spent by me if it helps those that can't get an unlock code :)

Now to unlock this sprint.... Haha
[One (M9) General] bigp951:
I paid $13 about 3 hours before I saw your post last night. They still haven't provided me with a code and I demanded a refund. Long story short they offered me two free vouchers to use their unlock service if I drop the paypal claim.

You can have one of the vouchers if you want to unlock your sprint phone. Not sure on how quick they will provide the code though.

Edit- also not sure if this helps http://www.sprint.com/legal/unlocking_policy.html
[One (M9) General] stifilz:
Hmmmm. Yeah I've seen that link before. Pretty sure I need to wait for the same hack that was done one the M7 and M8 using Sprints own unlocking program. Does that website support Sprint? As there is nowhere to enter the unlock code :(
[One (M9) General] bigp951:
It says all htc phones. I'm just kind of leery about dropping my claim and then they renig on the deal.

This is the link for the service here . I haven't responded to their offer yet but if you want to try it out than I will. It's the least I can do.
[One (M9) General] stifilz:
I doubt it will help with Sprint as there is nowhere to enter the code. It doesn't prompt for it at all :( Get your money back :)
[One (M9) General] bigp951:
will do... Let me know if I can help with anything and if AT&T sends me the code on tuesday I will post the new partition.
[One (M9) General] stifilz:
Any feedback? The poll is moving but no comments :(
[One (M9) General] INFRNL:
From what i can tell, this will work on a T-Mobile varient to use on att?
[One (M9) General] stifilz:
Yes. :). Not sure if you have to change rom first. Probably not as you don't require the Sim Lock code prompt as you are changing the partition. :)

Best of luck
[One (M9) General] donmarkoni:
Unlocked, re-locked while testing another unlock method, which sadly failed, then unlocked again. ;)
[One (M9) General] jollywhitefoot:
Used this method without error on my AT&T M9. Thanks!
[One (M9) General] vfrvulcan:
Don't have a another nano-SIM to check with at mo but appears to be successful on UK EE M9

Thanks!
[One (M9) General] Strangeland16:
seemed to work on vodafone uk question if i install a different rom will i have to do it again or will it stick pls ?

also if i go back to sock settings as phone was when i got it will i loose sim unlock in other words do i need to be rooted for this to always be sim unlocked please
[One (M9) General] Jonny:
No, SIM unlock should stick.
[One (M9) General] ElBerryKM13:
Worked on my tmobile m9 running 5.0.2. Thank you OP!
[One (M9) General] stifilz:
Glad to see it is working for so many. Please remember to use the POLL and leave a comment :)

Sim unlock stayed through the 5.1 update too :D

I knew it would

Thanks all for the support
[One (M9) General] Nilsonf:
Did this to my T-Mobile M9 but haven't been able to test it with a different carrier
[One (M9) General] Strangeland16:
confirmed working on vodafone uk locked. as stated in my previous post i thought it had worked and finaly today recieved my 02 sim card in the post popped in and boom no sim lock still got a three and ee card on the way but i see no reason it wont work thank you so much
[One (M9) General] Lrs121:
Both files compare so it should be working on my T-Mobile variant but i am unable to test it.
[One (M9) General] stifilz:
Some good results here. :)

Is there anyone that is Sim unlocked by using a code that can dump their mmcblk0p52?

It would be interesting to see if it is the same as my partition or if everyone is just 'cloning' mine. Hahaha

Thanks again for the support guys, not having any luck with my Sprint M9 though :p
[One (M9) General] WildsideUK:
Vodafone UK - Identical file, worked for me. Not S-Off.
[One (M9) General] abieofficial:
Sprint

Try to any method from M7, One Max & M8. Still didn't work. Hmm. Hope someone mod Omadm_spcs.apk or maybe with omadm_tool_spcs (maybe additional).
[One (M9) General] beanerbeats:
video tutorial

maybe a video tutorial will help ?

---------- Post added at 02:25 PM ---------- Previous post was at 01:37 PM ----------

never mind i just tried it on my t-mobile variant htc one m9 and it worked
[One (M9) General] stifilz:
Not S-Off :)

Thanks for the confirmation :D
[One (M9) General] sssergeysss:
Help

please tell me! I live in Ukraine! I bought a HTC One M9 contract Sprint! How do I unlock GSM? Thanks!
[One (M9) General] stifilz:
No unlock method for Sprint yet. We must wait
[One (M9) General] sssergeysss:
help

but what is it? what do you think? htcunlockingservice.c
[One (M9) General] flo musti:
Works on Three Ireland ....Thanks very much ...
[One (M9) General] sssergeysss:
Caution

I did not send the code took 24 hours! Ah ah ah! I'm from Ukraine! We have a lot of money!
[One (M9) General] stifilz:
How can you enter the code on Sprint??
[One (M9) General] sssergeysss:
sergey

I do not know where to enter the code! I thought that they prompt where to enter the code! But no, they just said that the phone will prompt you to enter the code when another SIM card! By the way the code was sent! Can you tell me where to enter the code! But I think that to enter the code will not work!
[One (M9) General] stifilz:
There is no way to enter the code. Sprint is CDMA with GSM. Not a GSM only device. Sprint has a different way to SIM unlock :(
[One (M9) General] sssergeysss:
sergey

What do you think about this?

http://xdaforums.com/sprint-one-m9/general/m9-sprint-unlock-ok-t3163460
[One (M9) General] chogardjr:
I went through three days on the phone between Sprint and T-Mobile where at first I was told I could bring my sprint m9 to T-Mobile. But after looking talks, chats and paying ETF's to get unlock codes.... it does nothing at all. You CAN NOT unlock a sprint phone and do what you would expect. They could work but only 2g data, no calls, no texts and definitely no LTE data. Just sell the phone on swappa and buy another one that's truly GSM unlocked.
[One (M9) General] sssergeysss:
That's what I said on this site:

Dear customer, we have sent a request to carrier technical team, they will activate your phone 6 digit MSL code

in next 24 hours and you will be able to switch to another carrier after reading MSL code from your device.

Now you need to root your phone and install this MSL Reader app:

https://www.sendspace.com/file/saq6z7

Install this app please, open it, it will ask for root permission, allow, then click Read MSL, it will show you 6 digit code,

please save this code and go to any CDMA carrier office and during flashing process in their office say this 6 digit code to technical manager.

Best regards

P.S. if you need a guide with step by step rooting instruction, please let us know, we will create it for your device.
[One (M9) General] stifilz:
For those that missed it, Sprint unlock is here http://xdaforums.com/sprint-one-m9/general/sim-unlock-thanks-to-gcprokey-t3166761/post62070415
[One (M9) General] yousuc:
Sorry confirmed it is identical now. Pushed the unlocked and it did take just fine.
[One (M9) General] cokitoalr83:
how u get it?

hello! can u please tell me how u get that file? im newbie at this, i have an HTC ONE M9 already boot unlocked, SuperSU installed and root explorer. what do i do next?
[One (M9) General] yousuc:
Just follow the instructions. The first one is to dump the contents and after exit and exit you pull it from the phone to the directory you have fastboot and adb installed in.
[One (M9) General] cokitoalr83:
i already found the file, in dev directory, so i need to do it with cmd, right?
[One (M9) General] donmarkoni:
I am sorry to say, but if you are not sure and/or can't follow steps from the OP, then you shouldn't be messing with your phone.
[One (M9) General] cokitoalr83:
did it!

i have to say thanks so much! i just did it and it works! if someone wanna some help, u can ask! i can upload some pictures with the steps for newbies ( like me) remember the phone must be rooted and with SUPERSU. without it..u cant unlock the phone. I tried with Tmobile phone.
[One (M9) General] crosshelder:
it worked like a charm. From T-mobile to Meo (Portugal)

Thank's
[One (M9) General] sssergeysss:
sergey

Yes! Please lay out instructions in a photo! Cause I do not know much English, use a translator, the poor quality of the translation! Thank you very much! Skills Sprint M9
[One (M9) General] LLegion:
i do believe sunshine already sim unlocks, but i have not tried yet, ill tell you later...mexico telcel is my carrier.
[One (M9) General] donmarkoni:
Sunshine does S-OFF, but does not SIM unlock every phone, just some, AFAIK.
[One (M9) General] VelosCohagen:
Here's my mmcblk0p52. I'm on Vodafone Germany. File is full with 0's.
[One (M9) General] stifilz:
The only other time I have seen this is on the dev edition. Are you sure yours is Sim locked??
[One (M9) General] VelosCohagen:
I don't know, because i have no second sim card to test. Is there a way to test without a sim card?
[One (M9) General] JoshDaWhite:
Working!!!

It worked on my brother s phone with this!!! It was locked on vodafone uk.Thank you very much dev!!!

So here is my opinion. IT SHOULD WORK ON ANY CARRIER,NO MATTER IF YOUR MMBLOCK FILE IS COMPATIBLE OR NOT!!MY FILE WASN T COMPATIBLE, BUT IT WORKING!!!
[One (M9) General] skulldreamz:
Type getprop in terminal emulator app and one of the lines will say carrier and if next to carrier it says unknown, then your unlocked but if it says your carrier ( T-Mobile for example ) then your still sim locked
[One (M9) General] stifilz:
No problem. Glad it has helped soooooo many XDA members.

Feel free to make a donation via PAYPAL to stifilz2@gmail.com. Thanks to everyone so far for the support :D
[One (M9) General] VelosCohagen:
It says unknown. So i'm sim unlocked, i think.
[One (M9) General] stifilz:
Do you have the original file? It would be interesting to have a look :)
[One (M9) General] iambaba:
method to unlock bootloader for M9 T mobile 5.1.1 because i cant seem to find the fast boot menu
[One (M9) General] bigp951:
Download mode is fast boot. With phone off press volume down and power until it vibrates. Release power but keep holding volume down til it boots into download mode.
[One (M9) General] iambaba:
i have root, Bootloader unlocked and S Off so what app do i use in writing the command. terminal or twrp. please help thanks

---------- Post added at 03:06 AM ---------- Previous post was at 02:15 AM ----------

C:\Users\DIVISOLUTIONS\Desktop>adb push mmcblk0p52-rfg_8-UnLocked.txt /sdcard/mmcblk0p52new

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

error: device not found

C:\Users\DIVISOLUTIONS\Desktop>adb push mmcblk0p52-rfg_8-UnLocked.txt /sdcard/mmcblk0p52new

error: device not found

C:\Users\DIVISOLUTIONS\Desktop>adb push mmcblk0p52-rfg_8-UnLocked.txt /sdcard/mmcblk0p52new

cannot stat 'mmcblk0p52-rfg_8-UnLocked.txt': No such file or directory

C:\Users\DIVISOLUTIONS\Desktop>adb shell

shell@htc_himaul:/ $

shell@htc_himaul:/ $ adb push mmcblk0p52-rfg_8-UnLocked.txt /sdcard/mmcblk0p52new

push mmcblk0p52-rfg_8-UnLocked.txt /sdcard/mmcblk0p52new <

* daemon not running. starting it now on port 5038 *

* daemon started successfully *

error: device not found

1|shell@htc_himaul:/ $ dd if=/sdcard/mmcblk0p52new of=/dev/block/mmcblk0p52

dd if=/sdcard/mmcblk0p52new of=/dev/block/mmcblk0p52

dd: /sdcard/mmcblk0p52new: No such file or directory

1|shell@htc_himaul:/ $ exit

exit

C:\Users\DIVISOLUTIONS\Desktop>adb push mmcblk0p52-rfg_8-UnLocked.txt /sdcard/mmcblk0p52new

cannot stat 'mmcblk0p52-rfg_8-UnLocked.txt': No such file or directory

C:\Users\DIVISOLUTIONS\Desktop>adb push mmcblk0p52-rfg_8-UnLocked.txt /sdcard/mmcblk0p52new

cannot stat 'mmcblk0p52-rfg_8-UnLocked.txt': No such file or directory
[One (M9) General] stifilz:
Files needs to be in your ADB directory and needs to be renamed. These are rather simple instructions :)
[One (M9) General] bigp951:
I recently read somewhere that you have to have an unsecure boot.img in order use adb push... I think I pushed the files using terminal but do not remember for sure.
[One (M9) General] Daltonw1:
Working in Canada!

Just tested the method out, I'm on Telus and it is confirmed working!
[One (M9) General] bl4ckluna:
big thanks.unlock TMOBILE US M9 SUCCESS
[One (M9) General] chavonbravo:
Can someone with a Tmobile M9 please post the contents of "fastboot oem read_mmc emmc 0 3 1 1". I need to look at partition table there. If you help, I can show you how to sim unlock, no adb needed, just s-off.
[One (M9) General] chavonbravo:
Well, might as well help out. In bootloader mode (not same as download mode, even though both communicate via fastboot protocol), simply type in "fastboot flash rfg_8 mmcblk0p52-rfg_8-UnLocked.txt", and then "fastboot reboot", and it should be unlocked. Easier than rooting and running dd commands. The txt file needs to be located in same location as command prompt and fastboot.exe for it to work, otherwise modify last part accordingly to point to the file. Hope it works for you! It does for me, and of course requires S-OFF to work. Haven't tested with S-ON, but it might, or maybe all it needs is bootloader unlock to be able to write rfg_8 partition.
[One (M9) General] stifilz:
I'm sure I tried this way. Lol. If it works then that's awesome. The original way allows users to check that their partition is the same as mine was locked. Although it seems that it doesn't really matter what it was. :)
[One (M9) General] xavierlangevin1:
I can confirm that my HTC M9 (bell simlock) was unlock with your method ! Thanks a lot :)

Model : 0PJA110

Carrier : Bell Mobility

Country : Canada

Security : S-ON , Bootloader unlocked
[One (M9) General] kirack:
Awesome, worked fine on my T-Mobile M9.

I restored the stock Rom, and restored recovery but still can't get the OTA updates to work. getting an error related to partition.

Does anyone one if i flash the original RUU, this unlock will still hold??

i'm not interested in installing any custom ROMs, just want to retain unlock, restore to stock and get OTAs.
[One (M9) General] stifilz:
RUU is safe. It is permanent unlock
[One (M9) General] kirack:
Thanks, will try it out tonight and update
[One (M9) General] Prasad:
This worked great! I'm wondering if it'll stick through a bootloader re-lock ?

EDIT: It did. :)
[One (M9) General] daydream3r:
thank you. Finally got my HTC One m9 unlocked.
[One (M9) General] Ivanovic:
Will a similar approach work in older devices such as desire 300? Care to share the code that you have changed using a hex editor?

Στάλθηκε από το HTC One_M8 μου χρησιμοποιώντας Tapatalk
[One (M9) General] stifilz:
Unlock using sim unlock code. Copy partition. Read on for method on how I worked it out
[One (M9) General] dannyogolo:
Tried it on a T-Mobile v5.1 (bootloader unlocked, flashed twrp)

Everything went ok BUT I had following problems:

adb push mmcblk0p52-rfg_8-UnLocked.txt /sdcard/mmcblk0p52new (OK)

adb shell (OK)

su (adb shows: ~ # ←[6n)

Then I paste "su" at the end, then I get: /sbin/sh: su not found )

dd if=/sdcard/mmcblk0p52new of=/dev/block/mmcblk0p52

256 +0 records in

256 +0 records out

131072 bytes (128.0kb copied, 0.102276 seconds, 1.2MB/s

exit

exit

I also tried by copying into internal SD and modifying name, same result.

Where is my problem?
[One (M9) General] dannyogolo:
I have almost everything done, but when I use "su" on cmd, I get error: su not found

I installed SuperSU
[One (M9) General] cokitoalr83:
Hello! i have a HTC one m9 tmobile clean, im gonna do it again and give u some tips. maybe theres something ure doing wrong. the post is really helpfull, but when ure a newbie like me.. theres some steps u need to figure out on ur own. give me tomorrow and i will post step by step.
[One (M9) General] kamusxervantes:
work on my htc one m9 with s-off on telcel mx carrier in mexico muchisimas gracias a lot of thanks

just one question if i install a new ruu or custom rom i need to do this process again o is just on time ever
[One (M9) General] cokitoalr83:
the unlock process is one time only. u can install any rom.
[One (M9) General] dannyogolo:
How did you S-off?
[One (M9) General] kamusxervantes:
Ok thanks a lot

Enviado desde mi HTC One M9 mediante Tapatalk

---------- Post added at 07:32 PM ---------- Previous post was at 07:31 PM ----------

Whith sunshine and 25 dollars

Enviado desde mi HTC One M9 mediante Tapatalk
[One (M9) General] efrant:
Do you have root? Installing SuperSU form Google Play does not give you root.
[One (M9) General] dannyogolo:
I got a pop up (maybe from twrp) asking me to install SuperSu, and I did.

It installed well.

Or is there another easier way to install SuperSU ?
[One (M9) General] dannyogolo:
Hi bro,

Still awaiting your response.

Thanks
[One (M9) General] stifilz:
Anyone that can't follow the simple guide should probably not be messing with their phone. A simple typo could make your device a BRICK.

Best of luck, there is nothing in the guide the a basic Android user can not do. :)
[One (M9) General] cokitoalr83:
Ok! wich step re u?

---------- Post added at 01:55 AM ---------- Previous post was at 01:18 AM ----------

Ok! so...when u already unlock the bootloader ( its very easy theres lot of youtube vids)

install the recovery ( i recommend follow this link http://zidroid.com/how-to-root-htc-one-m9-and-install-twrp-recovery/ ) Also say how to install SU.

Once u did everything plug ur phone on debugging mode.

rename the file: mmcblk0p52-rfg_8-UnLocked.txt ( u already download from the website) for this name: mmcblk0p52new

and copy the file to the internal memory of the htc one m9.

after u did it

promt cmd

and do this:

C:\>adb shell ...ENTER!

ure gonna get this:

shell@htc_himaul:/ $

then.. just type: SU

ur phone is gonna ask u for permission and choose grant.

ure gonna get this:

root@htc_himaul:/ #

right there just type this: dd if=/sdcard/mmcblk0p52new of=/dev/block/mmcblk0p52

there will be a message saying u already copy one file. and then type exit ENTER. many types.

then ur phone is unlocked! hope this solve some question.

i tried with a HTC ONE M9 tmobile.

if u get an error or something.. just google!

note: if ure on the step of unlock bootloader ..follow all the steps , get the email with the file.. and type: fastboot flash unlocktoken Unlock_code.bin, u get an error..and in ur phone says downloading and nothing happen..reboot ur phone ( press 3 buttons) u have to do it again but.. in the beggining u have to choose all models ... NO htc one m9. ( happened to me)
[One (M9) General] storm234:
great news for all the HTC one M9 users.

by any chance can you also help the guys with Lg G4 model H811 locked by TMO?

I am sure many people will appreciate your effort and will buy you a beer.
[One (M9) General] stifilz:
If you can get partitions of a locked device and an unlocked variant I can compare. :)
[One (M9) General] dirkt68:
Can I do this without wiping my phone
[One (M9) General] stifilz:
Yes
[One (M9) General] valdezpa09:
I can also confirm this works on an ATT m9 with latest updates. Even stuck after flashing ruu for Dev.
[One (M9) General] stifilz:
As it should. My device was an ATT variant :)
[One (M9) General] Hackercorp:
Free? Hmm im bought the unlock code from the unlockingcompany, hmm.
[One (M9) General] Coffinfeeder:
Awesome work. I bought unlock codes that didn't work and your method was flawless.
[One (M9) General] catchyb:
I compared my file with your and it wasn't identical

I did the method and I got those files

my htc m9 is Sprint 5.0.1

http://www.mediafire.com/download/76s5sh9tfcqcfwp/mmcblk0p52old[/url]

http://www.mediafire.com/download/fjix6e4bkbn9ad8/nmdsdcid
[One (M9) General] stifilz:
Read OP. Only for GSM. See my other thread for remote Sprint unlock
[One (M9) General] allier17:
Today sim unlocked by stifilz! Man! You are my hero! Already donated!