yashsingh1/xdaforums huggingface dataset:
[OnePlus 9 Pro] raven428:
Also, trying to test restore and can't perform it working on OOS 12C65 (global), I tried ColorOS 12C68 before. My sequence:

1. Install LE2125_11_C.65 from this post by Oxygen Updater

2. Format data by stock recovery

3. Start the system, perform the minimal configuration without a pin

4. Remove some applications to make data a bit different from the default

4. Power off, then power on from the three buttons to the bootloader

5. "fastboot boot boot-oos12-firmware.img" from 08-02-23 (12.1-5)

6. Backup only data from booted twrp

7. Wipe from the same twrp without formatting data

8. Start the system, perform minimal configuration without a pin

9. Power off, then power on from the three buttons to the bootloader

10. "fastboot boot boot-oos12-firmware.img" from 08-02-23 (12.1-5)

11. Restore data from this booted twrp

12. Trying to start the system and got a boot loop

13. The system tries to load, then reboot and tries to load again and again

However, the restoration worked as expected with the crDroid 12.1-20221219 based on C63 vendor files. How to fix restoration on OOS12 also ColorOR12? I'm not able to move on A13 firmware because no GravityBox there
[OnePlus 9 Pro] der_akinator:
I try to reproduce and figure out whats going wrong there. What you can try for now is wiping caches.
[OnePlus 9 Pro] raven428:
I tried wiping caches with no luck. Also, I made my sequence quite shorter:

1. Install LE2125_11_C.65 from this post by Oxygen Updater

2. Format data by stock recovery

3. Start the system, perform the minimal configuration without a pin

4. Remove some applications to make data a bit different from the default

4. Power off, then power on from the three buttons to the bootloader

5. "fastboot boot boot-oos12-firmware.img" from 08-02-23 (12.1-5)

6. Backup only data from booted twrp

7. Wipe from the same twrp without formatting data

11. Restore data from this booted twrp

12. Trying to start the system and got a boot loop

13. The system tries to load, then reboot and tries to load again and again

Even instant recovery after the wipe falls to the boot loop 😢 Also, I collected the recovery log. This is not the log from the sequence above: restoring only
[OnePlus 9 Pro] NAGARAJU02:
Sir nameless-aosp and xtended rom this both or not install some error

Now I am testing evolution x, crdroid, lineageos, stag os, pixel extended, some other rom working fine👍
[OnePlus 9 Pro] Andsie:
Hi,

I confirm, that usb issues are gone since version ... - 4

Thx alot
[OnePlus 9 Pro] der_akinator:
I haven't found a good way to deal with OOS at this point. The only solution I found for the boot loop is to format data and reboot. Directly restoring data after formating somehow results in a tar error. I will dig a bit deeper regarding the tar error at the weekend. Maybe this could be the way to go. But for now it's just bad news and I will put a notice on the first post.
[OnePlus 9 Pro] Bleuzen:
Hi @der_akinator , sadly this TWRP fails to flash OOS 13. I want to flash the latest (F 74) updates full zip: link

but:

Error applying update: 23 (ErrorCode::kDownloadManifestParseError)Updater process ended with ERROR: 1
[OnePlus 9 Pro] der_akinator:
Installing OOS with TWRP isn't possible. There is a link in first post under section "ROM Updates" with update instructions by @ffejy462 for OOS users.
[OnePlus 9 Pro] Steve0007:
Creating a clone app like whatapp creates a second user. There is an ADB command to look at profiles / users

adb shell pm list users if iam right
[OnePlus 9 Pro] jamescable:
How should we flash this if we already have twrp?
[OnePlus 9 Pro] osm0sis:
Does the A/B flashable zip with the TWRP ramdisk in it work to install it? Might be able to skip the vendor_boot steps that way.

GitHub - osm0sis/twrp_abtemplate: TWRP A/B Installer Zip Template

TWRP A/B Installer Zip Template. Contribute to osm0sis/twrp_abtemplate development by creating an account on GitHub.

github.com
[OnePlus 9 Pro] der_akinator:
I will try it. Thanks for your tip.
[OnePlus 9 Pro] der_akinator:
The only tested method for updating is the default installation procedure. But if you want you cant test the update method used for the official builds.
[OnePlus 9 Pro] Evon88:
broooooooo, now you are helping all op9p users

much love and respect 😭
[OnePlus 9 Pro] osm0sis:
I tried it out over latest Lineage and it does seem to work! I even then re-rooted with Magisk and re-flashed blu_spark from within TWRP. 🥳

Only issue (but it's pretty big) is that vibration is broken and it seems to hang the UI hard any time it tries to vibe, so my workaround is to hit Cancel at the Decrypt page, go to Settings and turn all the vibration down to 0, then go back to Mount and Decrypt Data from there. (You can also just be verrrrrry patient when doing pattern.)

Not sure if this is because I installed the whole ramdisk directly like that or because it's over Lineage. I'm guessing the latter, with some kind of modules mismatch?

Any ideas how to resolve that? Disabling vibration entirely might be needed, since I recall @Nebrassy never got it working across all ROMs.

Either way, being able to use the TWRP zips will save a lot of headaches for rooted users. 🙂

P.S. Also great that vendor_boot is only need for fastboot tempboot, since that means my twrp_ab addon.d-v2 script should work for us already! 🤘

P.P.S. We need to get you in the TWRP Development Zulip if you're not lurking there already: https://rebrand.ly/teamwin-recovery-zulip-community

Edit

: twrp-installer-3-7-0_12-0-20221129-lemonadep-zip attachment removed since a newer build exists.
[OnePlus 9 Pro] TheSayaMan:
Upon first boot, twrp was freezing and wouldn't let me enter screen lock but after another reboot, its working perfectly.
[OnePlus 9 Pro] der_akinator:
Yes, your twrp install script works for me too. Tanks for that.

I disabled vibration in a fresh build. Maybe I will find a way to get it working but it isn't important.

I think it's is reasonable for non root users to take the extra two steps in comparison to the official version because it's a one time thing. Updates are possible by using the zip installer.
[OnePlus 9 Pro] der_akinator:
Update

Sorry for the short update cycles but there are some problems with vibration that results in heavy input delays.

But the new update also includes a zip installer by @osm0sis which you can just flash to update your currently installed version.

Download:

30.11.22 - Google Drive

drive.google.com
[OnePlus 9 Pro] erad1:
So first off ...thanks for the awesomeness! But ... I'm having an issue with roms not flashing because of a "timestamp" issue? Is there a workaround?
[OnePlus 9 Pro] GeminiRx:
Quick question.

The following is not clear to me.

In step 1 it says to download your own vendor_boot.

In step 3 it says to flash it but which one? My own one or the TWRP one. (I'm currently on CrDroid13)
[OnePlus 9 Pro] TheSayaMan:
You flash the twrp one in order to boot twrp, then after permanent install, you flash yours or it won't boot to os
[OnePlus 9 Pro] GeminiRx:
Thx for the quick answer. That worked :)
[OnePlus 9 Pro] osm0sis:
Now that there's a TWRP zip you could skip vendor_boot shenanigans altogether by, a) flash from Magisk app, or even b) flash from custom ROM recovery like Lineage Recovery. 🤘
[OnePlus 9 Pro] TheSayaMan:
Your welcome, anytime
[OnePlus 9 Pro] IamTheBRAVE:
When flashing from magisk, do we flash to inactive slot?
[OnePlus 9 Pro] TheSayaMan:
Actually no, when you boot this twrp, it will not boot to twrp without the twrp vendor_boot. Likewise, the os won't boot unless you replace it with the original vendor_boot from stock, rom, etc.
[OnePlus 9 Pro] TheSayaMan:
No it will automatically install to active slot. You can change slots but no reason to.
[OnePlus 9 Pro] der_akinator:
Can you please send me a logcat and recovery log. I have seen an initscript related to timestamps in Nebrassy's op7 device tree. Maybe this would solve the problem.
[OnePlus 9 Pro] Mr.Conkel:
I would just install your chosen rom + gapps first with the provided recovery and adb sideload commands. Then after the first boot you can fastboot the twrp based on the firmware you are running and install twrp through the advanced settings area which should work fine
[OnePlus 9 Pro] Mr.Conkel:
When using the OOS13 firmware twrp boot.img everything seems to work fine. However I attempted to flash systemrw 1.32 and while the script says its a success within the twrp log it does not grant the permissions which also causes dfe to fail as well as gpu drivers which I use as well because vendor needs to be mounted as rw which is what the first package grants.

When switching firmwares to oos12 and flashing system rw it works perfectly. Not sure what the problem could be however I was very confused for awhile 😅
[OnePlus 9 Pro] Jack Droid:
Hi Mr.Conkel,

many thanks for your reply but it seems it doesn't reply to my question....or maybe I have not understood what you mean !!!

I mean....My question is if may I flash boot.img / vendor_boot.img / dtbo.img and ROM zip directly through TWRP "INSTALL" button..

Could it be possible or not ?

Thanks
[OnePlus 9 Pro] der_akinator:
Currently you can only flash boot with Install->Install Image.
[OnePlus 9 Pro] Jack Droid:
Hi der_akinator,

thanks for your reply.

Why only boot.img can be flashed at the moment ?

I do not understand the difference between TWRP flashnig methid and Fastboot / ADB sideload and the other stuff.....

I ask only for better understand as I have anyway understood that the correct procedure is by using Fastboot / ADB sideload and so on.....
[OnePlus 9 Pro] der_akinator:
I uploaded a new build with which you can flash vendor_boot and dtbo. It also adds backup support for additional firmware partitions.

21-02-23 - Google Drive

drive.google.com
[OnePlus 9 Pro] Jack Droid:
Well noted with many thanks !

So, it could be done !

But why usually all other releases ( ROM, custom kernel and so on ) advise to flash with fastboot / adb sideload if it could be done with TWRP in the easier way ???
[OnePlus 9 Pro] der_akinator:
Both methods do exactly the same thing. But if you want to install your rom without twrp, you have to use fastboot. What you are basically doing by flashing dtbo, boot and vendor_boot is installing the default recovery of your rom. The reason for all roms to take their approach is to be independent of any other third party like twrp.
[OnePlus 9 Pro] Mr.Conkel:
{Mod edit: Quoted post has been deleted. Oswald Boelcke}

v1.32 is working just fine on A13. For me with Crdroid v9.2 twrp was the problem which is why I posted here. But thanks for that I wasn't aware of the updates!
[OnePlus 9 Pro] TheGhost1951:
My mistake, custom roms I believe are UFS file systems which the 1.32 does work for them. Stock A12 and A13 are EROFS file systems which require the newer sysrw_1.35 script.....
[OnePlus 9 Pro] Jack Droid:
So, considering I want to flash a custom rom awith TWRP installed I would :

to flash TWRP by using Fastboot after that, to flash the custom rom by using INSTALL button into TWRP

without flashing dtbo, boot and vendor.img

?

Another question : why would I flash a custom rom without TWRP ?

For example, TWRP is necessary for Nandroid backup and restore in case of matter so it is very usefull to have onboard....

One more question :

you said that "The reason for all roms to take their approach is to be independent of any other third party like twrp".

It means that recovery provided by custom rom releaser does the same work as TWRP ? ( nandrod backup, restore backup, flash and so on )

Sorry for all these questions but I'm a bit confused and I don't want to do a mess with my new device ( it will arrive tomorrow ! )
[OnePlus 9 Pro] der_akinator:
Can't you just flash gpu drivers directly, if you arn't using OOS? I think all customs roms use ext4 for system, vendor etc. and should be rw mountable. In case it fails due to space requirements, you could try to resize according partitions in fastbootd.

Moving Fastboot to Userspace | Android Open Source Project

source.android.com
[OnePlus 9 Pro] TheGhost1951:
Installing the correct TWRP, just fastboot boot TWRP, then tap on advanced, then tap on install current. That is what I have heard is the safest way to install TWRP. Just thinking out loud here.😁
[OnePlus 9 Pro] Mr.Conkel:
The answer to that question oddly is no. DFE and Twrp drivers can't be flashed without Systemrw first.

I had to flash my rom + gapps with oos13 firmware switch to oos12 firmware boot twrp successfully flash systemrw and then replace oos13 firmware so the device will boot. Interesting process but it worked

Having dfe also makes updates dramatically easier for someone who likes to keep their data.
[OnePlus 9 Pro] osm0sis:
Seems to take a lot longer to boot and show the decryption prompt than -5. 🤔
[OnePlus 9 Pro] der_akinator:
It's basically just fstab changes, but I have an idea what might cause this even though it doesn't happen on my system. Will do some test this evening. Just switch back to last build for now.
[OnePlus 9 Pro] der_akinator:
Uploaded a new build that reverts some of the fstab changes. Works fine on my device and hopefully on yours too.

22-02-23 - Google Drive

drive.google.com
[OnePlus 9 Pro] osm0sis:
Working great again! 😁
[OnePlus 9 Pro] Jack Droid:
Many thanks !
[OnePlus 9 Pro] olmiks:
Greetings everyone! I ask for help! I have OnePlus 9 Pro., Android 12, t-mobile. Tell me, is there a TWRP phone for android 12 for this, which can not only create a full backup of the system, but also restore the system from the created backup? At least Data? I tried various versions of TWRP. The backup seems to be doing, but when trying to restore, it hangs on the logo and that’s all. We have to reinstall the system. Maybe someone will help to solve the problem?
[OnePlus 9 Pro] Jack Droid:
Hi all,

just to advise my experience :

I flashed TWRP boot-oos13.img with FASTBOOT commands and afterwards, I flashed a custom ROM.zip directly from TWRP INSTALL button and everything was very fine ( no bootloop or any other matters ).

NOTE

( always enable "

Automatically reflash TWRP after flashing a ROM

" otherwise the new custom rom, will erase your TWRP at first boot ).

Then, I have done a completely backup and I flashed other three custom ROMs in the same way as above.

Finally, I restored the first rom's backup and everything was very fine again.

All done by simply press INSTALL / BACKUP / RESTORE ( and obviously wipe dalvik/data and a factory reset before to proceed to boot the new ROM for the first time ) and

WITHOUT a PC

( and relevant adb craps commands.......) so that yo can do ALL your trials by the phone , until you find your preferred rom.

Last but not least, ALL roms tried since now perfectly works without any matters ( camera, internet, various apps and so on.....)

You can do that at park, at sea, at mountain, in your car and even at the toilet....! Wherever you want.

( I suggest to use an USB device even NTFS formatted like mine, in order to storage rom.zips and TWRP backups, just to be safe after factory reset and various wipes ).

EASY, FAST and SAFE.

Many thanks to der_akinator for his good work and for

this very useful and smart

tool !!! ( in my opinion, a must-have )

Go on like this 😃
[OnePlus 9 Pro] TheGhost1951:
Sounds good, 2 questions, 1 which version of TWRP, 2 do you use any type of security such as fingerprint, password, pattern?
[OnePlus 9 Pro] Jack Droid:
Hi,

first of all be sure to download the last TWRP version ( 22-02-2023 ).

Then, if you are on OOS12 you have to flash boot-oos12.img whereas if you are on OOS13, you have to flash boot-oos13.img ( I have used boot-oos13.img ).

I have never had to use any kind of fingerprint/pin pattern and I'm not using now....

If you want to do that, kindly read carefully some relevant restrictions into the first post.

Anyway, you can find all needed flashing instructions into the first post as well.
[OnePlus 9 Pro] der_akinator:
Please read the Backup/Restore section in the first post. For OOS restore of data leads to a bootloop. Currently the only way to get out of it is to format data. Before you do that you can manually copy your files in internal storage to a PC.
[OnePlus 9 Pro] olmiks:
Thank you! It is a pity that there is no way to solve the problem. I hope that someday there will be TWRP, which can completely restore the backup system! I had Xiaomi, on which it turned out without problems!
[OnePlus 9 Pro] der_akinator:
I think the best solution for OOS users is to use some thing like titanium backup for apps and their data and for the rest twrp. Internal storage has to be backuped manually in any case.
[OnePlus 9 Pro] TheGhost1951:
SwiftBackup is great for Apps and App Data if you are rooted....
[OnePlus 9 Pro] Jack Droid:
For me, TWRP is perfectly working for backup/restore on Oneplus 9 PRO and on Galaxy A52S 5G
[OnePlus 9 Pro] Nhatlienhoan:
@der_akinator or anyone,

Just to be safe here. I'm on Oneplus 9 Le_2115 OOS F.17, Will try to update to F.18 (by suggested method mentioned in #1).

Supposedly if everything works well, I should be on Oneplus 9 OOS F.18 with root (Magisk 25.2) and TWRP. I want to clean flash Crdroid (based on F.18). Here's the steps:

1. Back up data partition in TWRP

2. Copy to wherever (computer, USB, ...)

3. Download Crdroid zip.

4. Enter TWRP

5. Wipe cache, davik, system, data (should I format data - erase internal storage too?)

6. Flash Crdroid.zip via TWRP (without "Automatically reflash TWRP after flashing a ROM" checked?)

7. Flash GApps, Magisk, etc.

8. Reboot

9. Install TWRP

10. Reboot to TWRP

11. Restore data partition

12. Reboot

Should these steps allow me to:

a) Install the new Crdroid rom? (not updating)

b) Have a well running phone with new rom (assume I didn't make any mistakes along the way)?

c) Be able to have all app+data back without compatible issues (since the backuped one was from OOS F.18 and the new rom is Crdroid)?

d) My internal storage remains?

For clean flash, do I need to sideload rom zip using recommended recovery or I can just use TWRP to flash directly?

I'm sorry for a long and nooby question, but I really don't want to mess this phone up (frustrating to get it back to life) and I'm too itchy to try new ROM now to stay aput.

Thank you so much for making TWRP alive again for A13!!
[OnePlus 9 Pro] der_akinator:
I think data has to be formatted, if you come from OOS. I also haven't tested restoring an OOS data backup to custom rom, but I think it should work. Just to be safe copy all your data (internal storage) and twrp backup to a PC or USB drive. And to be extra safe make a backup of your app data with an extra app like swift backup or titanium backup. But you can first try to restore data from twrp and report, so we all know.

You can try to boot crdroid without formatting data, but if it bootloops format it and reboot to system.
[OnePlus 9 Pro] Evon88:
im on a13 nameless , base is oos 12

can i install this twrp to flash oos 13 then install any custom rom

and sorry my en is bad
[OnePlus 9 Pro] olmiks:
Good afternoon Please help. I have OnePlus 9 Pro, T-Mobile, Android12, Assembly version Le2127_11_C22. Installed the latest version of TWRP from 02.23.23. When trying to create a backup of any section, the process goes and ends successfully! But in fact, nothing is created - the folder is empty! What could be the problem?
[OnePlus 9 Pro] der_akinator:
Installation of OOS OTAs doesn't work. Only solution is to have a OOS twrp backup or MSM tool.
[OnePlus 9 Pro] der_akinator:
Somehow it is only accessible from twrp and not from system. To view, copy, whatever you have to reboot to twrp.
[OnePlus 9 Pro] TheGhost1951:
TWRP create a backup to the internal storage in a TWRP folder which you can copy to PC for safe keeping. Or back up to a thumb drive... It is not invisible, however, it can only be restored after booting back into TWRP.
[OnePlus 9 Pro] TheGhost1951:
Do you have lock screen enabled with pattern, passcode or anything like that. That can create an issue with TWRP.
[OnePlus 9 Pro] olmiks:
No, I do not use locking at all. Trying to make TWRP backup. He writes that the process is completed successfully .. I go into the internal memory. The TWRP folder is empty!
[OnePlus 9 Pro] TheGhost1951:
If it were me, I don't use TWRP, I would wait for the official TWRP to be released. Just my thoughts!
[OnePlus 9 Pro] olmiks:
There is an official TWRP, but it does not work like 12 android . https://dl.twrp.me/lemonadep/
[OnePlus 9 Pro] TheGhost1951:
I really don't believe that those versions are for A12....
[OnePlus 9 Pro] osm0sis:
This thread is what will become the official, so if you see problems this is where to report them.

If you have an issue post a log; for isolated issues anecdotes are useless because you're probably the only person who's got the specific configuration triggering the issue.

Saying "don't use it" isn't helpful to anyone.
[OnePlus 9 Pro] TheGhost1951:
I am going to test this TWRP and see if it generates a backup for me...will advise the results.
[OnePlus 9 Pro] der_akinator:
You should see it in twrp. Either in the builtin file manager or mtp. It's probably some permission stuff why it can't be accessed in system.
[OnePlus 9 Pro] olmiks:
OK, thank you!
[OnePlus 9 Pro] osm0sis:
Works fine for me on Lineage 19.1 and 20, backup and restore.

From booted Android that is an issue actually. Permissions, ownership and context need to be reset to the sdcard usuals to access it without root. I think it's a fix all TWRP needs currently.
[OnePlus 9 Pro] der_akinator:
It's a bit strange, chmod with root fails in system. User system and group cache have full access and others none, but I don't get why root fails on chmod.
[OnePlus 9 Pro] TheGhost1951:
Ok, my results are, after installing this TWRP, did a backup of all images, reinstalled Magisk, rebooted to system, used every file explorer I have (5) and found nothing in the TWRP folder in internal storage TWRP folder. Rebooted to recovery and tapped restore, the backup shows in TWRP. This is new to me. What do you do if you need to MSM because of a system crash or factory reset. You wasn't able to copy your TWRP backup to PC for safe keeping?
[OnePlus 9 Pro] TheGhost1951:
How do we fix this?
[OnePlus 9 Pro] TheGhost1951:
Has anyone actually used the backup to restore? If so, was there any special requirements? Didn't have much luck with restoring with TWRP on A11!
[OnePlus 9 Pro] olmiks:
I have such a problem for the first time! I do not know what to do
[OnePlus 9 Pro] TheGhost1951:
Please clarify your problem if you will other than the backup not showing in your file explorer....
[OnePlus 9 Pro] Benji1983:
Hi that's strange

For me all backups are there

Using it on a13
[OnePlus 9 Pro] TheGhost1951:
It is strange. Maybe it is the funky A12 that is the issue. I am waiting for TMO to release their A13 which should be soon
[OnePlus 9 Pro] osm0sis:
It's the context I think. Change context first and then you should be able to change everything else.

Try setting:

context: u:object_r:media_rw_data_file:s0
ownership: media_rw:media_rw
permissions: 660 for files and 770 for directories

Newer Android technically uses the UID of the Media Storage app but the above should hopefully be universal.
[OnePlus 9 Pro] der_akinator:
"chcon -R u:object_r:media_rw_data_file:s0 /sdcard/TWRP" inside twrp works and backups are accessible from system. I try to integrate it into backup.
[OnePlus 9 Pro] olmiks:
In general, I was apparently unlucky. I checked several versions of TWRP. I have OnePlus9Pro, Oxygenos 12 did not create a backup! Not a single section! Therefore, there was nothing to recover from! Is there any solution to the problem? Or use Titanium Backups?
[OnePlus 9 Pro] olmiks:
Empty
[OnePlus 9 Pro] patkoz16:
Restore backup still not work ?
[OnePlus 9 Pro] der_akinator:
As I said, currently you have to be in twrp to copy your backups.

Reboot to recovery

Enable Mount->Enable MTP

Connect to PC

Copy TWRP folder

I already have a patch, but I want to test it a bit more before upload.