- Oneplus 8 Pro
- unlocked bootloader
- access to fastboot on the phone
- adb and fastboot
Reboot the phone to fastboot, then flash the recovery from fastboot with the command
fastboot flash recovery <filename>
Same as installation, but flash the original stock recovery instead.
Boot up recovery, enter encryption key if file system is encrypted. Then connect the phone to PC and you are ready to go with adb. E.g. by using
Step-by-step this would be:
rm -r <directory>
10.5.4 BA Recovery
10.5.5 BA Recovery
10.5.6 BA Recovery
Notes of caution:
- ADB security is disabled as I could not get the recovery to allow for authorizing a connected computer. As a consequence any computer connected is automatically authorized in ADB, although with encrypted filesystem at least no data is accessible without the key.
- with direct ADB access to your file system you can easily wreck you phone requiring a factory reset or even reinstallation of the OS from fastboot - please be careful on what you are doing
Credits: Thanks to osm0sis for Android kitchen and all great developers for the Oneplus devices, specifically mauronofrio for his TWRP efforts.