So I've searched around and found that others have had this issue as well but no resolution yet. I am on a T-mobile Galaxy Tab 7 running Overcome 7 Series v 4.0 and I am unable to download apps larger than what appears to be about 25mb or larger. I keep getting an error saying that I have insufficient space available though I still have over 1gb of storage available. I ran into this issue while running Overcome Kratos as well.
Is anyone else still having this issue? If so, post here which version tab you have and what rom your running.
The problem lies in the new Android market place app. It is quite buggy from what I hear. A work around is to uninstall the update via the settings -> applications menu. This will revert you back to the old market place version.
Alternativly, I hear there are updates that you'd have to install manually that patch the bug.
Sent from my GT-P1000 using XDA App
I have tried both to no avail.
You can fix if you have root in you tab.
First download and install Bloat Freezer Free from the market.
With this you can freeze the Market Updater.
Later uninstall the new Market app.
Maybe it's something completely different.
I had quite the same problem ("database full, please delete some contacts/messages") and couldn't find anything.
UNTIL ... i got the idea to check the trash of the Samsung email client.
I used email via POP3 and "delete" doesn't delete a mail, it pushes it to the trash bin (which isn't shown by default).
So I found out that I had one year's email and SPAM blocking my database (which did not show in any tool.
Unfortunately (again) there's no "empty trash" option, so I deleted the POP3-user and am now using IMAP without any problems.
Perhaps this helps someone.
Any news on this? Just installed Overcome today and is experiencing this issue.
If you have clockwork recovery clear dalvik cache
Sent from my SCH-I800 using XDA App
The problem lies in the default cache partition, which is small. If you're rooted, here's a fix that worked for me.
prerequisites:
root
Script Manager (ads version works ok), or any Terminal app
1. run script manager and bring up the Console
2. Type ’su’ (minus the quotes. approve root permission request if it pops up)
3. Type ‘cd /’
4. Type ‘umount /cache’
5. Type ‘mount -o rw,remount -t rootfs rootfs /’ (set read write permissions)
6. Type ‘rmdir /cache’ (delete cache folder)
7. Type ‘mkdir /sdcard/cache’
8. Type ‘ln -s /sdcard/cache /cache’
(to link cache folder to /sdcard/cache for a bigger partition size)
now your cache will sit on the /sdcard/cache folder, so your cache size is as large as your sd card's free space. I just found this fix somewhere, i forgot where exactly but props o whoever came up with it.
This doesn't seem to stick after a reboot, so maybe you can write a script file and run that at boot using Script manager. I prefer to do it only before I have to install something big, which is not very often anyway, so just run the script when you have to so you can keep default settings at bootup.
Related
I had my Epic in my pocket with the display asleep, and I wanted to check the time. When I pulled out the phone I noticed that the bottom row of buttons was lit for some reason, and the power button didn't appear to be doing anything. After waiting for a few seconds to see if anything would happen I finally gave up and pulled the battery.
The phone rebooted fine, but after reboot it started telling me that the internal memory was low. Since then I've deleted some applications, cleared my text history, etc....but it still gives me the warning. It claims that I now have 16 megs free....but I don't know how that's possible as I don't have that many apps installed (I'm guessing around 100-150megs).
Do the Sprint built in apps really use that much space? Is there a way for me to see the physical files that are on that chip rather than just a list of installed applications? I'm thinking it might be an app writing a bunch to internal memory...but I don't know how to determine that (new to Android).
Any help you can give would be greatly appreciated. I'd be fine if it just wasn't letting me install anything (like the Pre used to)....but the fact that it's rejecting my text messages is a major issue.
I uninstalled Google Earth for now and it's now at 36 megs free...but it's still complaining that the memory is low and rejecting text messages saying the text message memory is full.
How big are these text messages anyway?
Do you have any games installed? Asphalt 5 is 100M (the first time you run it, it warns about that.) Another potential offender is email, especially is you have emails with attachments.
Thanks for the reply!
I do have Asphalt 5 on here (came with the phone I believe)...but I don't see it in the application list. Where/how can I remove it if it's not there?
If I remember right the evo got over 100 mb's free with sprint software removed. You can always try one of the sd card lag fixes and use the sd card as your storage. I think this is the best method since there is not enough internal storage.
The thing that's really driving me nuts now is that its showing nearly 50 megs free at this point....yet it keeps warning me and rejecting text messages. I've tried rebooting after I deleted a bunch of apps but that didn't do any good. Does anyone know what the threshold is for free space before it will operate normally again?
I'm also confused how I can have Asphalt 5 installed...but it isn't showing up in my application list. Is there a secondary application list that I'm not seeing?
If I am not mistaken, Asphaly 5 does not use that much space on the internal memory since on the first launch it downloads a 100mb of data to the SD card not the internal memory,
I deleted a few more apps in the interest of getting the phone operational as a phone again before I contine using it as a toy.
I'm now showing 55.33 megs free and things seem to be working again...so for future reference I'm guessing the threshold is 50 megs before it starts throwing a fit (I was at about 47 megs free before). I finally got the text messages that it's been rejecting for the past 2 hours...so that's good at least.
I'm still not sure what's using all the space though....is there anyway I can look at the actual files stored in internal storage?
Gipionocheiyort said:
I deleted a few more apps in the interest of getting the phone operational as a phone again before I contine using it as a toy.
I'm now showing 55.33 megs free and things seem to be working again...so for future reference I'm guessing the threshold is 50 megs before it starts throwing a fit (I was at about 47 megs free before). I finally got the text messages that it's been rejecting for the past 2 hours...so that's good at least.
I'm still not sure what's using all the space though....is there anyway I can look at the actual files stored in internal storage?
Click to expand...
Click to collapse
Yes but I think it only works with root but I not sure. Let me see if i can find the commands to list internal storage apps for you.
Edit: you do need root to do this
su
mount -t rfs -o remount,rw /dev/block/stl9 /system (mount system)
cd /system (change to system dir)
cd /system/app (change to app dir)
ls (list all apps in the dir)
adb pull /system/app/filename.apk (save the file)
adb pull /system/app/filename.odex (save the file)
adb shell
cd /system/app
rm filename.apk (remove the file)
rm filename.odex (remove the file)
Example
su
mount -t rfs -o remount,rw /dev/block/stl9 /system
cd /system
cd /system/app
rm Sprint_App_Updater.apk
rm Sprint_NASCAR.apk
rm Sprint_Navigation.apk
rm Sprint_NFL.apk
rm Sprint_Promotion.apk
rm Sprint_Qik.apk
rm Sprint_TV.apk
rm Sprint_VVM.apk
rm SprintTVWidget.apk
Try going to:
Settings => Applications => Manage applications => (menu button) => Filter => all
Not all apps are listed by default.
Sent from Samsung Vibrant
shep211 said:
Yes but I think it only works with root but I not sure. Let me see if i cna find the commands to list internal storage apps for you.
Click to expand...
Click to collapse
I've got root so I'll give those a try. Thanks!
Stresa said:
Try going to:
Settings => Applications => Manage applications => (menu button) => Filter => all
Not all apps are listed by default.
Sent from Samsung Vibrant
Click to expand...
Click to collapse
That explains the missing apps...it was set to only show downloaded. Once I do that I'm able to see Asphalt 5 and a few others that were missing before. Asphalt 5 is only showing as 2.06mb fwiw.
Thanks so much to all of you for your help. I'm totally new to Android and my Linux skills are mediocre at best...so this is definitely a learning process for me.
Gipionocheiyort said:
I've got root so I'll give those a try. Thanks!
That explains the missing apps...it was set to only show downloaded. Once I do that I'm able to see Asphalt 5 and a few others that were missing before. Asphalt 5 is only showing as 2.06mb fwiw.
Thanks so much to both of you for your help. I'm totally new to Android and my Linux skills are mediocre at best...so this is definitely a learning process for me.
Click to expand...
Click to collapse
It takes time to get use to android. I was a long time wm user and cook and I am still trying to learn cooking for android and i have been working with it for over a year. I am sure someone will make a update.zip that will remove sprint software for you. Its a lot easier then using adb. If you do want to try to use adb before someone makes a app or update.zip to do it for you use the commands I posted and it should work. Here is some info on adb commands. If you do try to use adb to remove apps this may be useful.
basic ADB commands
adb push - sends a file to the phone over ADB thru USB - adb push c:\test.apk /sdcard/test.apk
adb pull - receives a file from the phone over ADB thru USB - adb pull /system/app/Test.apk c:\Test.apk
adb shell - starts a shell connection with the phone
adb reboot - restarts the phone
adb reboot recovery - restarts the phone into recovery
adb reboot bootloader - restarts the phone into the bootloader (white screen)
adb remount - remounts the file system
adb install - installs an application - adb install c:\swype.apk
basic Linux commands to run through ADB shell
cd - changes directories - works through stock android toolbox - cd /system/app
ls - lists all files in the directory - works through stock android toolbox - ls /system/app/
cat - copies files - works through stock android toolbox - cat /system/app/Test.apk > /sdcard/Test.apk
rm - removes files - works through stock android toolbox - rm /system/app/Test.apk
mv - moves files from one location to another - works through stock android toolbox - mv /system/app/Test.apk /sdcard/Test.apk
cp - copies files - functions similar to cat - uses busybox installed by the EVO-recovery.zip into recovery mode - cp /system/app/Test.apk /sdcard/Test.apk
mount - loads the file system (usually auto loaded except sometimes in recovery) - mount /dev/block/mtdblock4 /system
unmount - unloads the file system - umount /system
So the disc space issue kept creeping up even after removing all of the Sprint crap, and I kept uninstalling other apps to compensate for it...until yesterday when I basically ran out of apps to uninstall and gave up.
I did a full wipe back to the stock image, installed the Andromeda rom, and restored all of my apps from Titanium...and now I'm showing 350megs free (with all of the same apps installed plus some extras that I've reinstalled after removing them for space before).
So basically there was either something majorly wrong with the space calculations before, or there was some program in the background using up a ton of space and not reporting it to the app manager. It seems like this first started to happen after I did the one click root when it first came out...not sure if it could be related or not though.
Just thought I would mention this in case anyone else is having the same issues.
I had this same problem with the Epic 4g's internal memory. But it also caused a myriad of other issues beside just the notification:
- Android Market wouldn't download any new apps, just stuck on Starting Download....
- I couldn't receive any text messages, I got the error message Couldn't receive the text message because there is no memory space (or something like that...)
- General laggy slowness
I've been on the fence with flashing the phone with a custom ROM but after reading Gipionocheiyort's post that doing so might solve my issues I attempted to do so. However, I couldn't because I couldn't download the update for Titanium Backup so I could back up my apps. I uninstalled some of Sprint's bloatware and it still didn't help. My free "memory" (I'm almost positive it's talking about storage and not RAM) was at about 24mg which seemed fine to me but apparently that's not enough to fit the 1kb of a 140 character SMS.
Anyway, I just bit the bullet and uninstalled a bunch of apps, got my free storage up to 64mg, rebooted and bam! My download queue started up instantly and I got all my day's text messages in a flood.
If Gipionocheiyort was having problems with 50mg free, maybe around 65mg free is the sweet spot? There must be a gross miscalculation of storage space for the storage, or maybe the OS just needs a lot of space to stretch it's legs? I have no idea...
Just wanted to put this up to help people if they are having this problem as well.
I woulda wiped the cache and the dalvik if i were you guys and experienced this problem though i never have. But you did have some calculation error and wiping the cache prolly woulda fixed it easily. these phones are suppose to use a lot of the ram. it helps it to be faster as the stuff you access the most is sitting in ram and it can recall on it very quickly.
you might also check your facebook sync if you have it...ive fixed several phones that had like 150 megs worth of data in Contacts, which im guessing was a result of like 15k friends, it downloaded all their pictures and stuff and took up all that space. you might look out for that as well.
Hey Guys whenever i download any apps from market i get the error Install Unsuccessful .... Insufficient storage ...
What to do :-/
Rom Hell Fire v7.2
UOT Kitchen Flashed 1
Overclocked 729 Mhz
Wildfire
delete apps or move some to SD card? If your memory is full it's logical you can't add apps
Sounds to me that a2sd is not properly set up.
I been having some issues running out of storage internaly. and after some fiddeling around with a2sd it was ok. And how to do it is posted in this rom's explanation on how to install it.
ruymanca said:
The ROM takes about 10 minutes to start for the first time since the beginning makes for a facility, I recommend formatting the memory trageta do a clean install or possibly delete the folders: ANDROID, LOST DIR ANDROID as these folders SECURE conflicts created by data from the old roms
I recommend making partitions ie swap64mb ext512 and the rest as fat32 mind too expensive or necessarily recommend formatting the card will memory or possibly delete the folders in the same android, haer all the wipes, the Rom takes a few minutes to make first start since being installed all the extras on the first boot takes 3 to 5 minutes, once this echo this start and made previous settings obligation is to do a reboot for full functionality telefeno
Installation of the rom:
1. reboot in recovery mode
2. we wipes all
3. selected to install update sip
4. restart the tlf
5. enter the terminal console and register the following:
his press enter
# a2sd cachesd or enter
the phone will reboot and have about 150 megs of free internal memory
Click to expand...
Click to collapse
nope dint workk :-/
Type "su" first (Without Quotes), then try the a2sd command.
Can u mention it Step by Step?
Hi all, i have same issue.
Yesterday i finally rootat my Wildfire and put Cyanogenmod 7.0.3.stable on it.
Its very nice!
BUT cant allways install apps from market. I have 87mb free on inside memory and 1,7gb in sdcard... So what is problem?
What i need to do? I can full wipe all my data from telefone if somone tell me how i can do this..
Can somone help?
Use dalvik wipe from xrecovery to clean ur phone data..
Sent from my U20i using XDA Premium App
try istalling darktremor a2sd script (need to be istalled from recovery if not already integrated into your rom) and download a2sdgui from market, it's a gui for the script mentioned earlier. into recovery you have to partition your sd card too (advanced) 1024mb ext and i suggest 64mb swap, then open the app I told you (a2sdgui) and move everything to ext, dalvik cache too.
I agree with the poster above.
if you have issues with a2sd, I recommend installing A2SDGUI from market. (I assume you already have darktremors a2sd script installed). I had darktremors script working fine, but after flashing a zip file, it was not working. So I installed the A2SDGUI from darktremor and fixed the script. Now it is working. Just search the market and install it. It is great. Now I have around 168 MB free after all the installed apps.
Hope this helps,
SOLUTION TO INSUFFICIENT STORAGE:
1. Use FROYO+ default apps2sd. It gives the option to force moving of 95% of the apps to sdcard. Even root is not necessary. You can move 95% of apps only after using the adb command "adb shell pm setInstallLocation 2". This command is not even needed in cm7. And this method uses the fat/fat32 partition of sdcard not the ext partition. Specifically apps will be installed to .android_secure folder in the root of sdcard.
2. This method includes creating ext partition on sdcard and using an app called "link2sd". This is a root only app. No scripts are needed. That app has option to even link individual apps to ext partition. Also links dalvik cache.
3. Creating ext + swap partition and using dtapps2sd script. Root is required. Also custom recovery is required for flashing the script. This might be the toughest one but it is pretty awesome. Moves apps , data, dalvik cache to ext partition. Everything can be done with commands from the terminal emulator. Or you can use the "a2sdgui" app for graphical user interface.
Sent from my HTC Wildfire using XDA App
The GUI for the script is much more user-friendly than emulator terminal. And you can undo everything you did if it's not as you tought faster than from terminal.
I am not aware of how Hell Fire works. But yes for Cyanogenmod 7 I know there is a issue downloading a large application from the market. It won't download. Problem is the space.
Fix for this is few steps:
1. In Terminal type the following commands.
2. su
3. mkdir /sdcard/download-cache
4. cd /cache
5. mv download download.bak
6. ln -s /sdcard/download-cache download
Done... Now Go to market and download anything you won't get such errors..
If It Helps Don't forget Press Thank Button.
Thanks a lot!
I just get my new sd-card( 16 Gb) and install darktremor a2sd script + a2sdgui.
Works just like it says!
No more thinking what program van install and what not....
Well I just installed the MOdd Again ... and I was done
Though i bought Samsung Galaxy ace as its my second time the Touch Panel doesn't work ... first in Tattoo and den in Wildfire
So ... Thanx a lot guys for Helping
DestinyAwaits said:
I am not aware of how Hell Fire works. But yes for Cyanogenmod 7 I know there is a issue downloading a large application from the market. It won't download. Problem is the space.
Fix for this is few steps:
1. In Terminal type the following commands.
2. su
3. mkdir /sdcard/download-cache
4. cd /cache
5. mv download download.bak
6. ln -s /sdcard/download-cache download
Done... Now Go to market and download anything you won't get such errors..
If It Helps Don't forget Press Thank Button.
Click to expand...
Click to collapse
Working perfectly fine for me Thanks!
What's the proper way to uninstall the pre-installed apps on Cyanogen like "Terminal Emulator," "Voice Dialer," "Car Home," "Latitude," "Navigation," and others, without messing things up in weird ways? I've tried using Blade Buddy and other techniques to mount the system as read-write but the system still won't offer me the ability to uninstall these permanent apps.
Thanks in advance.
aegrotatio said:
What's the proper way to uninstall the pre-installed apps on Cyanogen like "Terminal Emulator," "Voice Dialer," "Car Home," "Latitude," "Navigation," and others, without messing things up in weird ways? I've tried using Blade Buddy and other techniques to mount the system as read-write but the system still won't offer me the ability to uninstall these permanent apps.
Thanks in advance.
Click to expand...
Click to collapse
Don't uninstall. Freeze/block them using Titianium Backup Pro or the free Gemini App Manager. They will disappear from everything and won't run in the background, but still will be installed.
Sent from my NookColor using Tapatalk
I elected to su to root, remount /system as read/write, and then remove the offending apk files from /system/app. This effectively removes those apps which are either useless or annoying for Nook Color users, like "Camera" and "Car Home" and obsolete versions of "AndroidTerm," "Spare Parts," and "ROM Manager."
They disappear immediately for a nice, clean fix. I recommend wiping the Dalvik cache and rebooting after doing this, too.
Quick steps:
Start Terminal or login remotely using SSHDroid Pro (I much prefer the latter).
Type these things:
mount -o remount,rw /system
cd /system/app
ls -al
Then just type "rm filename.apk" where "filename.apk" is the app you want to remove. The filename rarely matches the name of the app on your launcher. Your apps disappear magically and immediately and may cause alarms to popup until you reboot.
I recommend deleting these from /system/app:
CarHomeGoogle.apk (unless you somehow find a need for this one in your car)
AndroidTerm.apk (and download the newest version from Google Play Android Market called "Terminal Emulator").
Camera.apk (worthless on Nook)
SpareParts.apk (badly outdated even in CM 7.2.0-RC1, download latest in the Market, and BladeBuddy, too)
RomManager.apk (likewise, get updated RomManager Premium one in the Market and pay the developer)
VoiceDialer.apk (since Nook doesn't have a microphone)
Phone.apk (this will popup errors until you reboot because Android's internals really seem to want this app to keep living no matter what, but rebooting makes things fine).
Note, don't delete "CMParts" as these are the Cyanogenmod settings in the Settings app.
Also, when people refer to "clearing the cache" or "clearing the Dalvik cache" or "wiping the cache" or "wiping the Dalvik cache" the easiest way to do this is by using RomManager's ClockworkMod feature and choosing "Reboot into recovery" and choosing "wipe cache partition" from the orange text menu that appears there. Or, choose "Mounts and storage," then "umount /cache," then, "format cache."
When you reboot your Nook Color after clearing this cache it *will* take up to seven or more minutes to start up so give it some time. You haven't killed it, so just be patient. If you abort this long restart it will just make your apps run slower for the first day but after that everything will run fast and fine.
Very informative aegrotatio . Thank you.
Dalvik cache cleaner is a shell script which clears the Dalvik cache that can be used with Android Terminal Emulator.
Root and busybox is required, if you don't know what root and/or busybox is then do NOT bother using the script.
Place the shell script in the main directory.
With Android Terminal Emulator type:
su
sh /sdcard/Dalvik_cache_cleaner.sh
The process should be close to instant depending on how much files you have in the directory.
Download: http://caftp.3owl.com/Shell_Scripts/Dalvik_cache_cleaner/Dalvik_cache_cleaner.sh
It worked
~~~~~~~~~~~~~~~~~~~~~
Samsung galaxy s2
Rom: Jedi knight 6
kernel: Jedi kernel 2
~~~~~~~~~~~~~~~~~~~~~
And you thought celebrities weren't smart! =P
Is this also intended to run on every boot, ie via init.d
thebrainkafka said:
Is this also intended to run on every boot, ie via init.d
Click to expand...
Click to collapse
No, that would also waste too much time on boot then on a normal boot due to rebuilding the cache everytime.
When you uninstall an application, usually a dalvik cache file is left over wasting space.
But if you want you can use ROM Toolbox from JRUMMY APPS INC. in the Play Store.
There is a Scripter in that application that you can use for such thing but the problem is that when I tryed using the su binary in the shell script, there is an issue where the su binary in the shell script will just cut off the other parts of the script and only the su binary so your answer would be fat chance unfortunately. :/
Sent from my Sony Tablet S using xda premium
Issue fixed.
Is this the same as wiping dv cache through recovery. Also what will be the script for wiping cache? Will it be rm /cache?
Thanx!
The-Droidster said:
Is this the same as wiping dv cache through recovery. Also what will be the script for wiping cache? Will it be rm /cache?
Thanx!
Click to expand...
Click to collapse
Yes and the code is:
#!/system/bin/sh
rm /data/dalvik-cache/*
reboot
Click to expand...
Click to collapse
I'm not sure if /cache/ is really dalvik cache, on devices with OTA update support the OTA zip's will be stored their with other stuff but if you want I can give you the code for that.
On linux (That also means android) use 'chmod 755' for the permissions for the shell script.
I have tried adding 'su' but that fails has the terminal only executes the su binary so the rest of the script does not get executed.
Using the 'echo' binary to say out what it is doing is a fail has the terminal does not go anywhere due to the echo binary getting executed but it will not display output in the terminal anyway making the script not being executable.
Sent from my Sony Tablet S using xda premium
Man I am full with ideas.
I can create a shell script to do:
[OTA]
Remove OTA Update zip in cache
Copy OTA Update zip from cache to SDCard
[Files and Folders]
Remove LOST.DIR (That is just a useless folder )
Wipe SD Card
Wipe Zip files (useful for custom roms on your SD which you don't want anymore)
Well soon I should get more ideas so the OTA shell scripts will not be possible unless I get a rootable device with OTA functionallity (I do have a Sony Tablet S but I forgot to root it but I went and installed the firmware update without noticing) so it would be the Nexus 4 I would test it on in March.
The thing is that more shell scripts I create more pages I have to add to my website to give information about it, how to use it and the download link which can take around 10 Minutes just by editing the code, make backup and then upload via FTP.
Sent from my Sony Tablet S using xda premium
New shell scripts available which should be available tomorrow and if not a few days.
They are:
Aptoide Cleaner - I found out that the xml files are adding numbers to their file extensions so I built a script which can remove that problem real fast.
Take Out Bin - Removes all or at least most useless directories like LOST.DIR and LazyList, they are just a few.
ExtSD and USB Cleaner - Same has 'Take Out Bin' but it does it on the external SD Card while on USB, LOST.DIR will be erased has that should not be there.
-OLDER PROJECTS-
Dalvik Cache Cleaner - Read the first post.
Andro.Shell.Crash - This is good for developers has this does crash/lag/freeze the OS which can help a root exploit get in, of course there is different effects depending on the hardware and software, if the device is fast and has good hardware then it is possible that it may just lag and/or freeze but for older devices with older hardware can just crash.
NOTICE: The older projects are already out and available to download on my website.
I will be creating a forum about these shell scripts but I am not sure about the Aptoide one for many reasons.
I know that I am not suppose to be talking about this on a thread which has a different purpose but yeah, just an update.
EDIT: I uploaded and programmed the webpages from my tablet using WM FTP Client and DroidEdit Pro so that was a bit too early but all well, new thread(s) should come in tomorrow depending what will happen tomorrow (It is 03:30AM so it would count has today anyway).
Anyone can please guide me how to remove this script???
Thank you in advance
romelcool said:
Anyone can please guide me how to remove this script???
Thank you in advance
Click to expand...
Click to collapse
You just delete the shell script, you only use it in the Terminal Emulator so once you run it, it will wipe the dalvik cache so it will not do such thing in every boot.
Sent from my Nexus 4
Man I think you should create a script which are:
Auto clean of cache || Optimize App || Kill Media Process
If it's possible to you to create script with the list below that will be awesome ! ..
what is the code for auto cleaning cache every 30 minutes ? ..
and also auto optimize application every 24 hours ? ..
kill media process ?
I hope you could help me with this .. Thanks !
CoolApps said:
Download: http://caftp.3owl.com/Shell_Scripts/Dalvik_cache_cleaner/Dalvik_cache_cleaner.sh
Click to expand...
Click to collapse
Gone!
jidanni said:
Gone!
Click to expand...
Click to collapse
That's because I switched sites between 2012 - 2015. This thread was very inactive so I missed it out and didn't update the link with the new one.
The current server I use for it has some files that I'm aware of that are more often downloaded by users which means I ended up removing the shell scripts along with others that don't need to be there. I made a backup of everything before, by the way.
I don't feel that there's a need restore the file and plus, this thread's old.
Because of the sudden bumps of a thread that currently serves no purpose, something should be done about it to avoid further confusions.
Sent from my Nexus 4 using Tapatalk
Can you please tell me what your script did.
I made my own script that does
su -c 'find /data/data/*/cache/* -delete'
This one line saved me from installing multi-megabyte apps that do the same thing.
Is there anything more I should add to my script?
Now I can finally have enough room so Google Play can update apps again!
Thread closed at OP's request.
DISCLAIMER: YOU AGREE TO TAKE FULL RESPONSIBILITY FOR YOUR DEVICE IF YOU PROCEED.
The original thread (http://forum.xda-developers.com/moto-g/general/mod-save-data-space-cache-partition-t2942765) was getting to cluttered up with development and testing so I decided to start a new thread with the "finished" product. The original thread will be renamed to Q&A/Development. We might even ask for the old thread to be closed down. (up to @Bert98, the thread's creator.)
Moto G's internal eMMC card has a ~600Mb partition called /cache, which is not used since the apps' cache is stored in /data, so the latter fills up and the first one stays empty.
Owning a 8Gb model, having 600Mb not available for storage really bugged me, because my phone's memory (/data partition) was always full because it's a 5.7Gb space shared between apps and microSD files.
Now, it may not work for you if:
a) you have A LOT of apps installed.
And by "a lot", I mean more than 90-100 apps, but if you have a 8Gb model, you probably don't
b) you're running ART (this is default in lollipop and newer)
Since ART uses a lot more space than dalvik, the space in the /cache partition probably won't be enough. When I was running ART, it used 1Gb more than dalvik.
Original post by @Bert98
Click to expand...
Click to collapse
This was tested on my moto g 16GB which is running RetailUS_4.4.4 kitkat with CWM recovery. The custom ROM procedure was tested on the same phone but with cm11 Nightly installed.
Prerequisites:
1. You must have "adb root" functioning. If you don't head to this thread: http://forum.xda-developers.com/showthread.php?t=1687590 and there is a free download link at the bottom of the post.
Download and install the apk on your phone. Open up adbd insecure (the new app) and grant it superuser rights PERMANENTLY. Check the box that says "enable insecure binary" and make sure to check the box
that says "enable at boot."
2. You must have a recovery that can accept adb shell commands.
3. Root Access Duh?!
4. A windows machine capable of running batch files.
5. A decent text editor, notepad will work but notepad++ is strongly recommended. (Only needed if you are using STOCK ROM procedure)
Please, please make a nandroid backup before you continue!!!!
Stock ROM procedure:
Read the directions very carefully and then read them again, before continuing.
1. Download the cachemover_v1.3.zip from: LINK REMOVED DUE TO SCRIPT ISSUES.
2. Extract the contents.
3. Connect device to PC and navigate to the extracted folder.
4. Double click/Run the cachemover_Stock.bat
5. Follow the onscreen instructions until you get to the part where it says to edit a file.
6. About halfway through the script it will pull a file called "init.qcom.post_boot.sh" to the folder.
7. Open it with a TEXT editor and navigate to about line 487 (Might be different for 8gb model). Look here for a better understanding: https://www.dropbox.com/s/jr5lyl5s5i2jtpg/where to paste code.PNG?dl=0
8. Start a new line and paste this code in the file: (Refer to the image above for help)
Code:
chmod 655 /cache
chmod 655 /cache/dalvik-cache
chmod 655 /cache/dalvik-cache/*
9. Make sure to save the file in the same folder as the cachemover_Stock.bat
10. Press any key to continue on the script and let it do its thing.
11. It will reboot several times and land you on the home screen/lock screen.
12. If the script hangs after a reboot, you need to unlock the device to reestablish a connection with your computer.
13. There might be one or two force closes but once you close the notifications they will not come back.
Custom ROM procedure:
USE THIS FOR ROMS THAT DO NOT REMOUNT OR CHANGE PERMISSIONS OF /CACHE ON BOOT
1. Download the cachemover_v1.3.zip from: https://www.dropbox.com/s/bzj34g4q1s61ojz/cachemover_v1.3.zip?dl=0
2. Extract the contents.
3. Connect device to PC and navigate to the extracted folder.
4. Double click/Run the cachemover.bat
5. Follow the onscreen instructions.
If anything goes wrong:
Go to recovery, wipe cache, then wipe dalvik-cache and reboot. This should get your device back to how it was.
(If you used STOCK ROM procedure)
The script made a backup of the "init.qcom.post_boot.sh" file to /sdcard/init_backup
You can restore the shell script to /system/etc/ via shell commands or by using a root browser. To restore permissions:
Code:
chmod 740 /system/etc/init.qcom.post_boot.sh
chown root:root /system/etc/init.qcom.post_boot.sh
Custom ROM procedure already has a restore script!
I am currently working on an auto restore script for stock and that will be relased soon, hopefully! :good:
Changelog:
v1.0 - First stable release. Does not work on STOCK ROM.
v1.1 - Added a restore script.
v1.3 - Added support for STOCK ROM. There are still a few bugs.
How it works?!?!
Coming soon...
Huge thanks to @Bert98 and @dd043
Hit the thanks button if it worked! I went through about 50 factory resets, and reflashed the ROM about 25 times, and put about 10 hours of work into this script! Really motivates me for future projects. :laugh:
Thanks for your help man and effort.
I encountered a problem, everything works up until my device boots in CWM to fix permissions, then just sits there doing not alot I don't even see the option in my CWM.
Any ideas? cheers
Sent from my XT1032 using XDA Free mobile app
When it reboots to cwm unplug the cable and replug it, if it hangs just type these commands manually from a command window.
chmod 655 /cache
chmod 655 /cache/dalvik-cache
chmod 655 /cache/dalvik-cache/*
reboot
If this does not work you may ned to go into mounts & storage in the cwm menu and click mount /cache. Then try the commands again.
I'm having some issues on stock.
I thought 0655 fixed everything but no, I can't install any app after moving the dalvik-cache to /cache. I tried chmoding 0777 on the new cache folder, on /cache itself, to no avail.
Code:
E/dexopt cannot open '/data/dalvik-cache/[email protected]' for output
Anyone can confirm it's not only my device? And/or can help find a fix?
Also does someone knows how to execute commands on a particular init step? Real init.rc scripts can do:
Code:
on post-fs-data
mount -o bind /cache/dalvik /data/dalvik-cache
It there was a way to achieve the same from post_boot/init.d we could mount -o bind /cache/dalvik /data/dalvik-cache and all permissions issues would disappear as well as the need for symlink.
You have a typo in the threads title. Just a heads up.
Vuciz said:
You have a typo in the threads title. Just a heads up.
Click to expand...
Click to collapse
Thanks for letting me know!
dd043 said:
I'm having some issues on stock.
I thought 0655 fixed everything but no, I can't install any app after moving the dalvik-cache to /cache. I tried chmoding 0777 on the new cache folder, on /cache itself, to no avail.
Code:
E/dexopt cannot open '/data/dalvik-cache/[email protected]' for output
Anyone can confirm it's not only my device? And/or can help find a fix?
Also does someone knows how to execute commands on a particular init step? Real init.rc scripts can do:
Code:
on post-fs-data
mount -o bind /cache/dalvik /data/dalvik-cache
It there was a way to achieve the same from post_boot/init.d we could mount -o bind /cache/dalvik /data/dalvik-cache and all permissions issues would disappear as well as the need for symlink.
Click to expand...
Click to collapse
Let me try and do that right now... Ill get back to you if it does!
My script works on stock btw... But the mount way seems a bit easier and might cause less errors than my way.
Try it please.
skyguy126 said:
Let me try and do that right now... Ill get back to you if it does!
My script works on stock btw... But the mount way seems a bit easier and might cause less errors than my way.
Try it please.
Click to expand...
Click to collapse
Yes I've tried your script, all went well but the result is the same. The script itself works nicely btw
Applications present before moving cache work perfectly, but I can't install anything new. I suspect it might be my device but before wiping everything I'd prefer feedback from others :fingers-crossed:.
I cannot install new apps as well. The mount command you showed me has the same effect too. I honestly don't know anymore, the sym link did not allow the install of new apps nor did the mount command you sent me. Correct me if I am wrong.
Edit: Going through all the init files on my phone to see which one remounts /cache at boot.
Why does the init.rc get overwritten at boot. Is it because the kernel (boot.img) is the one that copies it over? I have found by changing the perms/locations in this file and init.target.rc you can achieve what this mod is trying to acomplish.
I don't see the mount cache command in CWM strange
I've managed to get back to normal, thanks for everyone's help though, I will keep and eye on the thread
Sent from my XT1032 using XDA Free mobile app
non-windows version?
Thanks for this tool. It's a great idea and our Motos really need it.
However, I have a problem - I do not own a windows license (os x and ubuntu user) and I would prefer not to spend $120 just to use it for this script. Pirating is out of the question for me.
I was wondering if there is any chance of having this script written for linux and/or mac. If impossible, is there a LEGAL way of running windows in a virtual machine? Something like a trial or similar?
If you know how just convert it to shell script for osx and Linux. I give you permission to do this but you may not take credit or rehost your creation.
Ok so I have the kernel extracted and we could modify and flash that, but I believe that it's not really necessary. There are a lot of risks to flashing kernels and I am not willing to take it. So is there a way we can modify dalvik so it creates it's cache in /cache instead.
skyguy126 said:
Why does the init.rc get overwritten at boot. Is it because the kernel (boot.img) is the one that copies it over? I have found by changing the perms/locations in this file and init.target.rc you can achieve what this mod is trying to acomplish.
Click to expand...
Click to collapse
Yes the init.rc is in the boot ramdisk. I don't think it would be worth the trouble to rebuild a boot.img. The moto g is fairly unbrickable but it's quite a lot of work to setup an environment to rebuild an image :/.
Too bad for the mount command, I was sure it was working but maybe I had changed something else and don't quite remember the steps to reproduce
We could possibly implement a shell script toggler for when we need to install new apps, but I'm afraid it'd become annoying fairly quickly: I noticed the issue initially because google play services decided to update itself, failed, and broke all google apps. As far as I know this autoupate can't be disabled.
Thanks for trying!
dd043 said:
Yes the init.rc is in the boot ramdisk. I don't think it would be worth the trouble to rebuild a boot.img. The moto g is fairly unbrickable but it's quite a lot of work to setup an environment to rebuild an image :/.
Too bad for the mount command, I was sure it was working but maybe I had changed something else and don't quite remember the steps to reproduce
We could possibly implement a shell script toggler for when we need to install new apps, but I'm afraid it'd become annoying fairly quickly: I noticed the issue initially because google play services decided to update itself, failed, and broke all google apps. As far as I know this autoupate can't be disabled.
Thanks for trying!
Click to expand...
Click to collapse
How about making a simple apk that toggles this feature. Something like when you click the icon it doesn't even open but gives a little notification of success. Something like that. I myself am not experienced with apks but I can put together a shell script for the apk.
skyguy126 said:
Ok so I have the kernel extracted and we could modify and flash that, but I believe that it's not really necessary. There are a lot of risks to flashing kernels and I am not willing to take it. So is there a way we can modify dalvik so it creates it's cache in /cache instead.
Click to expand...
Click to collapse
Patching dalvik itself sounds promising. It can probably be done with in a batch script with a command line hex editor.
The path is defined in frameworks/base/cmds/installd/installd.h
Code:
#define DALVIK_CACHE_PREFIX "/data/dalvik-cache/"
Not sure if there is another mention in the source tree.
But there's nothing to say we wouldn't face the same issue, the error message in the logcat is pretty generic
dd043 said:
Patching dalvik itself sounds promising. It can probably be done with in a batch script with a command line hex editor.
The path is defined in frameworks/base/cmds/installd/installd.h
Code:
#define DALVIK_CACHE_PREFIX "/data/dalvik-cache/"
Not sure if there is another mention in the source tree.
But there's nothing to say we wouldn't face the same issue, the error message in the logcat is pretty generic
Click to expand...
Click to collapse
Ill try it. I don't mind doing a bunch of resets because I am using my moto g as a test bench anyway. My daily driver is the OnePlus One
dd043 said:
Patching dalvik itself sounds promising. It can probably be done with in a batch script with a command line hex editor.
The path is defined in frameworks/base/cmds/installd/installd.h
Code:
#define DALVIK_CACHE_PREFIX "/data/dalvik-cache/"
Not sure if there is another mention in the source tree.
But there's nothing to say we wouldn't face the same issue, the error message in the logcat is pretty generic
Click to expand...
Click to collapse
EDIT: Unfortunately it didn't work. I don't know if I modified the installd file correctly. The program I used is HxD.
Is there a way we can force dalvik to start after the directories are created. And change dalvik to create it in /cache.