How can Wipe Cache be performed in Stock Recovery? - Motorola One Action Questions & Answers

I haven't found a way to wipe cache memory through stock recovery. Has someone found a way to do it?

there isn't and it is because of google and because of seamless updates.

Jimisballjohn said:
I haven't found a way to wipe cache memory through stock recovery. Has someone found a way to do it?
Click to expand...
Click to collapse
Just push the power button and keep it pushed untill phone reboots. Cache should be wiped.

Fain11 said:
Just push the power button and keep it pushed untill phone reboots. Cache should be wiped.
Click to expand...
Click to collapse
Nope, this is standard reboot.

Jimisballjohn said:
I haven't found a way to wipe cache memory through stock recovery. Has someone found a way to do it?
Click to expand...
Click to collapse
You can in AP Fastboot
Code:
fastboot erase cache
Of course as stated,
Every time the device is rebooted the cache is wiped.
Or is supposed to be anyways.
Sent from my mata using XDA Labs

sd_shadow said:
You can in AP Fastboot
Code:
fastboot erase cache
Of course as stated,
Every time the device is rebooted the cache is wiped.
Or is supposed to be anyways.
Sent from my mata using XDA Labs
Click to expand...
Click to collapse
No, it isn't. If we speak of system cache then this includes a lot of things that do not make sense to compile often:
https://en.wikipedia.org/wiki/Android_Runtime
AND before wiping cache with fastboot, read also this:
https://forums.oneplus.com/threads/...and-wipe-all-your-data-off-your-phone.883273/
My point is: if you know not what are you doing, please do not do it.

I'm a bit confused here.
One action/vision is A/B devices and therefore it doesn't have cache or recovery partition.
Code:
C:\platform-tools_r29.0.5>fastboot erase cache
Erasing 'cache' OKAY [ 0.009s]
Finished. Total time: 0.030s
What does the "fastboot erase cache" really do then?
It sure looks like it does something.

tys0n said:
I'm a bit confused here.
One action/vision is A/B devices and therefore it doesn't have cache or recovery partition.
Code:
C:\platform-tools_r29.0.5>fastboot erase cache
Erasing 'cache' OKAY [ 0.009s]
Finished. Total time: 0.030s
What does the "fastboot erase cache" really do then?
It sure looks like it does something.
Click to expand...
Click to collapse
see : https://www.xda-developers.com/how-...ess-updates-affect-custom-development-on-xda/
"Update streaming: If your data partition is full, then the update can be downloaded and streamed to the inactive slot. It’s a pretty neat feature and means that you don’t have to waste any temporary storage on your updates. That’s why there’s no cache partition on A/B devices as they’re no longer needed."

Related

[Q] Possible to completely wipe internal storage

Would one be able to delete everything on the internal storage where nothing is left on it? As in no radio,fastboot,etc
I remember reading about someone who completely wiped his phone to the point where almost basically nothing was on it anymore.
why....
you can factory reset you phone
every thing must erase
biscuitownz said:
Would one be able to delete everything on the internal storage where nothing is left on it? As in no radio,fastboot,etc
I remember reading about someone who completely wiped his phone to the point where almost basically nothing was on it anymore.
Click to expand...
Click to collapse
You can erase most partitions with fastboot (system, userdata, boot, recovery, cache). Although I'm not sure about the radio. And not the bootloader.
luckydude said:
you can factory reset you phone
every thing must erase
Click to expand...
Click to collapse
A factory reset just erases the userdata partition, nothing more.
Well, if you literally want to delete EVERYTHING, then open CMD/Terminal and type following commands (Make sure you have fastboot, tough...)
Code:
First: fastboot erase ystem
second: fastboot erase boot
third: fastboot erase recovery
fourth: fastboot erase userdata
You CANNOT erase/format/delete the bootloader and/or radio, to do this, you need JTAG...
Well, hope I could help!
---------- Post added at 01:13 PM ---------- Previous post was at 01:11 PM ----------
efrant said:
You can erase most partitions with fastboot (system, userdata, boot, recovery, cache). Although I'm not sure about the radio. And not the bootloader.
A factory reset just erases the userdata partition, nothing more.
Click to expand...
Click to collapse
He's right...
Facory reset only erases follwoing partitions:
Code:
/data
/mnt/sdcard/Android
familyguy59 said:
[snip]
You CANNOT erase/format/delete the bootloader and/or radio, to do this, you need JTAG...
Click to expand...
Click to collapse
You need to be careful when you make absolute statements like that. What you posted is not correct.
The GNex is still a Samsung device, in other words, there is no NAND lock. If you have root you can erase/flash any of the GNex's 13 partitions (sbl, xloader, boot, recovery, system, userdata, cache, radio, param, misc, efs, metadata, dgs), just not with fastboot. No need for JTAG.
But if you erase some of them and don't re-flash them before rebooting, you could end up with a brick (and I mean brick).
familyguy59 said:
Facory reset only erases follwoing partitions:
Code:
/data
/mnt/sdcard/Android
Click to expand...
Click to collapse
/sdcard is just a symlink to /data/media, so saying it will wipe /data means it will wipe /data/media as well.

[Q] Help: Can't relock, can't flash via fastboot

UPDATE: Still no solution found - new Ideas very welcome.
Hi there,
I'm at the end of my wits with my HOX which is with a german o2 branding. After getting stuck in bootscreen after athe OTA-Update from 1.26.207.2 to 1.28.207.9 - which failed for some reasons. I tried to install different Custom-Roms, none of which would boot beyond the first HTC-Screen.
The latest one I tried was Cyanogenmod, that did boot fully but I got constant "andoidupi crashed" messages, so I tried to reflash it.
After that things got weird, because right now I can't really do anything anymore. If I try to relock it via "Fastboot oem lock" it just reboots and it boots straight into CWM 5.8.3.1 but when I get back to bootloader its still "**** UNLOCKED ****"
I can flash boot.imgs via fastboot flash... but even so its says at the command prompt that it was successful flashed, it really isnt. No matter what - at reboot I will boot into CWM.
It is like working on a virtual machine - the HOX gives all the right responses, but noting I try to flash is permanent.
I can't relock, I can't flash new recoverys, can't flash new boot.img and everything I push onto the SDCARD via adb is gone after reboot. If I delete a file that is actually on the SDCARD it will be back after reboot, like it was never really deleted.
I already checked my drivers, switched off Antivir, tried it on a different PC, reinstalled the drivers etc etc.
My HOX is from German o2
I've got HBOOT 0.94.0000 and Radio 1.1204.90.13
If anyone has any suggestions besides "You have to fastboot flash recovery/boot..." and "Don't forget to erase cache after every flash" I'd be very thankfull
Best regards,
Thad
did you try to re-download your fastboot ?
and did you navigate on CMD to the right place where your fastboot folder is stored ?
You need to flash the stock recovery before you relock your bootloader.
Flash stock recovery
Relock bootloader
Install ruu
Hope this helped
EDIT: Just read your post again and you said you've tried flashing recoveries, sorry, its late here
Sent from my HTC One X using xda premium
i made a compilation of threads about this matter, it might help you. check it out..
http://forum.xda-developers.com/show....php?t=1692681
Thanks for all suggestions on the topic
@muamers
I redownloaded fastboot multiple times, but its all the same, sadly The problem is: It seems to work. I get all the right replies on the command prompt, but after rebooting nothing is flashed.
@mikey0105
The link goes to a 404 page - could you post it again?
Thank you
tadeausz said:
Thanks for all suggestions on the topic
@mikey0105
The link goes to a 404 page - could you post it again?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1692681
Thank you Gibeon & mikey0105
I retried all the steps there, but still no change.
The problem still is the same. This is what I get in response:
>fastboot erase cache
erasing 'cache'...
OKAY [ 0.044s]
finished. total time: 0.045s
>fastboot flash boot boot.img
sending 'boot' (4156 KB)...
OKAY [ 0.538s]
writing 'boot'...
(bootloader) Format partition LNX done
OKAY [ 0.470s]
finished. total time: 1.008s
>fastboot erase cache
erasing 'cache'...
OKAY [ 0.034s]
finished. total time: 0.034s
>fastboot flash recovery recovery-clockwork-touch-5.8.3.1-endeavoru_fixedadbusb.img
sending 'recovery' (5760 KB)...
OKAY [ 0.829s]
writing 'recovery'...
(bootloader) Format partition SOS done
OKAY [ 0.548s]
finished. total time: 1.377s
So everything should've worked out great. But not so, because in reality he really hasn't flashed anything to the HOX permanently. When I reboot to recovery I still have the OLD CWM without fixes. The boot.img isn't flashed either.
As I said: It's like working on a virtual machine, where nothing really has any effects, it's a if all the fastboot commands only affect the RAM but are not really flashed to Memory.
And I still can't relock, still can't reboot-bootloader from Bootloader.
Any other ideas are welcome...
Greetings,
Thad
Bump.
Nobody any more ideas?
Bump. Still no solution after many month
try to flash the latest CWM recovery. http://www.clockworkmod.com/rommanager
robchongke said:
try to flash the latest CWM recovery. http://www.clockworkmod.com/rommanager
Click to expand...
Click to collapse
I'd like to - but as I said - it won't flash anything. I get the right responses but after a reboot it's back to the old Recovery
tadeausz said:
I'd like to - but as I said - it won't flash anything. I get the right responses but after a reboot it's back to the old Recovery
Click to expand...
Click to collapse
are you doing
fastboot flash recovery recovery.img
Or
fastboot boot recovery.img
I'm not sure the second one works, but if it did, it would do what you describe. So do the first.
help
I'm running ICJ ROM AOKP. last time I flashed this rom and flashed the gapps too,
Now I want to install a new package of gapps, SO, do I need to wipe data, cache, dalvic cache to install the gapps ???
Note that I'm going to install ONLY the gapps...
THANKS
aimen7 said:
i'm running icj rom aokp. Last time i flashed this rom and flashed the gapps too,
now i want to install a new package of gapps, so, do i need to wipe data, cache, dalvic cache to install the gapps ???
Note that i'm going to install only the gapps...
Thanks
Click to expand...
Click to collapse
That's the third time I've read this question from you.
STOP POSTING IT NOW!
BenPope said:
That's the third time I've read this question from you.
STOP POSTING IT NOW!
Click to expand...
Click to collapse
sorry, I'm CONFUSED about that
Aimen7 said:
sorry, I'm CONFUSED about that
Click to expand...
Click to collapse
Make 1 new thread or search....don't go posting it in every Q&A thread !
That is confusing ! :thumbdown:

My HOX just briked

Hi guys. I just used the power bottom -> restart -> recovery command on my HoX running last Viper ROM. After the reboot, my phone just bricked. I can get the device to bootloader, but I cant either open backup or reboot and run the the ROM itself. Any suggestions? Kinda shocked atm... All i can do is to hold power for +5 for a restart and get to bootloader, nothing else works. Also, tried hasoon2000's exe file to reistall TWRP, didnt work.
Ali_Hako said:
Hi guys. I just used the power bottom -> restart -> recovery command on my HoX running last Viper ROM. After the reboot, my phone just bricked. I can get the device to bootloader, but I cant either open backup or reboot and run the the ROM itself. Any suggestions? Kinda shocked atm... All i can do is to hold power for +5 for a restart and get to bootloader, nothing else works. Also, tried hasoon2000's exe file to reistall TWRP, didnt work.
Click to expand...
Click to collapse
you can use the fastboot commands to save your ass try
Code:
fastboot erase cache
matt95 said:
you can use the fastboot commands to save your ass try
Code:
fastboot erase cache
Click to expand...
Click to collapse
Tnx for the superbfast answer
it dosent work :
matt95 said:
you can use the fastboot commands to save your ass try
Code:
fastboot erase cache
Click to expand...
Click to collapse
Tnx for the superbfast answer
Edit, sry my bad, I used a wrong command first time,
Its still bricked :s
erasing 'cache'...
OKAY [ 0.078s]
finished. total time: 0.078s
Download these drivers
http://db.tt/gXVxa3Dp and install them
Download these files
http://db.tt/ldx3qOOU and place them in a folder on the pc looking like this
C:\fastboot\*the files from the download*
Connect the phone to the pc and put the phone in the bootloader and select fastboot (you should see in red FASTBOOT USB)
Then you right click inside that fastboot folder and open a command prompt, and on that prompt you type just like Matt said
Fastboot erase cache
Now try to enter the recovery :thumbup:
OH GOD IT WORKED!
but still, I get unexpected crashes even in the recovery, my phone just crashed in the middle of recovery while i was trying to wipe the ROM. And its bricked again
Edit: It crashes right after I want to wipe Dalvik Cache
ATM Im trying to restore my first nandriod back up which was taken right after i unlocked the bootloader
Ali_Hako said:
Tnx for the superbfast answer
it dosent work :
Tnx for the superbfast answer
Edit, sry my bad, I used a wrong command first time,
Its still bricked :s
erasing 'cache'...
OKAY [ 0.078s]
finished. total time: 0.078s
Click to expand...
Click to collapse
download the latest CMW recovery and type in fastboot mode
Code:
fastboot erase recovery
fastboot flash recovery name_of_recovery.img
This one
http://db.tt/Krlm4dPs
Rename the file to recovery.img and put it inside the fastboot folder on the pc ! Then flash it
Also fastboot erase cache afterwards ......
R: My HOX just briked
Use TWRP if you want using Viper.
I say that because with twrp you don't have problem with ota.
Sent from HOX
Twrp recovery
http://db.tt/aYgw4fuh
Thanks everyone for helping me I really really appreciate it.:good:
It worked ^-^
I just restored my original back up, even when i wasnt able to wipe Dalvik Cache. And now I can wipe Dalvik Cache again. That was a really bad moment, but I just managed it with the help of you^^ guess I wont be changing my ROM for a while now lol...:laugh:
Nice !!!
R: My HOX just briked
I advise you to keep TWRP because it is best of CWM
Happy flashing
Sent from Nexus 7 with TapaHD
Yes use this
HTC ONE X Using TapaTalk

[Q] Frozen at Google Screen

(Repost after posting this in the wrong section)
Hello there. A few days ago I was able to update (finally) my Nexus 7 2013 WiFi version to KitKat. However, during some weird screen freezing issues, the tablet refuses to go past the Google screen. I am able to get into fastboot and recovery, but when I try to wipe the device, I get a lot of "failed to mount cache" messages.
The root toolkit also fails because of this, and even sideloading won't work. When I try to unlock the device, I get the blue text screen, but then it freezes at "erasing cache" or something to that effect. Any ideas on how I can fix this? Thanks!
Maybe your cache partition got corrupted. Have you tried fastboot flash cache cache.img? How about just a normal full factory reset from recovery? It could also be a problem with recovery, in which case you would do the above fastboot but replace cache with recovery.
prsterero said:
Maybe your cache partition got corrupted. Have you tried fastboot flash cache cache.img? How about just a normal full factory reset from recovery? It could also be a problem with recovery, in which case you would do the above fastboot but replace cache with recovery.
Click to expand...
Click to collapse
Thanks a lot for the reply!
I tried the cache.img, and it still said "erasing cache..." for 10 minutes without any sign of advancing. I tried the recovery.img, and it said this:
fastboot flash cache recovery.img
sending 'cache' (7424 KB)...
FAILED (command write failed (No such device or address))
finished. total time: 0.001s
Which I don't understand since it is hooked up and appears under "fastboot devices"
Thanks again for the assistance!
ZReese23 said:
Thanks a lot for the reply!
I tried the cache.img, and it still said "erasing cache..." for 10 minutes without any sign of advancing. I tried the recovery.img, and it said this:
fastboot flash cache recovery.img
sending 'cache' (7424 KB)...
FAILED (command write failed (No such device or address))
finished. total time: 0.001s
Which I don't understand since it is hooked up and appears under "fastboot devices"
Thanks again for the assistance!
Click to expand...
Click to collapse
That's because you made a typo. It's fastboot flash recovery recovery.img
prsterero said:
That's because you made a typo. It's fastboot flash recovery recovery.img
Click to expand...
Click to collapse
D'oh, how dumb of me. So I went to try that out, and it stopped me because it says the device was locked, and due to the aforementioned freezing at erasing userdata, I can't get further.
fastboot flash recovery recovery.img
sending 'recovery' (7424 KB)...
FAILED (remote: Bootloader is locked.)
finished. total time: 0.006s
ZReese23 said:
D'oh, how dumb of me. So I went to try that out, and it stopped me because it says the device was locked, and due to the aforementioned freezing at erasing userdata, I can't get further.
fastboot flash recovery recovery.img
sending 'recovery' (7424 KB)...
FAILED (remote: Bootloader is locked.)
finished. total time: 0.006s
Click to expand...
Click to collapse
What about "fastboot format cache"
prsterero said:
What about "fastboot format cache"
Click to expand...
Click to collapse
Just tried that for about 20 minutes. It's stuck on " erasing 'cache' ".
Thanks again for the help.
Have you tried re-entering bootloader? I think sometimes if you try doing everything in one session it can get stuck. Do fastboot reboot bootloader. Then try formatting cache again.
prshosting.org
prsterero said:
Have you tried re-entering bootloader? I think sometimes if you try doing everything in one session it can get stuck. Do fastboot reboot bootloader. Then try formatting cache again.
prshosting.org
Click to expand...
Click to collapse
Did the reboot and tried again. Waited about 20 minutes, and still stuck at "erasing 'cache ". I assume it doesn't take anywhere near this long. T_T
ZReese23 said:
Did the reboot and tried again. Waited about 20 minutes, and still stuck at "erasing 'cache ". I assume it doesn't take anywhere near this long. T_T
Click to expand...
Click to collapse
I think it should only be a few minutes or so. Are you using the factory cable and have you tried different USB ports? Maybe we can use team viewer and I can take a look if you have some time to kill lol
prshosting.org
prsterero said:
I think it should only be a few minutes or so. Are you using the factory cable and have you tried different USB ports? Maybe we can use team viewer and I can take a look if you have some time to kill lol
prshosting.org
Click to expand...
Click to collapse
I have tried two different cables and moved it around to different USB ports per past suggestions. It just seems to stop when I go to format the cache like it won't mount. Maybe the memory became corrupt.
And sorry, I'd prefer not to do the team viewer, but I am following your directions accordingly!
ZReese23 said:
I have tried two different cables and moved it around to different USB ports per past suggestions. It just seems to stop when I go to format the cache like it won't mount. Maybe the memory became corrupt.
And sorry, I'd prefer not to do the team viewer, but I am following your directions accordingly!
Click to expand...
Click to collapse
Is it just cache it can't format? Is it able to do anything else like data?
prsterero said:
Is it just cache it can't format? Is it able to do anything else like data?
Click to expand...
Click to collapse
I tried to format userdata and cache, and both hang at "erasing" without any indication of moving further.
ZReese23 said:
I tried to format userdata and cache, and both hang at "erasing" without any indication of moving further.
Click to expand...
Click to collapse
Maybe the computer is low on resources and can't complete the operation. Have you tried rebooting?
prshosting.org
lol, I don't think it's that. I have tried it out of a cold reboot do to messing around with the different tools that are available, and each time I tried it things hung there. =[
If everything else fails and you already wiped your data off it, you can try flashing the stock image from Google and use it as a fresh starting point.
Yeah, that's just the thing. There's no way for me to flash it, it seems. I can't unlock the bootloader, and when I go to flash it using Recovery, it just tells me it can't mount the cache. E: so on and so forth.

Incorrect Storage Capacity (Stock/7.0) - Device Thinks It's 16GB, Not 32

Hello there,
I own a N5X with 32 GB of storage. After some failed flashing I reflashed stock, which works fine except that only 10.55 GB of storage are being shown in the settings.
I do not have any modifications at the moment other than TWRP and an unlocked bootloader.
I did some research and found that erasing and reflashing all these Android compenents should fix it (this example is for the N5):
Code:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
fastboot flash radio radio.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img
flash boot boot.img
...which it didn't.
Does anyone have a solution? Is there any way to extend the partitions, maybe without wiping everything?
Thank you in advance
Tuxcraft32 said:
Hello there,
I own a N5X with 32 GB of storage. After some failed flashing I reflashed stock, which works fine except that only 10.55 GB of storage are being shown in the settings.
I do not have any modifications at the moment other than TWRP and an unlocked bootloader.
I did some research and found that erasing and reflashing all these Android compenents should fix it (this example is for the N5):
Code:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
fastboot flash radio radio.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img
flash boot boot.img
...which it didn't.
Does anyone have a solution? Is there any way to extend the partitions, maybe without wiping everything?
Thank you in advance
Click to expand...
Click to collapse
None of those would fix the GPT partition table.
Try flashing the beta Android N OTA. That has fixed the GPT table for people who use 32GB TOT file on 16GB so perhaps it'll do the same for your reverse situation.
try fastboot format userdata. This will wipe everything tho. That should get you back to 32gb
Im not sure if there is a way to do it without wiping. Maybe flash twrp recovery and use the advanced menu to extend partition.
This worked for me:
Boot into TWRP
Choose "Wipe" -> "Advanced Wipe"
Select your "data" partition and choose "Repair or Change File System"
Select "Resize File System" - it should automatically expand your storage to fill the empty space.
Tuxcraft32 said:
Code:
fastboot flash userdata userdata.img
...which it didn't.
Does anyone have a solution? Is there any way to extend the partitions, maybe without wiping everything?
Thank you in advance
Click to expand...
Click to collapse
Your internal storage was downsized to 16 GB because of this command. The userdata.img formats the userdata partition to the base 5X storage size of 16 GB. Do not flash the userdata partition since you have a 32 GB phone.
Sent from my Nexus 5X using Tapatalk
SlimSnoopOS said:
Your internal storage was downsized to 16 GB because of this command. The userdata.img formats the userdata partition to the base 5X storage size of 16 GB. Do not flash the userdata partition since you have a 32 GB phone.
Click to expand...
Click to collapse
If that is what caused it (and the partition table is still fine), then he can probably do
fastboot erase userdata
fastboot format userdata
and it should be back to normal.
just do dalvik and cache reset from recovery
First, thank you for all of your replies <3.
TheBurgh said:
This worked for me:
Boot into TWRP
Choose "Wipe" -> "Advanced Wipe"
Select your "data" partition and choose "Repair or Change File System"
Select "Resize File System" - it should automatically expand your storage to fill the empty space.
Click to expand...
Click to collapse
Worked for me as well! I now have 24.89GB free (which is normal, isn't it?). Thanks a lot.
To you:
SlimSnoopOS said:
Your internal storage was downsized to 16 GB because of this command. The userdata.img formats the userdata partition to the base 5X storage size of 16 GB. Do not flash the userdata partition since you have a 32 GB phone.
Click to expand...
Click to collapse
and you:
beady_uk said:
try fastboot format userdata. This will wipe everything tho. That should get you back to 32gb
Click to expand...
Click to collapse
as well as you:
sfhub said:
If that is what caused it (and the partition table is still fine), then he can probably do
fastboot erase userdata
fastboot format userdata
and it should be back to normal.
Click to expand...
Click to collapse
– I think this is what I got wrong. The flash-all.sh reported an error and stopped after flashing the first couple of components so I flashed all the components manually, including the userdata.img. I will stay away from that next time.
sfhub said:
None of those would fix the GPT partition table.
Try flashing the beta Android N OTA. That has fixed the GPT table for people who use 32GB TOT file on 16GB so perhaps it'll do the same for your reverse situation.
Click to expand...
Click to collapse
Thank you for the suggestion, luckily this was not necessary.
ikyeye said:
just do dalvik and cache reset from recovery
Click to expand...
Click to collapse
I did that, with no effect.
TheBurgh said:
This worked for me:
Boot into TWRP
Choose "Wipe" -> "Advanced Wipe"
Select your "data" partition and choose "Repair or Change File System"
Select "Resize File System" - it should automatically expand your storage to fill the empty space.
Click to expand...
Click to collapse
THANK YOU! I'm glad I didn't listen to the advice to factory reset, etc. This fixed the size without losing anything.

Categories

Resources