insufficient storage available - Galaxy S 4 Q&A, Help & Troubleshooting

Hi,
I did a full format and installed cm11 yesterday.
While installing some apps it randomly started saying insufficient storage available but not always and biggers apps could still be installed.
I read about logcat and dumpstate but i cannot dial the number in cm dialpad and with terminal it says /data/logs is not found. Also when i search manually it is not to be found.
I did however find logcat file and dumpstate file in system/bin but they are small files (no folder with logs).
Also lost and found folder is empty.
Already have 4 GB free storage space but still het the error.
I tried many cache cleaner and general Cleaners and also deleted dalvik cache and formated cache partition but nothing helped.
I dont want to Factory reset again cus i already lost a lot of time configuring the phone twice.

*deleted*

Space
Most of the nightlies I have used (seems to be ever second one) I was getting "insufficient Storage Space" when trying to install/update from playstore, got sick of having to reinstall EVERYTHING from scratch so I went to Goldeneye rom instead, not a problem.

dwarfer66 said:
Most of the nightlies I have used (seems to be ever second one) I was getting "insufficient Storage Space" when trying to install/update from playstore, got sick of having to reinstall EVERYTHING from scratch so I went to Goldeneye rom instead, not a problem.
Click to expand...
Click to collapse
Oh really?
Well it's probably the same bug then but others don't seem to have the same isue.
You are the only person i found.
I was thinking of doing a format again and installing the nightly from 8 april (its late D but if you had it with every nightly there is a big chance i will keep getting it
Damn

Try reflashing again the rom sir

Related

[Solved] Market Error "Invalid Package File"

I've been having this problem on and off for a while, mostly I believed it was related to something getting corrupted when I restored my apps to a new Rom with Titanium Backup.
I am happy to say, that after scouring the web for days, and trying a lot of wrong information, I finally figured out how to fix this.
It's real easy. All you need to do is remove any *.apk files located in the /cache directory on your phone (did not even need to remount- though I did it as root just in case).
I never did figure out why only some apps will have this problem or how the problem first comes about, but I have successfully done this twice and have since been able to install/update files that had this error before.
Update (3/3/11): OK - After scouring the Internet for over a month I finally figured it out. My info above was only part right. The problem is specifically with ROMs/Kernels that move the dalvik-cache to the /cache directory (HTC puts it in the /data dir).
In any case, when it's in /data, it is using app space, and therefore you usually run out of app space and know about it. However, because this is in /cache, you don't really know what you are using. As you load up on apps, your dalvik-cache grows, and since these apps need the .dex files in the cache, even if you clear your cache, it will just get re-created.
the /cache dir is also where the apps are temporarily stored while downloading from the market. So....
1. If you are getting immediate download fails, that means that your cache is so full that you don't even have space for the temp file.
2. If you get "Invalid Package" that likely means that there was not enough cache left to install the .dex files (the download is also taking up some of this space).
Unfortunately, the only way to fix this is to either remove some of your apps, or move your cache to your SD card.
HOWEVER, I found this great app on the market called Link2SD, that allows you to only move select apps to the SD card, and you can also move the dalvik-cache files associated with these apps.
see this thread for specifics: http://forum.xda-developers.com/showpost.php?p=10711328&postcount=1
it lets you select which apps to move. You will need to create a new partition on your card, though.
So far results have been great and I can finally update the 30+ apps that have been stuck for me for the last 2 months.
almost forgot, if you adb shell or use terminal emulator, you can type "df" to see how much space is left on all your mounts.
My phone has been doing the same thing with the whole package file is invalid bs. I tried to follow your instructions on going to the /cache folder. When I went to the folder, it was empty, so I wasn't able to remove any .apk files. So now what? How do I fix this?
If you use a File Managemet app like ASTRO, it will show the folder as empty because you need root access to see the dir. However, if you use Terminal Emulator or adb shell (as root) you will see that there are indeed other directories, and probably these orphaned .apk files.
Hi,
I'm also having the same issue with invalid package. I cleared the /cahch direcotry and still have the issue -- Is there something else i can try before wiping and starting over?
thanks
Rudey
It could also be caused by the .android_secure folder on your SD card. Clearing this folder and letting the market restore them solves issues a lot ofthe time.
As always use TiBackup or something to backup all your apps first too to be safe.
As the OP, I can tell you that I have, in fact, been unable to fix this problem.
Initially the suggestion I posted above worked, however a couple of days later is was no longer working again.
I have tried every trick on the web, including:
1. Removing SD card.
2. Deleting the above mentioned folder
3. clearing market cache
4. Clearing all caches in recovery
5. logging out and back in to google talk.
The only thing that fixes it is a complete factory reset.
I currently have a combination of 3 errors:
1. No download at all.
2. Download unsuccessful
3. Invalid Package
some apps will still update, but what is really weird is that I am even getting invalid package on new apps (so its not a corrupt app already installed on the phone).
One last thought. Once I am unable to update an app, even if I remove it, I can no longer restore the backup using Titanium.
oughta try reformating your SD card and let the phone reformat it too.
sgt. slaughter said:
oughta try reformating your SD card and let the phone reformat it too.
Click to expand...
Click to collapse
don't see why this is different than un-mounting the SD which should do the same thing and has been tried.
sw99 said:
don't see why this is different than un-mounting the SD which should do the same thing and has been tried.
Click to expand...
Click to collapse
na actually reformating it will fully wipe everything on the SD and having the phone do it is best always as its always better to format with the device your using the disk on the most in general.
Found the problem, updated in OP.
sw99 said:
I've been having this problem on and off for a while, mostly I believed it was related to something getting corrupted when I restored my apps to a new Rom with Titanium Backup.
I am happy to say, that after scouring the web for days, and trying a lot of wrong information, I finally figured out how to fix this.
It's real easy. All you need to do is remove any *.apk files located in the /cache directory on your phone (did not even need to remount- though I did it as root just in case).
I never did figure out why only some apps will have this problem or how the problem first comes about, but I have successfully done this twice and have since been able to install/update files that had this error before.
Update (3/3/11): OK - After scouring the Internet for over a month I finally figured it out. My info above was only part right. The problem is specifically with ROMs/Kernels that move the dalvik-cache to the /cache directory (HTC puts it in the /data dir).
In any case, when it's in /data, it is using app space, and therefore you usually run out of app space and know about it. However, because this is in /cache, you don't really know what you are using. As you load up on apps, your dalvik-cache grows, and since these apps need the .dex files in the cache, even if you clear your cache, it will just get re-created.
the /cache dir is also where the apps are temporarily stored while downloading from the market. So....
1. If you are getting immediate download fails, that means that your cache is so full that you don't even have space for the temp file.
2. If you get "Invalid Package" that likely means that there was not enough cache left to install the .dex files (the download is also taking up some of this space).
Unfortunately, the only way to fix this is to either remove some of your apps, or move your cache to your SD card.
HOWEVER, I found this great app on the market called Link2SD, that allows you to only move select apps to the SD card, and you can also move the dalvik-cache files associated with these apps.
see this thread for specifics: http://forum.xda-developers.com/showpost.php?p=10711328&postcount=1
it lets you select which apps to move. You will need to create a new partition on your card, though.
So far results have been great and I can finally update the 30+ apps that have been stuck for me for the last 2 months.
almost forgot, if you adb shell or use terminal emulator, you can type "df" to see how much space is left on all your mounts.
Click to expand...
Click to collapse
Didnt solve my issue.. I had reformatted my phone and SD card and reinstalled my apps. It was working fine again but now its back to some apps update fine.. some get DOWNLOAD UNSUCCESSFUL and some get PACKAGE FILE INVALID.. any ideas.. Im on sprint lovers rom (latest)
It appears th LINK 2 SD needs a second partition that I dont have nor use with SPRINT LOVERS ROM and 2.2 .... am I missing something??
To the OP,
The program you linked to seems to be a variation of dark tremor's a2sd method (http://forum.xda-developers.com/showthread.php?t=715116). His lets you move data, cache, and/or dc to the ext partition, but doesn't (at least I don't believe it does) give you granular control over which apps remain in the standard location.
In my own use, I chose to move all user installed apps to sd, but dc remained on the internal memory (albeit, not in /data, but in the /cache partition). I figured this way, even if the sd card is missing, the phone will still boot. I won't have access to anything I installed, but whatever the rom came with will still be accessible.
Follow the instructions on that thread and create the second partition. You won't need more than 500mb. apps2sd or link2sd is the only way you can fix this problem unless you want to remove some of your apps.
Sent from my PC36100 using XDA App
gpz1100 said:
To the OP,
The program you linked to seems to be a variation of dark tremor's a2sd method (http://forum.xda-developers.com/showthread.php?t=715116). His lets you move data, cache, and/or dc to the ext partition, but doesn't (at least I don't believe it does) give you granular control over which apps remain in the standard location.
In my own use, I chose to move all user installed apps to sd, but dc remained on the internal memory (albeit, not in /data, but in the /cache partition). I figured this way, even if the sd card is missing, the phone will still boot. I won't have access to anything I installed, but whatever the rom came with will still be accessible.
Click to expand...
Click to collapse
Yes that's true, and I eventually went the app2sd route. However, I was trying to avoid that because of the slow speed of my sd card.
Sent from my PC36100 using XDA App
sw99 said:
Yes that's true, and I eventually went the app2sd route. However, I was trying to avoid that because of the slow speed of my sd card.
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
I'm not sure which app2sd method you're referring to, but keep the following in mind. I discovered this after my backup images failed to restore properly.
In the past, i'd be backing up boot, system, and data partitions. Obviously with dt's a2sd, I need to include the ext partition now. No problem. BUT, when restoring, i'd run into issues where my apps were present, but all settings were lost. After much confusion and head scratching, I tried wiping cache and dc AFTER the restore, but before the initial boot. The restore was a success now!
Apparently, with a2sd on the ext3, some remnants of cache or dc remain when backing up, even if cache is not selected. As part of any good restore, first thing is to always wipe, so now we end up with a hodge podge of files in the cache which I think causes the OS to revert all the settings back to default.
Just something to keep in mind.
i wanted to go back how my dhd was.. lots of problem.. i havent fix my radio problem yet and now this invaled package thing *face palm*
My phone is HTC G7, and I use data2sd to get 1.5G rom space, now there is still about 1.2G left, but I also met the "invalid package file" problem. I can't find any *.apk in /cache, (root, with "ls -a"). But if I uninstall some apps, I could install or update other apps successfully. I could not use Link2sd for I already have data2sd and I guess it's not a problem of insufficient space, because I still have enough rom space.
Do you have any new solutions?
supericexu said:
My phone is HTC G7, and I use data2sd to get 1.5G rom space, now there is still about 1.2G left, but I also met the "invalid package file" problem. I can't find any *.apk in /cache, (root, with "ls -a"). But if I uninstall some apps, I could install or update other apps successfully. I could not use Link2sd for I already have data2sd and I guess it's not a problem of insufficient space, because I still have enough rom space.
Do you have any new solutions?
Click to expand...
Click to collapse
The problem is not the apps, its the /cache running out of space. I suspect that the app you are using cannot move the dalvik-cache files (and is really just a shortcut to android's app2sd - which is not the same as darktremor or link2sd).
in terminal us df -k to see how much space you have on each mount to confirm that there is little space in cache.
If you really have that much space in your apps mount, then I would suggest moving the dalvik-cache back to its original location (search for instructions, as the only way I know how to do it is by installing darktremor's app2sd). If you are still having problems, you really are limited to either partitioning your SD card and using apps2sd or link2sd or removing apps.
hope this helps.
I have been having this issue for a couple of months now - with a bit of a twist. After wiping my dalvik-cache, my apps began to sucsessfully update - except for Google apps.
I have no idea why just those apps, but going into settings/Applications/Manage applications, and selecting each app, then clearing that apps cache, allowed those apps to sucessfully update also.
I am thankful I did not have to resort to the above fix.
Any solution if not rooted?
I've just started to get this error when trying to update the Google+ app. The error is only happening with Google+, every other app I update/install works fine.
I haven't rooted my device, and I'm hoping there's a way to fix the issue without rooting?
Device: Nexus One
Rom: Stock Android
Version: 2.3.4
Although I couldn't see anything in the cache directories, I checked in /system/app and couldn't find any package that looked like it would be Google+.

[Q] E:Can't read misc (no space left on device)

After a recent partition to make more internal space available to install Kingdom Shooter,I started getting the error in the title. The error pops up after any action in recovery. The new rom goes on fine and I'm showing over 200MB left after several user apps are installed from the market.
Every now and then though, after a battery change or regular reboot, the rom won't load and requires a complete redo.
Last time I did a fresh rom install my OLD Custom WALLPAPER was put in as default on a fresh setup..so..I've got stuff stuck in internal memory. Is there a way to clean it up in root explorer or other app?
My current setup is not my sig..
it is stock kernel HW004 32 MB swap 1024 ext3 partition
Thanks for any suggestions for clearing up this error.
No1 ever fixed this error?
When I had that happen once I made sure to back up all my stuff to my pc. Then I reformatted the card twice. It kept happening to me when I first partitioned. So a re-format and then partition again did the trick. Either that or your sd is takin is gonna be taking a crap on you soon.
I just had this issue too with my EVO 4G:
E: Can't read MISC: (No space left on device)
I had some 'RA HAUS 2.3' recovery, weird name, I don't know anything about this recovery, was installed when I did my rooting back in March 2011; it seems to be someone's version of Amon RA.
Anyway, I found the real Amon RA:
http://forum.xda-developers.com/showthread.php?t=705026
Downloaded it, put to my USB root folder and went to HBoot, allowed it to recognize the 'real' Amon RA; when finished the update, rebooted normally.
Then went back to recovery and wiped cache, dalvik cache and data; then installed ROM EVOlvedROM r3chargeD Final which I installed on my wife's EVO over the weekend.
Anyway, no more weird message 'E: Can't read MISC: (No space left on device)', I'm done with that and the phone at least for a few hours seems more stable now.
For more details, see post 5 on this link, this is almost identically to what I did:
http://androidforums.com/evo-4g-all-things-root/402522-e-cant-read-misc-no-space-left-device.html
EDIT: some pertinent information, my EVO had plenty of storage both internal and SD card when this 'error' appeared, no reason to get this message!

Internal Storage Problem

My Defy is once again throwing "Low on space, phone storage is getting low" error messages. When I view the list of all applications and their storage usage, the bottom of the screen displays 1.26GB used, 5.1MB free. However, if I scroll down the list and add up all of the storage being reported by the system for each app, the total is only about 191MB (I don't have a lot of apps). So, is there some type of internal storage memory leak somewhere?
I've been happily running a nightly CM7.2 build from April, and I haven't installed a new app in months. The last time this error happened, I eventually had to do a factory restore and reinstall everything to fix the internal storage limit. And after restoring all my apps and settings, the total internal storage used by the new build was less than 200MB.
Anyway, I'm throwing this out there for suggestions prior to rebuilding everything, again. I already tried wiping caches and updating to the lastest 7.2 nightly, but I'm still getting the error.
I ended up doing a factory reset and reinstallling apps from backup, but would still welcome suggestions for the next time this happens. I wasn't able to try SDMaid, because even after freeing up 130MB of internal storage, the installation would fail with an insufficient storage error . However, I did install SDMaid on the new build, so now I'm ready.

[Q]How to Restore Apps from 2nd Partition MMC SGY

alright. i am new here btw. i dont know if someone has already posted this kind of problem on SGY. some were kinda too savvy when i try to relate my problem on other threads.
here it goes:
few months before, i rooted my SGY phone from gingerbread to jelly blast and i successfully did it well. then, i had partitioned my SGY's 8GB MMC. i successfully partitioned my mmc and got extra 1GB for internal memory so that i can install more apps. i had also managed to transfer apps with huge amount of datas to the 2nd partition - to free up space on the real internal memory. everything was perfect until...
i got my phone wet by accident - but not internally and it would not start no matter what. got it repaired by a tech, found out that the power amp was grounded. made some sortings and it was working again.
little did i know that there was a collateral damage - all settings has been reset. i lost my apps, my contacts, messages, and anything saved on the phone. but it's still rooted and runs jelly blast. the problem is that since i made a 2nd partition of my mmc, i cant get them back up again. when i try to go to link2sd>storage info>SD card 2nd Part. and it still shows used 312MB so the apps are possibly in it.
can someone please help me on how to get them back or restored? any advice would be very much appreciated. thanks. :angel:
tried to go on google play but wasn't of help.
I don't think so it is possible to restore from 2nd partition
But I have an idea don't know work or not
go to data folder by using root explorer or anything else
Then search for sd-ext or sd-ext2 and look, there is any apps present or not
If not then open link2sd and clear 2nd partition your memory will be free
press thanks if i help you
sent from my ANDROID using
XDA PREMIUM
Another idea:
Boot a Live Linux from your PC and mount your sd card, then c&p your content to another partition.
Did this on my old Smartphone with 2 Partitions fat32+ext4
Hope that helps
Sachin Patel said:
I don't think so it is possible to restore from 2nd partition
But I have an idea don't know work or not
go to data folder by using root explorer or anything else
Then search for sd-ext or sd-ext2 and look, there is any apps present or not
If not then open link2sd and clear 2nd partition your memory will be free
press thanks if i help you
sent from my ANDROID using
XDA PREMIUM
Click to expand...
Click to collapse
Ey, thanks! I went to my File Explorer>Settings>Root Explorer. I found "data" folder > sdext2 and when i opened it - i saw all the apps i have installed and moved to the 2nd partition! hooray for that!!
i tried to test by clicking on one app, it then opened asking me to use package installer or app system installer. i ran package installer, got warning about installing unknown resources (though the apps came from google play).. so i enabled unknown resources. installed it. :fingers-crossed:
it worked - the app got restored!!! :laugh: is this the right thing to do or was there anything that should be done first? :highfive:
and other questions:
a. link2sd asked me what should be mounted on sd card. i remember from the time i began to partition - i chose ext3. but now on the sd card, when i got the data folder, it shows all my apps on sdext2 folder. which one should i mount? EXT2 or EXT3?
b. due to all this incident, whenever i turn my phone on - it keeps on telling me that the com.android.phone has stopped unexpectedly. how do i fix this? PS i remember while searching on data folder where i got sdext2, i found another data folder. it shows there com.android.phone but i dont know how to configure this.
tonytiny16 said:
Ey, thanks! I went to my File Explorer>Settings>Root Explorer. I found "data" folder > sdext2 and when i opened it - i saw all the apps i have installed and moved to the 2nd partition! hooray for that!!
i tried to test by clicking on one app, it then opened asking me to use package installer or app system installer. i ran package installer, got warning about installing unknown resources (though the apps came from google play).. so i enabled unknown resources. installed it. :fingers-crossed:
it worked - the app got restored!!! :laugh: is this the right thing to do or was there anything that should be done first? :highfive:
and other questions:
a. link2sd asked me what should be mounted on sd card. i remember from the time i began to partition - i chose ext3. but now on the sd card, when i got the data folder, it shows all my apps on sdext2 folder. which one should i mount? EXT2 or EXT3?
b. due to all this incident, whenever i turn my phone on - it keeps on telling me that the com.android.phone has stopped unexpectedly. how do i fix this? PS i remember while searching on data folder where i got sdext2, i found another data folder. it shows there com.android.phone but i dont know how to configure this.
Click to expand...
Click to collapse
A. You should choose that one by which you partition your memory card, ext2 or ext3
B. For fix this problem go to cwm mod and select advanced and select fix permission
press thanks if i help you
sent from my ANDROID using
XDA PREMIUM
Sachin Patel said:
B. For fix this problem go to cwm mod and select advanced and select fix permission
Click to expand...
Click to collapse
i tried that successfully but unfortunately, it didnt work. i got additional error message: the process com.android.mms has stopped unexpectedly.
what could have been wrong?
i tried to copy the folder com.android.phone and com.android.mms from the system root to the sd card android folder but things are still the same. issue persists..

[Q] reboot problem / full wipe

Hi there,
i'm having some trouble with my S4, i9505.
I installed Resurrection Remix last weekend, and it hasn't been stable ever since. (cm-Resurrection_Remix_LP_v5.3.2-20150127)
In the beginning it would hold out for a few hours, but it started to reboot more and more frequently.
Finally, it would start to reboot, even whil rebooting into the recovery. Very annoying, and very hard to do anything.
I managed to restore to a nandroid backup from October 2014, but there's another problem.
I had installed that rom early in October It's Cyanogenmod 11.x.... Not sure exactly which version. I used the installer provided by cyanogenmod.org. That one has served me well for a long time, but lately I was having memory issues. I couldn't install new apps and even updating no longer works. I have >4GB free on my external SD, but installing apps to SD didn;t work. Moving apps to SD to make space was no go either. I kept getting "insufficient space" The operating system showed less than half the space on the internal memory was used. Lots of space left, but no space for apps apparently. ES file explorer doesn't think there's much space left on the internal SD. a few 100 MB max.
That's what tirgered moving to RR, but clearly that did'nt work well. I did a factory wipe from the recovery and cleared the cache.
What struck me is that the factory wipe isn't very thorough. Lots of data from apps was still accessible when Resurrection Remix was still behaving.
I tried to install cm-12-20150420-OPTIMIZED-FINAL-jflte.zip, but the installation quickly aborted saying it couldn't mount /system.
I managed to put my nandroid on the SD card and restored to the old situation, but the memory problems are still there.
In short, any idea what could be causing this behaviour?
and is there a way to do a complete and absolute wipe, so that any errors that may have accumulated over time will be erased?
I get the feeling that some link or redirection is wrong and the installs that I do get botched just a little bit.
Cheers,
Everything you are using is old and highly outdated.
1. Flash the latest TWRP from here:
http://teamw.in/devices/samsunggalaxys4internationalqualcomm.html
2.
Download the rom from my signature.
3.
Flash away and it will work fine.
Cool. Thanks. Will try that!
M
Hmmm. Didn't fix it.
OK. So I did that. ... As my phone thinks it's full, I had to do the install using terminal emulator.
Once that was done, it was smooth sailing.
Just started up again. But I only can get a few of the apps I used to have. I'm getting "device memory full" again.
I did the wipe function from twrp. Including wipe of Dalvik cache.
The "storage" item in settings says I have 397 mb available of 9.13gb, but visually the free space looks about 4 times larger than the .75 or so gb of data used by apps, etc.
Any ideas?
Menno
Mainow said:
OK. So I did that. ... As my phone thinks it's full, I had to do the install using terminal emulator.
Once that was done, it was smooth sailing.
Just started up again. But I only can get a few of the apps I used to have. I'm getting "device memory full" again.
I did the wipe function from twrp. Including wipe of Dalvik cache.
The "storage" item in settings says I have 397 mb available of 9.13gb, but visually the free space looks about 4 times larger than the .75 or so gb of data used by apps, etc.
Any ideas?
Menno
Click to expand...
Click to collapse
The memory full mesages is displayed when your internal storage is full. TWRP never wipes your internal storage. Delete the files manually or in TWRP select advanced wipe and select /data partiton.
Lennyz1988 said:
The memory full mesages is displayed when your internal storage is full. TWRP never wipes your internal storage. Delete the files manually or in TWRP select advanced wipe and select /data partiton.
Click to expand...
Click to collapse
Wow! thanks.
I went into TWRP and used the file manager.
Browsed around a bit and found a folder in /Data which belongs to Clockworkmod. The Cyanogenmod filemanager doesn't get there.
It basically had copies of all the nandroid backups I had made. with Clockworkmod. Not cool. I had made the backups to SD card, so apparently CWM forgot to delete these, or so.
Anyway, I deleted those folders and I'm back in business.
Cheers!
Issues after OtA
So..... just posting on my original thread. Hope someone is seeing this.
Last clean update went well... Apart from a few minor issues the wifi and bluetooth stability.
But since mid August my phone was nagging me about a new update being available. So I went for it finaly. Did OTA update 2 days ago.
Did not go well.
Gmail broken, Google Play crashing and bad wif stability.
Read around a bit on this forum.. Decided to do a clean install. MUCh better! :victory:
But... 2 issues remain...
1. my wifi doesn't seem to want to connect when I want it to. I always had issues with the wifi not connecting when the wifi strenght was not perfect, but since the August update, I can be standing right next to the AP and it's not connecting. My AP shows up right on top, and it just says saved. When I tap it and press connect, nothing happens. It does randomly connect every once in a while, for a couple of minutes... It works perfectly, great bandwitdh... and then nothing. It's not my AP. I'm posting from my laptop which has great connectivity. I put in the neighbour's wifi. Same thing.
2. How do I get rid of the Google search bar on top of the screen. Can't find it in the settings.
Oh. and when I switched over to cM12, I seem to have lost root access. How to get it bacK?
Cheers,
Menno

Categories

Resources