[TUTORIAL] Unlock Samsung [GT-S5570 / i5500 / Galaxy Ace]

Search This thread

MJonXDA

Member
Jul 13, 2013
19
3
Rawene
Hi everyone,

I'm confused. I managed to get the bml5.img off my phone and onto my PC. Then I used not one, but two different hex editors to see the .img file.

Put in the Hex string, and I just couldn't find the number. there's plenty of instances of 00000000, but they don't work (I'm not surprised). Is the file encrypted? I don't know. Here it is anyway. I know this thread is old, but I hope someone can still help me, which I'd appreciate very much. Perhaps there's a problem with the language on my operating system, because I don't see any of what you're seeing.

Thanks.
 
Last edited:

MJonXDA

Member
Jul 13, 2013
19
3
Rawene
Hi everyone,

I'm confused. I managed to get the bml5.img off my phone and onto my PC. Then I used not one, but two different hex editors to see the .img file.

Put in the Hex string, and I just couldn't find the number. there's plenty of instances of 00000000, but they don't work (I'm not surprised). Is the file encrypted? I don't know. Here it is anyway. I know this thread is old, but I hope someone can still help me, which I'd appreciate very much. Perhaps there's a problem with the language on my operating system, because I don't see any of what you're seeing.

Thanks.

Edit: Never mind. This is hard-blocked. Apparently the carrier to whom this ROM is supplied by apparently allows free unlocks of the phone after 9 months. This is DEFINITELY the case, so I'll go to the shop to get it done. Thanks.
 

sshuter

Member
Jul 13, 2013
22
0
Is it possible to apply this tutorial to Galaxy Ace 3? I've my phone properly rooted but I can't find bml5.img. I tried both folder with no success (/dev/block/bml5 and /dev/bml5).

Thanks in advance
 

av3d

New member
Nov 22, 2016
1
0
Alternative method

I have a GT-i5500L from movinet with 2.1 frodo.
USB drivers with superclick failed, but the adb included worked fine, just copy the files to windows/syswow64
USB Drivers for win 7 64 I used are these:
Samsung-Galaxy-S-USB-Driver-for-Windows-x64
Superclick was a nightmare with my antivirus, even disabling them failed to root, other methods also failed, UNLOCK ROOT 23 did the job, install it on you computer no need to disable avast nor MS esential, do not install extra stuff like saving battery, click root and its done. You also get superuser installed.
Busybox for android 2.1 was hard to find, check rootedapk I used version 20, I installed it using ADB copy it to syswow64 folder and open cmd go to the folder and type ADB DEVICES enter, ADB INSTALL busybox.apk
Open busybox in your phone and click install, set superuser to authorize automaticly all apps
From google store I installed ES File manager, on the add ons install both, the root add on, and the network add on.
Since I had no free SD available, and all Hex Editors failed to work on my old android, (ES has a useless hex editor too) I used ES File manager to copy the btml5.img file to a network folder, then used xvi32 for searching the hex sequence containing FF+05+OO (not the one you have in this post) I found my code easy on the second "search" two pages down.
Dialing the unlock code did not work, I had to install a new sim and turn on the phone to get into the screen asking for the code.

---------- Post added at 12:59 AM ---------- Previous post was at 12:54 AM ----------

Is it possible to apply this tutorial to Galaxy Ace 3? I've my phone properly rooted but I can't find bml5.img. I tried both folder with no success (/dev/block/bml5 and /dev/bml5).

Thanks in advance

Are you sure your file manager can handle root files? I had problems seen files in the root with the wrong app, folders were there but no files were visible.
 

#Marc

New member
Sep 17, 2017
1
0
Hi, hard work, 3 days trying different things, but at least it works perfect for me with Method 2, Thank´s a lot.
Samsung ACE GT-S5830, Vers. 2.3.6
Had some problems to find the code, maybe this info helps someone.
In my case, searching for ....FF FF 30 30 30 30 30 30 30 30 i got something like
FF FF FF 30 30 30 30 30 30 30 30 0A 30 78 30 31 66 62 61 39 64 63 20 20 30 78 30
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ0x01fba9dc fba0e0
and I thought the code would be "01fba9dc" but later I saw I only could insert numbers and no characters so I searched for 8 numbers and I found something like this:
FF FF FF FF FF 36 38 36 38 36 35 30 34 FF FF FF FF FF.....
ÿÿÿÿÿ68686504ÿÿÿÿÿ

That´s it, Cheers
 

muskaria

New member
Nov 11, 2017
1
0
Worked good with my old s5570!
I'm kind of "amateur", so I had trouble with opening "Command Prompt" in the right folder, but a quick search on internet enlightened me (shift + right click on the folder, "open command window here").
I made all the steps, found the unlock code, but the phone said it was invallid, but i checked with *#7465625# and it appeared to be network unlocked, thanks! :victory:
 

TonganBoii

New member
Oct 19, 2021
3
0
Thanx bro works 100%... but I would like to add something if someone hasn't already... during the hex string search... just search for 00000000... after I searched that... the code came out instantly.... thanx again!!
Screenshot_20211020-013333_HEX Editor.jpg

Unlock your Samsung Phone
[GT-S5570 / more...]

------------------------------------------------------------------------------------------------------------------------------------------------------------
First i would like to say some words about this thread. I made this thread at some users requests, original thread contains some obsolete method for unlocking, making some people brick theyr phone. The last method and safe one, was somewhere mixed through other posts from different method and may confuse users. I just rewrite this from 0 for a better understanding and possible questions, discussions about this. I don't own anything from method used.

Original author of method: tweakradje
Original thread: http://forum.xda-developers.com/showthread.php?t=828534&page=34
------------------------------------------------------------------------------------------------------------------------------------------------------------

This tutorial was tested on a Samsung GT-S5570 ( Galaxy Mini ) but worked on some other models too ( i5500 / Galaxy Ace ). For more details you can search in original thread.

First thing you must know is that in order to keep following this tutorial you must have your phone rooted. Temporary or permanent, both will do the job. For any information about rooting phone ( Android 2.2 / 2.3 ) you can do a quick search on XDA-forum or Google.

Root Desktop App: SuperOneClick
SuperOneClick Root Tutorial: Root Tutorial

Now there are 2 methods for extracting the file we need to obtain unlock code, one using ADB Shell(if you use this method, make sure you have installed Android USB Driver first) or using a Terminal App for phone. ADB comes with Android SDK Tools and Terminal Emulator App from market or somewhere else.

Method 1 (ADB Shell)

- Open one instance of "Command Prompt" and go to folder containing ADB tool (adb.exe). (e.g C:\Program Files (x86)\Android\android-sdk\platform-tools>)
- Make sure your phone is connected to PC and "USB Debugging" it's enabled. (Settings -> Applications -> Development -> USB debugging [X])
- The following commands will be executed in "Command Prompt" that we opened earlier:
Code:
- adb shell
- su
- cat /dev/block/bml5>/sdcard/bml5.img
- exit (2x)
- adb pull /sdcard/bml5.img


So let's understand what we did here. First we run remote shell interactively, grant super-user access, extract the bml5 file to /sdcard then copy it to PC.

The file that we copied to PC should be in C:\Users\~username~\AppData\Local\VirtualStore but you can do a quick search to find it.


Method 2 (Terminal App)

- Open Terminal Emulator app
- Grant Super-user access to application
- The following commands will be executed in current opened application:
Code:
- su
- cat /dev/block/bml5>/sdcard/bml5.img
- exit (2x)
- Close the application.



bml5 -> (BE-EM-EL-FIVE)
2x -> run the command 2 times






Ok, so after using one of these methods we have our file bml5.img in our PC if we used first method or on our /sdcard if we used second method. Keep in mind that we need this file on our PC, so if you used second method just copy the file to PC!
Now comes the part where we need to work with the file that we just extracted. So, in order to get the unlock code we need a HEX Editor, i've used XVI32 Hex Editor to open the file.

Finding the unlock code

- Open XVI32 Application that we just downloaded. Hit CTRL+O and select the bml5.img file that we extracted earlier. (Open the file)
- At the first look we will see just a bunch of FF's and 00's and random decimals or symbols, but somewhere deep in there it's our unlock code.
- Hit CTRL+F to open search dialog, select "Hex String" and put the following search string

(maybe the search string won't be the same for all phones, but the one from above worked for Samsung GT-S5570)
- Mark "Case Sensitive", Direction "Down", Scope from "Begin".
- Click ok, or hit ENTER to start our search.
- So now, we must hit F3 untill we find our unlock code.
Our unlock code will be 8 digits plain text surrounded by unknown symbols just like in image below.



(I've hited F3 like 3 times, but don't know if it's the same for everyone. Also to make sure you see the code, after hitting F3 make sure you go 2-3 rows up to make sure the code is not above the searched string.)
(Unlock code can be finded in multiple places in file, so if you skip one searched string by mistake, just pay attention for next ones)


After getting the unlock code, write it somewhere in PC or paper... close the phone, remove the actual SIM Card, insert a foreign one and turn it ON! Wait untill it boots up, insert the unlock code and your done. Now you have an unlocked phone!




Useful Codes


Details about test environment
Code:
Phone used: Samsung GT-S5570 (Galaxy Mini)
Android Version: 2.3.4 (Gingerbread)
PC Windows: Windows 7 (64-bit)

------------------------------------------------------------------------------------------------------------------------------------------------------------
If you have reached the end of the tutorial and you wasn't able to obtain the unlock code( find numbers like 00000000 / 11111111 ), then it means that your phone it's "Hard Locked" or doesn't have the unlock code provided with the phone. I don't know any solution until now for this problem. For most of the people here, this works flawlessly, for some doesn't work.
------------------------------------------------------------------------------------------------------------------------------------------------------------

If you find this tutorial useful please consider pushing the Thanks button at the end of thread.
thanks.jpg



You can also send me a beer by donating :) Thank
 

TonganBoii

New member
Oct 19, 2021
3
0
Hi everyone,

I'm confused. I managed to get the bml5.img off my phone and onto my PC. Then I used not one, but two different hex editors to see the .img file.

Put in the Hex string, and I just couldn't find the number. there's plenty of instances of 00000000, but they don't work (I'm not surprised). Is the file encrypted? I don't know. Here it is anyway. I know this thread is old, but I hope someone can still help me, which I'd appreciate very much. Perhaps there's a problem with the language on my operating system, because I don't see any of what you're seeing.

Thanks.
In your hex string search... search for "00000000" until u find 8 numbers in order that aren't 0's lol
 

Attachments

  • Screenshot_20211020-013333_HEX Editor.jpg
    Screenshot_20211020-013333_HEX Editor.jpg
    287.8 KB · Views: 2

Top Liked Posts

  • There are no posts matching your filters.
  • 278
    Unlock your Samsung Phone
    [GT-S5570 / more...]

    ------------------------------------------------------------------------------------------------------------------------------------------------------------
    First i would like to say some words about this thread. I made this thread at some users requests, original thread contains some obsolete method for unlocking, making some people brick theyr phone. The last method and safe one, was somewhere mixed through other posts from different method and may confuse users. I just rewrite this from 0 for a better understanding and possible questions, discussions about this. I don't own anything from method used.

    Original author of method: tweakradje
    Original thread: http://forum.xda-developers.com/showthread.php?t=828534&page=34
    ------------------------------------------------------------------------------------------------------------------------------------------------------------

    This tutorial was tested on a Samsung GT-S5570 ( Galaxy Mini ) but worked on some other models too ( i5500 / Galaxy Ace ). For more details you can search in original thread.

    First thing you must know is that in order to keep following this tutorial you must have your phone rooted. Temporary or permanent, both will do the job. For any information about rooting phone ( Android 2.2 / 2.3 ) you can do a quick search on XDA-forum or Google.

    Root Desktop App: SuperOneClick
    SuperOneClick Root Tutorial: Root Tutorial

    Now there are 2 methods for extracting the file we need to obtain unlock code, one using ADB Shell(if you use this method, make sure you have installed Android USB Driver first) or using a Terminal App for phone. ADB comes with Android SDK Tools and Terminal Emulator App from market or somewhere else.

    Method 1 (ADB Shell)

    - Open one instance of "Command Prompt" and go to folder containing ADB tool (adb.exe). (e.g C:\Program Files (x86)\Android\android-sdk\platform-tools>)
    - Make sure your phone is connected to PC and "USB Debugging" it's enabled. (Settings -> Applications -> Development -> USB debugging [X])
    - The following commands will be executed in "Command Prompt" that we opened earlier:
    Code:
    - adb shell
    - su
    - cat /dev/block/bml5>/sdcard/bml5.img
    - exit (2x)
    - adb pull /sdcard/bml5.img


    So let's understand what we did here. First we run remote shell interactively, grant super-user access, extract the bml5 file to /sdcard then copy it to PC.

    The file that we copied to PC should be in C:\Users\~username~\AppData\Local\VirtualStore but you can do a quick search to find it.


    Method 2 (Terminal App)

    - Open Terminal Emulator app
    - Grant Super-user access to application
    - The following commands will be executed in current opened application:
    Code:
    - su
    - cat /dev/block/bml5>/sdcard/bml5.img
    - exit (2x)
    - Close the application.



    bml5 -> (BE-EM-EL-FIVE)
    2x -> run the command 2 times


    Attention: If you run cat command with the path from above and it's says the file doesn't exists or something like that make sure you try "cat /dev/bml5>/sdcard/bml5.img". For Samsung GT-S5570 the files is under /dev/block.

    If you get this message when trying to access .bml file while your connected to PC: Permission Denied then try to get your USB card out of Mass Storage mode, so card won't be used by another process.

    Ok, so after using one of these methods we have our file bml5.img in our PC if we used first method or on our /sdcard if we used second method. Keep in mind that we need this file on our PC, so if you used second method just copy the file to PC!
    Now comes the part where we need to work with the file that we just extracted. So, in order to get the unlock code we need a HEX Editor, i've used XVI32 Hex Editor to open the file.

    Finding the unlock code

    - Open XVI32 Application that we just downloaded. Hit CTRL+O and select the bml5.img file that we extracted earlier. (Open the file)
    - At the first look we will see just a bunch of FF's and 00's and random decimals or symbols, but somewhere deep in there it's our unlock code.
    - Hit CTRL+F to open search dialog, select "Hex String" and put the following search string
    FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 30 30 30 30 30 30 30 30
    (maybe the search string won't be the same for all phones, but the one from above worked for Samsung GT-S5570)
    - Mark "Case Sensitive", Direction "Down", Scope from "Begin".
    - Click ok, or hit ENTER to start our search.
    - So now, we must hit F3 untill we find our unlock code.
    Our unlock code will be 8 digits plain text surrounded by unknown symbols just like in image below.



    (I've hited F3 like 3 times, but don't know if it's the same for everyone. Also to make sure you see the code, after hitting F3 make sure you go 2-3 rows up to make sure the code is not above the searched string.)
    (Unlock code can be finded in multiple places in file, so if you skip one searched string by mistake, just pay attention for next ones)


    After getting the unlock code, write it somewhere in PC or paper... close the phone, remove the actual SIM Card, insert a foreign one and turn it ON! Wait untill it boots up, insert the unlock code and your done. Now you have an unlocked phone!

    Attention: Unlock code can be extracted using a Custom ROM like CM7 in my case, the file was there, but can't be unlocked since the window to insert code doesn't appear(pop-up). In order to unlock your phone you must have a Stock ROM that actually can read any Samsung code and have that Network unlock code window!
    Most custom roms that tries to remove blur break the subsidy lock interface (sim unlock screen doesn't show on them). If you flash other rom and subsidy unlock screen doesn't pop when you insert foreign sim, you will need to flash back stock ROM in order to unlock. So the easyest way for those of you running a Custom ROM, just do a nandroid backup using CWM, flash Stock ROM, unlock your phone then restore your backup. ;)

    Useful Codes
    *#7465625# - Dial code to check if phone it's network locked.
    #7465625*638*UNLOCK-CODE# - Replace UNLOCK-CODE with your 8 digits number, then dial. Phone might reboot.

    Details about test environment
    Code:
    Phone used: Samsung GT-S5570 (Galaxy Mini)
    Android Version: 2.3.4 (Gingerbread)
    PC Windows: Windows 7 (64-bit)

    ------------------------------------------------------------------------------------------------------------------------------------------------------------
    If you have reached the end of the tutorial and you wasn't able to obtain the unlock code( find numbers like 00000000 / 11111111 ), then it means that your phone it's "Hard Locked" or doesn't have the unlock code provided with the phone. I don't know any solution until now for this problem. For most of the people here, this works flawlessly, for some doesn't work.
    ------------------------------------------------------------------------------------------------------------------------------------------------------------

    If you find this tutorial useful please consider pushing the Thanks button at the end of thread.
    thanks.jpg



    You can also send me a beer by donating :) Thank you.
    4
    Galaxy ace

    Working on galaxy ace android 2.2.1 :)
    4
    Unlock your Samsung Phone
    [GT-S5570]

    ------------------------------------------------------------------------------------------------------------------------------------------------------------
    First i would like to say some words about this thread. I made this thread at some users requests, original thread contains some obsolete method for unlocking, making some people brick theyr phone. The last method and safe one, was somewhere mixed through other posts from different method and may confuse users. I just rewrite this from 0 for a better understanding and possible questions, discussions about this. I don't own anything from method used.

    Original author of method: tweakradje
    Original thread: http://forum.xda-developers.com/showthread.php?t=828534&page=34
    ------------------------------------------------------------------------------------------------------------------------------------------------------------

    This tutorial was tested on a Samsung GT-S5570 ( Galaxy Mini ) but worked on some other models too ( i5500 / Galaxy Ace ). For more details you can search in original thread.

    First thing you must know is that in order to keep following this tutorial you must have your phone rooted. Temporary or permanent, both will do the job. For any information about rooting phone ( Android 2.2 / 2.3 ) you can do a quick search on XDA-forum or Google.

    Root Desktop App: SuperOneClick
    SuperOneClick Root Tutorial: Root Tutorial

    Now there are 2 methods for extracting the file we need to obtain unlock code, one using ADB Shell(if you use this method, make sure you have installed Android USB Driver first) or using a Terminal App for phone. ADB comes with Android SDK Tools and Terminal Emulator App from market or somewhere else.

    Method 1 (ADB Shell)

    - Open one instance of "Command Prompt" and go to folder containing ADB tool (adb.exe). (e.g C:\Program Files (x86)\Android\android-sdk\platform-tools>)
    - Make sure your phone is connected to PC and "USB Debugging" it's enabled. (Settings -> Applications -> Development -> USB debugging [X])
    - The following commands will be executed in "Command Prompt" that we opened earlier:
    Code:
    - adb shell
    - su
    - cat /dev/block/bml5>/sdcard/bml5.img
    - exit (2x)
    - adb pull /sdcard/bml5.img


    So let's understand what we did here. First we run remote shell interactively, grant super-user access, extract the bml5 file to /sdcard then copy it to PC.

    The file that we copied to PC should be in C:\Users\~username~\AppData\Local\VirtualStore but you can do a quick search to find it.


    Method 2 (Terminal App)

    - Open Terminal Emulator app
    - Grant Super-user access to application
    - The following commands will be executed in current opened application:
    Code:
    - su
    - cat /dev/block/bml5>/sdcard/bml5.img
    - exit (2x)
    - Close the application.


    bml5 -> (BE-EM-EL-FIVE)
    2x -> run the command 2 times


    Attention: If you run cat command with the path from above and it's says the file doesn't exists or something like that make sure you try "cat /dev/bml5>/sdcard/bml5.img". For Samsung GT-S5570 the files is under /dev/block.

    Ok, so after using one of these methods we have our file bml5.img in our PC if we used first method or on our /sdcard if we used second method. Keep in mind that we need this file on our PC, so if you used second method just copy the file to PC!
    Now comes the part where we need to work with the file that we just extracted. So, in order to get the unlock code we need a HEX Editor, i've used XVI32 Hex Editor to open the file.

    Finding the unlock code

    - Open XVI32 Application that we just downloaded. Hit CTRL+O and select the bml5.img file that we extracted earlier. (Open the file)
    - At the first look we will see just a bunch of FF's and 00's and random decimals or symbols, but somewhere deep in there it's our unlock code.
    - Hit CTRL+F to open search dialog, select "Hex String" and put the following search string
    Code:
    FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 30 30 30 30 30 30 30 30
    (maybe the search string won't be the same for all phones, but the one from above worked for Samsung GT-S5570)
    - Mark "Case Sensitive", Direction "Down", Scope from "Begin".
    - Click ok, or hit ENTER to start our search.
    - So now, we must hit F3 untill we find our unlock code.
    Our unlock code will be 8 digits plain text surrounded by unknown symbols just like in image below.

    (I've hited F3 like 3 times, but don't know if it's the same for everyone. Also to make sure you see the code, after hitting F3 make sure you go 2-3 rows up to make sure the code is not above the searched string.)
    (Unlock code can be finded in multiple places in file, so if you skip one searched string by mistake, just pay attention for next ones)


    After getting the unlock code, write it somewhere in PC or paper... close the phone, remove the actual SIM Card, insert a foreign one and turn it ON! Wait untill it boots up, insert the unlock code and your done. Now you have an unlocked phone!

    Attention: Unlock code can be extracted using a Custom ROM like CM7 in my case, the file was there, but can't be unlocked since the window to insert code doesn't appear(pop-up). In order to unlock your phone you must have a Stock ROM that actually can read any Samsung code and have that Network unlock code window!

    So the easyest way for those of you running a Custom ROM, just do a nandroid backup using CWM, flash Stock ROM, unlock your phone then restore your backup. ;)

    Useful Codes:
    *#7465625# - Dial code to check if phone it's network locked.

    Details about test environment
    Code:
    Phone used: Samsung GT-S5570 (Galaxy Mini)
    Android Version: 2.3.4 (Gingerbread)
    PC Windows: Windows 7 (64-bit)

    ------------------------------------------------------------------------------------------------------------------------------------------------------------
    If you have reached the end of the tutorial and you wasn't able to obtain the unlock code( find numbers like 00000000 / 11111111 ), then it means that your phone it's "Hard Locked" or doesn't have he unlock code provided with the phone. I don't know any solution until now for this problem. For most of the people here this works flawlessly, for some doesn't work.
    ------------------------------------------------------------------------------------------------------------------------------------------------------------

    If you find this tutorial useful please consider pushing the Thanks button at the end of thread.
    thanks.jpg



    This tutorial is useful for me. Thanks! But is there an update on what to do if phone is "Hard Locked"? Thanks again.
    3
    Nice work. I will add it to the OP of my thread.

    Cheers
    3
    Nice work. I will add it to the OP of my thread.

    Cheers
    Nice. Thank you :) i hope it's clear enough.
    Cheers