Development [RECOVERY][UNOFFICIAL] TWRP for barbet

Search This thread

TheSayaMan

Senior Member
Sep 12, 2016
453
204
really there is no need to flash twrp anymore. i usually just boot it by fastboot boot twrp.img. custom roms are not what they use to be. real custom roms. Project Treble & google ruined that. you only need advanced ==> sideload in twrp. every rom now a days seems to be based off android open source project and include their own generic custom recovery. so you only need to do a factory wipe in the stock recovery or fastboot -w in bootloader mode. just make sure you remove security pins, face locks, swipe locks first. TheSayaMan builds of pe or lineage include the recovery in the zip. so you only need to factory reset and then boot twrp to sideload. it installs everything else needed to work. the generic custom recovery it includes has a sideload mode that you can use to flash OTAs and/or magisk. making twrp more or less not needed. beyond the initial install.or if you want to make a nand backup.
I totally agree with you but he wanted to keep twrp permanently so I helped him with it. I don't have it permanently.
 

lilovirus

Member
Aug 16, 2007
8
0

Top Liked Posts

  • There are no posts matching your filters.
  • 21
    Download:
    twrp-3.6.0_11-0-barbet.img

    This is my unofficial built, fully working with A12 with some remarks:

    - internal storage decryption works but you have to set Screen lock to None or Swipe in Android Settings -> Security. If Pattern, Pin or Password are set storage decryption and MTP will not work until TeamWin fixes the code for A12.

    - nandroid backup/restore works but you might need to reboot Android a couple of times after restore until dalvic-cache fully rebuilds. Until then you will see black home screen background instead of your wallpaper... Just keep restarting until everything is back to normal.

    - DON'T MESS(WIPE) WITH METADATA in TWRP Advanced Wipe!!! If you do you can't boot Android until formatting data = factory reset.

    DO NOT FLASH THIS TWRP IMAGE IN FASTBOOT!!!
    Install TWRP form within itself after boot with fastboot.


    Not tested on A11 so might have some bugs...
    recovery.log and logcat are helpful.

    To boot it connect USB and run these commands:

    Code:
    adb reboot bootloader
    
    fastboot boot twrp-3.6.0_11-0-barbet.img

    While in recovery you can install it permanently on the boot partitions by going to Advanced and pressing Flash current TWRP. Root will be lost so after that you have to reboot to bootloader again, fastboot boot your magisk patched boot.img, direct patch boot with magisk to get root back and reboot. Done. You have root and TWRP on device. To get to TWRP:
    Code:
    adb reboot recovery

    Big thanks to @bigbiff, @Captain_Throwback and the entire TeamWin for their work!

    Source code:

    device tree - my GitHub
    recovery - TeamWin GitHub
    5
    Updated... Please redownload from OP

    - fixed touchscreen not working on A11 ROMs(not tested but should work), please report...
    - fixed MTP on reconnecting

    Do not flash twrp-3.6.0_11-0-barbet.img!!! Install it form its Advanced meny ones booted with fastboot...
    5
    Updated... Please redownload from OP

    - fixed vibration haptics
    - synced with latest TeamWin code

    Do not flash twrp-3.6.0_11-0-barbet.img!!! Install it form its Advanced menu ones booted with fastboot...
    4
    I changed magisk.apk to magisk.zip and flashed it in twrp to get root back. Patching is not necessary. Also I have been able to update lineage and keep twrp. This is what I do. I download the new lineage update and place it on my otg cable, you can keep it in your internal storage if you don't have a security lock pin/pattern etc. I use a OTG cable because I have a security pattern set and it won't encrypt internal storage. I also have the gapps on there as well and the twrp.img file. If you update through the built in updater on the phone it will overwrite twrp with lineageos recovery and you will have to boot twrp again in the bootloader. My way, you won't ever have to do that. So what you do next is reboot to twrp and go to install, select the lineage update file and flash it. It will automatically flash it in the opposite slot which is what you want it to do. When it's done, twrp will be overwritten but all you have to do is select install again, and choose install image and select your twrp.img file and install it as recovery ramdisk. This will get twrp back because it was overwritten with LineageOS recovery when you installed update. Now install gapps, it will install them on the current slot which is what you want. After it's done, reboot to system and wait for the update to complete. Then reboot to recovery and flash magisk.zip in recovery again to get rooted again. Reboot to system and your done. If you update this way, don't forget the part to install twrp.img as recovery ramdisk before rebooting the phone otherwise twrp will be gone and you will have to boot it in bootloader again.
    You can actually just flash the Magisk.apk in TWRP now, no need to change to Magisk.zip
    4
    It wouldn't be the likely culprit of the touchscreen issues being brought up, would it?
    Yeah forgot and ran the install script I usually use to install my boot.img.. But Idk about it stopping touchscreen inputs tho.
    Touchscreen wasn't working b/c A11 bootloader reports different bootreason value(guessing...) than A12(on what I test) and the script that loads the appropriate touchscreen drivers for the booted kernel got confused...
    Fixed it... Now script reads booted kernel cmdline which has special twrp fastboot portion and should never load wrong drivers.