Development [RECOVERY][OFFICIAL] TWRP for ASUS ROG Phone 5 & ROG Phone 5S

Search This thread

katalinscrob

Senior Member
Nov 7, 2006
68
20
Yes, but seems that after A12 update got stuck with extracttarfork() process ended with error=255 when trying to full backup....
 

chairman011

Senior Member
Nov 11, 2012
248
64
houston
ASUS ROG Phone 5
My advice is just go ahead and back everything up and downgrade with the firmware provided on the official Asus website for downgrade then you can downgrade to any firmware that you want I am on 210 TWRP working great read write script working great bloatware gone working great
 

chairman011

Senior Member
Nov 11, 2012
248
64
houston
ASUS ROG Phone 5
I'm actually on Android 12 now TWRP working perfectly through magisk. Everything working good on Android 12. I was able to flash what I needed to flash without any issues. So if anybody's having trouble with the black screen when you try to boot into it via fastboot, just install it with magisk as mentioned above in some of the comments works perfect
 

jhosharath

Senior Member
Jan 1, 2011
102
17
30
Pondicherry
I'm actually on Android 12 now TWRP working perfectly through magisk. Everything working good on Android 12. I was able to flash what I needed to flash without any issues. So if anybody's having trouble with the black screen when you try to boot into it via fastboot, just install it with magisk as mentioned above in some of the comments works perfect
Are you using adb sideload option in twrp for flashing purposes? Because if password-protected it won't decrypt.
Or is OTG working for flashing?. I haven't tried via otg
 

chairman011

Senior Member
Nov 11, 2012
248
64
houston
ASUS ROG Phone 5
Are you using adb sideload option in twrp for flashing purposes? Because if password-protected it won't decrypt.
Or is OTG working for flashing?. I haven't tried via otg
It works perfect for me password and everything just flash it with magic flash the installer with magic and that's it boot into recovery you don't need a PC I flashed my zip files directly after I enter my password that's the only way it would work booting it through fast boot gave me the black screen this was the only thing that worked for me
 
  • Like
Reactions: jhosharath

jhosharath

Senior Member
Jan 1, 2011
102
17
30
Pondicherry
It works perfect for me password and everything just flash it with magic flash the installer with magic and that's it boot into recovery you don't need a PC I flashed my zip files directly after I enter my password that's the only way it would work booting it through fast boot gave me the black screen this was the only thing that worked for me
Thanks for the answer. Last time when i was in android 12 i did the same as you did. Twrp booted fine but i couldn't decrypt with my pattern. Later i downgraded and now i am on android 11. I really missed gravity box in a12 haha.
 

jhosharath

Senior Member
Jan 1, 2011
102
17
30
Pondicherry
Flash magisk patched boot.img (Should match your firmware version) via fastboot to get rooted. Then once rooted flash twrp installer.zip (download from official twrp link) from magisk.
 

calebj

New member
Aug 16, 2018
2
0
Texas
My device is the 5S/ZS676KS (512GB), purchased from the ASUS site. I installed TWRP 3.6.1 using the zip on Magisk, and when the screen goes to standby automatically or by pressing the power button, it doesn't turn back on. ADB still works, though, and I see that it's trying to unblank the screen. It happens on both the latest A11 (18-1220.2202.206) and A12 (31.0810.1226.77) builds as the base boot.img. The only other change to the images were patching them with Magisk v24.3. Here are recovery.log and logcat for TWRP running on the A12 base.

EDIT: for some reason my recovery.log is not saving when uploaded directly. I have put it in a zip instead.
 

Attachments

  • rlogcat.log
    1.5 MB · Views: 12
  • recovery.log.zip
    8 KB · Views: 11

KaiserSnorezay

Senior Member
Jan 26, 2012
145
17
Sydney
Nexus 9
OnePlus 3
I downloaded twrp 3.61 img, renamed to twrp.img, put it on device (5) storage but fastboot boot twrp.img doesn't load twrp at all. Says 'downloading boot.img', reboots twice and dumps me back in a regular boot to Android 12. Removed PIN and fingerprints to no avail. In security settings, it still says 'encrypted' under 'encryption and credentials'. Do what now?
 

Shun_5377

Member
Apr 30, 2022
8
1
I am running on Android 12 Version WW-31.0810.1226.77 with root access gained from patching the boot.img with Magisk version 24.3. Similar to # 153, I could not get booted into TWRP 3.6.1. I saw a black screen and then got booted into Andriod 12 operating system as normal after executing the command "fastboot boot twrp.img".
 

BakaValen

Senior Member
May 17, 2011
78
4
ASUS ROG Phone 5
I am running on Android 12 Version WW-31.0810.1226.77 with root access gained from patching the boot.img with Magisk version 24.3. Similar to # 153, I could not get booted into TWRP 3.6.1. I saw a black screen and then got booted into Andriod 12 operating system as normal after executing the command "fastboot boot twrp.img".
It wont flash that way. Flash TWRP using Magisk from inside Android OS.
NOTE: If you are on A12 then... its pointless anyway. TWRP dont work on A12.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 14
    Code:
    *** Disclaimer ***
    
    All flashing is done at your own risk!
    While nothing from this thread should break your device,
    don't come back here blaming anyone if it does!

    Introduction

    Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and

    Images



    Prerequisites

    Installation instructions

    Fastboot Install Method:
    You will need the platform-tools from the Android SDK on your computer. Find the Android command line tools section on the page linked and install the SDK tools package. From the SDK Manager, download only the platform-tools to get adb and fastboot binaries.

    Windows users will need proper drivers installed on their computer. You can try the Naked ADB drivers or the Universal ADB drivers if you don't already have a working driver installed

    On your device, go into Settings -> About and find the Build Number and tap on it 7 times to enable developer settings. Press back and go into Developer Options and enable USB debugging. From your computer, open a command prompt and type:
    Code:
    Code:
    adb reboot bootloader
    You should now be in fastboot mode.

    Download the correct image file and copy the file into the same folder as your adb and fastboot binaries. Rename the image to twrp.img and type:
    Code:
    Code:
    fastboot boot twrp.img

    Now you are booted into TWRP, but it is NOT permanently installed. To install it permanently, use the "Flash current TWRP" option in the Advanced menu. This will install the currently booted TWRP permanently to both slots. NOTE: If you were previously rooted, you will need to re-install the root apk/zip as the TWRP install will overwrite it!

    Device Changelog

    Current version: 3.5.2_11-2:
    3.5.2_11-2
    • Common version for all ROG 5 versions.
    • Fixed decryption issue
    3.5.2_11-0:

    Initial version (Tested only on ROG Phone 5S, need info about ROG Phone 5).



    Device Changelog


    Known issues

    Device-specific
    • USB-OTG not working
    • Battery Status not working

    Bug reporting

    If you have an issue, the first step is to post a recovery log so we can determine the cause of the issue. This is done in recovery using Advanced -> Copy Log, or adb pull /tmp/recovery.log. Once a log is uploaded we can determine how best to proceed. NOTE: Posts that are reporting bugs or issues without an accompanying recovery log will be ignored! Additionally, providing details about your device setup, including variant, firmware version, and exact steps to reproduce your issue will also be helpful in diagnosing the problem.

    If your issue is determined to be a bug, please consider posting it to our github issues log. It's pretty much impossible for us to keep up with the more than 40 threads that we have for the devices that we "directly" support. If you have a significant problem that cannot be answered in this thread, your best bet is to contact us via our website. If you see someone that's struggling, feel free to point it out to us. We need your help to help us keep track of all of our devices! Thanks!

    Additional Help/Support

    Live support is available on Zulip.

    Credits

    @Freak07 and @Captain_Throwback for advices
    @Qtr1st and @danfrid for testing
    7
    Here's my trip around the sun;

    Downloaded the file twrp-3.5.2_11-2zs673ks.img and renamed it to just twrp.img. (So it's easier to type in CMD).
    Placed it on the root of my C: Drive where I keep all my flash files.

    Shut down phone, Then Volume up and power to go to fastboot mode. That's the screen where it shows some options like Power On, Recovery Mode and Reboot. Just stay there, dont select anything.

    Connected the cable via side USB port and executed the following commands;

    0023.png


    First command to check connectivity, second command is to boot to TWRP.
    No flashing !! remember always; new TWRP cannot be flashed through fastboot because recovery is a part of the existing partition, not a separate one like it used to be on Android 8 and below.

    Once you execute the above command, be patient. Your phone will come back to bootloader screen making it look like it failed. Just wait, it will reboot again and it will go to TWRP. Now you can enter you pin code, and enter the recovery.
    I flashed a kernel, I cleared my dalvik cache .. everything went well.




    Now if you want to keep TWRP permanent;

    Copy the twrp.img to your phone memory, preferably downloads folder of the phone, and follow the above steps mentioned - again up to entering TWRP.

    In TWRP, select advanced, and you will see the below screen -

    Screenshot_2021-09-16-07-36-25 (Medium).png


    Select the option - Install Recovery Ramdisk and it will ask where your TWRP.img is, and point it to the file you earlier saved in the phone / downloads folder. This will flash TWRP within the kernel making it permanent along with your kernel.

    That's it, reboot and enjoy.

    EDIT : How to get to TWRP again;
    From CMD - send adb reboot recovery or
    shut down phone, Volume UP + Power .. In bootloader press volume down until you see recovery mode, and then press the power button once to select it.
    4
    ZS673KS version I was just trying out anything this one booted but didn't ask for a pw
    Thanks. I'm building updated kernel at the moment. Will upload test image when twrp will be built.
    3
    Flashing a custom kernel doesn't affect TWRP or Magisk.

    Flashing a custom kernel also won't install / restore Magisk. The custom builds are meant to retain Magisk, but don't actually perform any of the installation.

    You can install TWRP over a custom kernel and the kernel will remain, but Magisk will be gone and need to be reinstalled. At this point, the app will only allow you to patch a supported image (img / tar, but also supports win without saying it) and the custom kernels include none of those. This means you need a Magisk recovery zip or need a backup of the kernel to patch with Magisk.

    You can also install a custom kernel over TWRP, but you would need to already have Magisk patched in after installing TWRP or install it after the kernel (see above).

    TL;DR

    Edit: there was an even easier way

    Have a copy of Magisk apk, the kernel zip from this thread, and the twrp image (just in case) on your sdcard.
    Boot TWRP and do Advanced -> Flash current TWRP
    Install Magisk through TWRP
    Reboot to system
    Install the kernel zip

    You'll have all three installed and running