yashsingh1/xdaforums huggingface dataset:
[OnePlus 7 Pro Guides, News, & Discussion] prgopala:
I have a situation where i put a GCAM apk in the /system and now the phone does not want to go past the spinning oneplus logo.

I am on open beta 2 and did not flash twrp recovery after updating to open beta 2 so there is no way to get into any kind of recovery and try and delete the apk.

What i do have though is system.img from the open beta 2.

So question i have is If i flash the system img via fastboot would that reset the system partition?

Will i lose any data if i flash only the system?

---------- Post added at 10:01 AM ---------- Previous post was at 09:37 AM ----------

Happy to report that this has fixed my issue. I could reboot to the phone. Now will flash twrp in magisk and then reboot to twrp and flash magisk.

Thanks guys
[OnePlus 7 Pro Guides, News, & Discussion] pdscoelho:
I'm trying to load twrp but when I use the fastboot boot twrp command the device stays frozen with fastboot mode written. any ideas?
[OnePlus 7 Pro Guides, News, & Discussion] sand_man:
Same issue here.
[OnePlus 7 Pro Guides, News, & Discussion] marjanoos:
Try this adb command: fastboot --set-active=_b and try to load twrp again if you are on b partition, change b letter to a.
[OnePlus 7 Pro Guides, News, & Discussion] pdscoelho:
Did you authorize usb debugging?

I went to developer options to enable USB debugging but forgot to plug my phone to the PC to check the popup box allowing authorization.
[OnePlus 7 Pro Guides, News, & Discussion] sand_man:
I did yes. I been having lots of issues today if I'm being honest. Going to sleep on it and see how things go tomorrow.
[OnePlus 7 Pro Guides, News, & Discussion] pdscoelho:
Same here. I still haven't gotten twrp onto mine.
[OnePlus 7 Pro Guides, News, & Discussion] sand_man:
Did that earlier today and it worked beautifully... only I installed 3.3.1.4 which I believe is the wrong version of twrp for Q. Can’t mount storage to flash guacamole... so I can boot to recovery, 3.3.1.4 but it’s useless to me as I cannot access anything copied to internal storage.

Anyway, I’ve tried so many things today, I wouldn’t know where to start if anyone asked me what I’ve done...

I’m thinking stock boot image and start over is my best bet...
[OnePlus 7 Pro Guides, News, & Discussion] pdscoelho:
I finally got twrp back on.

I used the 'tool all in one' app to load a stock rom all the way back to pie 9.5.3

I tried the fastboot command but it still hanged at the fastmode screen.

I switched the slots using 'fastboot --set-active=*' change * to a or b and tried again.

I thought it was hanging again but after a couple seconds TWRP booted up.

Going to load android 10 using the official methods then i'll try hold onto twrp before rebooting the device.

P.S. Greetings from Cape Town bru.
[OnePlus 7 Pro Guides, News, & Discussion] NOTilyass:
did you fix the bootloop ?
[OnePlus 7 Pro Guides, News, & Discussion] redpoint73:
You don't need usb debugging enabled for fastboot commands (you only need it for adb - which is related to fastboot, but very different requirements and usages).

---------- Post added at 10:50 AM ---------- Previous post was at 10:48 AM ----------

Device is currently on Android 9 or 10? Fastboot boot doesn't work on Android 10 for this device (yet?).
[OnePlus 7 Pro Guides, News, & Discussion] eboelzner:
What do you mean? I used Fastboot to flash a patched boot img to root my device 10 mins ago on 10 stable!
[OnePlus 7 Pro Guides, News, & Discussion] RandomPooka:
You can't fastboot BOOT the twrp image. You can FLASH the boot image all day long. You need to flash a patched boot to acquire root.
[OnePlus 7 Pro Guides, News, & Discussion] eboelzner:
Whatever... I don't use TWRP as it is a waste of time and only adds extra work AND headaches.

But, I patched my stock boot image on my device and then using FASTBOOT, I then ran the command:

'fastboot flash boot magisk_patched.img'

Then 'fastboot reboot' ... opened Magisk and installed. ROOTED!!!!

You have a nice day!
[OnePlus 7 Pro Guides, News, & Discussion] redpoint73:
You didn't read my post properly. I didn't say fastboot doesn't work in Android 10. I posted fastboot

boot

doesn't work on Android 10 for this device yet.
[OnePlus 7 Pro Guides, News, & Discussion] RandomPooka:
That's exactly what I was saying. So, we're on the same page there.

The point I was getting across was that you need to do exactly what to did to get root, and that the "fastboot boot" command doesn't work. Whether you like twrp or not has no real bearing on whether you can boot to it from fastboot without flashing it to boot.
[OnePlus 7 Pro Guides, News, & Discussion] faisaldante:
Hello there I tried to message you privately, but it doesnt seem to be sending to you, si there any chance you can send me your persist.img, as I have messed up the sensors on my op 7 pro please thanks.
[OnePlus 7 Pro Guides, News, & Discussion] mauronofrio:
Give me the time to see the message, added in the first post the persist link
[OnePlus 7 Pro Guides, News, & Discussion] pdscoelho:
https://androidfilehost.com/?fid=6006931924117929081

Link is on page 1
[OnePlus 7 Pro Guides, News, & Discussion] faisaldante:
I apologise, I think xda glitched on me, didnt show that I messaged you, Thanks for your help.
[OnePlus 7 Pro Guides, News, & Discussion] Wolfblade1215:
I just used this to fix my phone from qualcomm crash dump and stuck in fastboot mode thanks. I am wondering now though how I would go about rooting my phone and installing twrp on Android 10. The reason I bricked my phone was because I flashed twrp to my boot partition which was probably stupid. Can anyone tell me what to do after bootloader unlock and Android 10? Thank you.
[OnePlus 7 Pro Guides, News, & Discussion] MisiekDP:
Guy, I had a problem with boot partition on my OnePlus 7 Pro (I couldn't start phone and TWRP too). I had only fastboot mode all time. And I wanted to ask is it possible to flash only boot image to start phone (or flash TWRP via fastboot) but without wipe /data and internal storage?

I read on first page that This will erase all your data and will wipe your internal storage. but this in information for flashing all partition or only /boot too?

Btw. this was my error in CMD when I couldn't boot phone (deleted boot image by mistake):

[IMG="Screen"]https://puu.sh/DSLBM/ba07547ff7.png[/IMG]
[OnePlus 7 Pro Guides, News, & Discussion] KapilNagpal01:
Just flash the boot.img and reboot. All should be well

Fastboot flash boot boot.img

In case still you have issues. You can use twrp latest 3.3.1.70 for Pie or Q based on your version. You would be able to boot with following command

Fastboot boot twrp.img

Once you boot into twrp then you can install your OOS.zip file or you can restore your backup.
[OnePlus 7 Pro Guides, News, & Discussion] MisiekDP:
Ok, thanks bro but flashing only boot image won't wipe my data?
[OnePlus 7 Pro Guides, News, & Discussion] KapilNagpal01:
No it will not wipe brother
[OnePlus 7 Pro Guides, News, & Discussion] MisiekDP:
Awesome, thx! ;)

Have a good day! ;P
[OnePlus 7 Pro Guides, News, & Discussion] Ast0:
How did you do it? I've bricked it the same way, updated to Android 10 (GM1900) and flashed TWRP. I've tried this method by using flash-all.bat on 10.0-GM57AA but it still won't boot.

In fact it won't even boot to recovery, it just freezes at fastboot logo.
[OnePlus 7 Pro Guides, News, & Discussion] redpoint73:
It sounds like you aren't following any kind of guide when trying to root; as that is not the correct way to install TWRP on this device. Always research and understand the proper root method for the specific device and Android version, as it does change from one device to another, as well as possibly changing with new Android versions for that device.

Proper method to root this device on Android 10, is to install Magisk Manager apk, then fastboot flash a patched boot image.

https://xdaforums.com/oneplus-7-pro/how-to/magisk-patched-boot-image-oneplus-7-pro-t3964345

Since the TWRP developer also fixed the command "fastboot boot" in latest TWRP (version -70) you might also be able to boot TWRP, than flash TWRP installer zip and Magisk. Which was the preferred method to root this device on Android 9 (Android 10 broke the "fastboot boot" command). I'm not 100% on this working yet on 10, as the developer just fixed the fastboot boot command like yesterday. But the method in the previous paragraph above (flash a patched boot image) will certainly work (as certain as things can be in this world, anyway!).

EDIT: TWRP dev just confirmed with me that you can indeed root Android 10 now with the second method described above (fastboot boot TWRP, flash TWRP installer zip - if desired to install TWRP, flash Magisk).

https://xdaforums.com/showpost.php?p=80347275&postcount=1731
[OnePlus 7 Pro Guides, News, & Discussion] Wolfblade1215:
I first had tried to use the AA download but only the BA download works. After that it was fixed and I was able to flash twrp with the fastboot boot command working followed by flashing the twrp installer and magisk.

---------- Post added at 03:27 PM ---------- Previous post was at 03:17 PM ----------

I did follow the guide xda posted on their blog. The fastboot boot command wasn't working though and that's what led me to a YouTube video where I think I saw a guy straight flash twrp to boot. I thought that didn't make sense but it worked for him so I did it anyway. That's what bricked me. He probably patched twrp or something to make it work. After I unbricked I then saw twrp Dev had updated twrp to boot on Android 10 now. I then finished following the guide and it worked perfectly.
[OnePlus 7 Pro Guides, News, & Discussion] Ast0:
Edit: I've managed get TWRP working by flashing 9.5.6-GM57AA and booting twrp-3.3.1-65-guacamole-unified.img... Now I'll wait for the ROM to download so I can just flash it on TWRP.

I got it working now.
[OnePlus 7 Pro Guides, News, & Discussion] dr1ver23:
Issues

I am having some issues with this. I JUST used it yesterday to successfully unbrick Android Q and all went well until I bricked my phone. I used it again today and after finishing I can't get past fastboot. Trying to boot into anything just immediately takes me to fastboot. I tried extracting "others_flashall" and tried that route and I'm getting the same results. I am on a tmobile phone but I have the bootloader unlocked (and on international ROM) and it worked just fine for me yesterday. I even got TWRP and root successfully running but while restoring my apps and data through titanium backup the phone just bricked out of nowhere. I'm trying to avoid having to use msmtools and go through the lengthy process of having my bootloader relocked and unlocking it again. Any thoughts on what is going on here? I'm lost as to why this method worked just fine for me before and is now leaving my phone bricked. I tried using all in one tool to erase/decrypt all of my data afterwards (which worked yesterday) but to no avail. I also tried to use it to boot the newest TWRP image but that is failing even though it's designed to boot on 10.

Edit: I just used fastboot to flash back to pie and it worked just fine... So weird. Now that I'm on pie I'll just download the zip to go to android q again locally through the oneplus updater. At least after that I know I can flash magisk and TWRP 3.3.1-70 and be good to go after that. Still a little worried that titanium backup bricked my phone during a batch restore and I have no clue how
[OnePlus 7 Pro Guides, News, & Discussion] rolandliu:
Hey i urgently need help.

SO basically i wiped everything and yes including system accidentally in twrp.

After i download ur file and flash all my phone still boot to bootloader only, unable to start, neither does it goes to recovery.

My oneplus 7 pro is the china version but with OOS pre-installed, not sure who or how they did it. So does the file still works? Why it didnt add anything into my phone?

edit: when i try to boot twrp img it shows FAILED (remote: Failed to load/authenticate boot image: Load Error

so am i supposed to boot the stock one?
[OnePlus 7 Pro Guides, News, & Discussion] Ast0:
Boot into TWRP with fastboot boot twrp.img and flash stock ROM.
[OnePlus 7 Pro Guides, News, & Discussion] rolandliu:
I can't boot into twrp, if i choose start, restart bootloader or recovery it will just go to fastboot mode
[OnePlus 7 Pro Guides, News, & Discussion] Ast0:
Try all the different versions of TWRP.
[OnePlus 7 Pro Guides, News, & Discussion] rolandliu:
Alright, a little bit of progress(or maybe not)

I switched to twrp 3.3.1-0- and now my phone stuck at the 1+ logo

Do i wait for it or force it to restart?

---------- Post added at 12:49 PM ---------- Previous post was at 12:39 PM ----------

I try to flash all and this appears on top:

extracting android-info.txt (0 MB) to RAM...

extracting boot.img (96 MB) to disk... took 0.410s

target reported max download size of 805306368 bytes

archive does not contain 'boot.sig'

archive does not contain 'boot_other.img'

extracting dtbo.img (16 MB) to disk... took 0.065s

archive does not contain 'dtbo.sig'

archive does not contain 'dt.img'

archive does not contain 'recovery.img'

extracting system.img (3472 MB) to disk...

what do i do now?
[OnePlus 7 Pro Guides, News, & Discussion] Ast0:
Wait until the flashing is done.
[OnePlus 7 Pro Guides, News, & Discussion] rolandliu:
The phone stuck at the logo screen for over 30mins, that's not normal right?

And I tried all 5 available versions of twrp

either it shows FAILED (remote: Failed to load/authenticate boot image: Load Error

or shows infinite loading at the logo

edit, yeah I did wait till flashing is done, nothing is flashed it and my phone reboot into fastboot
[OnePlus 7 Pro Guides, News, & Discussion] Ast0:
Yes, don't bother with that, just try to get TWRP booted somehow. I think you have Android 10 installed, so flashing Android 9 won't boot and you get stuck at the logo. Try flashing Android 10 with flash-all.bat.

Anyway, you may somehow get TWRP booted, I think especially with twrp-3.3.1-65-guacamole-unified. Once TWRP works, flash the stock Android 10 ROM (I think [Global]+OnePlus+7+OxygenOS+10.0+Full+ROM.zip works).
[OnePlus 7 Pro Guides, News, & Discussion] rolandliu:
umm I'm 100% sure i have android Pie on because I never get the update, anyhow I'll still try ur method

---------- Post added at 02:46 PM ---------- Previous post was at 02:34 PM ----------

guess it doesn't work, cmd stuck at "Sending 'boot.img' (33672 KB)"
[OnePlus 7 Pro Guides, News, & Discussion] ram4ufriends:
You can't login to twrp if you wipe system.. try flashing fastboot rom
[OnePlus 7 Pro Guides, News, & Discussion] rolandliu:
The cmd is fastboot flash boot boot.img?
[OnePlus 7 Pro Guides, News, & Discussion] ram4ufriends:
No.. you have to flash the full ROM using flash_all.bat
[OnePlus 7 Pro Guides, News, & Discussion] Nikhil:
Are you still facing the issue? Let me know I may be able to help you.
[OnePlus 7 Pro Guides, News, & Discussion] mauronofrio:
Man use msmtool to clean up all and then don't update using fastboot roms
[OnePlus 7 Pro Guides, News, & Discussion] rolandliu:
I solved the issue using msmdownload tool, thanks!
[OnePlus 7 Pro Guides, News, & Discussion] ifIonlyhadabrain:
Where can I find the files for manual flash?

[MENTION=4712355]mauronofrio[/MENTION] - Thank you so much for this. My device is bricked, but I do not have access to a Windows machine - only Mac/Linux.

In the manual process you mention fastboot flashing a bunch of files such as aop.img and dsp.img and bluetooth.img, etc. but I am having trouble finding or extracting those files.

I have tried the following steps taken (from a Mac):

1. Download extract_android_ota_payload

2. Download 9.5.13-GM21AA from the androidfilehost link you have in the instructions.

3. brew install protobuf

4. mkdir ~/tmp

4. python extract_android_ota_payload.py OnePlus7ProOxygen_21.O.16_OTA_016_all_1908281716_b2bb5.zip ~/tmp (also tried with sudo)

BUT got the following:

Extracting 'payload.bin' from OTA file...

Extracting 'boot.img'

Traceback (most recent call last):

File "extract_android_ota_payload.py", line 145, in <module>

main(filename, output_dir)

File "extract_android_ota_payload.py", line 124, in main

parse_payload(payload, p, out_f)

File "extract_android_ota_payload.py", line 99, in parse_payload

r = decompress_payload('xzcat', data, e.num_blocks * BLOCK_SIZE, operation.data_sha256_hash)

File "extract_android_ota_payload.py", line 82, in decompress_payload

p = subprocess.Popen([command, '-'], stdout=subprocess.PIPE, stdin=subprocess.PIPE)

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__

errread, errwrite)

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child

raise child_exception

OSError: [Errno 2] No such file or directory

*ANY help appreciated. *

This is what I was referencing:

fastboot flash aop_a aop.img
fastboot flash aop_b aop.img
fastboot flash bluetooth_a bluetooth.img
fastboot flash bluetooth_b bluetooth.img
fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
fastboot flash dsp_a dsp.img
fastboot flash dsp_b dsp.img
fastboot flash dtbo_a dtbo.img
fastboot flash dtbo_b dtbo.img
fastboot flash modem_a modem.img
fastboot flash modem_b modem.img
fastboot flash oem_stanvbk oem_stanvbk.img
fastboot flash qupfw_a qupfw.img
fastboot flash qupfw_b qupfw.img
fastboot flash storsec_a storsec.img
fastboot flash storsec_b storsec.img
fastboot flash system_a system.img
fastboot flash system_b system.img
fastboot flash vbmeta_a vbmeta.img
fastboot flash vbmeta_b vbmeta.img
fastboot flash vendor_a vendor.img
fastboot flash vendor_b vendor.img
fastboot flash LOGO_a LOGO.img
fastboot flash LOGO_b LOGO.img

If you need also persist partition, this is the command:

fastboot flash persist persist.img
[OnePlus 7 Pro Guides, News, & Discussion] mauronofrio:
In my roms there is not a payload.bin, it is already extracted and the images are in a zip called images.zip
[OnePlus 7 Pro Guides, News, & Discussion] ifIonlyhadabrain:
Ah, thank you SO much.

I had downloaded the ROM from the AHF site which is different than the one on Sourceforge - I didn't realize that. The Sourceforge version unzips and I can see the images.zip - the ones from AHF don't unzip correctly.
[OnePlus 7 Pro Guides, News, & Discussion] mauronofrio:
Of which rom you are talking about?
[OnePlus 7 Pro Guides, News, & Discussion] hassanawan911:
Not working for me, please help

My OP7 Pro struck on Fast boot mode. I wanted to go back from OB2 to the stable version. I accidentally wiped everything including internal storage and when i rebooted from twrp it struck in fast mode (Now whtever i do it came back to fast mode). I tried your this method with several roms but each time i got the following errors in cmd:

extracting android-info.txt (0 MB) to RAM...

extracting boot.img (96 MB) to disk... took 0.516s

target reported max download size of 805306368 bytes

archive does not contain 'boot.sig'

archive does not contain 'boot_other.img'

extracting dtbo.img (16 MB) to disk... took 0.071s

archive does not contain 'dtbo.sig'

archive does not contain 'dt.img'

archive does not contain 'recovery.img'

extracting system.img (3472 MB) to disk... took 25.428s

Invalid sparse file format at header magic

archive does not contain 'system.sig'

archive does not contain 'system_other.img'

extracting vbmeta.img (0 MB) to disk... took -0.000s

archive does not contain 'vbmeta.sig'

extracting vendor.img (1024 MB) to disk... took 7.713s

Invalid sparse file format at header magic

archive does not contain 'vendor.sig'

archive does not contain 'vendor_other.img'

wiping userdata...

CreateProcess failed: %1 is not a valid Win32 application. (193)

error: Cannot generate image for userdata

Press any key to exit...

Kindly help me, my device is only 10 days old :((
[OnePlus 7 Pro Guides, News, & Discussion] MtnOrf:
< waiting for any device >

extracting android-info.txt (0 MB) to RAM...

extracting boot.img (96 MB) to disk... took 0.315s

target reported max download size of 805306368 bytes

archive does not contain 'boot.sig'

archive does not contain 'boot_other.img'

extracting dtbo.img (8 MB) to disk... took 0.024s

archive does not contain 'dtbo.sig'

archive does not contain 'dt.img'

archive does not contain 'recovery.img'

extracting system.img (3472 MB) to disk...W/ziparchive( 9336): Zip: unable to truncate file to 3640655872: File too large

error:

failed to extract 'system.img': I/O error

Press any key to exit...

Does anyone know a solution?
[OnePlus 7 Pro Guides, News, & Discussion] null0seven:
When you go back from STABLE to Open Beta you need to Format Data in twrp or in Fastboot Mode.

You can't go to a lower/older version without Formating data.
[OnePlus 7 Pro Guides, News, & Discussion] ifIonlyhadabrain:
I had grabbed this from AFH: 9.5.13-GM21AA-OnePlus7ProOxygen_21.O.16_OTA_016_all_1908281716_b2bb5-FASTBOOT.zip
[OnePlus 7 Pro Guides, News, & Discussion] ExTeRx:
I'm facing a problem.

I follow the tutorial and my phone still stuck in fastboot mode =(
[OnePlus 7 Pro Guides, News, & Discussion] mauronofrio:
reboot manually the device
[OnePlus 7 Pro Guides, News, & Discussion] eqbirvin:
---------- Post added at 06:31 PM ---------- Previous post was at 06:30 PM ----------

[/COLOR]

I'm having the same problem as previous poster. The only way I've found to get it back is to actually go through a fully guac restore back to 9.5.3 then re-update, then bt unlock.

I cannot for the life of me figure out why.

---------- Post added at 06:33 PM ---------- Previous post was at 06:31 PM ----------

Having the strange issues that the boot logo is smaller than normal too.
[OnePlus 7 Pro Guides, News, & Discussion] ExTeRx:
I did, but doesn't work. Every time back to fastboot mode.

---------- Post added at 05:21 AM ---------- Previous post was at 05:18 AM ----------

What tutorial have you followed?
[OnePlus 7 Pro Guides, News, & Discussion] SirFronts:
Is anyone else having car Bluetooth audio not working on 10.0 or 10.0.1 I have rest Bluetooth settings and factory reset my phone and reinstalled both over 5 or 6 times now I'm on 9.5.11 and Bluetooth to car audio works fine but there is features I like on 10 I would like to be able to use but with Bluetooth messing up I go crazy in the car lol
[OnePlus 7 Pro Guides, News, & Discussion] RandomPooka:
No problems here on both 10.0 and the point release. Connects quickly and gives a little toast notification about being powered by Qualcomm. BT volume output is controlled by the volume buttons on the device, though. That took me some getting used to before I realized why it was so quiet.
[OnePlus 7 Pro Guides, News, & Discussion] SirFronts:
I get that but like I use Spotify my phone will say it's connected to my car my car will say it's connected to the phone but when I press the play button on my phone it just comes out of the phone speaker the audio

And when I hit other media devices all my car it says there are no other media devices even though it clearly shows me that my phone is connected to the car and when I go into the Bluetooth settings on my phone media contacts all of them are checked on
[OnePlus 7 Pro Guides, News, & Discussion] RandomPooka:
That's really peculiar.

I only use YouTube and Google play music for music in my van. But, I know that I've accidentally connected to the Bluetooth because I forgot that I left BT on, and couldn't figure out why my notifications weren't making noise. Finally realized it was because my phone was sending the audio to my radio, but my radio wasn't on the BT input and was just playing off the airwaves.
[OnePlus 7 Pro Guides, News, & Discussion] SirFronts:
Yeah I know what you mean it's not even doing that now on 10 all comes thru the phone not car
[OnePlus 7 Pro Guides, News, & Discussion] RandomPooka:
Have you gone to the settings in the phone and cleared/r reset the wifi, Bluetooth, and mobile data settings?
[OnePlus 7 Pro Guides, News, & Discussion] SirFronts:
Yes and went into the bluetooth settings and clear the cache and storage as well