Development [RECOVERY] TWRP for ZenFone 8

Search This thread

Captain_Throwback

Recognized Developer
Hi, I have acutally the same problem
I am on latest stock Firmware Android 12 and no Password / PIN / is set
If I wipe Data in TWRP then my Storage is encrypted
But if I reboot once into system, I can't access the Data on my Phone in TWRP
Even if I try to save logs from TWRP they are not saved on the Phone
Am I something missing out?
If you Format Data while on 12, then it's expected that TWRP won't be able to decrypt. The current official version can only decrypt if the keys are upgraded from A11.

If you want to try a version that might decrypt on 12 if no password is set, even after you format data in TWRP, see the test version attached here.

NOTE: This version will have to be installed either from existing TWRP or in Android through Magisk/EXKM/FKM. If rooted, root will need to be reinstalled after the zip is flashed.
 

Attachments

  • twrp-installer-3.6.1_12-0_CPTB-20220413-01-I006D.zip
    33.2 MB · Views: 195

dvklin

Member
Apr 13, 2022
23
0
If you Format Data while on 12, then it's expected that TWRP won't be able to decrypt. The current official version can only decrypt if the keys are upgraded from A11.

If you want to try a version that might decrypt on 12 if no password is set, even after you format data in TWRP, see the test version attached here.

NOTE: This version will have to be installed either from existing TWRP or in Android through Magisk/EXKM/FKM. If rooted, root will need to be reinstalled after the zip is flashed.
How can I get root again after flashing into twrp, please tell me thank you. I tried to patch the boot after flashing twrp, but after flashing in twrp, it was gone. But to flash into twrp, root is gone, I can't have root and twrp at the same time
 
I don't use LineageOS, so I have no idea about the issue and what exactly needs to be "fixed". Since it works fine on stock, I have to assume the issue is with LOS, and since they provide their own recovery, there doesn't seem to be a need for anything additional on TWRP's end.

If someone wants to push a fix to Gerrit for this, and it doesn't negatively impact anything else, I'll gladly review and merge it.
Im sure, there is no need to fix anything. I have TWRP and LOS running since January.

Its more that flashing LOS overwrites TWRP with LOS Recovery.

Read here how to circumvent that. I'm not that deep into recoveries so im not sure if that has any downsides.
 

bnsmb

Senior Member
Aug 22, 2017
243
131
Frankfurt
Hi

is it possible to install TWRP using a CLI command in the adb shell after booting from the TWRP image?

regards

Bernd
 

ianseer

Senior Member
Sep 27, 2010
123
19
POCO M3
ASUS ROG Phone 5
I've come from pocox3 pro. So, i was struggling a few hours when installing TWRP for this device...

1. As similar to other android devices. First, we need to unlock this device. This one, makes me confused... looking a way for unlocking bootloader first (usually using CMD but I can't find it) and it seems it need the official unlock tool from asus site am i correct? this one.

2. you need to go to "Fastboot" which is bootloader that have Big Start button not the "fastbootd" with D with small ui menu (it confuses me though) and after that it works flawlessly...

3. after rebooted to TWRP (automatically) go to advanced > "Flash current TWRP" it will make the TWRP permanent.

Correct me if I'm wrong please, so other user like me can be helped too next time...

Thanks a lot for your work
 

bnsmb

Senior Member
Aug 22, 2017
243
131
Frankfurt
I've come from pocox3 pro. So, i was struggling a few hours when installing TWRP for this device...

1. As similar to other android devices. First, we need to unlock this device. This one, makes me confused... looking a way for unlocking bootloader first (usually using CMD but I can't find it) and it seems it need the official unlock tool from asus site am i correct? this one.

2. you need to go to "Fastboot" which is bootloader that have Big Start button not the "fastbootd" with D with small ui menu (it confuses me though) and after that it works flawlessly...

3. after rebooted to TWRP (automatically) go to advanced > "Flash current TWRP" it will make the TWRP permanent.

Correct me if I'm wrong please, so other user like me can be helped too next time...

Thanks a lot for your work

>>seems it need the official unlock tool from asus site am i correct? this one.

yes

for installing TWRP:

- boot the phone into the bootloader (fastbootd is NOT the bootloader)
if adb is enabled use "adb reboot bootloader"


- boot the phone from the TWRP image using fastboot on the PC e, .g.

sudo fastboot boot /data/backup/ASUS_ZENFONE8/twrp/twrp-3.6.2_12-0-I006D.img

- while booted into TWRP open the Advanced Menu and select the Menu entry "Flash Current TWRP"
to install TWRP into the boot partition

regards

Bernd
 
  • Like
Reactions: ianseer

megaice

Senior Member
Hi,
i am using stock and TWRP 3.7.0_12-0-I006D, i've updated phone firmware to the latest UL-ASUS_I006D-ASUS-31.1010.0411.138 (Android 12)

- When fresh, everything works well - i can decrypt backup and restore data partition. np.
- After installing some new apps, and maybe updating google sub-system -> there is twrp error 255 when backuping data partition, and the process ends incomplete.
-I did update google TTS and download offline TTS voice. I am not using google play / did not set google account.

part of twrp.log
Code:
.
.
.
I:addFile '/data/fonts' including root: 1
  ==> set selinux context: u:object_r:system_data_file:s0
found fscrypt policy '/data/fonts' - '2DK' - '336320a4163686eab4ad83198048e277'
I:addFile '/data/fonts/files' including root: 1
  ==> set selinux context: u:object_r:font_data_file:s0
found fscrypt policy '/data/fonts/files' - '2DK' - '336320a4163686eab4ad83198048e277'
I:addFile '/data/fonts/files/~~3KoR32mgsr19DdN-dRa9gA==' including root: 1
  ==> set selinux context: u:object_r:font_data_file:s0
found fscrypt policy '/data/fonts/files/~~3KoR32mgsr19DdN-dRa9gA==' - '2DK' - '336320a4163686eab4ad83198048e277'
I:addFile '/data/fonts/files/~~3KoR32mgsr19DdN-dRa9gA==/NotoColorEmoji.ttf' including root: 1
  ==> set selinux context: u:object_r:font_data_file:s0
I:Error adding file '/data/fonts/files/~~3KoR32mgsr19DdN-dRa9gA==/NotoColorEmoji.ttf' to '/data/media/0/TWRP/BACKUPS/M8AIGF00003035V/ice-2022-12-30/data.f2fs.win003'
Error creating backup.
I:ERROR tarList for thread ID 0
Error creating backup.
I:InfoManager saving '/data/media/0/TWRP/BACKUPS/"censored number"/ice-2022-12-30/data.info'
createTarFork() process ended with ERROR: 255
Backup Failed. Cleaning Backup Folder.

-I've removed problematic font and tried again to discover that the problem persists (with next google font). Then removed all files and folders from /data/fonts/files and file /data/fonts/config/config.xml

Code:
ASUS_I006D:/data/fonts/files # find .
.
./~~3KoR32mgsr19DdN-dRa9gA==/NotoColorEmoji.ttf
./~~nvfdoV4IMIOrDKSprXhWPQ==/GoogleSans-Regular.ttf
./~~CS_d0ix5NE-fvuaHTZjXKg==/GoogleSans-Medium.ttf
./~~etls8abhiLGUsSBTc5VHmw==/GoogleSans-Bold.ttf
./~~op5NFmTQgc0JlArrHFsIGw==/GoogleSansText-Regular.ttf
./~~Qk4EWzb6iJtfCU_AW8R-Sw==/GoogleSansText-Medium.ttf
./~~tqZlytbZafKPdoWAUeAVkw==/GoogleSansText-Bold.ttf

-Then the backup of data partition was error free and OK.

Edit: After many tries :] those google fonts and folders in /data/fonts/ are atuto-created after finishing initial phone setup and going online for the first time. (Android 12)
As Z8 was my new device, i upgraded offline (cca. 6+ upgrades) from old A11 to latest A12. Maybe this is the reason i can't backup data partition with those google initialized fonts. (created with different encryption keys?)
I have backup before finishing google/phone setup. i debloated phone from google, firewalled what i can so there is no autogenerated g.fonts in folder and i can backup data partition.
 
Last edited:

damarwardoyo

Senior Member
Nov 21, 2017
81
13
Is anyone here have tried to install latest twrp from latest stock a13 .210 build? In step "fastboot boot twrp.img" the touch screen work or not?
 

Top Liked Posts

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

    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:
    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:
    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!

    Alternate Installation Method (requires prior TWRP installation, or if fastboot booted into TWRP already, start at step 3):
    TWRP Image Install method:
    Most devices can be updated quickly and easily within TWRP if you already have version 2.8.4.0 or higher installed.
    1. Download the latest version of TWRP appropriate for your device/firmware
    2. Reboot to TWRP
    3. Hit Install and tap the "Install Image" button in the lower right
    4. Browse to the location of the TWRP image on your device and select it
    5. Select "Install Recovery Ramdisk" from the partition list and swipe to flash
    6. (Optional) If previously rooted, re-install root apk/zip, as the TWRP install will overwrite root.

    Device Changelog

    TWRP Official Change Log

    Downloads


    Known Issues
    Device-specific
    • USB-OTG not working
    • Battery Status not working
    TWRP Upstream
    • Android 12 decryption only works if no password/PIN/pattern is set (i.e. only default password)

    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.
    4rev3d.jpg

    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.
    6
    Maybe 3 to be safe
    5
    Hi, I have acutally the same problem
    I am on latest stock Firmware Android 12 and no Password / PIN / is set
    If I wipe Data in TWRP then my Storage is encrypted
    But if I reboot once into system, I can't access the Data on my Phone in TWRP
    Even if I try to save logs from TWRP they are not saved on the Phone
    Am I something missing out?
    If you Format Data while on 12, then it's expected that TWRP won't be able to decrypt. The current official version can only decrypt if the keys are upgraded from A11.

    If you want to try a version that might decrypt on 12 if no password is set, even after you format data in TWRP, see the test version attached here.

    NOTE: This version will have to be installed either from existing TWRP or in Android through Magisk/EXKM/FKM. If rooted, root will need to be reinstalled after the zip is flashed.
    5
    New test version uploaded. Thanks to @micky387 for his help with the TWRP tree!