[Tip] Clearing (dalvik) cache and app cache before nandroid backup - Galaxy S6 General

Perhaps this is already obvious for everybody but thought I'd share it anyway as I only realised/discovered this (after years of android and flashing).
I have the 32GB version of the S6 and usually have about 2 nandroid backups on my device, I noticed that the size of my compressed backups was about 2.6-3GB which is pretty damn big for this phone (in the past I always had phones with sd-cards so plenty of space and never really bothered with it). Checking out if I could delete some temp and unnecessart stuff I found out that by deleting app cache manually and using (in my case TWRP) to delete dalvik and cache I managed to get this down to 1.6GB! So that means ~2.5GB if you have 2 backups on your device (this is with the xtrestolite v1.5 rom btw).
My steps (from now on)?
( 0. Install DiskUsage to identify main culprits: https://play.google.com/store/apps/details?id=com.google.android.diskusage )
1. Install App Cache Cleaner from the market: https://play.google.com/store/apps/details?id=mobi.infolife.cache
2. Run app cache cleaner and delete cache from apps where desired (I found out that my browser and the playstore had about 1GB of cache combined, so I cleared all app cache)
3. Reboot to recovery (TWRP) and clear cache and dalvik cache in there (in my case there was about 2.5GB of cache files)
4. Make a nandroid backup
The only downside (afaik) is that the first boot takes quite a bit longer because it's rebuilding a lot of (dalvik cache) stuff. But for me that is just a small price to pay for the increased remaining size
Hope this is usefull to some others as well!

I used SD Maid app, the paid version, on my rooted Oneplus One to do the cleaning before nandroid backup. My S6 is still stock and unrooted.
Sent from my SM-G920F using Tapatalk

Related

[Q] Will a factory reset or flashing a ROM erase my EMMC-files?

I'm thinking about wiping my Nook since I can't get WiFisleep to work anymore. But what will happen to all my books and comics stored on the EMMC then? I'm running cyanogen 7 from the internal memory with no traces of BN(the first thing you get when you boot is a small cyanogen logo). Do I have to back all those files up?
If you wipe data and Dalvik you most likely lose those files (depending on where you have stored this files to save). I would suggest backing them up to your uSD to be safe for now.
skeeterpro said:
If you wipe data and Dalvik you most likely lose those files (depending on where you have stored this files to save). I would suggest backing them up to your uSD to be safe for now.
Click to expand...
Click to collapse
Wiping Davlik will not delete those files. I wipe it every time I upgrade to a higher nightly. In fact, it is all that I wipe. The real question is will an update or reflash solve the problem? If it were me, I would flash an update using ROM Manager, wiping Davlik and including gaaps in the update. If that does not solve the issue I would then start from scratch since a system wipe will be needed. However, backing up the apps first using Titanium Backup (but not system settings) will get you back after the new flash.
pat is right, wipe Dalvik doesn't touch files but skeeter also right as wipe /data, everything most likely gone with the wind
votinh said:
pat is right, wipe Dalvik doesn't touch files but skeeter also right as wipe /data, everything most likely gone with the wind
Click to expand...
Click to collapse
Wiping /data will indeed wipe all downloaded applications and their associated settings but I think the OP is referring to media files stored on the emmc partition and this will not be touched by a data, system or cache wipe, just like SD card contents won't be touched.
I store some basic media files on internal emmc making use of about 4GB spare capacity. This gets scanned as well as the stuff stored on SD.

what happen to the paid app after flashing new rom

Some roms require a full wipe/factory reset before installing. Of course that will delete all apps including the one that I bought. Do I need to buy them again?
Also, will the 'titanium backup' backups the destop settings (i.e., the app shortcuts created on main screen)?
wildcolor said:
Some roms require a full wipe/factory reset before installing. Of course that will delete all apps including the one that I bought. Do I need to buy them again?
Also, will the 'titanium backup' backups the destop settings (i.e., the app shortcuts created on main screen)?
Click to expand...
Click to collapse
Some launchers let you backup icon placements and such on the home screen. Also, as long as you use the same Google account you originally bought stuff from Google Play with on your new ROM or any other devic, you can download it again for free. Also Titanium Backup is an incredible app that will backup apps settings as well, so if you are thinking of getting it, go for the paid version, it's worth a least 4 times as much as it costs.
Sent from my Nexus 7 using XDA Premium App
krion64 said:
Some launchers let you backup icon placements and such on the home screen. Also, as long as you use the same Google account you originally bought stuff from Google Play with on your new ROM or any other devic, you can download it again for free. Also Titanium Backup is an incredible app that will backup apps settings as well, so if you are thinking of getting it, go for the paid version, it's worth a least 4 times as much as it costs.
Sent from my Nexus 7 using XDA Premium App
Click to expand...
Click to collapse
Thanks for the reply. I bought TitaniumB already. But, if I do a full wipe, I actually also delete the Titanium app and the file it backuped, didn't I?
wildcolor said:
Thanks for the reply. I bought TitaniumB already. But, if I do a full wipe, I actually also delete the Titanium app and the file it backuped, didn't I?
Click to expand...
Click to collapse
Not if you leave the "sdcard" partition alone. You can wipe data and keep that data (which has your TB info) intact. Same goes for any backups/nandroids you performed with TWRP or CWR.
kpjimmy said:
Not if you leave the "sdcard" partition alone. You can wipe data and keep that data (which has your TB info) intact. Same goes for any backups/nandroids you performed with TWRP or CWR.
Click to expand...
Click to collapse
It might be a stupid question, but What is TB short for? Also, the Nexus 7 only has one internal 'sdcard', by partition, did you mean that I could set many partitions like what we do under windows (i.e., C: , D: , E: ) ?
TB is titanium backup but I would just use es file explorer or something similar to back up the apps to the sd card
.215 radio - SimplexROM 1.2 - Daily Driver - XT912 - Wigdetsoid - Linux Installer
wildcolor said:
It might be a stupid question, but What is TB short for? Also, the Nexus 7 only has one internal 'sdcard', by partition, did you mean that I could set many partitions like what we do under windows (i.e., C: , D: , E: ) ?
Click to expand...
Click to collapse
You can but that's a totally different question/thread/answer. LOL What you want is to just flash a new rom after a wipe and to restore all your apps. It is ok to wipe your device, just do NOT wipe the internal SD card. That will wipe the rom you want to flash and other goodies. Another tip is to create an update.zip of your titanium backup program so that when you first flash your ROM, you can flash the update.zip right after. In Titanium backup, hit menu-"create update.zip". This will place the update.zip (titanium backup program) on your internal SDcard so you can flash it later.
Please delete the update.zip after you have your device up and running to avoid any confusions down the road. You can create the titanium backup "zip" file at any time and takes seconds to do. GL
thanks for all the reply.
I thought a full wipe would delete all user data (apps and all files) and was afraid to try to do the full wipe. Obversly, I was wrong. The wipe doesn't delete everything.
wildcolor said:
thanks for all the reply.
I thought a full wipe would delete all user data (apps and all files) and was afraid to try to do the full wipe. Obversly, I was wrong. The wipe doesn't delete everything.
Click to expand...
Click to collapse
Nope the rom's data partition is seperate from the sdcard partition. A regular wipe of the data, cache, dalvic cache, and system doesn't delete the storage (sdcard) partition, they're kept seperate for that reason among others.
You have to actually tell it to wipe the sdcard partition in order to wipe it. Also, note that in recovery, wiping the data and cache partition is sometimes called "factory reset". I know in TWRP recovery it is, not sure about clockwork. If you know you're in recovery, the factory reset is perfectly safe, it only wipes data and cache. It's completely seperate from similar options that are in the rom (in settings) or in the factory bootloader.
When you see us referring to "Make sure you wipe completely" it's probably confusing, but we aren't referring to the sdcard and external storage. We are just referring to what's necessary for a proper rom install, which is data, system, dalvic cache, and cache.
CharliesTheMan said:
It's completely seperate from similar options that are in the rom (in settings) or in the factory bootloader.
Click to expand...
Click to collapse
That is exactly what I confused about.
Thanks a lot. Thanks meter added again for the generous reply.

How do I keep the backup of my apps when clearing data for a new rom?

Every time I clear the device to flash a new rom once the new rom is up, my Titanium backup of all the apps is gone. It's a huuuuuuge pain to keep installing apps one by one each time.
Titanium Backup is one way.
buffnutz1 said:
Every time I clear the device to flash a new rom once the new rom is up, my Titanium backup of all the apps is gone. It's a huuuuuuge pain to keep installing apps one by one each time.
Click to expand...
Click to collapse
Copying the backup folder to an otg usb stick, then copying back afterwards is one way to do it...
Sent from my Nexus 4 using xda premium
buffnutz1 said:
Every time I clear the device to flash a new rom once the new rom is up, my Titanium backup of all the apps is gone. It's a huuuuuuge pain to keep installing apps one by one each time.
Click to expand...
Click to collapse
Are you using TWRP, if so then...
In the latest version of TWRP for the nexus 4/7/10
(note that /sdcard is really /data/media in Android 4.x)
1. TWRP option to factory reset does NOT wipe /data/media (where photos, titanium backups etc are stored)
It does wipe /data (where apps are installed).
A factory reset from within the stock ROM does wipe /data/media and /data and leaves just /system (ROM) intact.
I would say that is a bit confusing to the end user as a factory reset can mean different things in this case.
2. TWRP option to wipe internal storage ONLY wipes /data/media (this will include all sub directories inc multiuser subdirs).
3. TWRP option to 'format data' wipes/formats /data and /data/media (so it ends up like it would after a stock ROM factory reset)
4. TWRP option to wipe system ONLY wipes /system (ie the actual ROM).
I would guess if anyone has had TWRP wipte /data/media when chosing the TWRP factory reset option then its maybe a bug at an older level.
The above is all much better explained in the links provided by an earlier posters, ie
http://teamw.in/whattowipe
http://teamw.in/DataMedia

[Q] Deleted System Apps

Hello,
I was recently mucking around with custom recoveries on my Motorola Defy Mini XT320, and deleted some system applications to make some room on the /system directory. Unfortunately, one of those apps was the standard Clock app that came with the phone, and I'd become quite attached to that widget.
I was wondering, is there any way to restore deleted system apps/widgets after they've been deleted from the /system directory?
Cheers,
Welshie
Ext undelete
Undeletion on Ext3/Ext4 filesystem (the one your phone use) is not a trivial task and AFAIK there is nothing like this in recovery. You may always reflash your phone with the same version of the system formware you already have. This should not harm your data. Try do just wipe cache and Dalvik cache. Do not do factory reset, as it deletes /data where all the updates and personal data are. Also don't go between Slim/CM/Stock firmware as they probably have different partition layout so you loose your data anyway. So do nandroid backum in recovery first (your data, not the system). Then flash. You may restore your data then. Next time, do nandroid backup (in recovery) of the system before you make changes

Android 5.1.1 apps writing data no longer allowed

Hello everyone. . .
I realized by chance that for several months some apps do not write more of their data in the space reserved for them as Android. In detail of the problem that will just two applications happens that:
- Titanium Backup, backing up all user apps a pop-up states that there is not enough space in the device to write the data, even if it is just over 100 MB when the remaining space available is several GB
- Backup Partition, during the IMEI rescue and EFS nothing says, then if I go in the default folder in which I should find up (modem, modemst1, modemst2), the folder is empty.
Yesterday I made a full wipe (cache, system, Dalvik / ART cache, date) and clean re-installation of the official firmware via TWRP 3.0.0.2. After restoring from scratch apps from playstore The problem persists.
It seems that Android does not allow the writing of these data, but at this point, would cease the usefulness of most applications.
If there is an error, which can be?

Categories

Resources