• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

How To Guide Unlocking the bootloader and rooting

Search This thread

drcroc

Member
Oct 13, 2021
5
0
Make sure OEM unlocking and usb debuging have applayed. Boot in to system, reset developer options and then enable them back. After that enable OEM unlocking and usb debuging and restart. After reseting and booting back in to SYSTEM power off the phone and hold VOL + and VOL - at the same time. UNLOCKING MENUE should now be shown and you will be able to get in to it by VOL + longpress.
What could cause the "long press volume up: unlock mode" option to just not show up on that menu? I flashed every file including the A12U_USA_SINGLE.pit but for some reason it's not there. I tried what you suggested and then made sure I flashed all the right files but it's still the same.
 

drcroc

Member
Oct 13, 2021
5
0
If you bought the phone in US, I think you are out of luck with unlocking the bootloader. Only if you really want to go in to that rabbit hole with unlocking the primary bootloader on US samsung phones.
what's the rabbit hole? If I can do it at all I'll try, and I have a soldering iron in case I need that. mostly because my only other option is to pay off this phone so I can buy a new one, which I would really rather not be paying any extra money for a phone I can't even do anything fun with
 

LAST_krypton

Senior Member
what's the rabbit hole? If I can do it at all I'll try, and I have a soldering iron in case I need that
I can't really explain how to do that, it is really complicated. I even my self haven't done that yet because I didn't have any need to do it but I know it is hard. Don't belive people that tell you it is impossible because it is possible just like everything in life.
 
  • Like
Reactions: drcroc

LAST_krypton

Senior Member
There are some projects I saw where people made some mods, etc to make thoes things possible. You have the capability to change anything you really want but it requires a lot of knowledge with what you are doing. HARD BRICKING isn't the problem but the problem is to unlock the PBL which probably needs a token from SBL that will let you get premissions to unlock the PBL. I still don't know why you have OEM unlocking in options, it could be a OS thing.
Go look on the forums, there is a samsung service thing ( I forgot how its called, you will find it somewhere) that will let you unlocking the PBL but not for A12. If you know what you are doing you can take the source and modify it for you self.
 

chechumaru

Member
Nov 15, 2017
11
3
Hi, I've unlocked bootloader correctly and when i'm trying to root after using Odin and wiped system and cache, I install magisk and still asks for .tar or .img.
I've tried with different versions of odin and magisk and still doing the same.
Am I missing something?
 

LAST_krypton

Senior Member
Hi, I've unlocked bootloader correctly and when i'm trying to root after using Odin and wiped system and cache, I install magisk and still asks for .tar or .img.
I've tried with different versions of odin and magisk and still doing the same.
Am I missing something?
Could you please explain better. I don't undrstand if you are talking about patching a file or flashing patched magisk.
 

chechumaru

Member
Nov 15, 2017
11
3
Yes, I flashed with the .tar. I've made it twice and has 4,24 gb
1635228307752.png
 

LAST_krypton

Senior Member
  • Like
Reactions: chechumaru

Top Liked Posts

  • There are no posts matching your filters.
  • 3

    DISCLAIMER: I WAS NEVER, HAVE NEVER BEEN, AND WILL NEVER BE RESPONSIBLE OF ANY DAMAGES AGAINST YOUR DEVICES BY YOUR OWN MIS-OPERATIONS

    Code:
    # knox_bit_warranty:0x1
    #
    # Your warranty is now void
    #
    # You have been warned.
    #
    # I will laught at you if you point the finger at me.


    UNLOCKING BOOTLOADER

    1. Open settings app
    2. Tap on about phone, and then software information
    3. Tap the build number until you see a pop up that says developer options enabled
    4. Go back and tap on developer options
    5. Enable OEM unlocking
    6. Reboot your phone
    7. After reboot power off the phone
    8. Conect the usb cable to your pc and phone, then hold VOL + and VOL - at the same time
    9. There should be two options, you want the unlock mode (VOL UP LONG PRESS)
    10. After holding VOL UP for 10 seconeds you should get in to the screen that will let you unlock the OEM so now just press VOL UP.
    11. Phone will reboot, during setup conect to the internet to avoid perenormal mode
    12. Check in developer options if oem unlocking is grayed out, if it isn't factory reset data and wipe chace partiton will have to be done.

    ROOTING

    1. Download the fimware you are currently running https://samfw.com/
    2. Copy the AP file to your phone
    3. Install magisk canary version, download app-debug.apk and install https://github.com/topjohnwu/magisk_files/tree/canary
    4. Open magisk, check for updates
    5. Tap install and then tap select and patch a file and find the AP file you transferd from your pc
    6. In the download folder of the phone will be a file named magisk_patched-xxxxxxx.tar
    7. Transfer it to your pc
    8. Boot the phone in to download mode, manualy or from adb shell (adb reboot download)
    9. Open odin and go in to options and uncheck auto reboot
    10. Click on AP or PDA and select the patched magisk file and click start
    11. Reboot the phone manualy after odin does it's thing (VOL - and POWER at the same time for 7 seconeds).
    After the phone turns off, amedietly boot in to recovery (Vol + and POWER at the same time)
    12. Make a factory data reset and whipe cache partition
    13. Reboot in to system
    14. Conect to interent during setup
    15. Enable dev options by taping on build number 7 time. OEM UNLOCKING must be grayed out.
    16. Install the same magisk (app-debug.apk)
    17. Ignore the pop up that says magisk needs inital setup and click on update
    18. After updateing, go back in to magisk and if you get the pop up for aditional setup, ignore it and go straight to install
    19. Click on direct install
    20. After flash reboot
    21. Check in developer options if oem unlocking is grayed out, if it isn't the instalation process will have to be followed again


    THIS IS A OLD METHOD OF INSTALLING TWRP
    INSTALLING TWRP, I RECOMEND FOLOWING MY LATEST GUIDE

    INSTALLING TWRP OLD METHOD

    # If you are not on the A125F or A127F you might have to do a crossflashing fimware operation
    1. Make sure you are on android 11 and that you pre rooted your phone already
    2. Download twrp from here https://forum.xda-developers.com/t/aosp-11-unofficial-samsung-sm-a125f-twrp.4317131/
    3. Boot in to download mode
    3. Go in to odin and uncheck auto reboot
    4. Click on AP or PDA and select the twrp file you have downloaded, click start
    5. Manualy reboot (VOL - and POWER for 7 seconeds)
    6. Boot in to twrp before booting in to system (VOL + and power) or this process will have to be repeated
    7. Swipe allow modifications of system and reboot


    Links

    Credits
    @edward0181 twrp
    1
    Code:
    Your warranty is now void
    # I'm not responsible for any damage done to your device
    # If you point the finger at me, I will laught at you
    1
    Code:
    # Your warranty is now void
    # I'm not responsible for any damage done to your device
    # If you point the finger at me, I will laught at you


    UNLOCKING BOOTLOADER
    Code:
    1. Open settings app
    2. Tap on about phone, and then software information
    3. Tap the build number until you see a pop up that says developer options enabled
    4. Go back and tap on developer options
    5. Enable OEM unlocking
    6. Reboot your phone
    7. After reboot power off the phone
    8. Conect the usb cable to your pc and phone, then hold VOL + and VOL - at the same time
    9. There should be two options, you want the unlock mode (VOL UP LONG PRESS)
    10. VOL UP for bootloader unlock
    11. Phone will reboot, during setup conect to the internet to avoid perenormal mode
    ROOTING
    Code:
    1. Download the fimware you are currently running https://samfw.com/
    2. Copy the AP file to your phone
    3. Install magisk canary version, download app-debug.apk and install https://github.com/topjohnwu/magisk_files/tree/canary
    4. Open magisk, check for updates
    5. Tap install and then tap select and patch a file and find the AP file you transferd from your pc
    6. In the download folder of the phone will be a file named magisk_patched-xxxxxxx.tar
    7. Transfer it to your pc
    8. Boot the phone in to download mode, manualy or from adb shell (adb reboot download)
    9. Open odin and go in to options and uncheck auto reboot
    10. Click on AP or PDA and select the patched magisk file and click start
    11. Reboot the phone manualy after odin does it's thing (VOL - and POWER at the same time for 7 seconeds)
    12. After the phone turns of, amedietly boot in to recovery (Vol + and POWER at the same time)
    13. Make a factory data reset and whipe cache partition
    14. Reboot in to system
    15. Conect to interent during setup
    16. Install the same magisk (app-debug.apk)
    17. Ignore the pop up that says magisk needs inital setup and click on update
    18. After updateing go back in to magisk and if you get the pop up for aditional setup, ignore it and go straight to install
    19. Click on direct install
    19. After setup reboot
    INSTALLING TWRP
    Code:
    If you are not on the A125F model you will have to disable MTK Secure Boot and Secure Download and might also downgrade SW REV and then install A125F fimware
    1. Make sure you are on android 11 and that you pre rooted your phone already
    2. Download twrp from here https://forum.xda-developers.com/t/aosp-11-unofficial-samsung-sm-a125f-twrp.4317131/
    3. Boot in to download mode
    3. Go in to odin and uncheck auto reboot
    4. Click on AP or PDA and select the twrp file you have downloaded, click start
    5. Manualy reboot (VOL - and POWER for 7 seconeds)
    6. Boot in to twrp before booting in to system (VOL + and power) or this process will have to be repeated
    7. Swipe allow modifications of system and reboot

    Links

    Credits
    @edward0181 twrp

    Thanks for the wide guide. TWRP build has been updated in my post as well.
    All works as it should.

    May I ask you to post a guide on howto install Lineage GSI with twrp?

    Cheers
    1
    Thanks for the wide guide. TWRP build has been updated in my post as well.
    All works as it should.

    May I ask you to post a guide on howto install Lineage GSI with twrp?

    Cheers
    Ok sure, I will do it when I get time.
    Cheers
    1
    I explained it here, if it still doesn't work then comment again here.