[Q] Fluctuating internal phone storage normal? - Hero CDMA Q&A, Help & Troubleshooting

Okay, I've had to reinstall Fresh ROM 2.4.0, and decided to keep track of my phone's internal storage as I went through my "cleaning up" process. And, I've noticed something odd. Why is it that my "internal storage available" drops when I remove things?
I kept a log to show what I'm talking about:
HERO with stock Fresh 2.4.0 ROM
93.47 MB
After Nand backup
93.35 MB
After removing some shortcuts off Home Screen
93.34 MB
After deselecting all Location/Background data options
93.32 MB
After powering off and starting up again
93.28 MB
After changing Lock Screen and Home Screen background
93.26 MB
After setting Background Data and reboot
93.36 MB
After Nand backup
92.33 MB
Removed some unneeded apps **
92.21 MB
Nand backup then reboot
92.18 MB
Moved one Nand backup from SDcard and reboot
92.16 MB
** I can't list what apps I removed, CMD prompt seems to have a limit on all commands it stores on screen, but I can provide what apps/programs I still have on my phone:
Code:
# su
su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# cd /system/app
cd /system/app
# ls
ls
restartapp.apk
htcsettingwidgets.apk
htcsearchwidgets.apk
htcmsgwidgets.apk
htcmailwidgets.apk
htccontactwidgets.apk
htccalendarwidgets.apk
htcbookmarkwidget.apk
gtalkservice.apk
freshupdater-hero.apk
com.htc.rosiewidgets.tipcalculator.apk
com.htc.rosiewidgets.task.apk
com.htc.rosiewidgets.quickrecord.apk
com.htc.rosiewidgets.note.apk
com.htc.rosiewidgets.dice.apk
com.htc.rosiewidgets.daychallenge.apk
com.htc.rosiewidgets.coinflip.apk
com.htc.rosiewidgets.callmom.apk
com.htc.rosiewidgets.battery.apk
com.htc.htcringtonewidget.apk
com.htc.htcprofileswidget.apk
com.htc.WeatherWidget.apk
com.htc.MusicWidget.apk
YouTube.apk
WorldClock.apk
WidgetDownloadManager.apk
WeatherSyncProvider.apk
WeatherProvider.apk
WeatherAgentService.apk
Weather.apk
VpnServices.apk
Vending.apk
UserDictionaryProvider.apk
UploadProvider.apk
Updater.apk
TtsService.apk
TelephonyProvider.apk
TalkProvider.apk
Talk.apk
Superuser.apk
Street.apk
StatusBarCleanService.apk
Sprint_Core.apk
Sprint_App_Updater.apk
SocialNetworkProvider.apk
SetupWizard.apk
SettingsProvider.apk
Settings.apk
Rosie.apk
PluginManager.apk
PicoTts.apk
Phone.apk
PackageInstaller.apk
PDFViewer.apk
PCSCII.apk
OMADM.apk
NetworkLocation.apk
Mms.apk
MediaUploader.apk
MediaProvider.apk
MarketUpdater.apk
LiveWallpapersPicker.apk
LiveWallpapers.apk
IQRD.apk
HtcWeatherWallpaper.apk
HtcStreamPlayer.apk
HtcSettingsProvider.apk
HtcPhotoWidget.apk
HtcPPST.apk
HtcMusic.apk
HtcMessageUploader.apk
HtcLockScreen.apk
HtcLocationService.apk
HtcLocationPicker.apk
HtcIQAgent.apk
HtcDialer.apk
HtcContacts.apk
HtcClockWidget.apk
HtcAddProgramWidget.apk
HTMLViewer.apk
HTC_IME_lo.apk
HTC_IME.apk
HTCSetupWizard.apk
HTCNew.apk
HTCCamera.apk
HTCAlbum.apk
GoogleSubscribedFeedsProvider.apk
GoogleSettingsProvider.apk
GooglePartnerSetup.apk
GoogleContactsSyncAdapter.apk
GoogleCheckin.apk
GoogleApps.apk
GlobalSearch.apk
FlashPlayer.apk
FlashLitePlugin.apk
FilePicker.apk
FieldTrial.apk
FieldTest.apk
EnhancedGoogleSearchProvider.apk
EPST.apk
DrmProvider.apk
DownloadProvider.apk
DmService.apk
DMPortRead.apk
DCSWeather.apk
DCSUtility.apk
DCSImpl.apk
CustomizationSetup.apk
CustomizationSettingsProvider.apk
ContactsProvider.apk
Clicker.apk
CheckinProvider.apk
CertInstaller.apk
CalendarProvider.apk
Calendar.apk
Calculator.apk
Browser.apk
Bluetooth.apk
ApplicationsProvider.apk
AccountSyncManager.apk
AccountAndSyncSettings.apk
#
So, why would my internal phone storage, that is available, be lower than stock which has more "bloatware" in it?

Apps2SD doesn't move the cache to SD. You have to do it manually. So, when you remove apps, you're probably losing the caches too.

Volknochi said:
Okay, I've had to reinstall Fresh ROM 2.4.0, and decided to keep track of my phone's internal storage as I went through my "cleaning up" process. And, I've noticed something odd. Why is it that my "internal storage available" drops when I remove things?
So, why would my internal phone storage, that is available, be lower than stock which has more "bloatware" in it?
Click to expand...
Click to collapse
The reason you have less free memory than the stock rom is because the stock rom is "odexed" and fresh is "deodexed". A deoxed rom takes the .odex part of the application and injects it back into the .apk. This makes the first boot take longer(or any boot after you clear dalvik), makes the rom take up more internal storage, and allows you to do neat things like customize and theme your rom.
a .odexed rom has a faster boot time on the first boot(or any boot after clearing dalvik), takes up less internal memory and isn't themed as easily as a deodexed rom.
If you are interested in increasing your free internal memory consult this thread. YMMV.
http://forum.xda-developers.com/showthread.php?t=754805
PS: also keep in mind the "internal storage" of the phone is really just the /data partition if I understand correctly. Most all apps that come with a rom are stored in the /system partition. So by removing bloatware your really just freeing up space on the /system. Keep in mind that any app, no mater where its installed to, /data or /system, will take up *some* space on the /data because thats where the dalvik is stored for that app. So by uninstalling an app in /system you may increase your free internal memory but only because the dalvik cache and user data for that app would be gone from /data.

YoungSinema said:
Apps2SD doesn't move the cache to SD. You have to do it manually. So, when you remove apps, you're probably losing the caches too.
Click to expand...
Click to collapse
I don't have Apps2SD installed. I rarely run any apps on my phone, anyways.
urushiol said:
The reason you have less free memory than the stock rom is because the stock rom is "odexed" and fresh is "deodexed". A deoxed rom takes the .odex part of the application and injects it back into the .apk. This makes the first boot take longer(or any boot after you clear dalvik), makes the rom take up more internal storage, and allows you to do neat things like customize and theme your rom.
a .odexed rom has a faster boot time on the first boot(or any boot after clearing dalvik), takes up less internal memory and isn't themed as easily as a deodexed rom.
If you are interested in increasing your free internal memory consult this thread. YMMV.
http://forum.xda-developers.com/showthread.php?t=754805
PS: also keep in mind the "internal storage" of the phone is really just the /data partition if I understand correctly. Most all apps that come with a rom are stored in the /system partition. So by removing bloatware your really just freeing up space on the /system. Keep in mind that any app, no mater where its installed to, /data or /system, will take up *some* space on the /data because thats where the dalvik is stored for that app. So by uninstalling an app in /system you may increase your free internal memory but only because the dalvik cache and user data for that app would be gone from /data.
Click to expand...
Click to collapse
Awesome, thanks a lot!

Related

[Q]It shows there is no free space in system/lib in JP6!

Hi!
I flashed JP6 yesterday, and I want to do internet browser fix and One Click Lag Fix.
But when I copied libwebcore.so to /system/lib or Install EXT2 Tools, It always no free space /system/lib
Now I can only use update.zip to put the files into /system/lib, but OCLF still can not work.
Any help?
thanks!!
+1
Sent from my GT-I9000 using Tapatalk
I notice 2 things with JP6 (installed from Kies via registry mod). Not sure if everyone else is the same.
1. cp command is missing, but mv & rm are present
2. /system is mounted read only
So to make sure the internet browser fix works fine, you'll need to make sure your a.) phone is rooted, b) remount the /system as read write, c.) and then install busybox to use the cp command (if you're installing libwebcore.so by command line, otherwise you can use the file manager to copy files).
There is only about 10MB free space on /system with JP6 (with 803 pit, I believe).
Check this with:
df -h
Also, /system is mounted read-only so you have to remount it as rw before making any changes.
mount -o remount,rw /system
+1 and whenever I try to move an app to sd from the menu in settings>applications>manage applications>app name>Move to SD
It throws an error "Failed to move application. Not enough memory."
I wiped my entire phone clean and still it throws the same error. My internal memory (16 gb) has 10 gb free. The app that I'm trying with is Instant Buttons.
The dev has included move to sd option. Yet it does not work.
ive only got 300kb free in my /system partition on JP6. considering moving modules off to /data and adding it to the path to free up some space. its unworkable like this.

How to download games over 20mb from the Market?????

hey guys
wazzzzzzzup
so, I'm on CM7 and wanna download Pocket legends from the Market but it says that I don't have sufficient space. I've tried deleting dalvik cashe and no good.
the game size is 28mb.
Any Ideas???
themohd said:
Any Ideas???
Click to expand...
Click to collapse
Delete the files /cache/download*apk in order to get some more space for the downloads. Maybe that's sufficient. If not you can move the cache to a virtual disk. Try searching in the forum.
It's a market 3.* problem. The downloads shouldn't go to /cache and should also be cleaned up after succesful installation.
Thnx for the rep.
deleting downloadfile.apk wasn't enough, I remeber using a virtual cache didn't work for me before, imma try that again .
thanx again dude
Do this in CWM (recovery):
- wipe cache partition
- wipe dalvik cache
If it doesn't work and you have very little internal space left, uninstall 2 or 3 bigger games so that there's enough space again.
How much free space do you have in /datadata? (Use Root Explorer to check, etc.)
If it's less than 28mb (or however big the game is), you need to either: 1) delete some apps, or 2) move apps to sdcard.
Thanx guys,
But I solved the problem without deletin' anything, by moving the cache to /Data/Cache
if anyone need it, here is it how:
in the terminator write this:
mkdir /data/cache
busybox rm -rf /cache
busybox ln -s /data/cache /cache
and thats all

Titanium Backup Dalvik Integration

So TiBu just added an option to integrate the system dalvik cache to the ROM. Does this move it to /system or what? Because I don't want to integrate this and lose what little space is left on /system.
Sent from my Xoom using xda premium
d3athsd00r said:
So TiBu just added an option to integrate the system dalvik cache to the ROM. Does this move it to /system or what? Because I don't want to integrate this and lose what little space is left on /system.
Sent from my Xoom using xda premium
Click to expand...
Click to collapse
I wouldn't do it.
d3athsd00r said:
So TiBu just added an option to integrate the system dalvik cache to the ROM. Does this move it to /system or what? Because I don't want to integrate this and lose what little space is left on /system.
Sent from my Xoom using xda premium
Click to expand...
Click to collapse
Hi, same question here. What does that mean. anyone?
I run script in etc/ init.d to move dalvik cache to cache folder.
I have all the permission checked.
#!/system/bin/sh
echo "++++ DALVIK 2 CACHE STARTING ++++"
if [ ! -d /cache/dalvik-cache ]
then
mkdir /cache/dalvik-cache
chown 1000:1000 /cache/dalvik-cache
chmod 775 /cache/dalvik-cache
fi
if [ -L /data/dalvik-cache ]
then
rm -f /data/dalvik-cache
mkdir /data/dalvik-cache
chown 1000:1000 /data/dalvik-cache
chmod 775 /data/dalvik-cache
elif [ ! -d /data/dalvik-cache ]
then
mkdir /data/dalvik-cache
chown 1000:1000 /data/dalvik-cache
chmod 775 /data/dalvik-cache
elif [ -d /data/dalvik-cache ]
then
for filename in /data/dalvik-cache/*
do
if [ -L $filename ]
then
rm -f $filename
fi
done
mv /data/dalvik-cache/* /cache/dalvik-cache/
fi
mount -o bind /cache/dalvik-cache/ /data/dalvik-cache/
Yeah I'm reviving thks thread because I'm shocked at the responses given to a legit question. No one ever tried to explain and instead took their time to say "don't try it". It shouldn't hurt anything trying it out as long as you have a back up . in fact on my G2 of happily go do it without a backup.
I'm not 100% what it does but a quick search where people without complexes answers should give you the answer. There must be a purpose behind it as it's still an option to this very day. In thinking it moves dalvik to either /system or somewhere else off the top of my head. I used to know but moving dalvik hasn't been an issue really anymore. Here to got dog slap the naysayers I'll click the option before refresingy memory and tell ya where it's moved to. Well yell others since this is the first search result to show on google when searching the topic so even though it's dear question is still relevant. See, back in the day when we ran on tiny amounts of storage space a lot of is moved /data/dalvik-cache elsewhere and left a symlink there so apps could find it and so we could free more space up for apps.
People need to learn that xda posts are often the top Google search results and need to act accordingly and professional (well as professional as fun loving devs get ). Let me integrate for everyone and I'll report back with the the exact location. Now his advice though on not doing is sound because of you don't know what you're doing or yow to undo it then you need to do more researching but a real answer should have acompanied it. If i was up (which in won't do) I know how to fix the issue in a heartbeat.
Edit: Appears to move certain apks into /system/app toake use or all the space there. I move 76 files and no issues. In the day there were many horror stories but nothing that had. Just missing apks from what was moved since not all apks liked being system apps.
Solution is to find apks in /system/app and delete (or use command line uninstall feature) and reinstall. Undoing the integration within TA might also work, but these newer phones arent as bad. Least not the G2 as all my apps are there. Each their own
Odex for more space, not really.
This thread may have been born dead, but for the same reasons as the last post, needs more input:
The Titanium Backup option to integrate system dalvik into ROM will free some space on your internal sd storage partition, but use disproportionally more space on the system partition. As far as total internal storage it is a loss, but the common ailment of legacy devices is to run out of internal sd space as apps are installed.
Example: I started with 108 MB of free space on my system, and 2.1 GB of free space on my internal storage. TiBk offered 94 integrable files totaling 71 MB. After integration, I only have 37 MB free space on the system, and 2.15 GB free space on the internal storage. So even though I gained 41 MB for user apps, I actually lost 30 MB in total to odexing on my system.
A more efficient method for gaining internal sd space would be to conversely shrink the system partition while enlarging the internal data/media partition. But this isn't always possible or too extreme a measure for many users.
In addition to moving data from one internal partition to the other, all the newly integrated ROM files will be odexed. This will speed up the the first boot and boot after clearing dalvik cache, as the odexed apps are already optimized to the ROM. In addition, the odexed apps will launch a little faster and technically have a performance edge, though commonly reported as 'not noticeable'.
After integrating the system Dalvik into the ROM, it can just as easily be deintegrated with the next settings option in TiBk. This is necessary before applying certain themes and mods requiring deodexed apks. Then you would ideally integrate and odex again.
MidnightHarvester said:
Undoing the integration within TA
Click to expand...
Click to collapse
Did you mean TB
I have used this on my S4...I have 1.2gb of free space in my system/Rom partition so it would be rude not to.. I moved around 500mb from internal SD card... All worked fine...
But now using a different custom rom, Kernel and different version of TB... It won't integrate the dalvik any more... Just says 278 item failed to integrate.... Im guessing TB can't write to the system/rom partition for some reason?? I think I may have been on a kit kat Rom when it worked for me..

[Q] Darktremor apps2sd problem

I followed the instructions on this site and did a 2GB partition. I downloaded the a2sd app from the Android Market and moved the Dalvik cache to SD-EXT. It seems to be working because on the A2SDGUI app, it is showing "Apps are on SD!" and "Dalvik Cache on SD-EXT".
I seem to be able to download a lot of small apps from the Android Market without any problem. However, when it comes to larger apps such as Angry Birds and Pocket Legends, this is the error I'm receiving: There is insufficient space on the device.
I have a Samsung 8GB Class 6 micro-SD Card with almost 2GB free space left. Here is a Screenshot of the System Info on the A2SDGUI app. I'm supposed to be having a 2GB partition but it is not being recognized for some reason. But I do not know if that is normal.
I'm using Squadzone's latest CM7 RC5 with all the 3 updates.
That's because your /cache partition stays the same - ~25MB.
1) You can use this script: http://dl.dropbox.com/u/45530921/30mountcache.txt
(Put it in /system/etc/init.d/ and set persmissions, allow execute - do backup... just in case!)
2) Or you can use Amarullz or Ungaze scripts.
TheWhisp said:
1) You can use this script: http://dl.dropbox.com/u/45530921/30mountcache.txt
(Put it in /system/etc/init.d/ and set persmissions, allow execute - do backup... just in case!)
Click to expand...
Click to collapse
So, if I use the script you provided, I will not have to disable Darktremor's a2sd and reflash the rom?
If yes, I will have to:
1) Download the "30mountcache.txt" to sd card.
2) Move to /system/etc/init.d
3) Rename it to just "30mountcache".
4) Set permission for Owner/Group/Others to execute.
5) Reboot.
I'm not very good at this.
30mountcache will not disable your a2sd. Put it there, rename, permissions and done
It's working. Thanks.

[I9001] How to properly swap /sdcard <> /external_sd ?

Hi,
i swapped /sdcard with /external_sd after i had set up the system already. It looks like after that some apps seem to have lost its user data (they mostly start with their welcome screen. I haven't checked if their corresponding /data folder has been deleted indeed). Other apps kept their data properly. The question is why did some apps lost their userdata at all? Is there some checksum (sdcard serial) or anything that brakes security that will render userdata obsolete or something?
I swapped them by changing these lines in /system/etc/vold.fstab (in CWM):
# internal sdcard
#dev_mount sdcard /storage/sdcard0 28 /devices/platform/msm_sdcc.2/mmc_host/mmc1
dev_mount sdcard /storage/sdcard0 auto /devices/platform/msm_sdcc.4/mmc_host/mmc2
# externel sdcard
#dev_mount external_sd /storage/sdcard1 auto /devices/platform/msm_sdcc.4/mmc_host/mmc2
dev_mount external_sd /storage/sdcard1 28 /devices/platform/msm_sdcc.2/mmc_host/mmc1
Click to expand...
Click to collapse
Apps that lost userdata:
Superuser
Google Play Store
Root Explorer
K9Mail
DroidWall
Terminal Emulator (reverted back to old version)
OI Filemanager (reverted back to old version)
Apps that kept their data:
Main Android settings
GO Launcher
CM10 Browser
Google News & Weather
PDroid
Jorte Calendar
Quick System Info Pro
CifsManager
I transfered the 'Android' folder before but didn't touch /mnt/asec and /sdcard/.android_secure at all. The .android_secure folder is empty though. The system runs properly so far.
Any ideas why some apps lost their userdata?
DualJoe said:
Hi,
i swapped /sdcard with /external_sd after i had set up the system already. It looks like after that some apps seem to have lost its user data (they mostly start with their welcome screen. I haven't checked if their corresponding /data folder has been deleted indeed). Other apps kept their data properly. The question is why did some apps lost their userdata at all? Is there some checksum (sdcard serial) or anything that brakes security that will render userdata obsolete or something?
I swapped them by changing these lines in /system/etc/vold.fstab (in CWM):
Apps that lost userdata:
Superuser
Google Play Store
Root Explorer
K9Mail
DroidWall
Terminal Emulator (reverted back to old version)
OI Filemanager (reverted back to old version)
Apps that kept their data:
Main Android settings
GO Launcher
CM10 Browser
Google News & Weather
PDroid
Jorte Calendar
Quick System Info Pro
CifsManager
I transfered the 'Android' folder before but didn't touch /mnt/asec and /sdcard/.android_secure at all. The .android_secure folder is empty though. The system runs properly so far.
Any ideas why some apps lost their userdata?
Click to expand...
Click to collapse
All my apps are installed in internal memory and when you change the internal memory to external memory majority of the app will lose the data. to prevent this copy the content of the internal memory to the external memory and when you start the app it will just check if all files are available and you dont have to download the data again and why it does that perhaps since the location chnages it loses the path.

Categories

Resources