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

Search This thread

physwizz

Senior Member
Sep 16, 2013
3,498
764
Sydney
what to do if I flashed on twrp and now I can’t boot anymore, it reboots by itself
Recovery Problems

Most recovery issues can be solved by attending to the following issues.

1. Did you root using the full ap file patched with the special a217 magisk? (This contains the patched boot.img and vbmeta.img)

2. Did you then go all the way through the setup process?

3. Did you download the recovery to match your baseband?


4. Did you hold down power and volume up after Odin says pass?

5. Did you format data, not just wipe?

6. Did you type multidisabler twice?

7. Did you reboot to recovery by choosing reboot from the menu and then choosing recovery?



@physwizz
 

edward0181

Senior Member
Jul 28, 2013
218
85
Spijkenisse
Samsung Galaxy A12
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.

See 1th post for install instructions.
 

Attachments

  • vbmeta.tar.zip
    3.2 KB · Views: 27
  • recovery.tar.zip
    25.8 MB · Views: 39
  • Like
Reactions: hd_scania

dewaeshe

Member
Mar 13, 2022
46
2
I'm trying to install gsi firmware, and in the middle of the installation, a reboot occurs in twrp. what to do?
by the way, the installation to the system partition does not work. Failed to mount /system_root
 

kpy200x

New member
Apr 12, 2022
3
0
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
when i tick in ODIN options, i receive the message "Can't open the specified file. (Line: 2006)"
1649776160414.png
how to fix?
 

dewaeshe

Member
Mar 13, 2022
46
2
Извлечь файл pit из пакета csc
Эдуард, ответьте пожалуйста.
что мне нужно очистить перед установкой gsi?
еще вопрос, можно ли прошить андроид 12?

Mod translation via GT:
Edward, please answer.
what do i need to clear before installing gsi?
another question, is it possible to flash android 12?
 
Last edited by a moderator:

Badger50

Senior Moderator
Staff member
@dewaeshe

Greetings. As a LAST TIME courtesy, I have translated your last 3 posts. I will ask you politely to PLEASE be respectful and observant of XDA Rule #4 for all of your future posts.
4. Use the English language.

We understand that with all the different nationalities, not everyone speaks English well, but please try. If you're really unable to post in English, use an online translator. You're free to include your original message in your own language, below the English translation. (This rule covers your posts, profile entries and signature). You could try :- https://translate.google.com/ or https://www.babelfish.com/ or use one of your choice.
Thank you for your cooperation, and have a pleasant day.

-Regards: Badger50 FSM
 

Top Liked Posts

  • There are no posts matching your filters.
  • 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.