Development [AOSP-11] [OFFICIAL] Samsung SM-A125F TWRP

Search This thread

edward0181

Senior Member
Jul 28, 2013
220
85
Spijkenisse
Samsung Galaxy A12
DISCLAIMER: I WAS NEVER, HAVE NEVER BEEN, AND WILL NEVER BE RESPONSIBLE OF ANY DAMAGES AGAINST YOUR DEVICES BY YOUR OWN MIS-OPERATIONS

Install instructions:

1. Download an arbitrary SM-A125F firmware zip package on SamMobile.com, whose Android version is 11. I used A125FXXU2BVB4 firmware.

2. Clean install firmware (means, no magisk boot module, etc. Flash with ODIN full firmware (BL, AP, CP and CSC _A125FXXU2BVB4*.TAR.MD5. Tick in ODIN options: NAND ERASE; Re-partition. Make sure AUTO REBOOT is OFF!!!

3. Let ODIN flash all, on completion, click reset, disconnect and connect USB, Select recovery.img (below post) in AP slot, and nulled VBMETA.img (below) in USERDATA slot. again; Make sure AUTO REBOOT is OFF!!!

4. Let ODIN flash all. Once all succeeded; Hold <VolDn> + <Power> to shut down, then Hold <VolUp> + <Power> to reboot to TWRP

5. Once TWRP has booted, do full factory reset (wipe caches and data). After that, format data completely. Reboot to recovery once done.

6. Once TWRP has re-booted, go to advance, terminal and execute command: multidisabler.
This will protect data partition from becoming encrypted again, and secure recovery partition from being replaced.

7. Reboot to system, and setup device as normal. After this, you could install Root or what ever you want.

Important: device must boot directly to recovery or stock recovery will be restored if you boot direct to OS.

8. Enjoy!👍🏻😎

What is working:
Mounting, flashing *.img to superpartitions, MTP also fixed now.

What is not working:
ADB sideloading;
You tell me...



Device tree: https://github.com/edward0181/android_device_samsung_a12
Kernel tree: https://github.com/00p513-dev/android_kernel_samsung_a12
 

Attachments

  • vbmeta.tar.zip
    3.2 KB · Views: 956
Last edited:

edward0181

Senior Member
Jul 28, 2013
220
85
Spijkenisse
Samsung Galaxy A12
10/05/2022
Rebuild kernel to fix issues with dynamic partitions. Backups and flashing img now doesn't break twrp and doesn't reboot anymore.

17/04/2022
Updated with latest FSTAB issues.
Will fix not being able to flash GSI to system partitions etc.

Will be online in TWRP.ME downloads soon, but below post is most recent.
https://eu.dl.twrp.me/a12/ Can be flashed from current recovery (TWRP) as IMG into recovery slot.

12/04/2022
Rebuild from A125FXXU2BVB4 firmware. Updated kernel to custom kernel. Modified FSTAB points to flash *.IMG files to dynamic partitions. Fixed FBE decryption of data partition.

04/10/2021
Updated to fix being able to install GSI in system-image partition. See below post

15/09/2021
* Fixed MTP, mount points of Dynamic_Partitions. All is working now, except Decrypting. As mentioned earlier, not important now as you can use OTG, or External_SD or MTP.

15/09/2021
* Redid whole tree, fixed partition errors. Works as system_root.
* FSTAB fixed
Still data decrypt issues, MTK is a pain... not important now, when using external_sd

20/08/2021
* Fixed FSTAB issues.
* Fixed Sideload and ADB issues
* Mounts of partitions fixed

Still to do: Decryption of DATA partition failing as soon as stock ROM is factory resetted. WIP.

09/08/2021
Initial entry; decrypt isn't working.
Is still Work in Progress.
to be updated
 

Attachments

  • twrp-3.6.1_11-2-a12_img.zip
    26.2 MB · Views: 582
  • twrp-3.6.1_11-2-a12.img_tar.zip
    26.2 MB · Views: 837
Last edited:

LAST_krypton

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

Install instructions:

1. Download an arbitrary SM-A125F firmware zip package on SamMobile.com, whose Android version is 11
2. Flash by Heimdall by PIT partitions or by Odin by BL, AP, CP, and CSC tar packages
3. Back to the stock ROM > go to Developments settings > allow OEM unlocking (Developments settings could be enabled by tapping 7~10 times somewhere in About Device)
4. If OEM unlocking is unseen to you, take software updates first
5. Also inside Developments settings, enable USB debugging
6. Download the TWRP image, and unzip.
7. Hold <VolUp>+<VolDn> with device tethered to USB-C with your PC
8. Hold <VolUp> to unlock OEM
9. Hold <VolUp>+<VolDn> again with device not disconnected of USB-C
10. Press <VolUp> without holding to enter Download mode
11. Open ODIN to flash the downloaded TWRP in AP slot with my TWRP image.
12. Hold <VolDn> + <Power> to shut down, then Hold <VolUp> + <Power> to reboot to TWRP

Important: device must boot directly to recovery or stock recovery will be restored if you boot direct to OS.
13. Enjoy!👍🏻😎

What is working:
Mounting, flashing, sideloading.

What is not working:
Decrypting USERDATA
You tell me...


Device tree: https://github.com/edward0181/android_device_samsung_a12
Any pictures of the twrp it self? I'm curently testing something on android 10 and I don't want to revert back to android 11 yet.
Thanks.
 

edward0181

Senior Member
Jul 28, 2013
220
85
Spijkenisse
Samsung Galaxy A12
Any pictures of the twrp it self? I'm curently testing something on android 10 and I don't want to revert back to android 11 yet.
Thanks.
IMG-20210809-WA0001.jpg
 

Attachments

  • IMG-20210809-WA0002.jpg
    IMG-20210809-WA0002.jpg
    196.4 KB · Views: 332
  • IMG-20210809-WA0006.jpg
    IMG-20210809-WA0006.jpg
    230.7 KB · Views: 319
  • IMG-20210809-WA0005.jpg
    IMG-20210809-WA0005.jpg
    277.5 KB · Views: 274
  • IMG-20210809-WA0004.jpg
    IMG-20210809-WA0004.jpg
    188.2 KB · Views: 305
  • IMG-20210809-WA0003.jpg
    IMG-20210809-WA0003.jpg
    190 KB · Views: 291
  • IMG-20210809-WA0001.jpg
    IMG-20210809-WA0001.jpg
    283.6 KB · Views: 304
  • IMG-20210809-WA0000.jpg
    IMG-20210809-WA0000.jpg
    209.2 KB · Views: 297

edward0181

Senior Member
Jul 28, 2013
220
85
Spijkenisse
Samsung Galaxy A12
Idk what I'm doing wrong but when I flashed twrp image through odin I just get to the samsung secured by knox with a normal warring that I'm not using samsungs official software. I'm going to try something else.
Remove tick auto reboot, flash with odin. Once done disconnect usb and hold power and vol down till black screen. Release and direct vol up and power till you get into twrp.
 
  • Like
Reactions: LAST_krypton

Elholas

Member
Aug 7, 2021
15
3
Samsung Galaxy A12
It installs like any twrp, right? I installed android 11 by Odin and my question was if it only put the image in AP to have the twrp, and in that case, all rom gsi are compatible?
 

Elholas

Member
Aug 7, 2021
15
3
Samsung Galaxy A12
<ID:0/005> Added!!
<OSM> Enter CS for MD5..
<OSM> Check MD5.. Do not unplug the cable..
<OSM> Please wait..
<OSM> Checking MD5 finished Sucessfully..
<OSM> Leave CS..
<ID:0/005> Odin engine v(ID:3.1207)..
<ID:0/005> File analysis..
<ID:0/005> SetupConnection..
<ID:0/005> Initialzation..
<ID:0/005> Get PIT for mapping..
<ID:0/005> Firmware update start..
<ID:0/005> NAND Write Start!!
<ID:0/005> SingleDownload.
<ID:0/005> recovery.img
<ID:0/005> RQT_CLOSE !!
<ID:0/005>
<ID:0/005> Complete(Write) operation failed.
<OSM> All threads completed. (succeed 0 / failed 1


:c
 

LAST_krypton

Senior Member
<ID:0/005> Added!!
<OSM> Enter CS for MD5..
<OSM> Check MD5.. Do not unplug the cable..
<OSM> Please wait..
<OSM> Checking MD5 finished Sucessfully..
<OSM> Leave CS..
<ID:0/005> Odin engine v(ID:3.1207)..
<ID:0/005> File analysis..
<ID:0/005> SetupConnection..
<ID:0/005> Initialzation..
<ID:0/005> Get PIT for mapping..
<ID:0/005> Firmware update start..
<ID:0/005> NAND Write Start!!
<ID:0/005> SingleDownload.
<ID:0/005> recovery.img
<ID:0/005> RQT_CLOSE !!
<ID:0/005>
<ID:0/005> Complete(Write) operation failed.
<OSM> All threads completed. (succeed 0 / failed 1


:c
Is that on the A125M ?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    This method not working please help me fix this so i can flash gsi build im also having this issue
    i dont think you need to do that anymore for me its working fine
    1
    The files on my SD card were corrupted so I formated my SD card and downloaded everything again and thanks for telling me the meaning of bgs
  • 9
    DISCLAIMER: I WAS NEVER, HAVE NEVER BEEN, AND WILL NEVER BE RESPONSIBLE OF ANY DAMAGES AGAINST YOUR DEVICES BY YOUR OWN MIS-OPERATIONS

    Install instructions:

    1. Download an arbitrary SM-A125F firmware zip package on SamMobile.com, whose Android version is 11. I used A125FXXU2BVB4 firmware.

    2. Clean install firmware (means, no magisk boot module, etc. Flash with ODIN full firmware (BL, AP, CP and CSC _A125FXXU2BVB4*.TAR.MD5. Tick in ODIN options: NAND ERASE; Re-partition. Make sure AUTO REBOOT is OFF!!!

    3. Let ODIN flash all, on completion, click reset, disconnect and connect USB, Select recovery.img (below post) in AP slot, and nulled VBMETA.img (below) in USERDATA slot. again; Make sure AUTO REBOOT is OFF!!!

    4. Let ODIN flash all. Once all succeeded; Hold <VolDn> + <Power> to shut down, then Hold <VolUp> + <Power> to reboot to TWRP

    5. Once TWRP has booted, do full factory reset (wipe caches and data). After that, format data completely. Reboot to recovery once done.

    6. Once TWRP has re-booted, go to advance, terminal and execute command: multidisabler.
    This will protect data partition from becoming encrypted again, and secure recovery partition from being replaced.

    7. Reboot to system, and setup device as normal. After this, you could install Root or what ever you want.

    Important: device must boot directly to recovery or stock recovery will be restored if you boot direct to OS.

    8. Enjoy!👍🏻😎

    What is working:
    Mounting, flashing *.img to superpartitions, MTP also fixed now.

    What is not working:
    ADB sideloading;
    You tell me...



    Device tree: https://github.com/edward0181/android_device_samsung_a12
    Kernel tree: https://github.com/00p513-dev/android_kernel_samsung_a12
    3
    For those who wants to install GSI, etc:

    Boot to recovery, flash IMG and select what partition you want to flash to.

    No need for aditional tools with latest update.
    3
    Any pictures of the twrp it self? I'm curently testing something on android 10 and I don't want to revert back to android 11 yet.
    Thanks.
    IMG-20210809-WA0001.jpg
    2
    10/05/2022
    Rebuild kernel to fix issues with dynamic partitions. Backups and flashing img now doesn't break twrp and doesn't reboot anymore.

    17/04/2022
    Updated with latest FSTAB issues.
    Will fix not being able to flash GSI to system partitions etc.

    Will be online in TWRP.ME downloads soon, but below post is most recent.
    https://eu.dl.twrp.me/a12/ Can be flashed from current recovery (TWRP) as IMG into recovery slot.

    12/04/2022
    Rebuild from A125FXXU2BVB4 firmware. Updated kernel to custom kernel. Modified FSTAB points to flash *.IMG files to dynamic partitions. Fixed FBE decryption of data partition.

    04/10/2021
    Updated to fix being able to install GSI in system-image partition. See below post

    15/09/2021
    * Fixed MTP, mount points of Dynamic_Partitions. All is working now, except Decrypting. As mentioned earlier, not important now as you can use OTG, or External_SD or MTP.

    15/09/2021
    * Redid whole tree, fixed partition errors. Works as system_root.
    * FSTAB fixed
    Still data decrypt issues, MTK is a pain... not important now, when using external_sd

    20/08/2021
    * Fixed FSTAB issues.
    * Fixed Sideload and ADB issues
    * Mounts of partitions fixed

    Still to do: Decryption of DATA partition failing as soon as stock ROM is factory resetted. WIP.

    09/08/2021
    Initial entry; decrypt isn't working.
    Is still Work in Progress.
    to be updated
    2
    Did update today.
    All except decrypt data... not important this stage as long as you use a external SD card.