Is it safe to wipe everything (including system and internal and so forth) using TWRP, then reboot into TWRP, and then flash only image-hammerhead-krt16m.zip? I ask because the stock .tgz file has a radio image, and I'm wondering if I'll need to flash that as well. I don't want to do flash-all.bat because I want to keep TWRP recovery.
.psd said:
Is it safe to wipe everything (including system and data and so forth) using TWRP, then reboot into TWRP, and then flash only image-hammerhead-krt16m.zip? I ask because the stock .tgz file has a radio image, and I'm wondering if I'll need to flash that as well. I don't want to do flash-all.bat because I want to keep TWRP recovery.
Click to expand...
Click to collapse
No you can't flash that zip in recovery. You can flash the individual files in fastboot though. Just don't flash the recovery.img if you want to keep twrp. I haven't tried this but it should work, if it doesn't you can also flash a twrp.img file after running the bat file.
Edit, if you do flash the bat file, remember you will wipe the device so backup what you want to keep on your pc beforehand.
.psd said:
Is it safe to wipe everything (including system and internal and so forth) using TWRP, then reboot into TWRP, and then flash only image-hammerhead-krt16m.zip? I ask because the stock .tgz file has a radio image, and I'm wondering if I'll need to flash that as well. I don't want to do flash-all.bat because I want to keep TWRP recovery.
Click to expand...
Click to collapse
jd1639 said:
No you can't flash that zip in recovery. You can flash the individual files in fastboot though. Just don't flash the recovery.img if you want to keep twrp. I haven't tried this but it should work, if it doesn't you can also flash a twrp.img file after running the bat file.
Edit, if you do flash the bat file, remember you will wipe the device so backup what you want to keep on your pc beforehand.
Click to expand...
Click to collapse
+1 on what jd says.
OP, you're mixing up 2 completely different processes. i would suggest a little more reading and searching to increase your knowledge and familiarity with fastboot/recovery procedural techniques on this device. cheers
jd1639 said:
No you can't flash that zip in recovery. You can flash the individual files in fastboot though. Just don't flash the recovery.img if you want to keep twrp. I haven't tried this but it should work, if it doesn't you can also flash a twrp.img file after running the bat file.
Edit, if you do flash the bat file, remember you will wipe the device so backup what you want to keep on your pc beforehand.
Click to expand...
Click to collapse
What about the radio image? If I wipe everything in TWRP (dalvick cache, system, data, internal storage, cache, and data), will I lose the radio and therefore need to re-flash it? Or do none of those wipe the radio, so it's safe to wipe all and then only flash image-hammerhead-krt16m.zip?
.psd said:
What about the radio image? If I wipe everything in TWRP (dalvick cache, system, data, internal storage, cache, and data), will I lose the radio and therefore need to re-flash it? Or do none of those wipe the radio, so it's safe to wipe all and then only flash image-hammerhead-krt16m.zip?
Click to expand...
Click to collapse
What are you trying to accomplish? Wiping in twrp will not wipe the radio. But you can't flash the hammerhead.zip. You can extract the files in it and flash them in fastboot.
jd1639 said:
What are you trying to accomplish? Wiping in twrp will not wipe the radio. But you can't flash the hammerhead.zip. You can extract the files in it and flash them in fastboot.
Click to expand...
Click to collapse
Just want to wipe my device as clean as possible and hopefully learn a little in the process. When I got my MacBook the first thing I did was wipe it and then reinstall OS X and the AppleCare people were like "why though?" Because I'm a nerd.
So does it follow the same convention as flashing a recovery? So...
1. ./fastboot flash cache cache.img
2. ./fastboot flash boot boot.img
3. ./fastboot flash system system.img
4. ./fastboot flash userdata userdata.img
?
Or are the commands different for each image? Does the order matter?
.psd said:
Just want to wipe my device as clean as possible and hopefully learn a little in the process. When I got my MacBook the first thing I did was wipe it and then reinstall OS X and the AppleCare people were like "why though?" Because I'm a nerd.
So does it follow the same convention as flashing a recovery? So...
1. ./fastboot flash cache cache.img
2. ./fastboot flash boot boot.img
3. ./fastboot flash system system.img
4. ./fastboot flash userdata userdata.img
?
Or are the commands different for each image? Does the order matter?
Click to expand...
Click to collapse
Yes that all looks correct for the Mac. Order doesn't matter
jd1639 said:
Yes that all looks correct for the Mac. Order doesn't matter
Click to expand...
Click to collapse
Thank you very much.
Related
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!
Hello, i'm trying to upgrade my rooted nexus 5 from 5.1.1 LMY48I to 6.0.1 MOB30H without losing my data, but at first boot, stops at android logo. I follow this steps with nexus root toolkit:
- Erasing Boot, Cache, Recovery and System.
- Flashing bootloader, radio, cache, boot and system with official .img files from Google developers webpage
- Flashing recovery with TWRP .img
After all these steps, stops on android logo...
Any ideas?
marios.v said:
Hello, i'm trying to upgrade my rooted nexus 5 from 5.1.1 LMY48I to 6.0.1 MOB30H without losing my data, but at first boot, stops at android logo. I follow this steps with nexus root toolkit:
- Erasing Boot, Cache, Recovery and System.
- Flashing bootloader, radio, cache, boot and system with official .img files from Google developers webpage
- Flashing recovery with TWRP .img
After all these steps, stops on android logo...
Any ideas?
Click to expand...
Click to collapse
Do a factory reset
Do NOT use toolkits!
My first advice is: Do NOT flash using toolkits! You never know what's exactly going on if you don't do it manually. There are plenty of reasons why to not use them...
Okay, now my second advice: Don't flash cache partitions. Caches are built during boot/runtime. However, as far as I know, a corrupted cache partition can lead to bootloops - so it's better to just wipe them before boot...
I don't know what the toolkit did and what not - but try to follow these steps:
1. Install fastboot and adb
Preferred method is via Android Studio command line tools from official source: http://developer.android.com/sdk/index.html - Scroll down to "Get just the command line tools". You can decide between an installer or just a zip. It's your choice.
2. Boot your phone in bootloader mode and execute these commands one by one...
fastboot flash bootloader bootloader.img
fastboot flash radio radio.img
fastboot reboot-bootloader
fastboot flash recovery twrp-recovery.img
fastboot flash system system.img
Click to expand...
Click to collapse
Use the proper files! Extract bootloader and radio from latest Google factory image and download TWRP from twrp.me!
3. Boot your phone into TWRP and choose wipe -> DO NOT SLIDE TO FACTORY RESET -> advanced wipe -> cache + dalvik ticked, rest unticked -> slide to wipe
4. Try to boot...
Not sure if it works - but that's the only thing I can think of right now
EDIT: @GtrCraft That would definitely solve his bootloop, but he wants to keep his data Hopefully he heeds my advice to keep his hands off of toolkits!
experience7 said:
@GtrCraft That would definitely solve his bootloop, but he wants to keep his data Hopefully he heeds my advice to keep his hands off of toolkits!
Click to expand...
Click to collapse
Then he should do all the ota's instead of flashing the factory image
Sent from my XT1562 using XDA Labs
Don't do full-quotes please.
Seriously? His device is rooted and therefore not receiving OTA (over-the-air!) updates. He'd have to catch all of the zips and flash them manually. So why not just use the system.img?
experience7 said:
Don't do full-quotes please.
Seriously? His device is rooted and therefore not receiving OTA (over-the-air!) updates. He'd have to catch all of the zips and flash them manually. So why not just use the system.img?
Click to expand...
Click to collapse
Because you have to factory reset the device. That's the downside of being rooted and wanting to update, especially with M
I'm sorry to say that you're terribly wrong. I hope you didn't factory reset your device every single time you did an update just because you're rooted! Actually you can use the flash-all.bat file that's provided with the factory image. Just remove the "-w" flag from the "fastboot update" command. This will stop fastboot from wiping your /data partition.
That's what the OP could use as well - however, for his better understanding I listed the commands separately.
For what it's worth, this is the script that I've been using since the monthly updates started (copied from another XDA thread which I've forgotten - apologies to the OP of this script).
Preparation.
- Take a TWRP backup and save it on your PC.
- Download factory image and unzip all files, including the zip within the zip. Rename the *.img files to the names below. Copy all of them to the same folder as your ADB/fastboot executables.
- Download the relevant TWRP and rename to twrp.img - also put in ADB/fastboot folder.
- Copy SuperSU to device (if root wanted).
- Set USB debugging in Developer options & attach to your PC.
- Open a CMD window and check connectivity with "adb devices". If it's ok, copy & paste each command below into the CMD window and run them - the only lengthy one is the system.img.
1. adb reboot bootloader
2. fastboot flash bootloader bootloader.img
3. fastboot reboot-bootloader
4. fastboot flash radio radio.img
5. fastboot reboot-bootloader
6. fastboot erase system
7. fastboot flash system system.img
8. fastboot erase boot
9. fastboot flash boot boot.img
10. fastboot erase cache
11. fastboot flash cache cache.img
12. fastboot reboot-bootloader
13. fastboot flash recovery twrp.img
14. From bootloader boot to TWRP and reflash SuperSU
Start to finish - 15 minutes, including the rebuilding of the apps. No data loss (because you haven't touched the data/userdata partition).
I don't say that every step is essential (I note the comment from experience7 about cache) - but this works fine for me.
Please feel free to amend or correct...
dahawthorne said:
For what it's worth, this is the script that I've been using since the monthly updates started (copied from another XDA thread which I've forgotten - apologies to the OP of this script).
1. adb reboot bootloader
2. fastboot flash bootloader bootloader.img
3. fastboot reboot-bootloader
4. fastboot flash radio radio.img
5. fastboot reboot-bootloader
6. fastboot erase system
7. fastboot flash system system.img
8. fastboot erase boot
9. fastboot flash boot boot.img
10. fastboot erase cache
11. fastboot flash cache cache.img
12. fastboot reboot-bootloader
13. fastboot flash recovery twrp.img
14. From bootloader boot to TWRP and reflash SuperSU
Click to expand...
Click to collapse
Same problem again. I'm trying all 6.x.x versions but same problem. All commands running without error.
In that case all I can suggest is that you bite the bullet and run the flash-all.bat. Back up all your important stuff (photos, etc.) because you'll lose them.
I've seen it suggested often that you should always do a full wipe when upgrading between major versions (e.g. 5 to 6), so maybe this will fix your problem and give you a working phone even if you lose some data and have to set up from scratch.
P.S. Please "Quick reply" - don't repeat the entire previous post. We've all read it; we don't need to read it again.
marios.v said:
Hello, i'm trying to upgrade my rooted nexus 5 from 5.1.1 LMY48I to 6.0.1 MOB30H without losing my data, but at first boot, stops at android logo. I follow this steps with nexus root toolkit:
- Erasing Boot, Cache, Recovery and System.
- Flashing bootloader, radio, cache, boot and system with official .img files from Google developers webpage
- Flashing recovery with TWRP .img
After all these steps, stops on android logo...
Any ideas?
Click to expand...
Click to collapse
Search for a full guide thread. I'm sure you will come out with something.
Sent from my GT-I9505 using XDA-Developers mobile app
"Search for a full guide thread. I'm sure you will come out with something."
Excellent advice. It's amazing that so many experienced senior members with all their years of combined knowledge missed that blindingly obvious idea...
Problem solved by unfreezing all frozen apps from Titanium Backup before upgrade.
Thank you!
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.
so as the title suggests, my oneplus 7 pro is now stuck at fastboot and my only hope is on the img files from the unpacked payload.bin. but now after I extract it, i heard some of the img files are used to clear the user, data etc, can someone tell me which one is which?
The guide I followed:
https://android.gadgethacks.com/how...actory-images-android-using-fastboot-0175277/
https://forum.xda-developers.com/nokia-7-plus/how-to/guide-how-to-extract-payload-bin-ota-t3830962
https://forum.xda-developers.com/oneplus-7-pro/how-to/rom-stock-fastboot-roms-oneplus-7-pro-t3931424
the first link seem to be outdated since most of the img files it talked about don't exist but although the third link isn't, it told me how to flash each file, but my problem is that I don't want to lose my data, can someone tell me which img file is used to erase data? thanks a lot
shuaiouke said:
so as the title suggests, my oneplus 7 pro is now stuck at fastboot and my only hope is on the img files from the unpacked payload.bin. but now after I extract it, i heard some of the img files are used to clear the user, data etc, can someone tell me which one is which?
The guide I followed:
https://android.gadgethacks.com/how...actory-images-android-using-fastboot-0175277/
https://forum.xda-developers.com/nokia-7-plus/how-to/guide-how-to-extract-payload-bin-ota-t3830962
https://forum.xda-developers.com/oneplus-7-pro/how-to/rom-stock-fastboot-roms-oneplus-7-pro-t3931424
the first link seem to be outdated since most of the img files it talked about don't exist but although the third link isn't, it told me how to flash each file, but my problem is that I don't want to lose my data, can someone tell me which img file is used to erase data? thanks a lot
Click to expand...
Click to collapse
userdata.img will override your internal storage with zero bytes.
matze19999 said:
userdata.img will override your internal storage with zero bytes.
Click to expand...
Click to collapse
is that the only file? thanks
Edit:There don't seem to be a file called userdata.img it's a ONEPLUS 7 PRO rom
Right click and edit flash all.bat and remove the -w and save then u can run flash all.bat using the fastboot Rom, ur 3rd link
thank you and it lets me get into recovery in a boot loop but recovery only, I can't flash TWRP, what should I do next?
Bradl79 said:
Right click and edit flash all.bat and remove the -w and save then u can run flash all.bat using the fastboot Rom, ur 3rd link
Click to expand...
Click to collapse
thank you and it lets me get into recovery in a boot loop but recovery only, I can't flash TWRP, what should I do next?
shuaiouke said:
thank you and it lets me get into recovery in a boot loop but recovery only, I can't flash TWRP, what should I do next?
Click to expand...
Click to collapse
is your bootloader locked?
shuaiouke said:
thank you and it lets me get into recovery in a boot loop but recovery only, I can't flash TWRP, what should I do next?
Click to expand...
Click to collapse
We're you coming from a custom Rom, or stock. You might have to format data.
Bradl79 said:
is your bootloader locked?
Click to expand...
Click to collapse
it's kinda obvious, flash-all is flashing after all if ur bootloader is locked, how do u flash?
Note: This is for soft bricks only.
soft brick = can access fastboot or recovery
hard brick = no boot, black screen boot. etc.............
I found myself on OB4, tried to sideload another build and got stuck. Tried to boot into TWRP, no bueno, now what? I didn't want to use MSM tools and go though that whole process again. I've saved many of my devices with Linux, by just flashing the img files through fastboot commands. So if your comfortable with the command line this is easier then using the flash tools that relock your bootloader. This also works with Widows, so I remembered the files the fastboot flasher flashed, and just flashed them manually, you just need flash to the correct partition. So, if it's a boot img, then flash boot, and system flash system, and so on. List of files that I flashed.
First you'll need payload dumper, to extract files from payload.bin file inside whatever OTA, you want to flash. It will extract to a folder called payload_output, from there you can click and drag to command line.
https://androidfilehost.com/?fid=818070582850510260
I also provided a copy of my script, you'll need to edit to your files path. And save as .bat, .cab, or .exe...........
Commands I run before flash
fastboot format system
fastboot format userdata
1. boot.img
2. dtbo
3. modem
4. odm
5. qupfw
6. storsec
7. system
8. vbmeta
9. vendor
10. fastboot reboot
If device boots to recovery which should be stock, just wipe everything and you should boot into system without a problem.
how can I reset my phone so it boots. Do I need to fastboot flash oxygenOS or can I just install the zip file through TWRP?
Would fastboot flashing 9.5.13-GM21AA-OnePlus7ProOxygen_21.O.16_OTA_016_all_1908281716_b2bb5-FASTBOOT.zip work?
doctor_whooves said:
how can I reset my phone so it boots. Do I need to fastboot flash oxygenOS or can I just install the zip file through TWRP?
Would fastboot flashing 9.5.13-GM21AA-OnePlus7ProOxygen_21.O.16_OTA_016_all_1908281716_b2bb5-FASTBOOT.zip work?
Click to expand...
Click to collapse
Hard to say, without knowing how your phone got into this (no boot) state. What other things you tried, etc.
Fastboot flashing the (stock fastboot) ROM may work. As you figured, it will restore stock ROM and wipe the device. Can't be installed with TWRP, as far as I know.
If you have (or find the right) full OTA zip, you should be able to flash that with TWRP.