Lag and bad performance when running out of storage - Samsung Galaxy S (4G Model)

As the tilte is saying, whenever there's less than 100 mb of internal storgare the performance just dies. Even scrolling is laggy. I've used multiple ROMs (CM 11, 10.1, 9/SlimKat/SlimSaber/BeanStalk) but no luck. I've also used Greenify and it hasn't helped. I only install the apps I really need : Facebook, Facebook Messenger, Shazam, Hangouts, Youtube, Viber. That's it ! I even uninstall wallpapers and ringtones, plus all the apps that could be moved to the SD card are moved.
Does anyone have any suggestions ? Maybe increasing the internal storage on KitKat ? Or are there any tweaks I'm not aware of ?
Thanks in advance.

First backup your SD card. And then create external partition type ext4, using TWRP recovery and only TWRP (If you use any other tools, you will not be able to backup sd-ext using TWRP, and this is from my experience).
Next, get Link2SD app, and create mount scripts, reboot, set Auto linking checked and (also App, Library, and Dalvik checked). And link App, Library, and Dalvik files to sd-ext. If you paid for Link2SD+, you will be able to link internal data too. A warning though, keep important apps that starts up with android on internal memory such as launchers to prevent lag. Depending on what class your SD card, you might not notice any lag at all. I still have the 16GB that came with the phone, and it is not really fast, it is laggy but not much.
I know I will be lashed for saying this, but get Lucky Patcher (use it for legal stuff only, lol) and ODEX all your system files. Custom roms are unoptimized due to the need to have resource hooks and hacking the system files or debugging them. Creating Optimized dexs, they will occupy less memory and become faster. You will notice a significant improvement in speed.
Currently, I have SlimKat 4.4.4, 2.5GB sd-ext ext4 partition (~1.5GB used) and have 204MB free on internal. And around 143-145 apps installed ranging from few hundreds of KBs to tens of MBs. And the system is snappy.
Another warning if you use Titanium Backup, if you batch restore many apps at once, Link2SD might not be able to catch up linking apps as soon as Titanium Backup finish restoring the apps with data, causing memory go low or Titanium Backup freeze. A solution to this, only restore chunks of 10 or 15 apps at once, and wait till Link2SD done linking all of the apps.
After you are satisfied with the results, go to TWRP and backup EVERYTHING including sd-ext. EXCEPT "EFS" partition (if it does show up), which you might get bad IMEI number if you restore EFS again. You can enable compression to the backup, which helpfully compressed the ~2300MB files to ~1300MB for me.
Good luck. :good:

Thanks mate ! Gonna try ASAP !

Rebel_X said:
First backup your SD card. And then create external partition type ext4, using TWRP recovery and only TWRP (If you use any other tools, you will not be able to backup sd-ext using TWRP, and this is from my experience)....
Good luck. :good:
Click to expand...
Click to collapse
First, thanks for writing this. Now, just a quick question, did you have had problems with apps disappearing after a update?
This begin happening like a month or so ago. After an app auto-update, it disappear, and I have to recreate the mount script on Link2SD and reboot for it to appear again. Now I disable auto-update, android only notify me of updates. Then I remove the links of the app to update on Link2SD, then update the app, and then I create the links again.
I have my device set up exactly how I like it, but I'm thinking about erasing my phone and starting up again.

llinkll said:
First, thanks for writing this. Now, just a quick question, did you have had problems with apps disappearing after a update?
Click to expand...
Click to collapse
I believe this happened to me long time ago when I used an older version of Link2SD. The newer version promised that it fixed Apps disappearing after booting. But, if that happens to you, you can fix this easily by "Relink all app files" from Link2SD to find any unlinked apps that are supposed to be linked and then reboot or soft reboot from Link2SD. Or you can "Clear 2nd Partition" and/or Dalvik cache to delete the apps that disappeared and reinstall them again. But an answer to your question, I didn't have any apps disappear on me when I started clean.
Also, for anyone deciding on ODEXing system files. Choose a ROM that have enough free space in system partition to do so. Some roms have less than 8MB in system partition (CM11!) which can cause problems when doing so. SlimKat 4.4.4 is really slim, you have over 40MB free in system partition. If you want to keep the ROM you are using, you can free more space in system partition by converting the Keyboard app to a user app, that is another 40MBs free (and if you did that, you have to reselect the Keyboard from Language input in settings, by un-ticking/re-ticking the checkbox, also don't link the Keyboard app to 2nd partition, it can cause lag). I noticed if you have less than 5MB in system partition, the performance of the phone suffers greatly.
From using Link2SD to view storage information, you will notice that Data partition and Cache partition are the same (I could be wrong here, but that what it seems to be). So it is important to have more free space in the Data partition.

Rebel_X said:
First backup your SD card. And then create external partition type ext4, using TWRP recovery and only TWRP (If you use any other tools, you will not be able to backup sd-ext using TWRP, and this is from my experience).
Next, get Link2SD app, and create mount scripts, reboot, set Auto linking checked and (also App, Library, and Dalvik checked). And link App, Library, and Dalvik files to sd-ext. If you paid for Link2SD+, you will be able to link internal data too. A warning though, keep important apps that starts up with android on internal memory such as launchers to prevent lag. Depending on what class your SD card, you might not notice any lag at all. I still have the 16GB that came with the phone, and it is not really fast, it is laggy but not much.
I know I will be lashed for saying this, but get Lucky Patcher (use it for legal stuff only, lol) and ODEX all your system files. Custom roms are unoptimized due to the need to have resource hooks and hacking the system files or debugging them. Creating Optimized dexs, they will occupy less memory and become faster. You will notice a significant improvement in speed.
Currently, I have SlimKat 4.4.4, 2.5GB sd-ext ext4 partition (~1.5GB used) and have 204MB free on internal. And around 143-145 apps installed ranging from few hundreds of KBs to tens of MBs. And the system is snappy.
Another warning if you use Titanium Backup, if you batch restore many apps at once, Link2SD might not be able to catch up linking apps as soon as Titanium Backup finish restoring the apps with data, causing memory go low or Titanium Backup freeze. A solution to this, only restore chunks of 10 or 15 apps at once, and wait till Link2SD done linking all of the apps.
After you are satisfied with the results, go to TWRP and backup EVERYTHING including sd-ext. EXCEPT "EFS" partition (if it does show up), which you might get bad IMEI number if you restore EFS again. You can enable compression to the backup, which helpfully compressed the ~2300MB files to ~1300MB for me.
Good luck. :good:
Click to expand...
Click to collapse
dude? what if uninstall my lucky patcher? is the odex file still there?

DerPuGNa said:
dude? what if uninstall my lucky patcher? is the odex file still there?
Click to expand...
Click to collapse
I don't think that will affect ODEX files at all.
LoL, every time I read your username I read it as "Danganronpa" (Japanese word for bullet time) as the great Anime show (an adaptation of the PSP game). Please don't take that offensively :good:

Thanks !!!! Gonna report back with the performance !
Intial thoughts : *Very* good.

Related

Help with Nandroid

Hey all,
I've been searching everywhere in google as well as in XDA with no success. I am trying to do a full Nandroid backup (just like people are advising you to do when changing roms).
I currently have Clockwork 3.0.0 and am Rooted on stock. When I go into recovery, the only thing I have in regards to backup is just "backup" and no "Nandroid Backup" like people are saying all over the forums. Do I have to install something specific? I am puzzled! Is nandroid a method of backing up or the name of a program?
Also, when I backed up using Clockword >> Backup I found its only around 300mb so I assume it doesnt backup your SD content (i.e. pictures and videos + programs) as well? Is there a way to do a FULL image with literally everything?
Any help will be appreciated!
Hi...well backup sounds about right. Don't worry about whether it says nandroid or not. Mind doesn't. Just go ahead and do the backup.
And as for the SD card...well no need to worry there either because the SD contents do not get wiped out anyway, so there's no need for it to be backed up in the sameway.
Hope that helps.
Sent from my Nexus S using XDA App
When I'm looking at the development section, it says that it will "WIPE ALL YOUR DATA". Doesn't this suggest I should also backup my pictures + videos?
Thanks for the help!
The only thing that wipes all your data and sdcard is a fastboot oem unlock, and it sounds like you're already past there. Flashing new roms and choosing "wipe data" in clockwork recovery does not touch your sdcard at all.
It's always a good idea to backup your photos and videos just in case. It only takes a few minutes and better to waste a few minutes than lose a precious irreplaceable video of the kid's first steps.
Nothing should wipe your sdcard other than the fastboot oem unlock, but that doesn't mean it can't be wiped by mistake. I just responded in another thread where the guy accidentally formatted his sdcard. Everything gone.
Better safe than sorry, in my opinion.
haha i agree, will Titanium Pro backup my photos/videos aswell (as you've commented on the other thread) or it just backs up apps ?
co0kie said:
haha i agree, will Titanium Pro backup my photos/videos aswell (as you've commented on the other thread) or it just backs up apps ?
Click to expand...
Click to collapse
It will only backup apps/data on the internal rom space, not on the sdcard; so no, it won't take care of your photos/videos.
Mount the phone via USB, select mount USB storage, then drag and drop the folders with your photos/videos to your computer harddrive.
Camera photos and vids are kept in the /dcim folder if you use stock. Some 3rd party camera apps may put them someplace else.
I usually just make a full copy of the sdcard at one point, then use rsync periodically to keep it current.
distortedloop said:
It will only backup apps/data on the internal rom space, not on the sdcard; so no, it won't take care of your photos/videos.
Mount the phone via USB, select mount USB storage, then drag and drop the folders with your photos/videos to your computer harddrive.
Camera photos and vids are kept in the /dcim folder if you use stock. Some 3rd party camera apps may put them someplace else.
I usually just make a full copy of the sdcard at one point, then use rsync periodically to keep it current.
Click to expand...
Click to collapse
So I guess this is one adv. of keeping apps on internal rom space.
Making a copy of the sdcard and resyncing it periodically sounds like a good idea IMO, what programe do you use to resync the sdcard?
thanks,
co0kie said:
So I guess this is one adv. of keeping apps on internal rom space.
Making a copy of the sdcard and resyncing it periodically sounds like a good idea IMO, what programe do you use to resync the sdcard?
thanks,
Click to expand...
Click to collapse
Titanium will backup apps and data that are on the sdcard if you put them there with the apps2sd feature. It's smart that way. I'm talking about the apps that store settings and stuff (like Titanium itself, Launcher Pro, ADW, the gym log apps I've used, lots of games, etc) that put user data on the sdcard outside of the protected or apps2sd storage area on the sdcard.
I don't use an app for rsync, I just use the rsync command from the terminal on my Mac.
There's a couple of rsync apps on the Market. Someone mentioned using an app to rsync in one of the threads on here not too long ago. Here's an appbrain link to a search on the term rsync, it only shows two apps.
What if I move the app using Gingerbread feature to "move to sd", will it still know to back them up?
/is that what u meant in the beginning by feature of apps2sd? not sure cause there is an actuall program that does this
co0kie said:
What if I move the app using Gingerbread feature to "move to sd", will it still know to back them up?
/is that what u meant in the beginning by feature of apps2sd? not sure cause there is an actuall program that does this
Click to expand...
Click to collapse
Yes, that's what I meant. It also covers just about all of the various apps to the sdcard hacks that various rom makers have implemented over the last year or two; certainly the popular ones like cyanogen and darktremor's versions.
If you get Titanium Pro, pay for the license. It will enable batch restore where all your apps can be restored at once without user intervention, otherwise I believe you have to okay each one individually.
I just bought it and performed a batch back up thank you!
Now, assuming i have already perfomed a backup and now if i move the app2sd, will it know to update it next time?
Then, when i jump to the next ROM, all i have to do is batch restore?
co0kie said:
I just bought it and performed a batch back up thank you!
Now, assuming i have already perfomed a backup and now if i move the app2sd, will it know to update it next time?
Then, when i jump to the next ROM, all i have to do is batch restore?
Click to expand...
Click to collapse
If you move the app to the sd, the restore will put the app back in its location where it was during the backup. Just run a batch backup of all changed applications after moving anything around.
After you flash a new rom, just run a batch restore: apps and data only, usually not a good idea to restore system settings across different roms.

cwm restore

hello guys, i have 1 problem that i was ignoring for too long, anyways, when i use cwm backup, it backups evrything, including sd ext , now when i restore, it restore evrything,
BUUUT , my applications are not working, i mean, they are there, i can see them, they take memory but cant use them, applications from sd ext,
i was using s2e .
as u can see on picture, they are grey, and have some sd mark near them, i am so noob
its pretty urgent, if anyone know what to do say, or i just flash over rom lol, i hate doing nan backup and restore when have a2sd s2e or ungaze (((((
figured that , since my dalvik is on internal and app data on sd ext , my system afther restore doesnt want to mount sd ext partition. what could be problem?
anyone???? formated sd card again, and made new partition again, restored system again , but it wont restore sd ext part, and cant mount sd ext afther i reboot, hwat can cause that problem guys??
Using s2e ??? What Rom are u using??
Sent from my GT-S5670 using xda premium
djozaa said:
anyone???? formated sd card again, and made new partition again, restored system again , but it wont restore sd ext part, and cant mount sd ext afther i reboot, hwat can cause that problem guys??
Click to expand...
Click to collapse
I installed the Cyanogenmod A2SD, before of it I installed the script for him, then I marked Apps are on the SD> Dalvik Cash on SD-EXT> Move in A2SD and when everything is almost A2SD system should I reboot. Then I installed the applications and restore everything works fine.
i am on cm mod ofc, for s2e , just problem is, i keep dalvik on intenral, app on sd ext, when i go nandroid restore, sd ext partition wont mount anymore.
zimis, that is same a2sd as for normal roms?
djozaa said:
zimis, that is same a2sd as for normal roms?
Click to expand...
Click to collapse
I don't know. I use A2SD version 1.0.
I don't get it:
Is there a solution to the problem? Because I just ran into it as well which is pretty annoying because it's my girlfriends phone and guess what: She hates it when I fiddle with it to "make it better" ending up with a dead phone! :/
Question:
What is the solution to restore nandroid backup when using s2e, it get's fully restored w/o errors but after reboot most apps are "gone" even Root is gone. When I try to install an app it says: You replace an app. So thats not working either...
measel said:
I don't get it:
Is there a solution to the problem? Because I just ran into it as well which is pretty annoying because it's my girlfriends phone and guess what: She hates it when I fiddle with it to "make it better" ending up with a dead phone! :/
Question:
What is the solution to restore nandroid backup when using s2e, it get's fully restored w/o errors but after reboot most apps are "gone" even Root is gone. When I try to install an app it says: You replace an app. So thats not working either...
Click to expand...
Click to collapse
What's happening here is that the symlink of the apps is gone.
The files are still present, but the system doesn't recognize them as "apps".
Idk how to solve these when using s2e, but link2sd has an option which allows restoring symlinks.
---------- Post added at 05:39 PM ---------- Previous post was at 05:39 PM ----------
No clue about the root part though.
Did u try s2e patch by pavel...i think that may solve the problem..i hope so..
Sent from my GT-S5670 using xda premium
@a.cid
Since i didn't really find a solution I had to start from scratch and this time I used your great Tutorial about Link2SD a MUCH better solution than S2E.
BUT: I moved nearly everything exept the Holo Launcher to SD and still I only got 50 MB on data. I just don't understand... shouldn't it be nearly 140 MB or so? I did move everything (dalvik as well).
What might be the problem here?
Will it work the next time I'll make a Nandroid backup?
Slightly OT:
My other problem was that I did a mistake by only backing up user app with TB, so I had to get contacts and such from the backup which worked neither with TB nor with AppExtractor so possibly the nandroid was missing the symlinks already. So the long way was to extract files by hand and move it back to the new system. Than I had to start again from scratch because when I moved Swype to System something went so terribly wrong that it threw an error so often, I couldn't do anything to remove files. I tried fixing it by "Fix Permissions" but that made it worse and all the symlinked apps got me errors! It was a terrible long night.
@cosmickamal:
I couldn't because I could neither open s2e nor could I install s2e again because it gave me a "Do you want to replace the existing one?" and I still couldn't fire up s2e.
Well I hope this is fixed.
What I learned:
Do not combine S2E with Nandroid backups and ALWAYS backup EVERYTHING with TB, too. Just in case!
Thanks for your help.
measel said:
@a.cid
Since i didn't really find a solution I had to start from scratch and this time I used your great Tutorial about Link2SD a MUCH better solution than S2E.
BUT: I moved nearly everything exept the Holo Launcher to SD and still I only got 50 MB on data. I just don't understand... shouldn't it be nearly 140 MB or so? I did move everything (dalvik as well).
What might be the problem here?
Will it work the next time I'll make a Nandroid backup?
Click to expand...
Click to collapse
Why do you NEED so mich mem free? Link2sd doesn't move app private data, like for eg, my custom whatsapp has 20mb data which remains inside the data partition consuming space.
I have 30 mb of space left, but I can still install Ingresd oh-so-easily.
Believe me, having 140mb free system resources would be a waste in this case.
More judicious use is the existing setup.
And nandroid works, tried and tested countless times by my own self
Slightly OT:
My other problem was that I did a mistake by only backing up user app with TB, so I had to get contacts and such from the backup which worked neither with TB nor with AppExtractor so possibly the nandroid was missing the symlinks already. So the long way was to extract files by hand and move it back to the new system. Than I had to start again from scratch because when I moved Swype to System something went so terribly wrong that it threw an error so often, I couldn't do anything to remove files. I tried fixing it by "Fix Permissions" but that made it worse and all the symlinked apps got me errors! It was a terrible long night.
@cosmickamal:
I couldn't because I could neither open s2e nor could I install s2e again because it gave me a "Do you want to replace the existing one?" and I still couldn't fire up s2e.
Well I hope this is fixed.
What I learned:
Do not combine S2E with Nandroid backups and ALWAYS backup EVERYTHING with TB, too. Just in case!
Thanks for your help.
Click to expand...
Click to collapse
S2e or most other memory solutions don't mess with your contacts and messages and other system data
I don't need all the memory free but if my girlfriend comes wining in a few days because it is full again - well, I try to avoid that.
And I had like 30 MB free before and that wasn't enough if a view updates were running (dunno why).
Good to know that Nandroid works now. Thank you.

[Q] Not Enough Internal Storage

Hello,
Infuse 4g. I uninstalled Skype (which is apparently a mistake) because when I try and reinstall it, the phone locks up, black screen, and reboots upon install. The Skype app downloads fine, but will not install with out locking up the phone. Sometimes, I get a message which states I have too little of internal storage, which is at .93GB. Does any body have any suggestions for me about how to install Skype?
The phone is rooted and I have titanium backup, which I tried to reinstall that way to, same problem, the phone locks up.
Any ideas about how to get more internal storage.
Thanks
Charles
Hmm try cleaning your /data partition or going to ics
Sent from my SAMSUNG-SGH-I997 using xda premium
Use tibu to move some apps to sd card?
Sent from my SGH-I997 using xda premium
Check threads about what you can safely remove
I use TiBu and remove youtube, maps, voice apps, news apps, and other crap. I typically try to keep 90 to 100 mb free.
Do a search for things you can safely remove.
Do a tibu backup before removing. If something goes wrong you can easily reinstall it.
well, Ive removed alot of stuff I dont use, but internal storage remains at .91 GB? This is a major drag, not having Skype really sucks. What's odd, is I used to have Skype on the phone, I uninstalled it thinking it would be no big deal to reinstall it...but it will not install. Skype downloads fine, but upon installation, it will lock up the phone everytime and I must reboot. Any help is greatly appreciated!
Thanks
Thanks GoSooners, but you lost me. How do I clean my data partition?
GUZZLR said:
Thanks GoSooners, but you lost me. How do I clean my data partition?
Click to expand...
Click to collapse
Well you can wipe your data partition but it'll uninstall your apps and undo anything you've done with your phone. Just move some large apps to sd card. You can do that by going into settings. You shouldn't see that message unless you have less than about 200-300 mb.
I am more than satisfied with the internal storage...
I dont install much apps, just essentials, it also helps when changing roms because u dont have to install all of them everytime...
dogg409 said:
I use TiBu and remove youtube, maps, voice apps, news apps, and other crap. I typically try to keep 90 to 100 mb free.
Do a search for things you can safely remove.
Do a tibu backup before removing. If something goes wrong you can easily reinstall it.
Click to expand...
Click to collapse
unrelated that's all on the system partition which is read only and doesn't need free space..
the free space error is a market problem and unrelated to the actual free space. some kernels have a patch for this. i dont really remember the details for fixing it manually but gtg used to have a modified market and a init.d script that fixed it but that was on an old version of the market.
if you can get a current version of the apk you can side load it with a file explorer by either clicking it and letting the install program run or by moving it to /data/app with a root file explorer.
between 1+gb data partition for apps and app data and the apps2sd feature in android and 14gb internal sd storage you shouldn't have storage issues. even if you fill the sd with rom .zips and multimedia you should still never reach the 1gb /data partition because android apps simply arent that big with the exception of a few high end games that i beleive actually install to the sdcard
.93gb is a ton of space for phone apps! but is that the internal sd or the /data partition
Thanks Dani897. If I read you correctly, you believe it's a problem with the app, and not the phone? Which is what I always thought. When I first got the phone, Skype installed fine, now it does not.
Phone Info:
Samsung I-997 Infuse, rooted
Version: Froyo
Go Launcher
Internal SD Card Storage = 8.12 GB available
External SD Card Storage = 6.8 GB available
Internal Phone Storage = .92 GB
Maybe if I could somehow get an old version of Skype, maybe that would work?

[Q] Problem loading widget

Problem: Widgets wont load after every reboot. Message: Problem loading widget appears in places where widgets should be.
I can recreate widgets, though. But appwidgets.xml file size is changing every time after reboot, from 1,25 kb to 250 bytes. I have tried everything which I could find online: manual backup and restore of original xml file, titanium backup, even nandroid restore, nothing helps.
I am using launcher pro plus (as system app), sd-ext and swap partitions. All apps with widgets are on internal memory.
Obviously, problem is in appwidgets.xml file size change. Why is this happening, how to solve this?
This is driving me crazy...
Do all apps with widgets have to be on internal memory, even though their widgets are not active in the moment?
I have apps with widgets which are linked to sd ext via link2sd.
When I pull out SD card, all widgets are loading properly.
if u use app move app installed to SD card move widgets,widgets will error.
I have finally found out what was the problem. It is moving dalvik cache to sd ext partition via a2sdgui. I think that the same is with linking dalvik cache files to sd-ext via link2sd, but am not sure.
User dalvik cache has to be on internal memory, whilst system dalvik may be integrated into ROM (and therefore moved to rom partition) via titanium backup (no problem with that). Now i have plenty of free space in /data (I have also moved majority of user app files and app data via TB to sd card).
Widgets are now loading as they should.
Hope someone will find this useful.
@condandatcang
Thank you for answering, but I figured it out long time ago.

[SOLVED] Link2SD - Lost my apps - How do I restore ?

SOLVED - I just reinstalled all the APK, automatically linking them on the SD card. The data was still on the EXT4 partition, so everything was found by the apps.
--------------
Hi,
Link2SD was working really nice, until randomly, I kept getting errors saying it cannot links the apps...
So I've fulled backed up my EXT4 partition on my computer (Just drag and dropped the folders. Not sure if this was correct), powered off the phone, reformetted the EXT4 partition with GParted, copied the files back in with Linux, put the SD card back in the phone, power it ON;
But now, Link2SD does not detect the apps that I've copied back on the card - although it can link the apps again.
The apps that were restored simply doesn't appear anywhere (But are on the partition).
Is there any way I can restore the full EXT4 backup I've took ?
GameX2 said:
SOLVED - I just reinstalled all the APK, automatically linking them on the SD card. The data was still on the EXT4 partition, so everything was found by the apps..
Click to expand...
Click to collapse
Your solution didn't work for me because it just gave an error whenever I tried to reinstall one of the previously linked apps. Likely because of the excess files leftover from the original because it would let me install new apps but not the missing ones. I tried to delete some files manually for an app or two, but that didn't work either. I found an easy solution though that works.
SOLUTION:
Just open Link2SD. Click the top left corner for the menu. Then click on "Clean up the 2nd partition". When I did it said it needed to delete 104 unused files, so I said ok. Afterwards, actually all but 2(out of 32) of my apps were restored with data automatically and those two I just restored from Titanium Backup.
NOTE FOR ANYONE TRYING THIS:
If it's still not working after that, then just try to reboot and see if they reappear. If you do lose some apps, at least you can reinstall or restore them from a backup after that. Again I only lost 2, but the other 30 missing linked apps were restored.

Categories

Resources