how to clean flash the device - OnePlus 7 Pro Questions & Answers

how do i clean flash op7pro with factory images?
i have a root now but i want to clean everything.
with my previous device it was as easy as go to bootloader and flash with fastboot. now i see no fastboot images in factory images on op software update page
thank you

yizhaq79 said:
how do i clean flash op7pro with factory images?
i have a root now but i want to clean everything.
with my previous device it was as easy as go to bootloader and flash with fastboot. now i see no fastboot images in factory images on op software update page
thank you
Click to expand...
Click to collapse
Just follow this https://forum.xda-developers.com/oneplus-7-pro/how-to/rom-stock-fastboot-roms-oneplus-7-pro-t3931424
It has steps and the fastboot you'll need

Related

Remove twrp and get back to factory state, need help!!!

Hi guys
I'll receive the rma device tomorrow and i wanted to set to factory state the one i have right now , so that i can send it back to google.
I have installed a custom recovery(twrp) and rooted the device.
Would any one be so kind to guide me to the the reverse process and make the device like it was when it shipped to me.
Thanks in andvance
td32 said:
Hi guys
I'll receive the rma device tomorrow and i wanted to set to factory state the one i have right now , so that i can send it back to google.
I have installed a custom recovery(twrp) and rooted the device.
Would any one be so kind to guide me to the the reverse process and make the device like it was when it shipped to me.
Thanks in andvance
Click to expand...
Click to collapse
See here.
gregc2009 said:
See here.
Click to expand...
Click to collapse
is it necesary to execute all this commands
Code:
fastboot flash bootloader C:/image-hammerhead-krt16m/bootloader.img
fastboot reboot-bootloader
fastboot flash radio C:/image-hammerhead-krt16m/radio.img
fastboot reboot-bootloader
fastboot flash system C:/image-hammerhead-krt16m/system.img
fastboot flash userdata C:/image-hammerhead-krt16m/userdata.img
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)
fastboot flash boot C:/image-hammerhead-krt16m/boot.img
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
or this is enough for my case?
Code:
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
just flash the recovery image then
Wipe data/factory data reset"
and for last lock the bootloader?
td32 said:
is it necesary to execute all this commands
Code:
fastboot flash bootloader C:/image-hammerhead-krt16m/bootloader.img
fastboot reboot-bootloader
fastboot flash radio C:/image-hammerhead-krt16m/radio.img
fastboot reboot-bootloader
fastboot flash system C:/image-hammerhead-krt16m/system.img
fastboot flash userdata C:/image-hammerhead-krt16m/userdata.img
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)
fastboot flash boot C:/image-hammerhead-krt16m/boot.img
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
or this is enough for my case?
Code:
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
just flash the recovery image then
Wipe data/factory data reset"
and for last lock the bootloader?
Click to expand...
Click to collapse
I would do it all just to make sure you are back to complete stock since you mentioned you rooted the device also.
Follow the instructions in the first post of this thread and since you plan to RMA the phone be sure to check the tamper flag and follow the steps outlined to reset it if necessary... http://forum.xda-developers.com/showthread.php?p=47156064
[TUTORIAL] How to flash a factory image | Return to stock | Unroot your Nexus 5
Sent from my Nexus 5 using xda app-developers app
chef_christoph said:
Follow the instructions in the first post of this thread and since you plan to RMA the phone be sure to check the tamper flag and follow the steps outlined to reset it if necessary... http://forum.xda-developers.com/showthread.php?p=47156064
[TUTORIAL] How to flash a factory image | Return to stock | Unroot your Nexus 5
Sent from my Nexus 5 using xda app-developers app
Click to expand...
Click to collapse
Code:
. If the tamper flag value is "true", then you'll have to reset it. The following steps will reset this flag, and lock your bootloader.
•So, first, go here: http://forum.xda-developers.com/show....php?t=2239421 (Thanks @osm0sis for the wonderful script)
Under "Flashable Zips", you will find the Nexus BootUnlocker script. Download it.
•Put the zip on your internal storage.
•Download the latest TWRP recovery image for the Nexus 5 from here: http://techerrata.com/browse/twrp2/hammerhead. Rename it to TWRP.img.
Now boot it. You do this by booting your phone in fastboot, and typing the following command:
Code:
fastboot boot path/to/TWRP.img
TWRP recovery should boot.
•Flash the zip in TWRP, then reboot.
Now your bootloader should be locked, and your tamper flag should show "false".
So i have to do this before i flash the stock recovery, since it needs TWRP, am i right?
And else it says that this will lock the bootloader, will i be able to execute the previous commands(flashing recovery and stuff) with a locked bootloader?
td32 said:
So i have to do this before i flash the stock recovery, since it needs TWRP, am i right?
And else it says that this will lock the bootloader, will i be able to execute the previous commands(flashing recovery and stuff) with a locked bootloader?
Click to expand...
Click to collapse
No, flash everything back to stock then deal with the tamper flag reset.
Once everything is back to stock but the bootloader is still unlocked, boot into the recovery...
fastboot boot nameofrecovery.img
Then flash the tamper flag script.
Sent from my Nexus 5 using xda app-developers app
chef_christoph said:
No, flash everything back to stock then deal with the tamper flag reset.
Once everything is back to stock but the bootloader is still unlocked, boot into the recovery...
fastboot boot nameofrecovery.img
Then flash the tamper flag script.
Sent from my Nexus 5 using xda app-developers app
Click to expand...
Click to collapse
Sorry man but i'm not getting something here.
If i flash everything first, even the recovery will be stock, so i have to flash twrp once again to flash the tamper flag script. So i end up with twrp recovery and the tamper flag reset, while it should be stock recovery and tamper flag reset.
What i'm i missing here?
You can boot a custom recovery without flashing it. Like a temporary installation
Sent from my Nexus 5
pepdavies said:
You can boot a custom recovery without flashing it. Like a temporary installation
Sent from my Nexus 5
Click to expand...
Click to collapse
ok thank, now its all clear
i should have paid more attention to the command :silly:
It says boot not flash :silly:
Thanks for you help guys

[Q] Update stock even if rooted

I am thinking of just going on stock android but i like adblock. So i will end up rooting my phone, i was wondering if there is a way to update Lollipop rooted without having to restore. I dont mind loosing my root after every update, i can always re root
thanks guys
rolgar20 said:
I am thinking of just going on stock android but i like adblock. So i will end up rooting my phone, i was wondering if there is a way to update Lollipop rooted without having to restore. I dont mind loosing my root after every update, i can always re root
thanks guys
Click to expand...
Click to collapse
Download new factory images
fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash radio radio.img
fastboot flash bootloader bootloader.img
reboot into your custom recovery
flash the latest SuperSU (http://download.chainfire.eu/supersu)
Elluel said:
Download new factory images
fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash radio radio.img
fastboot flash bootloader bootloader.img
reboot into your custom recovery
flash the latest SuperSU (http://download.chainfire.eu/supersu)
Click to expand...
Click to collapse
Wouldn't that wipe my data?
rolgar20 said:
Wouldn't that wipe my data?
Click to expand...
Click to collapse
The only things that will wipe your data:
unlocking the bootloader (which I assume you already have unlocked due to having root access)
flashing userdata.img (if you read my previous post, I left this out)
wiping the data partition in recovery
factory reset option in Android (which really just boots into recovery and wipes data from there)
Elluel said:
The only things that will wipe your data:
unlocking the bootloader (which I assume you already have unlocked due to having root access)
flashing userdata.img (if you read my previous post, I left this out)
wiping the data partition in recovery
factory reset option in Android (which really just boots into recovery and wipes data from there)
Click to expand...
Click to collapse
Wonderful, thanks!

[Q] How do I update TWRP from an older version on Oneplus One?

I already have TWRP recovery installed on my Oneplus One. How do I update it? Do I just type fastboot flash recovery "xxxxx.img" and then fastboot erase cache? I believe I do not have to unlock my bootloader again since it is already unlocked, am I correct? I just want to update TWRP, not my ROM or anything else. Thanks in advance.
BBsix said:
I already have TWRP recovery installed on my Oneplus One. How do I update it? Do I just type fastboot flash recovery "xxxxx.img" and then fastboot erase cache? I believe I do not have to unlock my bootloader again since it is already unlocked, am I correct? I just want to update TWRP, not my ROM or anything else. Thanks in advance.
Click to expand...
Click to collapse
you do not have to unlock your bootloader again. you can use the fastboot method.
but there is also flashable zip you can flash in recovery to update TWRP (This method is easier in my opinion). you can get it from here
-->https://www.androidfilehost.com/?w=files&flid=19646
that link is from Temasek CM12.1 thread http://forum.xda-developers.com/oneplus-one/development/rom-cm11-temasek-build-t2870743
you can visit the thread for more info. be sure to take nandroid backup before flashing.
BBsix said:
I already have TWRP recovery installed on my Oneplus One. How do I update it? Do I just type fastboot flash recovery "xxxxx.img" and then fastboot erase cache? I believe I do not have to unlock my bootloader again since it is already unlocked, am I correct? I just want to update TWRP, not my ROM or anything else. Thanks in advance.
Click to expand...
Click to collapse
This method works without a PC.
1) Download the recovery image from TWRP website
2) Install Flashify from Play Store
3) Flash the recovery image through Flashify
And that's it and root access is definitely required.
BBsix said:
I already have TWRP recovery installed on my Oneplus One. How do I update it? Do I just type fastboot flash recovery "xxxxx.img" and then fastboot erase cache? I believe I do not have to unlock my bootloader again since it is already unlocked, am I correct? I just want to update TWRP, not my ROM or anything else. Thanks in advance.
Click to expand...
Click to collapse
All you need to do is flash the updated version the same way that you flashed when you first installed it, with fastboot. No you don't need to unlock the bootloader again unless you've previously locked it yourself.
Code:
fastboot flash recovery <recovery.img>
XDA Moderator
Transmitted via Bacon

How to update newest images without wiping or losing TWRP ?

When there's a new image next month I want to update to can I just use fastboot and flash everything except recovery then reboot and keep.twrp and ha e the newest image without losing data ?
Fastboot flash
Bootloader
Modem
System
Syatem_other
Vendor
Skipping the others then reboot and still have TWRP ? Right now my goal is just to use a stock image, ElementalX kernel and root with TWRP. Just passing on the custom ROMs right now
There's a lot of . img files.
This is more complex than my Nexus 5x which just had a few . img
I don't understand which is which
mikeprius said:
There's a lot of . img files.
This is more complex than my Nexus 5x which just had a few . img
I don't understand which is which
Click to expand...
Click to collapse
You can't do what you want to do because recovery is located in the boot.img file on the Pixel. There is no dedicated recovery partition like on other phones. The only way to do it would be to flash everything but the boot.img file. That may work but if you did do that, you'd miss out on any security updates or whatever other updates there may be to the kernel. I'd recommend just flashing it all. It doesn't take very long to flash TWRP again. A minor inconvenience if you ask me.
I think THIS can help. Follow method 2 - manual.
But skip recovery.img and cache.img (also because there aren't those files) and the userdata.img
robocuff said:
You can't do what you want to do because recovery is located in the boot.img file on the Pixel. There is no dedicated recovery partition like on other phones. The only way to do it would be to flash everything but the boot.img file. That may work but if you did do that, you'd miss out on any security updates or whatever other updates there may be to the kernel. I'd recommend just flashing it all. It doesn't take very long to flash TWRP again. A minor inconvenience if you ask me.
Click to expand...
Click to collapse
Ok thanks for the info. I've been flashing for awhile, but the set up here is very different than prior phones.
So pretty much just run the flash-all.bat, TWRP.img, TRWP.zip, the SuperSU ?
Can I modify the flash-all to prevent wiping, or is it just best to re-do everything fresh ?
TENN3R said:
I think THIS can help. Follow method 2 - manual.
But skip recovery.img and cache.img (also because there aren't those files) and the userdata.img
Click to expand...
Click to collapse
Have you tried this ? I read this article earlier and that's what's confusing:
So here's the process:
bootloader-xxx-xxx.img
radio-xx-xx-xx.img
boot.img
system.img
system_other.img
vendor.img
modem.img
but then later in the article it says:
fastboot reboot-bootloader
fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash system_b system_other.img
fastboot flash vendor vendor.img
fastboot flash modem modem.img
fastboot flash userdata userdata.img
it appears there are many other files included beyond this list.
mikeprius said:
Ok thanks for the info. I've been flashing for awhile, but the set up here is very different than prior phones.
So pretty much just run the flash-all.bat, TWRP.img, TRWP.zip, the SuperSU ?
Can I modify the flash-all to prevent wiping, or is it just best to re-do everything fresh ?
Click to expand...
Click to collapse
Modify it, remove the -w
Been doing it that way back to my Nexus 6. No issues.
TonikJDK said:
Modify it, remove the -w
Been doing it that way back to my Nexus 6. No issues.
Click to expand...
Click to collapse
Can I do this dirty ? Basically just flash the stock images over the old, remove -w, then reboot, everything updated ? I don't mind booting the TWRP image and re-flashing superSU, just having to restore from scratch is a pain in the ass
mikeprius said:
Can I do this dirty ? Basically just flash the stock images over the old, remove -w, then reboot, everything updated ? I don't mind booting the TWRP image and re-flashing superSU, just having to restore from scratch is a pain in the ass
Click to expand...
Click to collapse
There's no need to wipe anything. Just make sure to remove the -w from the flashall.bat (dont forget to save it after doing so). If you do it this way, you'll end up with an updated phone with all your data in tact. Same as if you took an OTA.
robocuff said:
There's no need to wipe anything. Just make sure to remove the -w from the flashall.bat (dont forget to save it after doing so). If you do it this way, you'll end up with an updated phone with all your data in tact. Same as if you took an OTA.
Click to expand...
Click to collapse
Cool cool thanks. Will try this next month's update.
mikeprius said:
Can I do this dirty ? Basically just flash the stock images over the old, remove -w, then reboot, everything updated ? I don't mind booting the TWRP image and re-flashing superSU, just having to restore from scratch is a pain in the ass
Click to expand...
Click to collapse
Just to reinforce the post above, I always flash dirty. No issues.

Question Anyone have Oxygen OS 2115_F20 Full rom or patched boot image?

Has the full rom been released yet?
arsalturtle891 said:
Has the full rom been released yet?
Click to expand...
Click to collapse
No, at least on Oxygen Updater. Are you on F20 and you want to root?
TheNewHEROBRINE said:
No, at least on Oxygen Updater. Are you on F20 and you want to root?
Click to expand...
Click to collapse
I'm on F18 with root and I want to upgrade to F20. Is there an LE2115_11.F.18 full rom by any chance. I can flash this and then upgrade to F20. I don't mind being without root for the time being
arsalturtle891 said:
I'm on F18 with root and I want to upgrade to F20. Is there an LE2115_11.F.18 full rom by any chance. I can flash this and then upgrade to F20. I don't mind being without root for the time being
Click to expand...
Click to collapse
When you rooted did you do fastboot flash or fastboot boot and then direct install in Magisk app?
I did the following:
Fastboot boot "patchedbootimage".img
Fastboot flash boot_a "patchedbootimage".img
Fastboot flash boot_b "patchedbootimage".img
arsalturtle891 said:
I did the following:
Fastboot boot "patchedbootimage".img
Fastboot flash boot_a "patchedbootimage".img
Fastboot flash boot_b "patchedbootimage".img
Click to expand...
Click to collapse
Then you can't restore your original boot image from Magisk. You should only ever do fastboot boot and then use direct install in Magisk. Unfortunately the latest full rom available for your device is LE2115_11_F.17, so I think your only chance is that someone share a stock F18 boot image so that you can flash it and then update.
arsalturtle891 said:
I did the following:
Fastboot boot "patchedbootimage".img
Fastboot flash boot_a "patchedbootimage".img
Fastboot flash boot_b "patchedbootimage".img
Click to expand...
Click to collapse
First command, you booted the patched boot image. All good. From there, install/open Magisk app and then select direct install option, and Magisk will automatically back up the stock boot and then flash the rooted boot.
Second commands shouldn't have been run.
shadabkiani said:
First command, you booted the patched boot image. All good. From there, install/open Magisk app and then select direct install option, and Magisk will automatically back up the stock boot and then flash the rooted boot.
Second commands shouldn't have been run.
Click to expand...
Click to collapse
Appreciate it!
shadabkiani said:
First command, you booted the patched boot image. All good. From there, install/open Magisk app and then select direct install option, and Magisk will automatically back up the stock boot and then flash the rooted boot.
Second commands shouldn't have been run.
Click to expand...
Click to collapse
I'm not seeing the attachment
Here is the stock unrooted F.18 boot.img. Make sure to extract it first.
So I was able to remove root by first following the same commands I used to root in the first place with the boot image you provided. However, I cannot update to F20 using the system update. It keeps failing
Ok, this time, you have to flash this unrooted boot.img that I provided. NOT just boot it like you do when trying to root. The system will check the flashed boot.img then proceed with OTA.
fastboot flash boot boot.img
Reboot, then try OTA update.
When you have the latest F.20 successfully booted, if you want root, you can get that boot.img through MSM readback feature. Or, I have F.20 boot.img too, and you can ask for that.
shadabkiani said:
Ok, this time, you have to flash this unrooted boot.img that I provided. NOT just boot it like you do when trying to root. The system will check the flashed boot.img then proceed with OTA.
fastboot flash boot boot.img
Reboot, then try OTA update.
When you have the latest F.20 successfully booted, if you want root, you can get that boot.img through MSM readback feature. Or, I have F.20 boot.img too, and you can ask for that.
Click to expand...
Click to collapse
I followed your steps and it still gives an installation error. Just to make sure, I uninstalled magisk through the magist app as well. Further, I did some research on the MSM readback feature. Can you link me to the correct one to use?
arsalturtle891 said:
I followed your steps and it still gives an installation error. Just to make sure, I uninstalled magisk through the magist app as well. Further, I did some research on the MSM readback feature. Can you link me to the correct one to use?
Click to expand...
Click to collapse
The MSM Tool for Global thread is here, but the download link in first post is incomplete. You can download the full tool from here. Make sure to download the correct package. The global one also works for LE2110 (the Chinese model).
So you have flashed my boot.img, and then you are updating from where? Through system update OTA, or from zip file downloaded with Oxygen Updater app?
shadabkiani said:
The MSM Tool for Global thread is here, but the download link in first post is incomplete. You can download the full tool from here. Make sure to download the correct package. The global one also works for LE2110 (the Chinese model).
So you have flashed my boot.img, and then you are updating from where? Through system update OTA, or from zip file downloaded with Oxygen Updater app?
Click to expand...
Click to collapse
I tried both methods and both fail (through system update OTA, and from zip downloaded with oxygen updater app)
I did the following:
fastboot boot "stockboot"
fastboot flash boot "stockboot"
AND I TRIED THIS TOO:
fastboot boot "stockboot"
fastboot flash boot_a "stockboot"
fastboot flash boot_b "stockboot"
arsalturtle891 said:
I tried both methods and both fail (through system update OTA, and from zip downloaded with oxygen updater app)
I did the following:
fastboot boot "stockboot"
fastboot flash boot "stockboot"
AND I TRIED THIS TOO:
fastboot boot "stockboot"
fastboot flash boot_a "stockboot"
fastboot flash boot_b "stockboot"
Click to expand...
Click to collapse
Why do you always "fastboot boot......" and then "fastboot flash boot...."?
Generally, fastboot boot.... will make you phone boot up the given image temporarily (whether it's a boot image or a bootable recovery image). Whereas, fastboot flash boot.... will permanently flash the given image. Normally, you only have to go with one of these methods depending on your task/goal.
Anyway, since you have flashed the stock unrooted boot.img and OTA is still failing, I suggest you just back up your personal data (photos, stuff) to PC or whatever, and then go with the MSM tool method. It will wipe all your data on phone, and revert your phone to OOS11 with locked bootloader. From there, you can take OTA updates all the way upto OOS13 F.20. This seems to be the simpler way to get out of your current predicament.
How to use MSM tool:
1. Download the package according to your device/variant, and extract it.
2. Power off your phone and keep it aside. DO NOT connect your phone to PC for now.
3. Run the MSM tool exe. It will take a couple of minutes to load.
4. Click on Target drop-down menu and choose O2 if you are on Global.
5. Click Start. It will go to Waiting for Device mode.
6. Now on your phone (which should already be powered off), press & hold both the vol+ and vol- buttons (NOT the power button) and connect the data cable from PC to your phone. Your phone's screen will still stay black and it will enter EDL mode.
7. The MSM tool will start flashing as soon as the connection is successful.
Note: You need to have OnePlus device drivers on PC.
I appreciate the support. Can you also provide me with the F20 boot image by any chance.
Sure. Stock unrooted F.20 boot.img attached. Make sure to unzip it.
By the way, if you have MSM tool, you can get your current boot.img from its readback feature. Super simple. Launch MSM tool. Press F8. Select the desired boot image (boot_a or boot_b). Enter the password as: oneplus. Click read. Power off phone, and get it into EDL mode by pressing holding vol- vol+ buttons then connecting data cable from PC. The desired boot.img will be dumped in C: drive.
Also, F.21 has just been released, so you better update to that. I haven't yet as I am currently on crDroid.
Anyway, F.20 boot has been attached.
Hello sir Can I get F.21 boot
vendor boot
dtbo
there're no FULL package out there for Global variant
Just only incremental update
How can I get that Full Image?
Or Should I extract it from India Variant Full Image F.21
will It work normally?

Categories

Resources