Development [ROOT] [TWRP] [KERNEL] [GSI] for SM-A127f (a12s)

Search This thread

Mrkunwaraaho

Member
Jul 1, 2021
8
0
s OK, but I changed /dat

Root Method for all Exynos 850 devices.

A. Root part 1 - Preparing the file


I accept no responsibility for bricked phones but I will help you to recover.

1. Download the exact firmware (including upgrade date) for your device from https://samfrew.com or https://www.samfirmware.net/ or https://www.full-repair-firmware.com/search?q=A20 or
2. Download patched magisk
3. Use zarchiver to extract the apxxxxxx....md5 section from the firmware.
4. Use patched magisk to patch the ap section. Allow the extra files.
Click on install and select patch file.
The output will be a patched tar file.

B. To Unlock Bootloader
1. Activate developer options by going to settings, about phone, software information and tapping on build number 7 times.
On phone developer options in settings allow OEM unlocking and enable usb debugging by moving both
sliders RIGHT
If you don't see the OEM unlock
-Disable Auto System Update
-Then disable Automatic date and time (Found in General Management) > then set the time back 14 days
- Connect to the internet
-Go to software update then check for update and wait a long time till it registers the device on server
-Once it's registered the OEM Unlock should be visible in the Developer Options
then connect phone to PC
2. Reboot into download mode by holding down both Vol up and Vol down
(You might need to long press vol up to unlock bootloader)
then press vol up to continue
Reboot and skip through the setup process.


C. Root part 2

Reboot into download mode again
6. Flash the patched ap tar file using special Odin.
(Click on the ap button and choose the patched tar file. Press start)
7. Reboot.
8. Skip all the way through the set-up process.




D. TWRP installation for a127f and m127f (may not work for a127f/DSN)

Make sure your system has fully completed the installation process and all apps have been installed

1. Download the afaneh92 zip file.Unzip the tar from the zip.
2. Extract the recovery.img
3. Install TWRP app form the playstore
4. Choose Install TWRP
5. Choose file to flash.(don't select device)
6. Select recovery.img.
7. Reboot to recovery.
8. Mount system (Press mount then choose system)
9. Tap on Wipe, tap on format data, type YES. (Not just wipe data)
10. Tap on Advanced then terminal.
11. Type multidisabler. Wait for it to finish. Type multidisabler again. Go to main menu
Reboot to recovery (tap on reboot, tap on recovery)
Ignore the keyrefuge error message.
12. Reboot and go completely through the setup process. Wait for downloading to finish. This may take up to an hour. You can see the progress by pulling down from the top.
13. Reboot into recovery and Backup boot, data, super and dtbo


@physwizz
Hi,
Sorry i am not really good with this Android language, just learning with doing google and searches. I went to terminal and writing this command but its not accepting. The file i placed is in internal memory. Anything what i am missing ( stuck in bootloop cuz 11th step not done ) i tried to flash the multidisabler file by clicking install and it says success but still in bootloop.
" attempt failes mounting at /system_root "
Is this the problem ?


11. Type multidisabler. Wait for it to finish. Type multidisabler again. Go to main menu
Reboot to recovery (tap on reboot, tap on recovery)
Ignore the keyrefuge error message.
12. Reboot and go completely through the setup process. Wait for downloading to finish. This may take up to an hour. You can see the progress by pulling down from the top.
13. Reboot into recovery and Backup boot, data, super and dtbo
 

physwizz

Senior Member
Sep 16, 2013
3,449
750
Sydney
Hi,
Sorry i am not really good with this Android language, just learning with doing google and searches. I went to terminal and writing this command but its not accepting. The file i placed is in internal memory. Anything what i am missing ( stuck in bootloop cuz 11th step not done ) i tried to flash the multidisabler file by clicking install and it says success but still in bootloop.
" attempt failes mounting at /system_root "
Is this the problem ?


11. Type multidisabler. Wait for it to finish. Type multidisabler again. Go to main menu
Reboot to recovery (tap on reboot, tap on recovery)
Ignore the keyrefuge error message.
12. Reboot and go completely through the setup process. Wait for downloading to finish. This may take up to an hour. You can see the progress by pulling down from the top.
13. Reboot into recovery and Backup boot, data, super and dtbo
mount everything you can
format datatype yes
install multidisabler.zip
reboot to recovery (directly)
install multidisabler.zip again
reboot to system
 

physwizz

Senior Member
Sep 16, 2013
3,449
750
Sydney

ANDARXapi

Member
Nov 30, 2021
23
3
How to increase the system partition if it does not exist? How to install Gapps?
 

Attachments

  • Screenshot_2022-01-31-04-17-31.png
    Screenshot_2022-01-31-04-17-31.png
    62.1 KB · Views: 8
Last edited:

Mrkunwaraaho

Member
Jul 1, 2021
8
0
if someone can make a video on this TWRP and custom rooms installation, will be much appreciated.
because i am still in bootloop after afenah twrp and multidisbler commands giving error.
need some video help to follow.
 

Mrkunwaraaho

Member
Jul 1, 2021
8
0

Attachments

  • 20220208_011618.jpg
    20220208_011618.jpg
    1.6 MB · Views: 6
  • 20220208_011642.jpg
    20220208_011642.jpg
    1.8 MB · Views: 6
  • 20220208_011701.jpg
    20220208_011701.jpg
    1.7 MB · Views: 7
  • 20220208_011718.jpg
    20220208_011718.jpg
    1.7 MB · Views: 8
  • 20220208_011854.jpg
    20220208_011854.jpg
    1.6 MB · Views: 9
  • 20220208_011726.jpg
    20220208_011726.jpg
    1.8 MB · Views: 8
  • 20220208_011747.jpg
    20220208_011747.jpg
    1.6 MB · Views: 6
  • 20220208_011835.jpg
    20220208_011835.jpg
    1.7 MB · Views: 5

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Thanks physwizz! With these new recoveries I finally got TWRP booting! I've formatted data okay, have the sdcard accessible after that and a reboot, but now the next problem: a lot of "Unable to find partition for path '/system_root'" messages. And indeed, there is no "system_root" partition entry in fstab. Also the "Mount system partition read-only" checkbox in the Mount section is unresponsive and remains always checked. Any ideas?
    Agh, finally, I found combination, that works for me.
    I have spent days and physwizz hours PMing with me to double, triple check, if I missed some point. It still remain mysterious, why steps leads to different results, as a novice, I can just speculate, if there is some tiny important difference between A127F/DS and A127F/DSN. Or, well.... what about starting "Stock ROM" we are different.

    But there have been some clues.
    Afaneh92's TWRP, it can boot for me, but there has been two things that stink for me. Select Storage - shown Internal storage 0MB capacity and unmountable Data partition, that even if it reports 0MB size, cannot as an empty be backuped, for example. Reboots after proper steps (Format data) leads to slow bootlooping (10mins, I guess Android factory reset trying to finish with some bug in the end).

    Newest TWRP - that one reported lasttime, Srilanka user, it can in some point (physwizz remount command) starts to report Storage size, even Data partition, but installing multidisabler didnt worked for me, leads to Cannot install zip file error. So, not surprise, after data format and reboot, it lead to nothing, well I can just speculate it that un-disabled encryption. Physwizz advice to remount solves part of red colors anout system root.

    I combine those TWRP, using both for part of the job.
    1. Rebooted to Afaneh92 TWRP,
    2. run remount command
    3. run multidisable twice
    4. Reboot directly to download mode
    5. flash SriLankas TWPR, and boot it
    6. Remount command, Format data
    7. Reboot

    voila, system starts, initiate standard default process. Srilankas TWRP can backup all partition I want (including /data). All done.

    I have no idea, if this procedure will help others and will work in other conditions, thats the task for you guys, much much advanced than me. I have just some unclear imagination, whats those steps are about, but there has to be something unfinished with afanehs twrp, that prevent it to work OK in some conditions (hardware, original but regional stock rom)

    Let others know, if it worked for ya.
    HzK
    1
    Root Method

    Twrp and Kernel

    Latest twrp



    Root Method in post#2
    afaneh92 TWRP in post #2
    GSIs in post#3
    Kernel Version 2 & 3 in post #5
    Kernel version 4 in post #11
    Install kernel without TWRP in post#21
    TWRP (new) in post#6
    Skyhawk recovery (new) in post #22
    Orange Fox (new) post #24

    Note
    All of these procedures have been tested on the a127f with u2 baseband
    They will probably all work on the m127f as well.


    @physwizz

    Recoveries for U2 baseband - Working


    Recoveries for U3 baseband - Still being tested

    All recoveries contain physwizz Kernel
    1
    I can now totally confirm that the afaneh92's TWRP image, as well as edward0181's, does not work on the Vietnam-made SM-A127F/DSN: I've rooted it, installed TWRP app, flashed the recovery.img from the app and rebooted into recovery using adb. I'm still getting just endless reboots. So this time the experiment was clean and the "wrong key pressed at wrong time" factor was completely excluded. I'm just curious why any stock firmware and the stock recovery tools works just fine? I've already tried many different country-specific versions from that list and they all flash and work perfectly.

    P.S.: By the way, I've built the latest Magisk from the git master and it works great, so no patched version needed.
    1
    Orange Fox
    From @(Sri Lanka)

    (MTP not working)

    Installation
    Unzip files
    Extract recovery.img

    Method 1.
    If you have already installed afaneh92 TWRP and decrypted.
    1. Boot to recovery.
    2. Install recovery.img
    3. Choose recovery partition
    4. Reboot to recovery

    Method 2.
    From the start

    1. Download firmware
    2. Extract ap file.
    3. Patch with magisk
    4. Flash with Odin
    5. Download recovery.img
    6. Install TWRP app
    7. Install TWRP
    8. Choose file to flash.(don't select device)
    9. Select recovery.img.
    10. Reboot to recovery.
    11. Format data
    12. Install multidisabler zip
    Or dmverity
    13. Reboot to recovery
    Done


    @physwizz
    1
    Agh, finally, I found combination, that works for me.
    I have spent days and physwizz hours PMing with me to double, triple check, if I missed some point. It still remain mysterious, why steps leads to different results, as a novice, I can just speculate, if there is some tiny important difference between A127F/DS and A127F/DSN. Or, well.... what about starting "Stock ROM" we are different.

    But there have been some clues.
    Afaneh92's TWRP, it can boot for me, but there has been two things that stink for me. Select Storage - shown Internal storage 0MB capacity and unmountable Data partition, that even if it reports 0MB size, cannot as an empty be backuped, for example. Reboots after proper steps (Format data) leads to slow bootlooping (10mins, I guess Android factory reset trying to finish with some bug in the end).

    Newest TWRP - that one reported lasttime, Srilanka user, it can in some point (physwizz remount command) starts to report Storage size, even Data partition, but installing multidisabler didnt worked for me, leads to Cannot install zip file error. So, not surprise, after data format and reboot, it lead to nothing, well I can just speculate it that un-disabled encryption. Physwizz advice to remount solves part of red colors anout system root.

    I combine those TWRP, using both for part of the job.
    1. Rebooted to Afaneh92 TWRP,
    2. run remount command
    3. run multidisable twice
    4. Reboot directly to download mode
    5. flash SriLankas TWPR, and boot it
    6. Remount command, Format data
    7. Reboot

    voila, system starts, initiate standard default process. Srilankas TWRP can backup all partition I want (including /data). All done.

    I have no idea, if this procedure will help others and will work in other conditions, thats the task for you guys, much much advanced than me. I have just some unclear imagination, whats those steps are about, but there has to be something unfinished with afanehs twrp, that prevent it to work OK in some conditions (hardware, original but regional stock rom)

    Let others know, if it worked for ya.
    HzK
    Glad it now works.
    What a mammoth effort.
    The a127f/DSN is different in some way from a127f (I have a single Sim)

    Now see if you can install my kernel v4