yashsingh1/xdaforums huggingface dataset:
[OnePlus 9 Pro] MJPollard:
I'd use Swift Backup instead if I were you. TiBu hasn't been updated in ages, and it can't handle split APKs properly, thus you'd be boned when you tried to restore those apps (and it's not possible to tell if an app uses split APKs without, presumably, an app that can examine the APKs and tell you). Swift doesn't have nearly the number of esoteric bells and whistles that TiBu has (so if you need them, you can still use TiBu for them), but it has the advantage of a modern interface and can properly handle app backups on modern versions of Android. (It'll also back up text messages, call logs, wallpapers, and WiFi networks.)
[OnePlus 9 Pro] olmiks:
Thank you!! I did everything. TWRP managed to download to the computer. On Xiaomi, it is immediately clear that the folder with TWRP has weight, and on OnePlus 9pro looks like an empty one! How can I act with this downloaded TWRP further?
[OnePlus 9 Pro] TheGhost1951:
I believe he has already answered your question in post #441
[OnePlus 9 Pro] Alberhasky:
the last couple of builds are causing issues when flashing crDroid, I end up with an error... I took a screenshot of it but now cant seem to find it, I reverted back to (08-02-23) and I was able to flash crDroid just fine
[OnePlus 9 Pro] NAGARAJU02:
Yes I am also
[OnePlus 9 Pro] Alberhasky:
Ok I'm glad I'm not the only one, have you tried the older build that I mentioned? It worked for me, hopefully @der_akinator can fix the problem with a new build
[OnePlus 9 Pro] der_akinator:
Found the issue. New build is up.

23-02-28 - Google Drive

drive.google.com
[OnePlus 9 Pro] Jack Droid:
I found some matter with USB OTG HUB tha ìt is seems not recognized.....

Not a big matter as a simple pen drive can be detected, NTFS formatted as well but I would like to connect my HDD 250GB in order to backups/restore backups, custom roms and so on....

Just for confirm, anyone else is having the same ?
[OnePlus 9 Pro] Mogster2K:
Titanium Backup backs up messages but can't seem to restore them. I'm not sure when this started - maybe Android 12?
[OnePlus 9 Pro] TheGhost1951:
I am on A12 and after having to restore my phone, SwiftBackup restored everything perfectly. Apps and App Data, messages, call logs even wallpaper. Have used it on my phone and android TV box successfully.
[OnePlus 9 Pro] Mogster2K:
Oops. I meant that Titanium Backup is not restoring messages. I've edited my post to clarify that.
[OnePlus 9 Pro] MJPollard:
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.
[OnePlus 9 Pro] der_akinator:
To decrypt data of A12+ ROMs, TWRP has to be build from the 12.1 branch. You can try this yourself with this.

GitHub - minimal-manifest-twrp/platform_manifest_twrp_aosp: Minimal manifest for building TWRP for devices shipped with Android 10+

Minimal manifest for building TWRP for devices shipped with Android 10+ - minimal-manifest-twrp/platform_manifest_twrp_aosp

github.com

and

GitHub - TeamWin/android_device_oneplus_denniz

Contribute to TeamWin/android_device_oneplus_denniz development by creating an account on GitHub.

github.com

You probably have to adjust the fstab (can be copied from ROM) in device tree (DT) and some of the TW.* build flags in device.mk or BoardConfig.mk regarding crypto (use a 12.1 DT for same SoC as reference).

For installing ROMs, Magisk, etc. you don't have to copy the zip to device. Just use Advanced->ADB sideload (in TWRP) and execute "adb sideload <zip to install>"(on PC).
[OnePlus 9 Pro] Oswald Boelcke:
@TheGhost1951 I've sanitised this thread from your posts, in which you promoted a banned member. Please refer to your inbox for further information!

Regards

Oswald Boelcke

Senior Moderator
[OnePlus 9 Pro] :
can i use this twrp on oos11 cause i cant boot tp the twrp specific for oos11
[OnePlus 9 Pro] hankster112:
Seems to be having issues flashing itself. I flash TWRP from the advanced menu then try rebooting to recovery, but it just hangs and I have to boot to it manually again from fastboot. I did a full format (not wipe, format) before flashing it. Is there something I'm missing?
[OnePlus 9 Pro] der_akinator:
You can try to boot it, but I don't think data can be decrypted.
[OnePlus 9 Pro] der_akinator:
Which ROM and device do you use? And can you please further describe what you mean with hanging. If possible provide a logcat output.

Steps for logcat:

Connect to PC

Reboot to recovery (not fastboot boot twrp.img)

Run "adb logcat" and write output to file
[OnePlus 9 Pro] hankster112:
OnePlus 9 Pro (T-Mobile), it did have the latest OOS ROM before I wiped it. I flash TWRP, it succeeds, I reboot to recovery from the TWRP reboot menu, device reboots but then it stays on the OnePlus boot screen indefinitely. Since it's a blank phone there's no ADB so no logs, unless I'm missing something.
[OnePlus 9 Pro] hankster112:
Log is too big to dump, but it's filled with this:

01-28 20:37:13.451 213 213 E (7)[213:kworker/7:4][19700128_20:37:13.450910]@7 hh_rm_console_write: Unable to send CONSOLE_WRITE to RM: -22
01-28 20:37:13.455 213 213 E (7)[213:kworker/7:4][19700128_20:37:13.451770]@7 hh_rm_call: Reply for seq:65508 failed with RM err: 6

log

MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.

www.mediafire.com
[OnePlus 9 Pro] hankster112:
Managed to push files to the device using ADB instead, installing LOS, NikGApps, and Magisk now. Will edit with results.

Failed with mount errors, TWRP definitely has to be properly installed on the device before trying to install anything. Back where I started.
[OnePlus 9 Pro] hankster112:
Did a full wipe again and reinstalled TWRP, rebooted to recovery, boot screen now shows a "bootloader unlocked" message and boots straight to TWRP. Things are working now?
[OnePlus 9 Pro] hankster112:
Phone is now working, have LOS, NikGApps, and Magisk. What I've found out:

Mount errors are related to how KDE handles MTP, instead of mounting it like a normal disk it instead uses its KIO service, which doesn't work. Pushing files to device manually using 'adb push [file] [location]' works fine. (also had to manually create the folder from TWRP by using a terminal and 'mkdir /data/install)

Flashed LOS > NGApps > Magisk, but didn't choose to reflash TWRP. So TWRP was overwritten with LOS recovery which I don't want. Rebooted to bootloader one last time, 'fastboot boot boot*.img', then flashed TWRP and rebooted to TWRP again to test it was installed. Then booted to system.

LOS is now installed.

That was more painful than it should've been but I got it working now.
[OnePlus 9 Pro] der_akinator:
Good to hear that you managed to install LOS. I assume the log is from fastbooted twrp with OOS installed. So it seems like TMO firmware only supports keymaster4.0 and not 4.1. I'm not sure if that's what caused the issue, but I will add the binaries from latest TMO ROM.

I also noticed some issues with MTP, but havn't thought it's on TWRPs side and not KDE, since I never used it on any other OS. If you can't access data on phone you can always use adb sideload with Advanced->ADB sideload in TWRP.

Edit: Based on the logs, I now think that the kernel can't find the display driver (msm_drm.ko) which is usually placed in vendor boot, but seems to be missing. Maybe it's installed into boot for TMO.

I'm also having some trouble finding a TMO OTA, since it's not available in oxygen updater. So it would be nice if anyone could share a link.
[OnePlus 9 Pro] Jack Droid:
Hi all,

I would like to dowgrade my F.74 to F.16 by using these REPO : https://xdaforums.com/t/oneplus-9-pro-rom-ota-oxygen-os-repo-of-oxygen-os-builds.4254587/

The releaser advise that you can flash them through TWRP and that sounds good.

Which steps I have to follow in order to do a clean downgrade into TWRP console ?

Many thanks
[OnePlus 9 Pro] der_akinator:
I don't know how this works. You should ask in the thread you have linked.
[OnePlus 9 Pro] osm0sis:
I figured out how to workaround the issue of TWRP itself not showing backups in the Restore list (shows contents of / or /data instead).

Copy /data/recovery/.twrps to /sdcard/TWRP/.twrps

You can then safely use the advanced setting to Change TWRP directory as well.

@der_akinator, this sounds like another unintended regression from the /data/recovery/.twrps patchset @apophis9283 was talking about, along with the bad context/ownership/permissions issue. Might be worth reverting?
[OnePlus 9 Pro] der_akinator:
I think I know which commit you are talking about. I can upload a new build tomorrow.
[OnePlus 9 Pro] Nhatlienhoan:
I'm dumb enough to update to f.20 without knowing. (Updated using suggested method led to camera app, assistant ball, smart sidebar, and a few more apps to disappear, otherwise, phone works ok)

My question is can I flash crdroid? And if so, what are the steps? I kinda get sick of buggy OOS 13.

Thanks in advance.
[OnePlus 9 Pro] TheGhost1951:
The steps? Read the posted instructions, there are the steps.....
[OnePlus 9 Pro] Nhatlienhoan:
Thanks for your response. I'm not asking to install/update TWRP. But to flash a new different ROM via TWRP, not updating. I notice that the "official" instruction said to flash dtbo, vending_boot and boot img which will replace TWRP. I can of course flash the new ROM via fastboot and install TWRP after, but if I can do it with TWRP installed, I'd like to. Have a good day!?.
[OnePlus 9 Pro] TheGhost1951:
Oh I got it, you want a shortcut way of doing it....gotcha!
[OnePlus 9 Pro] Releece:
I was running OOS11 before with TWRP3.7.0 built for denniz (OnePlus Nord 2) Android 11. I remember that booting this build always failed, but for some reason flashing it worked without any problems, I was even able to decrypt my /media/data/ folder strange enough...

Just don't forget flashing vbmeta.img with the right command before flashing recovery.

Have you tried flashing it yet?
[OnePlus 9 Pro] der_akinator:
First time installation follows the same pattern as updates. Just make sure that your firmware matches the one required by ROM.
[OnePlus 9 Pro] der_akinator:
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.

23-03-14 - Google Drive

drive.google.com
[OnePlus 9 Pro] TheGhost1951:
The one strange thing I have noticed with TWRP is that from bootloader if you issue the command fastboot reboot fastboot, it boots to TWRP instead of the factory fastbootd. Is that normal? And can you flash bin files in the TWRP interface as you would fastbootd factory?
[OnePlus 9 Pro] der_akinator:
It's both fastbootd, so you can do all the fastbootd stuff. Of course the TWRP version only provides features described in specification and no OEM stuff. I'm not sure what the bin files are you referring too, but flashing protected partitions (firmware) and so on works fine.
[OnePlus 9 Pro] TheGhost1951:
Yeah, if your TMO phone is TargetID IN, you can flash an original param.bin in fastbootd mode and get back to TargetID of TMO.... that is the only reason I inquired...
[OnePlus 9 Pro] der_akinator:
If it's a normal partition and is normally flashed with "fastboot flash ... param.bin", it probably works. But I can't confirm it since I don't own a TMO device.
[OnePlus 9 Pro] TheGhost1951:
Thank you for the info... I might try it just to see if it works...
[OnePlus 9 Pro] osm0sis:
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
[OnePlus 9 Pro] der_akinator:
Sorry, I forgot to add latest patch. Latest build is now replaced with fixed version.
[OnePlus 9 Pro] :
yes its working fine for now
[OnePlus 9 Pro] osm0sis:
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.
[OnePlus 9 Pro] der_akinator:
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.
[OnePlus 9 Pro] Need4Sneed:
Hey, quick question. To update this TWRP, when the OP says flash the twrp-installer.zip, that means flash the zip in TWRP, then reboot to recovery into said updated TWRP, correct? Just wanna be 100% sure, since this is my first A/B device (been using a OP5 since it was released and only JUST switched to a OP9). If I'm just updating TWRP, I don't need to flash to any specific slot, right? Since there's other ways to flash ZIPs, it seemed like a prudent question . . at least in my case.

Thanks you for this TWRP! It always nice to have a backup(s) of all of my partitions on my backup SSD, just in case my device decides to have a bad time! So thank you for your contributions to the community!
[OnePlus 9 Pro] Need4Sneed:
Maybe someone can answer a question for me: If I wanna replace this TWRP with LineageOS recovery, can I still follow the instructions for installing LOS 20, or do I need to take any extra steps? I remember reading that there is no dedicated recovery partition anymore, so it says to flash it to boot, but just wanted to confirm that that'll replace TWRP with LineageOS revovery.

Thanks!
[OnePlus 9 Pro] TheGhost1951:
Flash the required boot.img will replace TWRP.
[OnePlus 9 Pro] der_akinator:
Yes, just flash in TWRP.
[OnePlus 9 Pro] Need4Sneed:
Thank you!

Thanks for the reply, and thanks for this TWRP!
[OnePlus 9 Pro] shadabkiani:
Where can I find the changelog?
[OnePlus 9 Pro] der_akinator:
There is no changelog. You can either look for update posts which contain a summary of some changes or look into the git history.
[OnePlus 9 Pro] stez827:
Does this recovery work with OOS 13 based roms on the regular 9
[OnePlus 9 Pro] TheGhost1951:
Did you read the title?
[OnePlus 9 Pro] stez827:
I didn't know if it was only OOS 12 based a13 roms or OOS 13 based ones also
[OnePlus 9 Pro] olmiks:
Hello! If not difficult, tell me. Is there a custom TWRP today, capable of not only creating a backup system, but also restore data from a backup? I have an OnePlus 9PRO phone, T-Mobile operator (LE-2127), Oxygenos, Android 12, the bootloader is unlocked, there is a root. Would be very grateful!
[OnePlus 9 Pro] TheGhost1951:
The TWRP in this thread being talked about.
[OnePlus 9 Pro] olmiks:
Have you tried to restore data from backup? If so, then on which version of TWRP and what specific sections of the system?
[OnePlus 9 Pro] TheGhost1951:
I don't install TWRP. Although I have flashed this version through Magisk and created a complete backup, I have not restored from a backup. If you start with posting #1 and read through the rest you more than likely will find all your answers you are looking for....🙂
[OnePlus 9 Pro] olmiks:
Why then create a complete backup if it is impossible to recover from it?
[OnePlus 9 Pro] TheGhost1951:
I just don't use TWRP so I have not installed to to use as an Android backup. I backup internal storage to PC and use SwiftBackup for apps and app data. If I do a restore, it is done with a clean wipe and flash with MSM tool. That way I won't be re-installing any extra junk that was in the backup!
[OnePlus 9 Pro] ikram.senguen:
idk, just backuped and restored a custom-rom with this recovery without any set password, worked perfect
[OnePlus 9 Pro] olmiks:
Which version of the TVRP was used? You have a custom firmware, and I have Oxygen OS. I'm not sure what will work out.
[OnePlus 9 Pro] ikram.senguen:
yea thats the thing that bothers me too, it worked with un-encrypted custom rom, aka without-password backup and single wipe factory reset right before restoration (not full format)

i use latest unofficial TWRP, thing is i did some kränky sht and had to restore from TWRP while i could not see a damn thing and had to navigate in recovery that looked like this:

View attachment 5871221

.. and it still worked, i just waited for the vibration indicating that restore is finished haha
[OnePlus 9 Pro] der_akinator:
Which ROM and device model do you use?

Edit: Did this happen after you messed around with with your ROM or does TWRP looks always like this?
[OnePlus 9 Pro] ikram.senguen:
this was from the blissrom on OnePlus 9 Pro, but dont get confused by the attached faulty state happened when i forcefully tried blue_spark_kernel on blissrom, boots up but boot-screen & recovery looked like this

Edit: yas
[OnePlus 9 Pro] der_akinator:
If that happens again, just temporarily boot TWRP with fastboot. Since the TWRP image contains a kernel and modules, it is not affected by a messed up system kernel and modules.
[OnePlus 9 Pro] ikram.senguen:
sure thing would have done that but i was at work and had to use my memory and the power of google pictures of TWRP shots
[OnePlus 9 Pro] patkoz16:
what is it '' change backup selinux context.zip'' ?
[OnePlus 9 Pro] der_akinator:
It's a fix for those who can't access backups from system.
[OnePlus 9 Pro] Alberhasky:
How come you're not the official maintainer of TWRP for this device yet? @der_akinator ?
[OnePlus 9 Pro] der_akinator:
I have to submit some of the recent device tree changes, but after that the next official release could be build from 12.1 branch.

Another obstacle is the fragmentation introduces by OOS 12 and 13 firmware, which has to be incorporated into the official build infrastructure. Maybe I will just release unofficial OOS 12 firmware builds and only 13 will be official.
[OnePlus 9 Pro] MudaTrucka:
Magisk doesn't install anymore. Tried flashing in twrp, doesn't install
[OnePlus 9 Pro] osm0sis:
I just tried Magisk 26001 over Lineage 20 in TWRP and it worked perfectly.

You didn't supply a log or anything...
[OnePlus 9 Pro] der_akinator:
No issues at my end with latest twrp build and OOS 13. I tried Magisk 26 on top of 25.2 and also clean without any problems. The only thing I noticed was that Magisk required a second in app install.
[OnePlus 9 Pro] TheGhost1951:
Please explain this statement "The only thing I noticed was that Magisk required a second in app install."
[OnePlus 9 Pro] osm0sis:
Magisk 26+ needs to find the location for preinit module files while booted, so a recovery install will prompt you to Direct Install immediately upon opening the Magisk app. It's intentional by Magisk, nothing recovery can do to improve it.
[OnePlus 9 Pro] TheGhost1951:
Understand, that is my normal procedure if I install patched boot img, however if I install the magisk app in twrp, the only thing I have to do is update the app per magisk request. I prefer to install through twrp instead of trying to get a patched image. This way it uses the current boot img installed on the device.
[OnePlus 9 Pro] der_akinator:
No need for a patched boot image and no need to use a PC. It's just two steps in Magisk app and a reboot.
[OnePlus 9 Pro] TheGhost1951:
Now that is a new procedure for me. Can you be so kind to elaborate the process? Normally if I just install the magisk app, click on install, there is now option for direct install. Only select file to patch.
[OnePlus 9 Pro] der_akinator:
It's more or less the same. So the process of installing through probably any recovery is as follows.

Install Magisk app

Reboot to recovery and flash Magisk.apk

Open Magisk app, which guides you through the additional steps (see attached pics)

Click OK on prompt "Requires Additional Setup"

Select "Direct Install"

Click "LET'S GO"

Reboot

I haven't tried any other installation methods.

PS:

Magisk release notes for some additional information

Release Magisk v26.0 · topjohnwu/Magisk

Hey! Long time no see! Bumping Minimum Android Version to 6.0 Magisk's support for Android Lollipop has been pretty broken for a while without it being noticed. Also, none of the active developers ...

github.com
[OnePlus 9 Pro] TheGhost1951:
Thank you my friend, may you and family have a blessed Easter!
[OnePlus 9 Pro] bigd2442:
Hey guys. can someone help me confirm, This works with OTA F.18,

if already rooted and unlocked I just flash the TWRP zip in Magisk?

If so, do I need to redo Magisk afterwards?

Thank you!
[OnePlus 9 Pro] ikram.senguen:
Yes & No (but maybe)
[OnePlus 9 Pro] bigd2442:
I must be done something wrong...

installed TWRP app and gave root permissions.

opened and as soon as I touch install it crashes.

is there a way to flash the download TWRP.zip directly from Magisk?
[OnePlus 9 Pro] ikram.senguen:
What happens when u flash

Idk who does use the app, i dont, suggest sticking to the universal method at Page #1, booting the twrp image and then perma installing it through its settings

but magisk installation should work tho
[OnePlus 9 Pro] bigd2442:
thanks

this is the method I was following from page 1 but I don't understand how to use Magisk to flash....

1. Option for rooted devices:

Download the twrp-installer zip

Flash it with Magisk manager or some other kernel flash utility

Reflash your custom kernel and Magisk if previously installed

What do you mean booting the twrp img?

Install with fastboot?
[OnePlus 9 Pro] ikram.senguen:
fastboot boot TWRP.img

Or magisk:

View attachment 5886227

View attachment 5886229
[OnePlus 9 Pro] bigd2442:
figured it out... my zip download was corrupted so it wouldn't let me select it.

trying now. thank you!
[OnePlus 9 Pro] patkoz16:
backup restore still doesn't work ?
[OnePlus 9 Pro] bigd2442:
OK so i have TWRP installed however what is the method to re-root now?

If I fastboot flash the magisk-boot.img I get temp SU and then can install SU via magisk, however this resets my recovery back to stock.

How do I root and and keep twrp?
[OnePlus 9 Pro] TheGhost1951:
Temp boot twrp from fastboot, then in twrp install magisk apk. Reboot to system, tap on the magisk app to finish install. Then install twrp through magisk app. Basically that is the procedure.
[OnePlus 9 Pro] ikram.senguen:
Like Ghost said, maybe rename & install magisk.apk to magisk.zip through twrp
[OnePlus 9 Pro] bigd2442:
Thanks guys.

@TheGhost1951 , I did exactly that however it loses root after flashing TWRP.

If I try to reinstall Magisk as soon as I direct install, TWRP is replaced with OEM recovery.

Any other ideas?

Is there a "TWRP recovery- Magisk boot.img" ?

Or can I place the TWRP.img in the root folder renamed "boot.img" and then have magisk use THAT as the direct install boot that it modifies?
[OnePlus 9 Pro] ikram.senguen:
Idk, have u tried installing magisk trough twrp while the twrp Option "reflash twrp after Rom flash" is active? Other than that, somethings got confused and u could try full uninstall magisk and than all over again
[OnePlus 9 Pro] bigd2442:
I'll try that. thanks
[OnePlus 9 Pro] bigd2442:
that did it! thanks brotha!

if anyone is ever having this issue, here's what fixed it.

1.Flash TWRP via fastboot flash TWRP.img

2. Boot to recovery, install Magisk.apk (first decrypt phone to see files)

2b. **check box "reflash TWRP after ROM"**

3. Reboot system, open magisk app and check "direct install".
[OnePlus 9 Pro] der_akinator:
TWRP installation overwrites all changes done to the boot partition. So you have to always reflash Magisk, custom kernels etc. afterwards.

I updated the installation instruction to hopefully make the process clearer.

And please never directly flash twrp.img to boot image. That overwrites the ROM kernel and probably ends in a bootloop.