Deep clean? - ONE Q&A, Help & Troubleshooting

What is the expert method to deep clean, wipe every thing my OPO and than flash a ROM?
Hoping to hear from you experts.
Thanks.

Mike2040 said:
What is the expert method to deep clean, wipe every thing my OPO and than flash a ROM?
Hoping to hear from you experts.
Thanks.
Click to expand...
Click to collapse
You can flash the stock images via fastboot, that will erase everthing and get you back to stock. You can then install a custom recovery and flash roms again.

gsmyth said:
You can flash the stock images via fastboot, that will erase everthing and get you back to stock. You can then install a custom recovery and flash roms again.
Click to expand...
Click to collapse
No need to prior Wipe data, Factory reset, Wipe all storage etc?
Thanks.

Mike2040 said:
No need to prior Wipe data, Factory reset, Wipe all storage etc?
Thanks.
Click to expand...
Click to collapse
There is a command to wipe user data, see the below guide.
http://forum.xda-developers.com/showthread.php?t=2839471

Reason!
Thanks for your expert replies.
The reason for asking was and is for you to know in depth what happened.
My OPOs BL is unlocked and rooted.......at times try other ROMs like Hydrogen, RR, etc.
I was surprised to see and empty Baidu folder size 80 bytes shown by ES File manger, after I flashed back COS 12.
The way I flash is firstly reboot to TWRP, Format > type yes, than Factory reset, than Advanced Wipe ALL except OTG, power off the OPO.
Power on in fastboot mode, connect to pc and flash COS ROM using those commands.
All is good, except the empty Baidu Folder, fail to understand how did it persist.
Other thing is when I later flash TWRP over stock, and than when I perform a factory reset before flashing another ROM, see red SD card errors? ........have to keep rebooting to TWRP.
The way I flash is TWRP > Format type yes > Factory reset > Wipe all except OTG > Mount OTG-USB containing the zip, install zip swipe flash > once done > Reboot. (before reboot don't clear dalvik and cache).
If I take screen capture of TWRP they wont be saved in Gallery.
TWRP 2.7.8.0 when flashed on start up showed this.........
"TWRP has detected an unmodified partition. TWRP can leave your partition unmodified to make it easier for you to take official updates. TWRP will be unable to prevent the stock ROM from replacing from replacing TWRP and will not offer to root your device. installing zips or performing adb operations may still modify the system partition.
Never show this screen during boot again."
To sum up my queries are:
1. How can I perform a deep clean of OPO, and than flash COS 12 using fastboot, so I don't see any Baidu etc empty folders.
2. Than flash TWRP and and if needed can take it's screen captures.
3. Later if required can flash new custom ROM with out issues.
Bottom line to clean my OPOs Storage that includes SD card.
Btw my OPO isn't giving any issues or bugs and working great, no EFS issues etc.........
After reading all care to edit/correct what am I doing incorrect?
Thanks again.

Add
Is this the command to format user data?
Code:
fastboot format cache

Mike2040 said:
Thanks for your expert replies.
The reason for asking was and is for you to know in depth what happened.
My OPOs BL is unlocked and rooted........
Click to expand...
Click to collapse
I have seen people querying the Baidu folder before (i have it myself), it seems to be a folder left by ES file explorer, have you ever installed that? It doesnt seem to be anything malicious, although a lot people were spooked, thinking it was spyware of some sort.
https://forums.oneplus.net/threads/baidu-in-es-file-explorer-manager.303595/page-2
---------- Post added at 03:08 PM ---------- Previous post was at 02:58 PM ----------
Mike2040 said:
Is this the command to format user data?
Code:
fastboot format cache
Click to expand...
Click to collapse
Below is the command for flashing the userdata file via fastboot. If you have downloaded the fastboot image files, I think it basically pushes a blank file to overwrite/format the user data space/parition.
Code:
fastboot flash userdata userdata_64G.img

Related

Think I bricked my phone TWRP

Hi
Just signed up.
Bit of background.
I installed twrp it was successful.
After wiping the data, and rebooting my phones camera wasnt working and there I couldnt save any apn on the phone basically cant use the phone.
I connected it back to my computer, its shows it a nexus but it shows theres 0 files on it.
I tried using adb but it wont find any device.
Can anybody give me some advice please.
Thanks in advances.
globy
globy518 said:
Hi
Just signed up.
Bit of background.
I installed twrp it was successful.
After wiping the data, and rebooting my phones camera wasnt working and there I couldnt save any apn on the phone basically cant use the phone.
I connected it back to my computer, its shows it a nexus but it shows theres 0 files on it.
I tried using adb but it wont find any device.
Can anybody give me some advice please.
Thanks in advances.
globy
Click to expand...
Click to collapse
Why haven`t you made a nandroid backup first after you flashed TWRP? Have you cleared the cache after flashing TWRP: fastboot erase cache in adb? If nothing else works reflash the stock recovery and clear cache afterwards or reflash the factory image as a last resort.
gee2012 said:
Why haven`t you made a nandroid backup first after you flashed TWRP? Have you cleared the cache after flashing TWRP: fastboot erase cache in adb? If nothing else works reflash the stock recovery and clear cache afterwards or reflash the factory image as a last resort.
Click to expand...
Click to collapse
I am new to it all.
I found the device using adb, but yeah I dont have a back up of the rom.
I downloaded the stock rom in the rom section but adb gave
archive does not contain android-info.txt
archive does not contain android-product.txt
error: update package has no android-info.txt or product.txt

How to flash system image without wiping internal storage/userdfata

What's the process to flash the 33R system image without me losing the internal storage data? I have run in to some unfixable issue with the OPO and hence am considering flashing the factory image as the last option.
The only concern is the data on the internal storage which is important for me. As I am unable to boot to the desktop nor use the MTP mode from TWRP, I cannot transfer/back up the content.
I've tried flashing Mahdi/33R/38R zips after wiping system/dalvik/cache/data with no luck. The phone keeps rebooting and is in a loop. Tried fixing permissions from recovery with no luck. I have no idea what am missing here...
I'd appreciate if anyone can provide me with steps to flash system image (without losing the internal storage data) instructions or resolve the other bootloop issue.
Thanks!
All you do is TWRP -> Wipe -> Swipe -> Flash ROM (and others... only flash ROM for now and it'll boot, maybe one of the mods or whatever ur flashing causes ur phone to boot loop)-> Reboot.
And then your phone will stop boot looping
zephiK said:
All you do is TWRP -> Wipe -> Swipe -> Flash ROM (and others... only flash ROM for now and it'll boot, maybe one of the mods or whatever ur flashing causes ur phone to boot loop)-> Reboot.
And then your phone will stop boot looping
Click to expand...
Click to collapse
Thank you. I have done all that to be frank. I flashed only the Mahdi ROM zip first and then booted. No luck. It kept bootlooping. Then tried the same with 33R zip too. No luck again. I have no mods running whatsoever.
I've done a complete wipe too as apps and app data isn't something I care for currently. It's the internal storage.
Use fastboot, grab the latest stock images
fastboot erase system
fastboot erase boot
fastboot erase cache
fastboot flash system system.img
fastboot flash boot boot.img
This won't erase internal SD, all will be intact so long as your prior issue didn't corrupt it in anyway
Have you tried restoring a nandroid?
shaker2k said:
Have you tried restoring a nandroid?
Click to expand...
Click to collapse
Yup, did that too. Restored a couple of nandroids with no luck
demkantor said:
Use fastboot, grab the latest stock images
fastboot erase system
fastboot erase boot
fastboot erase cache
fastboot flash system system.img
fastboot flash boot boot.img
This won't erase internal SD, all will be intact so long as your prior issue didn't corrupt it in anyway
Click to expand...
Click to collapse
Thanks. Yup, used to do that with Nexus 5 and other nexus devices. But the factory image for OPO has other files too. Do I not need to flash them too somehow?
I think those are boot.img and tour radio firmware. I don't think you have tot flash those. But I'm also new to this...
Sent from my 1+1 using XDA Mobile Free
Wiped everything (internal memory too) and flashed the factory image clean and now I have the "Unfortunately, AudioFX has stopped working" error. The phone is unusable literally.
https://forums.oneplus.net/threads/how-do-you-go-from-custom-rom-to-stock-cm11s.95786/
Try this...
Sent from my A0001 using Tapatalk
---------- Post added at 07:31 AM ---------- Previous post was at 07:29 AM ----------
This will wipe your device... And make sure you use the right userdata.img
Sent from my A0001 using Tapatalk
syncopy said:
Wiped everything (internal memory too) and flashed the factory image clean and now I have the "Unfortunately, AudioFX has stopped working" error. The phone is unusable literally.
Click to expand...
Click to collapse
http://forum.xda-developers.com/oneplus-one/help/fix-brickloop-audio-fx-fc-efs-corrupt-t2879061
playya said:
http://forum.xda-developers.com/oneplus-one/help/fix-brickloop-audio-fx-fc-efs-corrupt-t2879061
Click to expand...
Click to collapse
OMG! You're my hero and savior. This fixed it. Thank you so much. You have no idea how happy I am
Thank you!

Need help! Phone crashed

So i have no idea what my OPO happened so i tried to do advanced wipe on TWRP page.
Now my system is gone, and my SD card is empty I couldn't flash a rom into my device.
Is there anyway I able to flash a rom file in zip format and flash it into my devices with fastboot mode and use android-sdk/platform-tools.. I need help my phone is not working at all!
cheeziz said:
So i have no idea what my OPO happened so i tried to do advanced wipe on TWRP page.
Now my system is gone, and my SD card is empty I couldn't flash a rom into my device.
Is there anyway I able to flash a rom file in zip format and flash it into my devices with fastboot mode and use android-sdk/platform-tools.. I need help my phone is not working at all!
Click to expand...
Click to collapse
So you had a problem and thought wiping everything would fix it or you don't know why wiping everything would cause a problem?
cheeziz said:
So i have no idea what my OPO happened so i tried to do advanced wipe on TWRP page.
Now my system is gone, and my SD card is empty I couldn't flash a rom into my device.
Is there anyway I able to flash a rom file in zip format and flash it into my devices with fastboot mode and use android-sdk/platform-tools.. I need help my phone is not working at all!
Click to expand...
Click to collapse
So when doing the advanced wipe you wiped everything? Surely it was obvious that wiping 'system' and 'internal storage' would result in this. Use adb to push a ROM zip to your phone so you can flash it.
Transmitted via Bacon

factory reset my phone

For some reason, I have to factory reset my phone
http://forum.xda-developers.com/google-nexus-5/help/disappear-hard-disk-t3222734#post63254887
Just wanna know, since I have titanium backup on my nexus 5 devices. Does a factory reset (or any kind of wipes) wipe the internal storage of my phone (including the backup).
If so, how should i proceed with my backup if i wanna factory reset the phone
Thanks.
mousefai0922 said:
For some reason, I have to factory reset my phone
http://forum.xda-developers.com/google-nexus-5/help/disappear-hard-disk-t3222734#post63254887
Just wanna know, since I have titanium backup on my nexus 5 devices. Does a factory reset (or any kind of wipes) wipe the internal storage of my phone (including the backup).
If so, how should i proceed with my backup if i wanna factory reset the phone
Thanks.
Click to expand...
Click to collapse
Wait what, why do u need to do a factory reset, and yes, as the name suggests, it leaves the device in the same state that u received it in, blank, but why would u need to wipe the device, I'm going to check out the link, bcuz now I'm interested
I have never seen this happen before and I've owned nothing but Nexus devices, well, to answer your question I have to ask a few, are u rooted, do u have a recovery installed? If the answer to those two questions is no, then connect to a computer, copy the files in your internal storage and place them in a safe folder on your computer, proceed to wipe the device as stated, then copy the files back onto the device, should take care of your internal storage.
Sent from my Nexus 6 using Tapatalk
soupysoup said:
Wait what, why do u need to do a factory reset, and yes, as the name suggests, it leaves the device in the same state that u received it in, blank, but why would u need to wipe the device, I'm going to check out the link, bcuz now I'm interested
I have never seen this happen before and I've owned nothing but Nexus devices, well, to answer your question I have to ask a few, are u rooted, do u have a recovery installed? If the answer to those two questions is no, then connect to a computer, copy the files in your internal storage and place them in a safe folder on your computer, proceed to wipe the device as stated, then copy the files back onto the device, should take care of your internal storage.
Sent from my Nexus 6 using Tapatalk
Click to expand...
Click to collapse
Yes, pls check on my other thread
And yes, I do have a rooted, twrp recovery and stock 5.1.1 rom.
So is it possible for me to move the titanium backup folder to my pc, reset my nexus and than recover app using titanium backup again?
Thanks
Sent from my Nexus 5 using XDA Free mobile app
mousefai0922 said:
Yes, pls check on my other thread
And yes, I do have a rooted, twrp recovery and stock 5.1.1 rom.
So is it possible for me to move the titanium backup folder to my pc, reset my nexus and than recover app using titanium backup again?
Thanks
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
That might work, in theory it should, as long as u go back to 5.1.1, or u could just make a data only backup in twrp, download the factory image, whether it be 6.0 or 5.1.1, use the pc and adb to manually flash the images, do this
1) make data only backup, move that backup to pc
2) extract the images, both the tgz file and the zip file inside to a safe location, u only need the radio, boot, system, and userdata images if 6.0, just system and userdata if 5.1.1
3) use adb to flash these images like this:
fastboot flash radio "radio.img"
fastboot reboot bootloader
fastboot flash boot "boot.img"
fastboot reboot bootloader
fastboot flash system "system.img"
fastboot reboot bootloader
fastboot format userdata
fastboot reboot bootloader
Then boot to recovery, flash your backup and that's should be it
Sent from my Nexus 6 using Tapatalk
soupysoup said:
That might work, in theory it should, as long as u go back to 5.1.1, or u could just make a data only backup in twrp, download the factory image, whether it be 6.0 or 5.1.1, use the pc and adb to manually flash the images, do this
1) make data only backup, move that backup to pc
2) extract the images, both the tgz file and the zip file inside to a safe location, u only need the radio, boot, system, and userdata images if 6.0, just system and userdata if 5.1.1
3) use adb to flash these images like this:
fastboot flash radio "radio.img"
fastboot reboot bootloader
fastboot flash boot "boot.img"
fastboot reboot bootloader
fastboot flash system "system.img"
fastboot reboot bootloader
fastboot format userdata
fastboot reboot bootloader
Then boot to recovery, flash your backup and that's should be it
Sent from my Nexus 6 using Tapatalk
Click to expand...
Click to collapse
ok, quick question arise
let say i make a titanium backup files (from 5.1.1) and move them to my pc for future use. Can I restore the files done under 5.1.1 and restore them to a marshmallow ?
soupysoup said:
That might work, in theory it should, as long as u go back to 5.1.1, or u could just make a data only backup in twrp, download the factory image, whether it be 6.0 or 5.1.1, use the pc and adb to manually flash the images, do this
1) make data only backup, move that backup to pc
2) extract the images, both the tgz file and the zip file inside to a safe location, u only need the radio, boot, system, and userdata images if 6.0, just system and userdata if 5.1.1
3) use adb to flash these images like this:
fastboot flash radio "radio.img"
fastboot reboot bootloader
fastboot flash boot "boot.img"
fastboot reboot bootloader
fastboot flash system "system.img"
fastboot reboot bootloader
fastboot format userdata
fastboot reboot bootloader
Then boot to recovery, flash your backup and that's should be it
Sent from my Nexus 6 using Tapatalk
Click to expand...
Click to collapse
Few questions
Do I have to reset using stock recovery? Or twrp reset will do?
Can I just reset under setting?
Sent from my Nexus 5 using XDA Free mobile app
mousefai0922 said:
Few questions
Do I have to reset using stock recovery? Or twrp reset will do?
Can I just reset under setting?
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
No u can't use the factory reset button in settings as the stock room won't recognize twrp, u can however use twer and wipe cache, data, and dalvik cache, or just do the reg factory reset wipe under wipe which should work as well as a factory reset, why are u trying to factory reset tho, if I might ask
Sent from my Nexus 6 using Tapatalk
soupysoup said:
No u can't use the factory reset button in settings as the stock room won't recognize twrp, u can however use twer and wipe cache, data, and dalvik cache, or just do the reg factory reset wipe under wipe which should work as well as a factory reset, why are u trying to factory reset tho, if I might ask
Sent from my Nexus 6 using Tapatalk
Click to expand...
Click to collapse
because my nexus 5 showing 14gb instead of 32gb. I heard a factory reset will help the problem. I just dont know which factory reset (recovery or in setting) to do.
but if i use twrp wiping cache, data and dalvik (leaving system and internal storage alone).... will it wipe my lollipop os too? will it wipe my storage too?
what is the different between the factory reset under setting and the factory reset under twrp?
sorry for so many questions....
mousefai0922 said:
because my nexus 5 showing 14gb instead of 32gb. I heard a factory reset will help the problem. I just dont know which factory reset (recovery or in setting) to do.
but if i use twrp wiping cache, data and dalvik (leaving system and internal storage alone).... will it wipe my lollipop os too? will it wipe my storage too?
what is the different between the factory reset under setting and the factory reset under twrp?
sorry for so many questions....
Click to expand...
Click to collapse
Ok so to answer your question, u can wipe anything EXCEPT Internal Storage, system, and boot and you won't lose anything, personally I would do this, boy twrp and use the regular factory reset, this will error everything except got the OS and internal storage, if that didn't work then I would manually format the partitions
Sent from my Nexus 6 using Tapatalk
soupysoup said:
Ok so to answer your question, u can wipe anything EXCEPT Internal Storage, system, and boot and you won't lose anything, personally I would do this, boy twrp and use the regular factory reset, this will error everything except got the OS and internal storage, if that didn't work then I would manually format the partitions
Sent from my Nexus 6 using Tapatalk
Click to expand...
Click to collapse
thanks.
so i should wipe cache, dalvik cache and data and my phone apps+data will still be there right?
btw, what is cache, d cache and data maens?

I cannot flash TWRP or any Mods

I just got this phone and i have OEM Unlock enabled. I am due to sell my old phone in few days so i am in a bit panic mode right now :\
When i try to flash TWRP along with the instruction that were here (i tried with only applying both or only dm-verity) the phone started to "start" flashing the Samsung logo but nothing happened and after 15-25minutes i tried to install this ROM and it also shows "Starting up please wait" but it also seems to start up indefinately.
Can you tell what is wrong now? It seems i can flash the stock ROM and boot to it but cannot install TWRP/Root nor any custom ROM's :\
Hey bro follow this.
Install stock ROM.
Boot into it once.
And flash TWRP. Disable auto reboot in Odin.
Then boot into TWRP directly from there.
Now swipe to allow modifications.
THEN GO INTO WIPE ADVANCED WIPE AND CLICK FORMAT DATA AND TYPE YES.
After format reboot into recovery once again.
Now again swipe to allow mods.
Now only install Dm-verity.
Reboot.
Now the phone will boot.
Go back into recovery to install your ROM it'll root the phone.
njaya95 said:
Hey bro follow this.
Install stock ROM.
Boot into it once.
And flash TWRP. Disable auto reboot in Odin.
Then boot into TWRP directly from there.
Now swipe to allow modifications.
THEN GO INTO WIPE ADVANCED WIPE AND CLICK FORMAT DATA AND TYPE YES.
After format reboot into recovery once again.
Now again swipe to allow mods.
Now only install Dm-verity.
Reboot.
Now the phone will boot.
Go back into recovery to install your ROM it'll root the phone.
Click to expand...
Click to collapse
Sorry but still no dice (waited for ½hours to boot)
The data wipe did not even succeed. I attached screenshots of data wiping plus no-verity install if there is something anyone could use. I do not really understand how this is so hard... I have never encountered this kind of problem with common phone.
@DARKKi
Did You try to format data or just to wipe? You should click on format data and type "yes"
Dude I clearly mentioned, you have to click format data in advanced wipe. First try to read and understand then proceed. Click format data and then type yes and then you're good to go.
Domino5 said:
@DARKKi
Did You try to format data or just to wipe? You should click on format data and type "yes"
Click to expand...
Click to collapse
njaya95 said:
Dude I clearly mentioned, you have to click format data in advanced wipe. First try to read and understand then proceed. Click format data and then type yes and then you're good to go.
Click to expand...
Click to collapse
Damn. Sorry, i think that when going into advanced wipe there is no format there it's under normal wipe so i only thought that it meant that but yeah my mistake. I should have looked for format data and come to my own conclusions :\
Well first result of format resulted on loop boot and i could not even flash the stock rom with Odin (failed directly) but then i tried to flash TGP ROM via TWRP and it worked! So now i am using the phone as we speak!
Thanks a lot njaya95!
DARKKi said:
Damn. Sorry, i think that when going into advanced wipe there is no format there it's under normal wipe so i only thought that it meant that but yeah my mistake. I should have looked for format data and come to my own conclusions :\
Well first result of format resulted on loop boot and i could not even flash the stock rom with Odin (failed directly) but then i tried to flash TGP ROM via TWRP and it worked! So now i am using the phone as we speak!
Thanks a lot njaya95!
Click to expand...
Click to collapse
Sure no problem, I'm sorry about misleading you about that format data. Have fun with your phone.

Categories

Resources