finally getting around to adding the threads ive promised a couple of you for a while now
if there is interest in changing the lock status( locked to unlocked and vice versa), i need a dump of p2 from someone whos bootloader is displaying unlocked or relocked
you need to be rooted.
enter:
adb shell
su (if needed to get a # prompt)
dd if=/dev/block/mmcblk0p2 of=/sdcard/mmcblk0p2
transfer the file from your phone to your pc, upload it somewhere and pm me a link
note that this is not changing anything,its just dumping the info.
I had uploaded most of stock partitions of m2sd here some time back
https://www.dropbox.com/sh/hiei7b90wl35e66/AACJz5vSLjDiP6975OQWhl_Ka?dl=0
I dont remeber if the status was "unlocked" or "relocked" when i dumped.
Let me knw if u need fresh dump
Sent from my HTC One_E8 dual sim using XDA Free mobile app
Doesn't really matter as long as it is one or the other. I'll take a look when I get home this evening
Sent from my HTC One using Tapatalk
swordfish2009 said:
I had uploaded most of stock partitions of m2sd here some time back
https://www.dropbox.com/sh/hiei7b90wl35e66/AACJz5vSLjDiP6975OQWhl_Ka?dl=0
I dont remeber if the status was "unlocked" or "relocked" when i dumped.
Let me knw if u need fresh dump
Sent from my HTC One_E8 dual sim using XDA Free mobile app
Click to expand...
Click to collapse
thank you kind sir,that was just what i needed. you were unlocked at the time. and s on,lol. i will get a lock status thread up for you guys in the next couple days(im off to work at the moment)
You need a dump from unlocked and S-OFF ?
DutchDanny said:
You need a dump from unlocked and S-OFF ?
Click to expand...
Click to collapse
No, sir I have the information I need. Apparently I have just forgotten to put up your other thread. I will try and get that done in the next couple days
Hey scotty!
Any progress on this?
buggerman said:
Hey scotty!
Any progress on this?
Click to expand...
Click to collapse
doh! appears i have re-forgotten to get a thread up for you guys. it does work as it does on m8,its just a matter of posting it. the m8 commands should work if you dont want to wait for it
lock:
echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796
unlock:
echo -ne "HTCU" | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796
Related
Hi everyone,
I've followed a tutorial that i've seen in a thread to unlock sim my HTC One S S4 (Rooted & with LeeDroid rom), but it doesn't work for me :crying:. I can't find the UNLOCK_CODE when i've done this command "strings -n 8 /dev/block/mmcblk0p6". This is what a i got as an output
mac-addr-............................
20120907
419L527903138
HT23WW417040
1.75.997.1
EBR_Update
Is there a some others ways to find the unlock code?
Thank you in advance
Have you tried method 3 in this thread? http://forum.xda-developers.com/showthread.php?t=1693491
Goatshocker said:
Have you tried method 3 in this thread? http://forum.xda-developers.com/showthread.php?t=1693491
Click to expand...
Click to collapse
Yes, but i can't move the bash script to the /system/ neither with the file explorer nor with the unix command "su mv unlock.sh /system/"
Same problem. I tried the script but does not give me the un_lock_code.. sigh
Sent from my HTC VLE_U using Tapatalk 2
Do u have root access
Sent from my HTC One S using xda app-developers app
k1llacanon said:
Do u have root access
Click to expand...
Click to collapse
Yes my htc is rooted, i've installed a custom rom, and i can execute UNIX commands with su privilege but all 3 methods to unlock sim don't work for me. There's no line in the mmcblk0p6 that contains the Unlock_code
I'm also having the same problem. Was this resolved?
flash backup ROM
Richard1322 said:
I'm also having the same problem. Was this resolved?
Click to expand...
Click to collapse
Had similar problem. Found unlock code in /dev/mmcblk... after rooting but didn't have a foreign SIM to test resulting unlock code until after flashing Cyanogen ROM. Finally bought a PureTalk prepaid SIM prior to traveling abroad to test and unlock code did not work. Before full on panic, flashed nandroid backup of TMO ROM and unlock code worked (whew!) Flashed back to CM10.1 and still unlocked. Now I can travel with phone assurance.
Apparently, you need to be running a SENSE ROM in order for the unlock code to actually work.
--
HTC One S, rooted, SIM unlocked
TWRP recovery
CM10.1
20 years with T-Mobile (formerly VoiceStream)
I have 2 HTC One SV LTE phones. One of them I was able to unlock the bootloader, root, and grab the MSL while it was running ICS. After an OTA JB update everything is running fine and I can still grab the MSL using MSL reader.
My second phone is identical but got the OTA JB update prior to me unlocking the bootloader and rooting. When I try to grab the MSL I get nothing. I've tried every method I could find including running "getprop ril.MSL" directly from adb shell which returns an empty line.
Code:
[email protected]:/ # getprop ril.MSL
getprop ril.MSL
[email protected]:/ #
MSL reader's error log spits out:
Code:
Diagnostic output:
Running as root.
Stopping rild...
Asking for MSL...
0
1.12.50.0516
0
0
Starting rild...
Done.
Diagnostic error:
Does anyone have a method I could employ to get the MSL for my second phone? Or since I know the MSL for one device is there a way to transfer that to my other phone?
I'd appreciate any advice.
Ha! So that is why I kept receiving a blank line! I was on JB before I rooted and unlocked my bootloader. Have you tried reverting back to ICS? I would, but too lazy and at this point I don't need my MSL anymore.
Sent from my C525c using XDA Premium 4 mobile app
yerp01 said:
I have 2 HTC One SV LTE phones. One of them I was able to unlock the bootloader, root, and grab the MSL while it was running ICS. After an OTA JB update everything is running fine and I can still grab the MSL using MSL reader.
My second phone is identical but got the OTA JB update prior to me unlocking the bootloader and rooting. When I try to grab the MSL I get nothing. I've tried every method I could find including running "getprop ril.MSL" directly from adb shell which returns an empty line.
Code:
[email protected]:/ # getprop ril.MSL
getprop ril.MSL
[email protected]:/ #
MSL reader's error log spits out:
Code:
Diagnostic output:
Running as root.
Stopping rild...
Asking for MSL...
0
1.12.50.0516
0
0
Starting rild...
Done.
Diagnostic error:
Does anyone have a method I could employ to get the MSL for my second phone? Or since I know the MSL for one device is there a way to transfer that to my other phone?
I'd appreciate any advice.
Click to expand...
Click to collapse
Hi!! You solved this problem?? I have a HTC One SV from Boost Mobile and the same thing happens to me, can you help me?
If you know any ICS rom to this device please let me know
deltha1791 said:
Hi!! You solved this problem?? I have a HTC One SV from Boost Mobile and the same thing happens to me, can you help me?
If you know any ICS rom to this device please let me know
Click to expand...
Click to collapse
There is an app on the play store called, MSL Reader. Must be rooted to use it. It will display your MSL, but ONLY if you are properly rooted.
Sent from my C525c using Tapatalk
Modding.MyMind said:
There is an app on the play store called, MSL Reader. Must be rooted to use it. It will display your MSL, but ONLY if you are properly rooted.
Sent from my C525c using Tapatalk
Click to expand...
Click to collapse
I used it but throws a wrong code, I'm rooted and bootloader unlocked, S-OFF, TWRP recovery, etc... I think that I need a ICS rom
deltha1791 said:
I used it but throws a wrong code, I'm rooted and bootloader unlocked, S-OFF, TWRP recovery, etc... I think that I need a ICS rom
Click to expand...
Click to collapse
Has nothing to do with the Rom. Works on ICS and JB. Only thing I can think of is either you are making a typo when entering the msl code or the msl is invalid due to a blacklist or your device being inactive.
Sent from my C525c using Tapatalk
Modding.MyMind said:
Has nothing to do with the Rom. Works on ICS and JB. Only thing I can think of is either you are making a typo when entering the msl code or the msl is invalid due to a blacklist or your device being inactive.
Sent from my C525c using Tapatalk
Click to expand...
Click to collapse
Blacklist? Noooo, how I fix that? I'm in México and I dont know nothing of boost mobile or if they can solve this problem, any idea?
Thanks for yours answers
deltha1791 said:
Blacklist? Noooo, how I fix that? I'm in México and I dont know nothing of boost mobile or if they can solve this problem, any idea?
Thanks for yours answers
Click to expand...
Click to collapse
I would assume because you have a device which is a US product over in Mexico. So I also assume your phone isn't even activated which may be your problem there. Not much you can do about that. You would have to settle it with Boost Mobile.
Sent from my C525c using Tapatalk
Modding.MyMind said:
I would assume because you have a device which is a US product over in Mexico. So I also assume your phone isn't even activated which may be your problem there. Not much you can do about that. You would have to settle it with Boost Mobile.
Sent from my C525c using Tapatalk
Click to expand...
Click to collapse
The phone has already been activated in the U.S., I have to communicate with Boost Mobile :/ thanks!!
I attached a picture
deltha1791 said:
The phone has already been activated in the U.S., I have to communicate with Boost Mobile :/ thanks!!
I attached a picture
Click to expand...
Click to collapse
Good luck
Sent from my C525c using Tapatalk
If I move motherboard from an unlocked AT&T infuse to another locked AT&T infuse, will the new phone be unlocked?
[email protected] said:
If I move motherboard from an unlocked AT&T infuse to another locked AT&T infuse, will the new phone be unlocked?
Click to expand...
Click to collapse
what difference does that make?
http://forum.xda-developers.com/showthread.php?t=2554541
unlock is so simple that it's a mute point
same poster different name.
qkster said:
what difference does that make?
http://forum.xda-developers.com/showthread.php?t=2554541
unlock is so simple that it's a mute point
Click to expand...
Click to collapse
I was trying to get a head start on reading that 500+ thread before my new phone comes but was getting overwhelmed and thought there might be a quick answer.
patsys said:
I was trying to get a head start on reading that 500+ thread before my new phone comes but was getting overwhelmed and thought there might be a quick answer.
Click to expand...
Click to collapse
np...
if by switching mobo and the imei recognition on network, just do the unlock. it's very simple
if the phone is on froyo,
here is gb
http://forum.xda-developers.com/showthread.php?t=1524081
http://forum.xda-developers.com/showthread.php?t=1705260
http://forum.xda-developers.com/showthread.php?t=1613523
here is insecure gb kernels you can flash using sgs kernel flasher or in cwm
if you want jb or kk, find the: how to flash jb by andros11
that's about it.
enjoy
unlock phone
after opening a terminal emulator type the following
cd /efs/root/afs/settings <enter>
su <enter> <at this point your phone will ask for superuser access ALLOW it if you already haven't done so>
dd if=nv_data.bin skip=8 count=4 | strings <enter>
Your unlock code will be displayed in terminal emulator. something like this...
4+0 records in
4+0 records out
2048 bytes transferred in 0.001 secs (2048000 bytes/sec)
18164367
00000000
00000000
00000000
00000000
Btw, the nv_data.bin file is located in the same location across froyo, gb, ics or jb. /efs/root/afs/settings
This method, "dd if=nv_data.bin skip=8 count=4 | strings" also works on all platform.
So is this the only thing I have to do to unlock the new (to me) phone, type this string in the terminal emulator on the phone and that's it?
I don't know what OS is yet.
SOLVED
[email protected] said:
If I move motherboard from an unlocked AT&T infuse to another locked AT&T infuse, will the new phone be unlocked?
Click to expand...
Click to collapse
Probably yes. The new phone was unlocked after I put in my mb. However, I do not know if the phone was already unlocked.
Q&A for [S4][Hack][Root] SIM Unlock for FREE
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [S4][Hack][Root] SIM Unlock for FREE. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
Hi can i use this method for all android devices?
Hi, I tried to unlock my HTC One S on 4 differents paid websites, but all say "unfortunately your unlock code cannot be calcuted, please double check your IMEI blabla" ). Since yestarday I kept trying these methods with NO SUCCESS.
Terminal emulator and ADB Shell say String not Fount / No IMEI
I try the method with ES file explorer. The bad news is The file "mmcblk0p6" is crypted when i opened as text. but when i open with notepad++ on my laptop THE IMEI in the file "mmcblk0p6" is completely different when I type *#06#
I calculate the NCK code with both IMEI, phone says "incorrect password" I pay for the IMEI i find in the file, the server send me the same NCK with the app in method 2.
All necessary information about IMEI, model, carrier are in the attachment
Please anyone have an idea?
dwayne_1907 said:
Hi can i use this method for all android devices?
Click to expand...
Click to collapse
No, you can only use this method for HTC One S S4 processor
/system
Exactly where is this location in android ?
/system
simple but very confusing. Everything is /android/device etc.. Thanks
Need unlock code again after reboot
benJX said:
Thanks for your great and very useful work !
I'm actually on Orange FR carrier.
When I insert a sim from another carrier the phone asked me & I wrote the combination.
It said it was now unlocked and when I press "Reboot" the phone freeze instead of rebooting
Any idea ? The CID perhaps ?
Device : hTC One S
About : Facepalm S-OFF -- Hboot 2.16 -- CID HTC__203 -- Radio 1.20
Rom : MaximusHD -- SENSE 5.0 ANDROID 4.2.2
Kernel : ElementalX v6.1
Thx in advance
Edit : I get this error while running the script :
sh: /system/unlock.sh[65]: length: not found
Click to expand...
Click to collapse
I think I have a similar problem.
I have an HTC One S (I think S4 - 1.5Ghz). It is locked to ORange. I unlocked bootloader, rooted and finally managed to get busybox etc installed.
Method 1 and 2 provide the same code-
IMEI: 2547014 (last 7 digits)
Un lock code: 062975078
(sim unlock 61522531)
Method 3 didn't work as I got stuck after loading grep etc via busybox.
When I entered the unlock code I calculated the phone said unlock successful and that a reboot was necessary, but when it rebooted it asked for the unlock code again! I tried a different recovery (was using clockwork, went to twrp but still asked for the code on reboot.
I am scared to re-enter the code as I know I have limited tries - so far I have only entered it the once. I have factory resetted the phone - should I try and enter the code again?
I have now lost the boot screen after the factory reset so I don't think I can check the hboot.
As far as I am aware I did not install a new ROM at any point.
Thankyou thankyou and thankyou :->
We cannot thank you enough for sharing this brief 'tutuorial'. It worked like a charm once we had rooted the phone (which was the tricky part).
In case of it being helpful to anyone else, our device was prepared using:-
- CWM Ville with Touch Recovery ROM image.
- Chainfire SuperSU.
- BusyBox (must use Team Trickster's 'on Rails' initially so as to install from ZIP/SD storage,) followed by an immediate upgrade using the stericson version).
After installing that little lot, the acquisition of the sim unlock code was was a breeze. Thank you again.
Tested on HTC One S (S4)
Locked to Spanish vodafone
Worked like a charm
Had a little trouble installing busybox so installed viper S rom 2 and things went straight
Thank you very much
Cincinatti Bell Wireless
SIM unlock worked great after my crashcourse on rooting, recovery, and the bootloader all last night. But even customer support with HTC and T Mobile told me since it's from Cincinatti Bell Wireless, T Mobiles internet service WILL NOT WORK. :crying:
There's gotta be a work-around. Any way to move a Cincinatti Bell Wireless exclusive phone to T Mobile? There ought to be considering their wireless service is ending in a month. That carrier wasn't even in my area.
asking for unlock sim for different android phone
sir good day this method of unlocking sim is this compatible with other types of android phone? i am trying to use this method but the terminal emulator doesn't appears any of the following as what i can see on the method how can use this method for my phone? any suggestion about my concern more power thanks...... my phone model huawei G526 lte phone....
worked perfectly
thanks so much guyz, i chose method one
Tried all methods, outputting wrong IMEI
Hi guys, I've tried all the methods and I'm ending up at the same unlock code which doesn't work. I noticed the stated IMEI in the bash script is different to my actual IMEI, and so I guess the Un_Lock Code is wrong as well. I've checked the mmcblk0 files using a hex editor and the correct IMEI is in there. Does anyone have any ideas?
I am unlocked, S-off, SuperCID, clockwork Mod recovery, busybox installed, running the Stock ROM from factory reset.
Thanks
hi,
so i can't get unlock code with this command
su [enter]
strings -n 8 /dev/block/mmcblk0p6 [enter]
but it work well with this one
1. Note IMEI *#06#
2. adb shell
dd if=/dev/block/mmcblk0p6 of=/sdcard/mmcp6.dump
3. Open mmcp6.dump on SDCARD
4. Look for in this file your IMEI
5. Just in front of your IMEI a 8-digit code which corresponds to the unlock code
may help some one
with regards
Htc one s root
I'm trying to root my one s but need a unlocked bootloader I would like to use method #1. Because have no computer but you need root. How do I get root without unlocked bootloader. So than I can unlock my phone
Huawei is very covered by releasing any sources for kernel or whatever. But now they made a mistake in latest Firmware EVA-L09C432B386 and forgot some scripts to flash firmwares via fastboot.
I just share some codes of them, but not the whole file cause all can damage the device, until someone find out how this works.
get_root.bat
Code:
adb reboot bootloaderfastboot flash boot sec_boot.img
fastboot flash recovery sec_recovery.img reboot
pause
updateinadb_hi3650.bat
Code:
cls
setlocal enabledelayedexpansion
:start
@echo -----------------------------
@echo %date%-%time% > fastboot_log.txt
@echo %date%-%time%
@echo "Austin Fastboot Updating......" >> fastboot_log.txt
@echo "Austin Fastboot Updating......"
adb reboot bootloader
fastboot flash xloader sec_xloader.img
fastboot flash ptable ptable.img
@if not 0==!ERRORLEVEL! goto error
fastboot flash fastboot sec_fastboot.img
@if not 0==!ERRORLEVEL! goto error
fastboot reboot-bootloader
Code:
@fastboot getvar vendorcountry 2>vendorcountry.txt >> fastboot_log.txt
@fastboot getvar devicemodel 2>devicemodel.txt >> fastboot_log.txt
@for /f "tokens=2 delims= " %%i in ('findstr vendorcountry vendorcountry.txt') do set cur_country=%%i
@for /f "tokens=2 delims= " %%i in ('findstr devicemodel devicemodel.txt') do set cur_model=%%i
@del vendorcountry.txt
@del devicemodel.txt
@if exist vendor_transfer.xml (
@for /f "tokens=1,2 delims= " %%i in (vendor_transfer.xml) do (
@if %cur_country%==%%i (
@set country=%%j
@goto next
)
)
)
@set country=%cur_country%
@set vendorcountry_new=%country:/=_%
@set model=%cur_model%
Code:
C:\Windows\System32\PING.EXE -n 1 127.0.0.1>nul
) else (
if exist %userdata_path%\userdata.img (
echo %userdata_path%\userdata.img 存在 >> fastboot_log.txt
echo fastboot flash userdata %userdata_path%\userdata.img
echo 烧录运营商定制的userdata镜像
fastboot flash userdata %userdata_path%\userdata.img
if not 0==!ERRORLEVEL! goto error
Please not use, or the device gets bricked.
Code not complete, for security reason
It would be great if there was a method to unlock the bootloader without contacting the OEM.
I'm stuck on EMUI4 and Huawei could care less about rolling out updates in my region...
MHBGT said:
It would be great if there was a method to unlock the bootloader without contacting the OEM.
I'm stuck on EMUI4 and Huawei could care less about rolling out updates in my region...
Click to expand...
Click to collapse
DC unlocker.
Wysłane z mojego EVA-L09 przy użyciu Tapatalka
askor said:
DC unlocker.
Wysłane z mojego EVA-L09 przy użyciu Tapatalka
Click to expand...
Click to collapse
Paying for some random app to unlock device that you legally bought, and by any laws you own is not a solution.
Its like having a car, and you would need to go to some shady service center just to open hood. because that what it is, access to engine of car.
And no matter what price it is, it can be even 1cent, paying or even suggesting that its a solution is not good for anyone beside some dude who managed to make business on people problems, and now get a cash everytime when someone want to unlock his own phone.
askor said:
DC unlocker.
Wysłane z mojego EVA-L09 przy użyciu Tapatalka
Click to expand...
Click to collapse
Akinaro said:
Paying for some random app to unlock device that you legally bought, and by any laws you own is not a solution.
Its like having a car, and you would need to go to some shady service center just to open hood. because that what it is, access to engine of car.
And no matter what price it is, it can be even 1cent, paying or even suggesting that its a solution is not good for anyone beside some dude who managed to make business on people problems, and now get a cash everytime when someone want to unlock his own phone.
Click to expand...
Click to collapse
Thank you for answering better than I would have been able to.
There is NOTHING special about these batch files.
I took a look at the whole file and really there is nothing special about this.
Is just flashes every partition via fastboot and if the flash was sucessfull the script will throw back a 1 and continue with the next partition. If the flash is not sucessfull it will throw back a 0 and it will show you the update failed screen.
Nothing special
xtcislove said:
There is NOTHING special about these batch files.
I took a look at the whole file and really there is nothing special about this.
Is just flashes every partition via fastboot and if the flash was sucessfull the script will throw back a 1 and continue with the next partition. If the flash is not sucessfull it will throw back a 0 and it will show you the update failed screen.
Nothing special
Click to expand...
Click to collapse
That's a pity, was hoping someone with more knowledge would be able to verify the OP.
But Alas, I guess it is not to be...
yep thats a pity. U should change the thread name or let it get deleted.
For these commands to work u need an unlocked bootloader either so people here could brick theire phone with the commands you posted.
Maybe not special, but what would you do, if dload gets fully blocked?
xtcislove said:
yep thats a pity. U should change the thread name or let it get deleted.
For these commands to work u need an unlocked bootloader either so people here could brick theire phone with the commands you posted.
Click to expand...
Click to collapse
Why delete this thread he clearly said do not try this it will brick your device so whats the problem here?
safariking said:
Why delete this thread he clearly said do not try this it will brick your device so whats the problem here?
Click to expand...
Click to collapse
this thread is nothing helpful. just confusing. i think thats enough.
is was excited because of "Huawei leaked fastboot flash codes". and many people will waste theire time on this too.
xtcislove said:
this thread is nothing helpful. just confusing. i think thats enough.
is was excited because of "Huawei leaked fastboot flash codes". and many people will waste theire time on this too.
Click to expand...
Click to collapse
So? ? if you dont like it dont read it and waste your time on something else
So you are fine with misleading information?
MHBGT said:
So you are fine with misleading information?
Click to expand...
Click to collapse
Oh god please...
xtcislove said:
There is NOTHING special about these batch files.
I took a look at the whole file and really there is nothing special about this.
Is just flashes every partition via fastboot and if the flash was sucessfull the script will throw back a 1 and continue with the next partition. If the flash is not sucessfull it will throw back a 0 and it will show you the update failed screen.
Nothing special
Click to expand...
Click to collapse
I think you don't get the point.
The files mentioned in the OP are special in that they're signed by Huawei, and therefore can be flashed, other than any flash files created by someone else which would fail signature check and therefore rejected.
Considering the naming, it is very likely that they would indeed unlock the (secondary) boot loader.
They have some background, because they stored it in every firmware now on Hisi95x.