I'm creating a ZIP file to flash with TWRP.
I would like to add a command to the shell script to WIPE files of this paths.(/system/cache/dalvik/data)
How can I write the command?
wipe PARTITION :
format PARTITON, one by line:
cache,
system,
dalvik,
data.
cooltt said:
wipe PARTITION :
format PARTITON, one by line:
cache,
system,
dalvik,
data.
Click to expand...
Click to collapse
ty
Related
What is the proper way to wipe the Dalvik Cache on the SamChg?
I removed a system app, and I read that I should wipe the DC to truly clean out the system app.
¿GotJazz? said:
What is the proper way to wipe the Dalvik Cache on the SamChg?
I removed a system app, and I read that I should wipe the DC to truly clean out the system app.
Click to expand...
Click to collapse
Couple of ways to do it.
Easiest is use CWR and select the option to wipe dalvik under advanced.
You can manually delete the contents of the /data/dalvik-cache folder via the rm command (google for proper syntax) from the terminal, adb, or with something like root explorer (make sure to mount r/w).
A reboot will rebuild the cache, which will cause your reboot to take considerably longer than normal.
i got virtuous unity 2.37 and want to install 2.39. its suggested i do a ext4 wipe before nstalling 2.39. i want to make sure i'm doing this right.
so, to do a full ext4 wipe, i must boot into recovery and then wipe all data, cache, then go to advance and wipe dalvik? is this correct?
Maybe you must go in Wipe / Format menu,then format sd-ext.
Go to mount and storage, click format sd-ext and click yes. Your ext4 partition is now wiped.
itachi1706 said:
Go to mount and storage, click format sd-ext and click yes. Your ext4 partition is now wiped.
Click to expand...
Click to collapse
hi itachi.. does your advice regard wiping the sd card?
also, someone suggested that an ext4 wipe involves going to Wipe/Format and selecting wipe data/factory reset, wipe dalvik cache, format system, format data, format cache and format boot. is this true?
trapzz said:
hi itachi.. does your advice regard wiping the sd card?
also, someone suggested that an ext4 wipe involves going to Wipe/Format and selecting wipe data/factory reset, wipe dalvik cache, format system, format data, format cache and format boot. is this true?
Click to expand...
Click to collapse
It does not affect the FAT partition of the SD card. Only the Ext partition. And by wiping data, dalvik, formating system, data, cache and boot, you are literally doing a full wipe of the phone which people normally do when they change from 1 Rom to another.
itachi1706 said:
It does not affect the FAT partition of the SD card. Only the Ext partition. And by wiping data, dalvik, formating system, data, cache and boot, you are literally doing a full wipe of the phone which people normally do when they change from 1 Rom to another.
Click to expand...
Click to collapse
thats exactly why im doing a full wipe.. to upgrade my rom to a higher version. but your way of wiping data seems like it involves wiping data from the sd card, which is risky and unnecessary when installing/upgrading a rom. and it can wipe out the rom on the sd card that you want to install anyway. so then whats the point'?
trapzz said:
thats exactly why im doing a full wipe.. to upgrade my rom to a higher version. but your way of wiping data seems like it involves wiping data from the sd card, which is risky and unnecessary when installing/upgrading a rom. and it can wipe out the rom on the sd card that you want to install anyway. so then whats the point'?
Click to expand...
Click to collapse
I don't mean changing to a higher version, I mean changing Rom (like from cyanogen to miui) . If you are upgrading to a higher version you do not need to wipe data. All you need to do is just wipe cache and dalvik, boot and system too if you want. This way you will get updated to the latest version while still retaining your application data.
And yes, technically you do wipe the sdcard, but only the EXT partition, which is where your apps are placed in if you use A2SD+. Your FAT partition, which is the one recognised by the computer and where you put all your data in, is not affected. Hence it will not wipe out the Rom you are trying to install on the sdcard.
Sent from my HTC Original Desire using Tapatalk
Hello, I'm just trying to gather as much information as I can and be clear about everything before I install a custom ROM. I have already rooted the nexus s.
The ROM I'm interested in is this CyanogenMod 7.
In their installation instructions it says
- Format the system, data & cache partitions of your device.
- Perform a factory reset.
From another guide (AddictiveTips) they just tell us to do the following
- Select wipe factory/data reset.
- Now, wipe cache and dalvick cache.
The xda thread tells us to format system, data, and cache partitions. But the AddictiveTips guide only seem to tell us to format the data & cache partitions.
So my question is, does the system partition automatically get formatted while installing the new ROM, or do you have to manually format it by going to mounts and storage > format system before installing the ROM?
Also, do you guys recommend to format all the required partitions by going to mounts and storage or by selecting wipe factory/data reset and wipe cache from the main menu? Thanks in advance.
...anyone?
Wipe factory/data reset (this will obviously also wipe the caches)
Install zip from SDCard (ROM)
Reboot.
Greetz
Hi..
I am always confused about this. When flashing a custom ROM, will wiping the system not delete the ROM zip file?
Also is wiping cache, system and data the only things I need to do.
Like there are so many confusing posts in and out of xda. The official CM page says nothing about wiping cache and system while the CM FAQ page here says to wipe all three I.e. cache , data and system.
Some say to do factory reset and some say not to.
What do I do man?
Cache, Data, System and Internal Storage are all separate partitions. Wiping one does not affect the others. Factory reset usually does the first three, you have to manually specify anything else.
Your ROM zip will be on the 'Internal Storage' partition which is why it survives a system wipe.
lost101 said:
Cache, Data, System and Internal Storage are all separate partitions. Wiping one does not affect the others. Factory reset usually does the first three, you have to manually specify anything else.
Your ROM zip will be on the 'Internal Storage' partition which is why it survives a system wipe.
Click to expand...
Click to collapse
Thanks for your quick response man. Also one more thing.
Is it necessary to wipe all the three when flashing a ROM and does the order in which they are wiped matter?
It's a very good idea. Not wiping can cause all kinds of problems. Order does not matter.
lost101 said:
It's a very good idea. Not wiping can cause all kinds of problems. Order does not matter.
Click to expand...
Click to collapse
Another thing again..
Should i wipe data/factory rest or just wipe data..
And in case of cache should i wipe cache partition or just cache or dalvik cache also..
Thanks in advance!
Meuuks13 said:
Another thing again..
Should i wipe data/factory rest or just wipe data..
And in case of cache should i wipe cache partition or just cache or dalvik cache also..
Click to expand...
Click to collapse
Wipe them all if you want, but factory reset is usually enough.
follow the instructions in the ROM thread where you looked, some steps omitted or changed to be installed, I hope you have no problems, I recommend that you make a backup of your current ROM.
hello, I have noob question about CWM recovery and I don't know where to post it (sorry moderators, if this is the wrong place)
my question...
when I do "format /system", "format /data", "format /cache" and "format /data and /data/media (/sdcard)" in Mounts and Storage Menu .. will that format all the files stored in my phone storage?
when I want clean install ROM... is it enought to do "wipe data/factory reset", "wipe cache partition" in general menu and "wipe dalvik cache" in advanced menu?
[/COLOR]
2hipso said:
hello, I have noob question about CWM recovery and I don't know where to post it (sorry moderators, if this is the wrong place)
my question...
when I do "format /system", "format /data", "format /cache" and "format /data and /data/media (/sdcard)" in Mounts and Storage Menu .. will that format all the files stored in my phone storage?
when I want clean install ROM... is it enought to do "wipe data/factory reset", "wipe cache partition" in general menu and "wipe dalvik cache" in advanced menu?
Click to expand...
Click to collapse
Bro if u format data-media then every files is gone even ur ROM(flashable zip file) it will erase everything .its not need to format media storage bro
And for clean installation format data, cache, davlic cache and under mount and storage format system is enough bro but formatting data, cache under mount and storage will be more fine
moha07 said:
[/COLOR]
Bro if u format data-media then every files is gone even ur ROM(flashable zip file) it will erase everything .its not need to format media storage bro
And for clean installation format data, cache, davlic cache and under mount and storage format system is enough bro but formatting data, cache under mount and storage will be more fine
Click to expand...
Click to collapse
so to get it right - wipe data, wipe cache, wipe dalvik cache and format system?
2hipso said:
so to get it right - wipe data, wipe cache, wipe dalvik cache and format system?
Click to expand...
Click to collapse
Ya bro
Thread closed as it seems to be solved.