Custom binary blocked by frp [secure fail:kernel]

Search This thread

amjadakmal

Member
May 13, 2011
15
5
Auckland
I have down the TWRP recovery and then installed SU Root. It was working fine untill I mistakenly disabled developer options in my settings.

I have done the following already but none of them worked:

Downloaded Kies 3 and Smart Switch Firm Upgrade and Initialization. Tried giving my S/N and Model, but somehow, it is not recognizing my details correctly.

I do not want to load a stock ROM since I do not have a backup of my calls and contacts which are most important to me.

Thanks
 

#Henkate

Senior Member
Feb 1, 2012
3,484
3,124
28
フェアリーテイル
I have down the TWRP recovery and then installed SU Root. It was working fine untill I mistakenly disabled developer options in my settings.

I have done the following already but none of them worked:

Downloaded Kies 3 and Smart Switch Firm Upgrade and Initialization. Tried giving my S/N and Model, but somehow, it is not recognizing my details correctly.

I do not want to load a stock ROM since I do not have a backup of my calls and contacts which are most important to me.

Thanks

Ive had same problem earlier, just because ive wrote "stop" command in terminal emulator without knowing what it does lol, so never write that.
At me was saying FAP, not FRP though, but the way i solved my problem should solve yours too.


GUIDE to restore phone from "Custom binary blocked by FRP/FAP"

If you dont have a backup and you dont want to re-flash stock rom and lose all your stuff, then this will help you.

1. Download ODIN program. I'm using v3.09.

2. If you have J500FN model, then download this .rar file (made by me): J500FN stock recovery & kernel and skip to 3.

If you dont have J500FN model, then download the official stock firmware for your model from HERE or other website.

a) If the downloaded stock rom has .tar.md5 extension, remove .md5, then it should be only .tar
b) Extract the .tar file.
c) Now you will see recovery.img and boot.img. You need to make those two to .tar . To do this, you need a small program.

d) Go HERE and download Caboomi's_Recovery_img2tar_odin_maker from attachements.

e) Now, extract the .zip file, delete the actual recovery.tar.md5 from folder and then copy recovery.img and boot.img from the folder where you extracted .tar file to Caboomi's_Recovery_img2tar_odin_maker.

f) We will make recovery.tar.md5 first. Right-click Runme.bat and choose edit and replace

PHP:
bin\tar -H ustar -c recovery.img > recovery.tar

with

PHP:
bin\tar --group=1 -H ustar -c recovery.img > recovery.tar

And now save it, then run it. After you ran it, you will see recovery.tar.md5

g) Now lets do boot.tar.md5. Right-click Runme.bat and choose edit again. Now replace

PHP:
bin\tar --group=1 -H ustar -c recovery.img > recovery.tar
bin\md5sum -t recovery.tar >> recovery.tar
bin\mv recovery.tar recovery.tar.md5

with

PHP:
bin\tar --group=1 -H ustar -c boot.img > boot.tar
bin\md5sum -t boot.tar >> boot.tar
bin\mv boot.tar boot.tar.md5

And now save it, then run it. After you ran it, you will see boot.tar.md5.

3. I assume your phone is already powered off. Reboot your phone in download mode by keeping pressing Power button + home button + volume DOWN button at same time for few seconds. After an blue screen will appear, press volume up button.

4. Connect your phone with usb cable to your PC.

5. Open ODIN program (if it doesnt work, then right-click it and run it as administrator) and an number should appear at ID:COM. If it doesn't, then make sure that the phone usb drivers are installed.

6. Click on BL and go to the directory where is located the recovery.tar.md5 which we made, click on it and then click on Open. Now click START in ODIN. Wait until the process finish.

7. Now the phone should reboot byself. Power it off and repeat steps from 3. to 5.. Now, click on AP or PDA ( according to the version of odin which you downloaded) and and go to the directory where is located the boot.tar.md5 which we made, click on it and then click on Open. Now click START in ODIN. Wait until the process finish.

8. Phone should reboot again and this time it will boot. All your data is there.

9. Re-enable OEM unlocking in Developer Options again and now you can flash TWRP & kernel again.

10. If this guide helped you, then reply saying that or click thanks button. This way i know that i didnt wrote this guide for nothing :D Thank you!

Like me, you shouldve learnt something from this. ALWAYS have a backup.
 
Last edited:

Winf2005

Member
Jun 8, 2013
17
1
got the same issue (but with J5 (2016))].
Is this working as well?
About data backup I do not care.
 

jedsnow

New member
Apr 3, 2017
1
0
Thanks a lot. Followed all the steps and worked like a charm. Working on model SM-J510GN :)
 

snsmosko

Member
Sep 14, 2014
19
0
HI
I have same problem with custom binary blocked, I tried your fix, but I can't download in download mode, it says MDM MODE CAN'T DOWNLOAD !!!!!

Please help!!
Thanks
 

snsmosko

Member
Sep 14, 2014
19
0
Hi
I have the same problem . but I can't download in download mode, it says "MDM MODE CAN'T DOWNLOAD"

Please help!!!!!!!!!!!!!
 

saykecske

Member
Jul 30, 2017
10
1
Thank you #Henkate, very cool!
Jokes and Trump references aside, this method really worked, worth a try. I downloaded the firmware from sammobile, the speed was limited to 300 kB/sec so it took me 50 minutes but the everything went quite well after, the whole thing took about an hour.
 

vvn2302

New member
Nov 20, 2018
1
0
Hi, doen't work, see comments,

<ID:0/006> Added!!
<OSM> Enter CS for MD5..
<OSM> Check MD5.. Do not unplug the cable..
<OSM> Please wait..
<OSM> boot.tar.md5 is valid.
<OSM> Checking MD5 finished Sucessfully..
<OSM> Leave CS..
<ID:0/006> Odin v.3 engine (ID:6)..
<ID:0/006> File analysis..
<ID:0/006> SetupConnection..
<ID:0/006> Initialzation..
<ID:0/006> Get PIT for mapping..
<ID:0/006> Firmware update start..
<ID:0/006> SingleDownload.
<ID:0/006> boot.img
<ID:0/006> NAND Write Start!!
<ID:0/006> FAIL! (Auth)
<ID:0/006>
<ID:0/006> Complete(Write) operation failed.
<OSM> All threads completed. (succeed 0 / failed 1)

I didn't have choise to execute step 6 : BL choise not activate,
Thanks for Help.
 

Emilyr1992

New member
Dec 18, 2018
1
0
Thank you

I've spent a week trying to open my phone again! It worked. I watched videos etc and changed each file to tar with Odin tool but I couldn't figure out where each img went once it was in tar format! You are awesome
 

nikoskon32

New member
Sep 29, 2022
1
0
After aaaaall tose years this method still works! You are a legend. The only thing to note is that I was not able to locate "Caboomi's_Recovery_img2tar_odin_maker". I just googled "img2tar_odin_maker" and I found a working program. Time to see what I had on my very old phone!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    I have down the TWRP recovery and then installed SU Root. It was working fine untill I mistakenly disabled developer options in my settings.

    I have done the following already but none of them worked:

    Downloaded Kies 3 and Smart Switch Firm Upgrade and Initialization. Tried giving my S/N and Model, but somehow, it is not recognizing my details correctly.

    I do not want to load a stock ROM since I do not have a backup of my calls and contacts which are most important to me.

    Thanks

    Ive had same problem earlier, just because ive wrote "stop" command in terminal emulator without knowing what it does lol, so never write that.
    At me was saying FAP, not FRP though, but the way i solved my problem should solve yours too.


    GUIDE to restore phone from "Custom binary blocked by FRP/FAP"

    If you dont have a backup and you dont want to re-flash stock rom and lose all your stuff, then this will help you.

    1. Download ODIN program. I'm using v3.09.

    2. If you have J500FN model, then download this .rar file (made by me): J500FN stock recovery & kernel and skip to 3.

    If you dont have J500FN model, then download the official stock firmware for your model from HERE or other website.

    a) If the downloaded stock rom has .tar.md5 extension, remove .md5, then it should be only .tar
    b) Extract the .tar file.
    c) Now you will see recovery.img and boot.img. You need to make those two to .tar . To do this, you need a small program.

    d) Go HERE and download Caboomi's_Recovery_img2tar_odin_maker from attachements.

    e) Now, extract the .zip file, delete the actual recovery.tar.md5 from folder and then copy recovery.img and boot.img from the folder where you extracted .tar file to Caboomi's_Recovery_img2tar_odin_maker.

    f) We will make recovery.tar.md5 first. Right-click Runme.bat and choose edit and replace

    PHP:
    bin\tar -H ustar -c recovery.img > recovery.tar

    with

    PHP:
    bin\tar --group=1 -H ustar -c recovery.img > recovery.tar

    And now save it, then run it. After you ran it, you will see recovery.tar.md5

    g) Now lets do boot.tar.md5. Right-click Runme.bat and choose edit again. Now replace

    PHP:
    bin\tar --group=1 -H ustar -c recovery.img > recovery.tar
    bin\md5sum -t recovery.tar >> recovery.tar
    bin\mv recovery.tar recovery.tar.md5

    with

    PHP:
    bin\tar --group=1 -H ustar -c boot.img > boot.tar
    bin\md5sum -t boot.tar >> boot.tar
    bin\mv boot.tar boot.tar.md5

    And now save it, then run it. After you ran it, you will see boot.tar.md5.

    3. I assume your phone is already powered off. Reboot your phone in download mode by keeping pressing Power button + home button + volume DOWN button at same time for few seconds. After an blue screen will appear, press volume up button.

    4. Connect your phone with usb cable to your PC.

    5. Open ODIN program (if it doesnt work, then right-click it and run it as administrator) and an number should appear at ID:COM. If it doesn't, then make sure that the phone usb drivers are installed.

    6. Click on BL and go to the directory where is located the recovery.tar.md5 which we made, click on it and then click on Open. Now click START in ODIN. Wait until the process finish.

    7. Now the phone should reboot byself. Power it off and repeat steps from 3. to 5.. Now, click on AP or PDA ( according to the version of odin which you downloaded) and and go to the directory where is located the boot.tar.md5 which we made, click on it and then click on Open. Now click START in ODIN. Wait until the process finish.

    8. Phone should reboot again and this time it will boot. All your data is there.

    9. Re-enable OEM unlocking in Developer Options again and now you can flash TWRP & kernel again.

    10. If this guide helped you, then reply saying that or click thanks button. This way i know that i didnt wrote this guide for nothing :D Thank you!

    Like me, you shouldve learnt something from this. ALWAYS have a backup.
    5
    I have down the TWRP recovery and then installed SU Root. It was working fine untill I mistakenly disabled developer options in my settings.

    I have done the following already but none of them worked:

    Downloaded Kies 3 and Smart Switch Firm Upgrade and Initialization. Tried giving my S/N and Model, but somehow, it is not recognizing my details correctly.

    I do not want to load a stock ROM since I do not have a backup of my calls and contacts which are most important to me.

    Thanks