Development [RECOVERY][3.7.0-12.1][UNOFFICIAL][UNIFIED] TWRP with A12/A13 encryption support

Search This thread

der_akinator

Senior Member
Mar 27, 2015
171
265
Berlin
OnePlus 3T
OnePlus 9 Pro
I'm on Paranoid android 13 Tobaz beta 2 ( an unofficial buildnot by op)
I don't know where to find it. If you provide a link, I will see what I can do. Maybe it has something to do with with the changes to their kernel module, which are now build inline. And did you use latest 12-01-23 build.

Edit: It could be possible that I'm missing to load a kernel module. Could you provide the output of the command "lsmod". Or they are installed to a non standard path.
 
Last edited:

IamTheBRAVE

Senior Member
I don't know where to find it. If you provide a link, I will see what I can do. Maybe it has something to do with with the changes to their kernel module, which are now build inline. And did you use latest 12-01-23 build.
I used the 05-01 i think. The rom link was posted on telegram.
The official build is still not out due to display issues. This build works.
I'll keep trying later. Thanks for taking the time to look into this👍
 

Attachments

  • Screenshot_20230122-230116_Kiwi_Browser.png
    Screenshot_20230122-230116_Kiwi_Browser.png
    443.5 KB · Views: 76
  • Like
Reactions: der_akinator

der_akinator

Senior Member
Mar 27, 2015
171
265
Berlin
OnePlus 3T
OnePlus 9 Pro
I used the 05-01 i think. The rom link was posted on telegram.
The official build is still not out due to display issues. This build works.
I'll keep trying later. Thanks for taking the time to look into this👍
I've read that there are some display issues with the kernel. Stock AOSPA recovery also have some issues and just shows random noise when I try to use it. I think the best thing is to wait for an official build. But with their current kernel, it is probably only possible to install TWRP via zip installer.
 
  • Like
Reactions: IamTheBRAVE
@der_akinator

Hey, it's been a while but I wanted to update you. If you remember I was having severe problems with getting my 9 pro going, especially with TWRP. Well, I got profit. I used the crDroid c63 fw flasher instead of TheSayaMan's c66 flasher which apparently doesn't work for my variant, to get fw on both slots. That crDroid flasher installs their LOS style recovery, I believe I saw a post in the crDroid 9.1 thread from you about the kernel on the 20230113 build so I think you already know. But I used that recovery to flash WatchDogs & Magisk, but was getting hella glitches. Seemed like a copy&paste ROM w/different boot animation anyways. So I switched to crDroid. BTW, that comment on the crDroid thread saved my butt again - couldn't figure why Magisk wouldn't go.

Anyways, got crDroid working, flashed your updated TWRP v3 and it's working great. Magisk too, after they updated the boot.img for the 20230113 build - thanks to your comment.

However, when I try to flash blu_spark 120 in TWRP, I get an error: vendor_dlkm larger than vendor_dlkm partition: aborting. But I guess that's a question for the blu_spark thread.

Also, I had meant to say thanks and let you know everything has been working out, but right when I got things going, I got an error on the app/site "oops, someone call neo. We broke the matrix" that my account had been BANNED! I never get in pissing matches or solicit or participate in solicitations or anything, so I dunno. It mentions being hijacked and I hadn't noticed any unusual activity, but now that I got it back (finally), I went to my account info and there was some weird stuff. Said I was in Sweden and an associated account id never heard of. The error msg says "allow 72 hours for response" - took 10 days. But that's still better than starting over from a new account. Kinda sad, but I'd prolly cry if I lost my "senior" status, which is probably just due to membership time. 😒 DroidNerd 4 life.

Thanks again.
 

brandon79

Senior Member
So maybe I'm confused or maybe I'm doing something wrong. IDK. So one plus 9 pro bliss custom ROM. Android 13 based on 12.1. kinda new to 9 pro my last was a 6t. Anyway i had ROM installed flashed TWRP reboot recovery flash magisk again. Reboot system. Decided to reboot to recovery to check it out farther and TWRP is no longer there. It's back to LOS recovery again. So am I doing something wrong or is TWRP not suppose to retain.


Edit: figured out my problem. After I flashed TWRP I rebooted to system. Installed magisk again, select file and patch, with TWRP installed. Then reboot to recovery and flash the magisk patched img. That had TWRP flashed and that did it.
 
Last edited:

der_akinator

Senior Member
Mar 27, 2015
171
265
Berlin
OnePlus 3T
OnePlus 9 Pro
@der_akinator

Hey, it's been a while but I wanted to update you. If you remember I was having severe problems with getting my 9 pro going, especially with TWRP. Well, I got profit. I used the crDroid c63 fw flasher instead of TheSayaMan's c66 flasher which apparently doesn't work for my variant, to get fw on both slots. That crDroid flasher installs their LOS style recovery, I believe I saw a post in the crDroid 9.1 thread from you about the kernel on the 20230113 build so I think you already know. But I used that recovery to flash WatchDogs & Magisk, but was getting hella glitches. Seemed like a copy&paste ROM w/different boot animation anyways. So I switched to crDroid. BTW, that comment on the crDroid thread saved my butt again - couldn't figure why Magisk wouldn't go.

Anyways, got crDroid working, flashed your updated TWRP v3 and it's working great. Magisk too, after they updated the boot.img for the 20230113 build - thanks to your comment.

However, when I try to flash blu_spark 120 in TWRP, I get an error: vendor_dlkm larger than vendor_dlkm partition: aborting. But I guess that's a question for the blu_spark thread.

Also, I had meant to say thanks and let you know everything has been working out, but right when I got things going, I got an error on the app/site "oops, someone call neo. We broke the matrix" that my account had been BANNED! I never get in pissing matches or solicit or participate in solicitations or anything, so I dunno. It mentions being hijacked and I hadn't noticed any unusual activity, but now that I got it back (finally), I went to my account info and there was some weird stuff. Said I was in Sweden and an associated account id never heard of. The error msg says "allow 72 hours for response" - took 10 days. But that's still better than starting over from a new account. Kinda sad, but I'd prolly cry if I lost my "senior" status, which is probably just due to membership time. 😒 DroidNerd 4 life.

Thanks again.
I installed blu_spark on top of crdroid 20230113 build because of the magisk issues, but everything went fine for me. Maybe try the latest r123 blu_spark release.
 

der_akinator

Senior Member
Mar 27, 2015
171
265
Berlin
OnePlus 3T
OnePlus 9 Pro
So maybe I'm confused or maybe I'm doing something wrong. IDK. So one plus 9 pro bliss custom ROM. Android 13 based on 12.1. kinda new to 9 pro my last was a 6t. Anyway i had ROM installed flashed TWRP reboot recovery flash magisk again. Reboot system. Decided to reboot to recovery to check it out farther and TWRP is no longer there. It's back to LOS recovery again. So am I doing something wrong or is TWRP not suppose to retain.


Edit: figured out my problem. After I flashed TWRP I rebooted to system. Installed magisk again, select file and patch, with TWRP installed. Then reboot to recovery and flash the magisk patched img. That had TWRP flashed and that did it.
You can also flash the Magisk.apk directly in TWRP like a zip. That's a bit more comfortable.
On this device it's also a bit more complicated to keep TWRP installed, because every time the boot partition is overwritten it is gone.
 
  • Like
Reactions: brandon79

A6ekAK

Senior Member
Mar 4, 2012
291
69
Xiaomi Poco F3
Hello, I'm on CrDroid 9.1 and I wanted to go back to OOS 13 but while trying to flash the oos zip in twrp i get error 23 (kdownloadmanifestparseerror), can someone help me?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    Good new for OOS users. One of the TWRP devs found a workaround for data restore on OOS. Just delete "/data/system/users/0/package-restrictions.xml", after data is restored. I will exclude this file by default in a future build, but for existing backups, the file must always be removed manually.

    Edit:
    This is also useful for custom ROMs, because it makes first boot faster and eliminates the need to reboot again.
    5
    Update
    • Fix backups and logs not accessible from system
    If you already have backups that aren't accessible from system, flash change_backup_selinux_context.zip which is available in the latest download folder. All backups made with TWRP builds starting from 14-01-23 (aka 3.7.0-12.1-4) are affected.

    3
    Titanium Backup backs up messages but can't seem to restore them. I'm not sure when this started - maybe Android 12?

    One more reason to stop using it, I guess. 😉 TiBu has fallen so far behind (it hasn't been updated in more than three years!) that IMHO it shouldn't even be listed on anyone's list of "essential utilities" anymore. Swift Backup and others are more than capable of taking its place.
    2
    Update
    • Fix backups and logs not accessible from system
    If you already have backups that aren't accessible from system, flash change_backup_selinux_context.zip which is available in the latest download folder. All backups made with TWRP builds starting from 14-01-23 (aka 3.7.0-12.1-4) are affected.

    Sorry, I forgot to add latest patch. Latest build is now replaced with fixed version.
    Awesome! Can confirm it works as expected now. 😁

    Only thing I noticed is that there now seems to be a rogue empty TWRP folder created at /TWRP which I don't recall happening before.
    2
    The Restore list issue is still present, unfortunately.

    Steps to reproduce:
    1) Use Advanced > File Manager to ensure /sdcard/TWRP/.twrps is deleted
    2) Reboot Recovery to ensure using /data/recovery/.twrps
    3) Make a backup of something small for our testing, like boot partition
    4) Advanced > Change TWRP folder to name: Recovery
    5) Reboot to Recovery to start fresh
    6) Check Restore list, it'll just show contents of /sdcard instead of actual backups
    Sorry, I forgot to add latest patch. Latest build is now replaced with fixed version.
  • 48
    This is an unofficial build of TWRP, based on the Android 12.1 branch, that supports encryption used by Android 12 and 13 ROMs. This build is tested on OP9pro but it was confirmed to work on OP9 with OOS 12 firmware installed. Other configurations have to be tested.

    As always I'm not responsible for any bricked device or data loss resulting from the use of this TWRP builds. You use this at your own risk.

    For ROMs using FBEv1 encryption aka A11 encryption, please use the official builds by
    @Nebrassy from:

    Download:


    Installation:

    Permanent installation is not possible with TMO stock ROM installed.


    To temporarily boot TWRP, use the first three steps of Option 3.
    For permanent installation, you have three options depending on your current system.

    1. Option for rooted devices:
    1. Download the twrp-installer zip
    2. Flash it with Magisk manager or some other kernel flash utility
    3. Reflash your custom kernel and Magisk if previously installed
    2. Option for users with other custom recoveries but without root:
    1. Download the twrp-installer zip
    2. Flash it with "adb sideload twrp-installer*.zip"
    3. Reboot to recovery
    4. Reflash your custom kernel and Magisk if previously installed
    3. Option is universal:
    1. OOS13 (firmware) users please download boot-oos13.img. All other users please use boot.img
    2. Reboot to bootloader
    3. Run "fastboot boot boot*.img" with the boot image
    4. Go to Advanced > Flash Current TWRP
    5. Reflash your custom kernel and Magisk if previously installed

    Uninstall:

    Just flash the boot partition with your current ROMs boot image with the following steps:
    1. Reboot to bootloader
    2. Run "fastboot flash boot_a YOUR ROM BOOTIMAGE"
    3. Run "fastboot flash boot_b YOUR ROM BOOTIMAGE"
    Alternatively you can flash your currently installed OTA zip, which overwrites boot on the unused slot, but not on the currently used one.

    TWRP Updates:
    1. Download and flash the twrp-installer zip
    2. After that reflash your custom kernel and Magisk if previously installed

    ROM Updates:

    Please follow the official update instructions for your ROM!


    If they give an option to update via recovery you have to substitute adb sideload commands with zip installations. And use the "Automatically reflash TWRP after flashing a ROM" option if you are going to install a ROM zip to preserve TWRP.

    In case your ROM does not provide a recovery update instruction you can try to update via recovery but you are on the safe side if you follow the official instructions. They always have a reason for their particular update instructions!

    Instructions that work for me (on LOS based ROMs):
    1. Flash ROM zip with "Automatically reflash TWRP after flashing a ROM" checked
    2. Flash your previously installed zips (custom kernel, Gapps, Magisk, etc)
    3. Reboot to system
    4. If Gapps packages keep crashing:
      1. Reboot to TWRP
      2. Flash Gapps again
      3. Reboot to system
    For OOS updates you can follow these steps (I haven't tested them):

    About backups/restore:

    Restore data only WITHOUT pin/pattern set.


    Backups can be made with or without pin/pattern set. It is always good practice to copy your backups to your PC or an USB drive. Also after you restored your data partition you have to reboot to system and do a second reboot to get a working system.
    To make first boot faster and eliminate the need to reboot again, additionally use the step mandatory for OOS users.

    If you want to copy your backup to PC, but it doesn't show up, flash change_backup_selinux_context.zip, which is available in download folder.

    For OOS users:
    When data is restored, you have to delete "/data/system/users/0/package-restrictions.xml" before rebooting to system.

    In case you restore a backup with pin/pattern set or have some other issues I have a guide that works for me:

    Source Code:
    Bugs:
    • Permanent installation besides TMO stock isn't possible
    • In case you notice anything else please let me know.

    Thanks to:
    • @Nebrassy for the original device tree
    • @osm0sis for the zip installer
    • TWRP team
    • LineageOS
    13
    Update
    • /data/fonts/* is excluded from backups (has to be verified by someone with backup errors)
    • screen turns completely off now
    • updated firmware files from LE2125_11.C.63 (maybe this helps with OOS13 problems)
    • initial installation is now possible without flashing vendor_boot (I tested a few combinations of installation methods and initial system configurations. So hopefully nothing is broken this time.)
    Have a happy New Year tomorrow!

    10
    Update
    • improve vibration support
    • fix kernel modules loading in fastbootd mode for custom roms (might result in an error message regarding vendor_dlkm for OOS users, but it's just cosmetic)
    Tested on LOS 19.1 (OOS 12 firmware) and crdroid 13 (OOS 13 firmware).

    10
    Update
    • add vendor_boot and dtbo to backup targets
    • add CPU temperature output
    • fix vibration (still doesn't work in fastbootd mode)
    I tested this build on LOS 19.1 (OOS 12 firmware) and crdroid 13 (OOS 13 firmware). Also keep in mind that you have to use the boot image according to your installed firmware, if you want to install/test via fastboot.

    10
    Good new for OOS users. One of the TWRP devs found a workaround for data restore on OOS. Just delete "/data/system/users/0/package-restrictions.xml", after data is restored. I will exclude this file by default in a future build, but for existing backups, the file must always be removed manually.

    Edit:
    This is also useful for custom ROMs, because it makes first boot faster and eliminates the need to reboot again.