Related
Given the recent hoopla in the blogosphere about how iOS places higher priority on User Interface actions than Android. I was wondering what ideas can be implemented in current Android or Linux kernels to get better UI response.
Overclocking or upgrading to a faster phone is the brute force way, a smarter way would be to give higher priority to user input instead of benchmark/multitasking score numbers. I think it makes sense to give the User input highest priority because in computation timeframes, user input is rare, and considering how important smoothness affects overall perception & enjoyment of a device, it's a good idea to allow other OS background tasks to take a backseat when the User wants to do something.
I'll start the discussion with two ideas I've implemented in a kernel recently that has shown improvements in UI response.
1. Switched to using SIO (Simple IO) scheduler (similar, but slightly lower benchmarks than Noop). Main difference is SIO prevents the system from hogging resources when large amounts of data needs to be read/written. It has a timeout so UI threads has a chance to run also.
2. Switched the touchscreen driver interrupt service request from using the general events workqueue (schedule_work()) to a dedicated workqueue (queue_work()). Touchscreen generated actions get to ride in the fast lane.
Any other ideas people have?
How bout some NSA IN THAT KERNEL
via Dan swagger
Usefull links, that clear things out:
https://plus.google.com/100838276097451809262/posts/VDkV9XaJRGS
https://plus.google.com/105051985738280261832/posts/XAZ4CeVP6DC
http://blog.crazybob.org/2011/12/truth-about-android-ios-ui-performance.html
the thing is i may be using a note but when using ICS with apps that are updated for ICS, i feel its smooth enough. the real difference is i think ios uses completely different method for scrolling i.e. the bounce function and slight delay in finger recognition. same with ios touch recognition, it just somehow is better no doubt.
btw when i was miui with bounce it definitely felt smoother but although it wasnt ios smooth.
Sent from my Galaxy Note using XDA App
The main difference between ios and android is the fact they use ram in two totally different ways. Ios handles ram in a manner to make the user interface smooth as possible all the time while android frees ram to make multitasking better. The problem that android has is changing the way android handles ram to make the interface smoother for the user. They wont be able to for a long time because they have to do a total overhaul on the whole dalvik cache type setup that android uses.
Sent from my Incredible 2 using Tapatalk
i recently started using supercharger v6 which messes around with the ram and how it should be allocated for desired operations. I don't know if it's relevant but do you think it makes a difference and which setting would get you a better scrolling experience?
I liked the supercharger when I used the Droid Eris but since I've upgraded I get more redraws than without it. I used the 768hp I think.
Sent from my Incredible 2 using Tapatalk
you could edit the ramdisk to set more of a priority to rosie.apk or whatever launcher you use...just a thought
That would be the same as locking home in memory.
Sent from my Incredible 2 using Tapatalk
shad0wboss said:
i recently started using supercharger v6 which messes around with the ram and how it should be allocated for desired operations. I don't know if it's relevant but do you think it makes a difference and which setting would get you a better scrolling experience?
Click to expand...
Click to collapse
There are a number of issues that contribute to a "sluggish experience". The supercharger v6 script mainly keeps more memory free so that switching to new apps cuts down on the garbage cleanup of older apps. One of the downsides I've noticed with more aggressive lowmemkiller settings is a lot of apps get killed in the background when they need to stay for when users want to multitask.
The hardware acceleration route has downsides too from what I've heard, it requires more RAM per app just to have it enabled.
One of the articles posted earlier has good insight. Mainly because a lot of apps share a general events queue, and developers should not have a lot of blocking code in there, but developers make mistakes. The tools available for Android to develop and tweak UI performance seems lacking at this point.
How about SIGSTOPping everything else when you touch?
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to General
does it work with samsung i9000?
Supercharger?
Sent from my Sabotaged Droid Incredible 2.
I find that either turning off cpufreq (by using the Performance governor) or increasing the lower frequency makes things a bit more snappy. For most governors, there's a delay between CPU load and the frequency being increased. This delay is usually noticeable if the CPU load is due to me working with the interface. By increasing the min frequency to, say 800mhz on a Nexus S, this makes things a lot more snappy than the default setting of 200mhz.
Another thing that helps with the smoothness (at least for me, in ICS) is the setting that forces GPU acceleration for all apps. For example, apps these days (well twitter and Facebook) have that pull down to refresh widget from iOS. Without forcing GPU acceleration, the rotating arrow animation usually hitches quite a bit, but is smoothed out with this setting on. This setting can be found in the developer options in the settings.
Hope these help,
- chris
Turning up the min CPU can cause freezes on some peoples phone though and using the performance governor can drain the battery quick. The reason the CPU scales up the way it does before it gets to max frequency is to save battery.
Sent from my Sabotaged Droid Incredible 2.
System tuner pro has alot of tweaking options that on memory use
those that use launcher pro can find a memory usage setting in launcher pro to.
disconnecktie said:
Turning up the min CPU can cause freezes on some peoples phone though and using the performance governor can drain the battery quick. The reason the CPU scales up the way it does before it gets to max frequency is to save battery.
Sent from my Sabotaged Droid Incredible 2.
Click to expand...
Click to collapse
Agreed, but the whole point here was to help improve UI responsiveness. Without rearchitecting the OS, a good way is to allow the CPU (which is busy sharing its resources with non-UI work) to react more quickly is to ensure the CPU is at a higher clock rate before the UI needs it.
As for battery life, it really depends on your usage pattern. If you have a lot of background processing going on, preventing the CPU from going to sleep when idle, you may be better off scaling back the minimum cpufreq frequently. If your CPU actually goes to sleep, give scaling things up a try. A handy tool you can use to see how often the CPU is sleeping is CPU Spy. To see which apps are keeping the CPU awake, there's a program called Better Battery Stats available on XDA and market.
As for stability, I don't mean over clocking the CPU...all I'm suggesting is to increase the frequency the CPU goes to when the screen is on, but nothing much is happening. This should still keep things within safe limits.
Hope this helps,
- chris
I find the interactive governor does a very good job of ramping to max right from idle (instead of waiting even a few ms like ondemand does). It assumes coming out of idle the CPU is starved. Then scales back once demand lowers. No fancy locking to min freq when screen is off (which can stutter some background apps).
There is many thing what can be done in the code of the applications. For example once I had a really sluggish app. It turned out that while I was dragging an item in the UI, the UI needed to be relayouted, and the draw calls were simply postponed: in android (at least that was the case before ICS) the drawing of the UI is delayed while the UI thread is too busy with events and layout requests.
To find these issues it's really useful to use traceview.
[GUIDE][ICS][JB] Make CyanogenMod Faster & Smoother + Battery Tips [NEW ULTRA MOD]
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Make CyanogenMod Faster & Smoother
These Tips may or may not make a difference for you. Some of which you may know and some you may not. This has just been tested by me. I definitely recommend trying this once before you decide reverting back to CyanogenMod 9 or Stock or any other ROM.
Legends :-
☆☆☆ - Excellent Tip
☆☆ - Great Tip
☆ - Good Tip
Tips & Tricks
Increase RAM using Swapper2 [ULTIMATE MOD] ☆☆☆
This mod is for those with Ram < 500. If your phone has greater ram, you don't require this. For all those who complain about lag, here's the ULTIMATE FIX for it. No more lagging, play HD games WITHOUT lag.
Follow this amazing guide and give your phone the ULTIMATE POWER.
Increase RAM using Swap File and Swap Partition
Download Link For MiniTool Partition Wizard : Download
Regarding the above guide:
- Maximum for 3rd Partition is 1024MB ie. 1GB. So in 1st Partition, choose maximum partition size leaving only 1024MB so you don't waste any space.
- If you are not interested in App2SD, don't create 2nd Partition
Proper Installation Process ☆
Many of you face different bugs and issues due to improper installation. Follow the steps given on the ROM's thread.
Remove Unwanted System Apps ☆☆
The more apps you have on your phone, less free RAM available. Get rid of those stock apps which you rarely or do not use.If you want to save the app, use something like AppManager, Titanium Backup to archive the apps you want to keep around to SD card. Or just redownload them when you need them. Go into Settings > Apps and figure out which apps you want on your phone and which ones you want to remove. For removing Stock Apps, use Root Explorer or any other file explorer, go into data/sys-parts/app and delete unwanted apps. Reboot your phone after making any changes.
Some useless Stock Apps:
CMWallpapers
SpareParts
VoiceDialer
Live Wallpapers : MagicSmokeWallpapers
LatinIME - If you use a different keyboard than stock.
CMFileManager - If you use a different file explorer
Stk
Term - If you don't need a Terminal Emulator
Trebuchet - If you're on a low end device, trebuchet is no good for you.
Video Editor
Replacement:
Google Keyboard
Swype
Solid Explorer
ES Explorer
Root Explorer
Nova Launcher
Apex Launcher
Use Static Wallpaper ☆☆☆
Live wallpapers use much more memory of your phone than a static wallpaper. Even a simple Live Wallpaper will take 2 MB or so of memory. Complicated ones may take up to 20MB. And the live wallpaper will run in background ALL THE TIME taking much of your phone's memory. Live wallpaper even consume your phone's battery. So use a static wallpaper instead.
Don't have any great static wallpaper to chose from? See This Amazing Collection Of WallpapersOccasionally Kill Apps Running In Background ☆☆
Everyone loves multitasking and switching from one app to another. But when you multitask, apps run in background and consume battery and take up major part of your memory. This can make your phone a little slow and laggy. Occasionally kill the apps running in background to free up some RAM.Tweaking Performance Settings ☆☆☆
CPU Governor, Minimum CPU Frequency, Maximum CPU Frequency
To make your phone faster and smoother, tweaking above settings play an important role.
You can select "Allow Purging Of Assets" in Memory Management to allow freeing of more RAM when required.
Remember, Increasing CPU Frequency Can Effect Your Battery Life.Tweaking With Developer Options ☆☆
For experiencing quickness as well as smoothness, change: 1. Window Animation Scale 2. Transition Animation Scale 3. Animator Duration Scale. By default they are set to "1x". Change it to "0.5x". This will make transitions and animations on your phone much faster and make you feel that your phone is super fast.
You can even select "Don't Keep Activities" to kill every activity running as soon as you close it.Restrict Your Home Screens ☆
People tend to have more than 3 homescreens and place a lot of widgets. More widgets you have, more lag you experience on your homescreen. This may not be true for some devices like Galaxy S3, but it does effect low end devices. Try to remove unwanted widgets from your homescreen and have least no. of homescreen possible, preferably 3 or less. This did effect my phone and my phone became much smoother than ever. Try this and if you don't notice any difference, you can always change your homescreen. Tweaking Build.prop ☆☆☆
You can add tweaks to your build.prop to make CM10 more fluid and smoother. Following are the details about the tweak:
For more information, visit this thread : HereProject Butter Enhancer ☆☆
With this you can Make Your Phone 5x Smoother & Faster
For more information, visit this thread : Here------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
MORE TIPS & TRICKS TO BE ADDED!
It took me a lot of time to compile this guide for you people. You can return the favor by pressing the "Thanks" Button. That Easy!
3rd Party Apps That Can
Make CyanogenMod Faster
1. Fast Reboot
Quickly "reboot" your phone to free up memory! Simulates a reboot by closing/restarting all core and user processes and thus frees up memory. Your phone should be much snappier after using Fast Reboot. DOES NOT ACTUALLY REBOOT YOUR PHONE, only the apps & processes.
2. App Cache Cleaner
One Tap to clean all cached files for getting more avalable space. This tool can free a lot of storage memory for your phone. Free phone internal momeory, Get more internal rom storage. It is an app which is crucial to anyone who has memory management issues.
2. RAM Manager Pro
★Balance - Option which makes your RAM to the best optimization, this option is for everyday using. Use this option when you want to have fast phone without lags.
★Balance (More free memory) - This option is nearly the same as Balance, but this option should be advantageous for users who have more RAM than 512 MB. This option gives you more free memory but a bit reduces multitasking.
★Balance (More multitasking) - This option is nearly the same as Balance, but this option should be advantageous for users who have less RAM than 512 MB. This option gives you more multitasking, but a bit reduces free memory.
★Hard gaming - Option which stabilizes your RAM for playing hardest games. Use this option for games which lag on your phone. Your games will run smooth without lags.
★Hard gaming (Less aggressive) - This option is similar to Hard gaming but should be better for devices with RAM lesser than 512MB.
★Hard multitasking - Option for users which are really hard working on their phones. You can have a lot of running apps and quickly switch between them without lags.
More ...
Battery Saving Tips
Many users feel that the battery life on their ROM is not very good. First of all never judge a ROM's battery life on the very first day you flash it. Following are some Tips for increasing your battery life - a little maybe.
1. Adjust Your Battery
As stated above, don't judge a ROM's battery life on the very first day you flash it. Adjust your battery! Let your battery drain to 5% and then charge it till 100%. Repeat this 3-4 times and your battery should get adjusted.
2. Don't Use Any Task Killer
There are many threads on XDA stating why you shouldn't use a task killer. Go find them and read them.
Many people think that "Task Killers" actually increase their battery life and free up some RAM. This is not true. Here is why:
Android Forums said:
* Android is hard coded to automatically kill a task when more memory is needed.
* Android is hard coded to automatically kill a task when it’s done doing what it needs to do.
* Android is hard coded to automatically kill a task when you haven’t returned to it in a long time.
* Most services (while possibly running in the background) use very little memory when not actively doing something.
* A content provider is only doing something when there is a notification for it to give. Otherwise it uses very little memory.
* Killing a process when it isn’t ready only causes it to have to reload itself and start from scratch when it’s needed again.
* Because a task is likely running in the background for a reason, killing it will only cause it to re-spawn as soon as the activity that was using it looks for it again. And it will just have to start over again.
* Killing certain processes can have undesirable side effects. Not receiving text messages, alarms not going off, and force closes just to name a few.
* The only true way to prevent something from running at all on your phone would be to uninstall the .apk.
* Most applications will exit themselves if you get out of it by hitting “back” until it closes rather than hitting the “home” button. But even with hitting home, Android will eventually kill it once it’s been in the background for a while.
Click to expand...
Click to collapse
3. Use WatchDog Instead Of A Task Killer
WatchDog is a Task Killer but a little different. Watchdog monitors your apps and alerts when one loses control, allowing you to kill just that single app. You don't need a task killer but a way to make sure a background app doesn't lose control and eat up all your CPU.
PlayStore Link
4. Other Tips
- Use Wifi as much as possible
- Turn off Bluetooth if not in use
- Turn off GPS if you don't need it. Google Now checks your GPS frequently
- Turn off NFC if you don't use it
- Turn off Google photos sync in Gallery if you don't use it
- Uncheck any services you don't need synced for your Google account (Settings > Accounts & Sync > select your Google account).
- Uncheck Dial pad touch tones, Touch sounds, Screen lock sound, Vibrate on touch
- Adjust individual app refresh data intervals to the max that is acceptable for you
- Underclocking (If your kernel supports)
- AOKP Powersaver feature
- Solid black wallpaper (The more black in your wallpaper, the better)
- Inverted Gapps - The more the black is used the better
Hey, what the difference between ICS and JB? Cant you list it all? And when it comes to stock cm9 and cm10 which is smoother? CM9 is lag for me.
marshygeek said:
Hey, what the difference between ICS and JB? Cant you list it all? And when it comes to stock cm9 and cm10 which is smoother? CM9 is lag for me.
Click to expand...
Click to collapse
Here you'll be able to see some main differences between ICS and Jellybean.
As for which one is better between CM9 & CM10, you'll have to try them both. For me CM10 is much smoother and faster even when its in Alpha. Go ahead , try them and see which one works for you !
Thanks for the informative post.
IMHO Dsp manager is definitely not useless. If I don't enable bass boost on it then I really can't hear any bass. Btw not problem with headphones. What I mean to say is without dsp manager and bass boost you will not get any bass :banghead:
Sent from my GT-I9003 using xda app-developers app
i ll try for this weekend
cool...i ll try in evening...:laugh:
Can u also give tips to save battery life !!
Plz i will appriciate if u tell me this !!
simratcs said:
Can u also give tips to save battery life !!
Plz i will appriciate if u tell me this !!
Click to expand...
Click to collapse
I'll be including that soon!
Fully tweaked build .prop DOWNLOAD
Touch tweaks
tweaked download speed increase
tweaked ril signals and 3g speed
deep sleep tweaked
power saver tweaks
touch response tweaks
scrolling tweaks
wifi tweaks
increase photo video quality tweaks
faster video streaming tweaks
Vasishta Reddy said:
Fully tweaked build .prop DOWNLOAD
Touch tweaks
tweaked download speed increase
tweaked ril signals and 3g speed
deep sleep tweaked
power saver tweaks
touch response tweaks
scrolling tweaks
wifi tweaks
increase photo video quality tweaks
faster video streaming tweaks
Click to expand...
Click to collapse
\
do i have to replace exisiting one???
cauz if i do this my phone doesnt boots up ??
help!!
simratcs said:
\
do i have to replace exisiting one???
cauz if i do this my phone doesnt boots up ??
help!!
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1876605
found this in the forum but i don't know if it applies. you can try if you have a backup.
i have no idea on how to apply this build.prop, still learning but i think it's just about replacing it after backing up.
please enlighten me too thanks.
Vasishta Reddy said:
Fully tweaked build .prop DOWNLOAD
Touch tweaks
tweaked download speed increase
tweaked ril signals and 3g speed
deep sleep tweaked
power saver tweaks
touch response tweaks
scrolling tweaks
wifi tweaks
increase photo video quality tweaks
faster video streaming tweaks
Click to expand...
Click to collapse
cheeyeen said:
http://forum.xda-developers.com/showthread.php?t=1876605
found this in the forum but i don't know if it applies. you can try if you have a backup.
i have no idea on how to apply this build.prop, still learning but i think it's just about replacing it after backing up.
please enlighten me too thanks.
Click to expand...
Click to collapse
i got it after replacing the existing build.prop
just change the permissions to rw-r-r
thats it
simratcs said:
\
do i have to replace exisiting one???
cauz if i do this my phone doesnt boots up ??
help!!
Click to expand...
Click to collapse
Delete the existing one and paste the new one. But before deleting , take a nandroid backup or save the existing file on your phone
TopDroid said:
Delete the existing one and paste the new one. But before deleting , take a nandroid backup or save the existing file on your phone
Click to expand...
Click to collapse
I did this
just permissions needed to be changed to rw-r-r
that it
now it booted up !!
simratcs said:
i got it after replacing the existing build.prop
just change the permissions to rw-r-r
thats it
Click to expand...
Click to collapse
Just did it and it worked. Thanks. Hopefully the tweaks can give a better experience :good:
tested it,tweaks working fine !!
but hey the wifi tweak not working for me,,
optaining ip address-saved network
like this seriously ****s me up !!
simratcs said:
tested it,tweaks working fine !!
but hey the wifi tweak not working for me,,
optaining ip address-saved network
like this seriously ****s me up !!
Click to expand...
Click to collapse
Delete the network n try adding again
Sent from my GT-I9003 using xda app-developers app
Vasishta Reddy said:
Fully tweaked build .prop DOWNLOAD
Touch tweaks
tweaked download speed increase
tweaked ril signals and 3g speed
deep sleep tweaked
power saver tweaks
touch response tweaks
scrolling tweaks
wifi tweaks
increase photo video quality tweaks
faster video streaming tweaks
Click to expand...
Click to collapse
Installed, Not noticing any changes so far with video/photo quality.
Don't know about 3G speeds.
I know, many people here want to have Android 4.x.x on their phones, but unfortunately, because of low-end processor as well as less RAM, these CM10/CM10.1 ROMs are laggy and slow. I am also one of them, but, after using these type of roms since 4 months, I have now got a perfect idea of using them. So, I am sharing the way I use these roms. Many people told that this also helps for CM7 users. So, now I have declared this thread as UNIVERSAL PERFORMANCE THREAD. This method can be used on - Stock | CM7/9/10/10.1.
NOTE : This method is same for PAC ROMS.. because they are based on CM. So, you can use this on PAC ROMs also.
♦ FINDING STABLE VERSION :
First of all, you will need to find a good stable version of any CM7\CM9\CM10\CM10.1 ROM. Find stable version by asking in general discussion thread of those particular ROM and then download that version. But, do not flash now.. Follow next step.
Note : For CM7 users - Official CM7 is best, but if you want you can try it on custom roms also. If you are using CM7 custom or stock based custom rom, then for scripts n tweaks to work, you must delete all the scripts from init.d so that scripts will not get overridden.
♦ SLIMMING THE ROM :
Slimming means making rom size less by removing unwanted and unnecessary applications from system/app. It reduces system memory use. Here is a chart of cm10.1 apps which are safe to remove - LINK
With reference to that chart you should remove following apps with adding alternatives to them.
Note: Left side apps are to be removed and right side apps are alternatives.
● LatinIME.apk - WP7 Keyboard App
● Browser.apk - Holo Web Browser
● CMFileManager.apk - Root Explorer File Manager
● Trebuchet.apk - Holo Launcher
NOTE: On CM7, default ADW is good, but you can also use Holo Launcher.
Other apps that can be removed without alternatives-
● CalendarProvider.apk - One of the big RAM consuming apps. This app start anytime, you do anything, so it will be a big save of memory removing this app. But, you will get problems with calendar sync..
● GoogleCalendarSyncAdapter.apk - Reomove this only if you do not sync calendar.
● Email.apk - If not in use.
● Gmail.apk - If not in use.
● Talk.apk - If not in use.
● GoogleBackupTransport.apk - It is used in google backups, remove on your own risk. (Not a risk, i always remove it.)
● ChromeBookmarkSyncAdapter - No use.
● HTMLViewer.apk - Never needed.
● UserDictionaryProvider.apk - It is useless without LatinIME.apk.
● VisualizationWallpapers.apk - Wallpapers app. Remove it always.
● CMWallpapers - Remove it always.
● VoiceDialer.apk - Do you really use it?
● LiveWallpapers.apk - Dont you care for your battery?
● QuickSearchBox.apk - If you dont use.
● PicoTTS.apk - Text to speech function.
NOTE: Alternative apps should always be installed in system/app only. For that, I recommend you to remove these apps drectly from rom's zip before flashing.
♦ USE OF SCRIPTS N TWEAKS :
Many people use hard scripts n many tweaks to get good performance. But, it is totally wrong.
Highly recommended to use Activo Speeder. It is the best script for performance. Dont use anyother thing with it- such as ram manager, seeder or anyother script.
(Note: If the above script doesnt work on your device then please find another good script and flash it.)
ALTERNATIVE FOR ACTIVO SPEEDER :
After testing a lot, I found that SuperCharger is the best script which can be used with any ROM to get more performance and for perfect RAM Management. Here are some steps on how to use SuperCharger -
● Here is the original thread for SuperCharger script.
● Script can be downloaded from this download page.
● Download latest script as well as starter package if needed (Read Original Thread).
● Now, for 4.x.x ROMs, you do not need to do anything with services.jar. But, for below 4.x.x, services.jar needs to be patched to get SuperCharger Memory Management working.
● Now, copy script to SDcard and run it with Script Manager as root. For more detailed guide plz prefer the original supercharger thread.
● Now, you are running the script. You will find many options and info on screen. Read it all and choose what you want.
NEW DISCOVERY : SUPERCHARGER + CROSSBREEDER = ULTIMATE PERFORMANCE WITH MAX ENTROPY ! - by Dark Passenger
● LINK FOR THE POST.
Here are some tweaks-
In Build.prop -
●
Code:
ro.ril.disable.power.collapse=0
and change the value from 0 to 1. (Add the line with proper value if does not exist)
This one is for battery saving.
●
Code:
dalvik.vm.heapgrowthlimit=48m
If it already exists then just match the values.
This is a VM Heap management for RAM.
●
Code:
ro.ext4fs = 1
Improves EXT4 performance.
● IMP :
Add following lines below "# Other" in build.prop
Code:
ro.com.google.locationfeatures=0
ro.com.google.networklocation=0
(If exists, just change the values as above).
(Note: This one will remove location feature increasing performance freeing up more RAM. This frees up to 30mb of RAM)
And now remove NetworkLocation.apk from system/app as well as com.android.location.provider.jar from /system/framework.
For further build.prop tweaking, you can use this great guide -> Click Here. Thanks to Dark Passenger for some build.prop tweaks.
This much tweaking and scripting is enough. DONT USE TOO MUCH TWEAKS N SCRIPTS.
♦ BASIC APPS TO USE :
Your rom's performance also depends on the apps which you use. Always look for apps' memory usage and if the app consumes more ram then try to find an alternative app for it. Here are some basic apps which you should use (i always use them).
● Use Root Explorer as file manager, Holo Launcher as Launcher.
● Use Cache Cleaner App. It is must. Clean cache once a day.
● Use Root Cleaner App. A must have app. Do "Quick Cleaning" twice a day. It will regulate your performance.
You can also freeze the apps you are not using at that time, such as DSPManager (Unfreeze it only at the time of listening songs)
Freezing Google Apps will be a great way to reduce RAM consumption.
● Use this amazing app - Autostarts. This app controls the apps that start automatically in your phone. If you want settings which I use then PM me. I will tell you, how to use this app.
CLICK HERE FOR AUTOSTART APP SETTINGS
● ABOUT TASK KILLERS :
Using task killer is good but, it is also bad. Task killing is actually meaningless. Some apps never really get killed. They start again n again. So, use Autostarts instead task killers. But, here is a nice app for killing processes and freeing RAM. This is the original app. I have themed it to look good. Download it here.
Use it as a task killer, press menu button and include system processes and then start killing processes which are useless.
● Try to use apps as system apps.
● If you are using UC Browser then in its settings, check "Clear Data on Exit". If did, you will see UC will take less than 10mb but, if you wont do this, UC will take more than 15mb.
♦ IMPORTANT TIPS AND SETTINGS :
● Always flash rom with a clean wipe and proper flashing method.
● Do not flash gapps again if they are included in the rom.
● Do not flash internal memory scripts as they reduce performance.
● Use Adrenaline Boost. Boost once or twice a day. Boosting much will increase battery consumption.
● Use Root Cleaner app and freeze the apps which you are not using at that time. Freeze Google Play Store, Google Services Framework and other google apps which are always on. Unfreeze them when you want.
● The apps used for Backup purposes should not be installed always. Keep them in your sdcard and install them when you want and uninstall when done with them.
● Basic apps should always be in system/app.
● In Developer Options -
Set all animations scale to .5x
Set Background Process Limit to "Atmost 4 processes", if issues occur then set it back to "Standard Limit".
Enable "Kill App Back Button". Always use this feature to come out of the apps which do not really exit on pressing just back button.
● Do not expect much from our phone as it is not a high-end phone. Dont expect good battery life but, still to gain good battery life. Keep RAM free by using the ProcessKiller app as told above. I always get 170 mb RAM free.
● Do not charge battery until it gets discharged upto 10% or less. While charging do not remove it till it reaches 100% and 20 mins above that.
● Calibrate battery when needed.
● Avoid use of apps which are always running either in background or foreground.
● Press thanks. .
Re: [HOW-TO] Speed Up & Maintain CM9 | CM10 | CM10.1 ROMs
Very good tutorial i came across so far :good:
+1
So true...great thread...
even i used to things unknowingly but now i know what to keep(apps) and vice versa.. great work..:good:
mni ANKIT said:
So true...great thread...
even i used to things unknowingly but now i know what to keep(apps) and vice versa.. great work..:good:
Click to expand...
Click to collapse
Thnx..
Great
very helpful thread. good job
Good tutorial(surprising no one thought of it sooner, yes me Included).
1. small thing
add explanations for all those tweaks(basically what they do)
eg.
ro.ril.disable.power.collapse=0 : claims to put the phone into deeper sleep but according to the code base seems to be undefined and should actually do nothing
pm.sleep_mode=1 : useless cause ICS and above devices this is a kernel parameter that needs to be passed directly to the kernel on boot(thus putting it to build prop doesn't help).
ro.com.google.locationfeatures=0
ro.com.google.networklocation=0
and this just shuts off network locations(for google services).
a good guide to know which leaks are the real thing and which suck(ICS and above only) guide
Dark Passenger said:
Good tutorial(surprising no one thought of it sooner, yes me Included).1. small thingadd explanations for all those tweaks(basically what they do)eg.ro.ril.disable.power.collapse=0 : claims to put the phone into deeper sleep but according to the code base seems to be undefined and should actually do nothingpm.sleep_mode=1 : useless cause ICS and above devices this is a kernel parameter that needs to be passed directly to the kernel on boot(thus putting it to build prop doesn't help).ro.com.google.locationfeatures=0ro.com.google.networklocation=0and this just shuts off network locations(for google services).a good guide to know which teaks are the real thing and which suck(ICS and above only) guide
Click to expand...
Click to collapse
First of all thanks for the info...
actually, for ro.ril.disable.power.collapse=0.. it is default.. but it is written that the value 0 should be changed to 1..
And about pm.sleep_mod.. i will remove that.
The lines -
ro.com.google.locationfeatures=0
ro.com.google.networklocation=0
Remove location features.. i forgot to mention that.. but.. network location is useless for some people and eats about 30mb of ram.. always (in any condition) so.. removing location features by these lines is a good way to manage ram..
Thnx for tht link.. i will include that.
OJ said:
First of all thanks for the info...
actually, for ro.ril.disable.power.collapse=0.. it is default.. but it is written that the value 0 should be changed to 1..
And about pm.sleep_mod.. i will remove that.
The lines -
ro.com.google.locationfeatures=0
ro.com.google.networklocation=0
Remove location features.. i forgot to mention that.. but.. network location is useless for some people and eats about 30mb of ram.. always (in any condition) so.. removing location features by these lines is a good way to manage ram..
Thnx for tht link.. i will include that.
Click to expand...
Click to collapse
agood tweak is to switch this
Code:
dalvik.vm.heapgrowthlimit=32m
to
Code:
dalvik.vm.heapgrowthlimit=48m
(enough for our devices) cause this fixes the vm heap to restrict size to 48m(hence preventing the vm heap from spliting).
source :zeplinox
also
Code:
ro.ext4fs = 1
(suppose to improve ext4 filesystem performance).
also anyone tried to change this
Code:
debug.composition.type=gpu
on cm10.1/aokp 4.2
to
Code:
debug.composition.type=mdp
what happens(I mean does it cause bootloop or not).
Dark Passenger said:
agood tweak is to switch this
Code:
dalvik.vm.heapgrowthlimit=32m
to
Code:
dalvik.vm.heapgrowthlimit=48m
(enough for our devices) cause this fixes the vm heap to restrict size to 48m(hence preventing the vm heap from spliting).source :zeplinoxalso
Code:
ro.ext4fs = 1
(suppose to improve ext4 filesystem performance).also anyone tried to change this
Code:
debug.composition.type=gpu
on cm10.1/aokp 4.2to
Code:
debug.composition.type=mdp
what happens(I mean does it cause bootloop or not).
Click to expand...
Click to collapse
Thank you very much.. will add them all soon.
Activo seeder seems to do nothing for me...xcellent replacement is crossbreeder mod which i use everytime along with ram manager app..
swat4samp said:
Activo seeder seems to do nothing for me...xcellent replacement is crossbreeder mod which i use everytime along with ram manager app..
Click to expand...
Click to collapse
As you think.. it is up to you. I think activo is best. But, do not use both together.. use only one thing at one time.
Hey thanks for your awesome guide, to be honest i am using this guide with CM7.2 and i can feel better memory and battery life.
can you please tell me your auto start up settings, i wanna know exactly which apps to disable.
CoDDeZ said:
Hey thanks for your awesome guide, to be honest i am using this guide with CM7.2 and i can feel better memory and battery life.can you please tell me your auto start up settings, i wanna know exactly which apps to disable.
Click to expand...
Click to collapse
Wait, i will give you them..
EDIT: Here are the settings -
(Apps that should be disabled)
During Startup :
Google Services Framework
After Startup :
Contacts
Gallery
Download Manager
Settings
Google Play Store
DSPManager
Google Play Services (all 3)
Google Services Framework (all 4)
Connectivity Changed :
Download Manager
Google Play Services
Google Services Framework (all 3)
Application Installed :
UC Browser (If you have)
Gallery
Contacts Storage
Google Play Store
Google Services Framework
Pico TTS
Themes Provider
Application Changed :
Gallery
Contacts Storage
Google Play Store
Play - My Library
Application Data Cleared :
Google Play Services
Google Play Services
Application Removed :
Gallery
Contact Storage
Google Play Store
Google Play Services (all 2)
Themes Provider
Application Replaced :
UC Browser ( if you have)
Contacts Storage
Time Changed :
Google Play Services (all 3)
Power Connected :
Google Play Services
Note : If you have any other apps installed then disable the apps from those installed ones which you dont want to get started automatically. It depends on you.
Thanks!
BTW, don't remove UserDictionary.apk, when i did, my keyboard kept crashing and force closing every 2 seconds.
Dunno if this doesn't happen at CM9+
Just for CM7, make sure you don't remove the app i mentioned above.
CoDDeZ said:
Thanks! BTW, don't remove UserDictionary.apk, when i did, my keyboard kept crashing and force closing every 2 seconds.Dunno if this doesn't happen at CM9+Just for CM7, make sure you don't remove the app i mentioned above.
Click to expand...
Click to collapse
No it wont happen if you use wp7 keyboard with it.. it also has an inbuilt dictionary in it.
Actually, UserDictionaryProvider.apk and LatinIME.apk are related with each other.. so of we remove one of them n try to use th remaining one.. we will ovbviously get force close.
LatinIME.apk , according to me, must be removed.. because it is near about 10mb ( more than 5mb in cm7)..
Supercharge-CrossBreeding Guide[2.2+]
Supercharger CrossBreeder Combo:-- Yes This will help provide a boost.(this is an alternate to Activo Speeder,Adrenaline engine+boost)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Q.Now you guys ask me why to use crossbreeder along with supercharger ?
Ans.Crossbreeder is an entropy generator(faster refreshing & movements generation in apps) along with dnsmasq cached dns requests(speeds the net)It does nothing where the ram is concerned(and ram is a scarce resource).Here's where Supercharger comes in the combination of min-frees , and fast engine flush(its like an automated adrenaline boost!)allows for much better user experience.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
you can get the latest supercharger v6 script form here its called beast but is safe tested and assured.
you can get latest crossbreeder here.
erikcas has already patched the service.jar so you don't have to do anything
Note : - the service.jar doesn't need to be patched for 2.3 or 2.2 as the values are written & read from build.prop or local.prop(preference to build.prop).
now lets begin.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Install CrossBreeder in recovery its a flash-able zip.
now for the interesting part cross-breeder has certain parts of supercharger in it.Mainly Kernel Mods(KAK)
so in supercharger I'm sure you know how to use it if no here's a small guide.
Guide
install an app called script manager(available in the play-store).
inside the app your first prompt will have an option of browse as root choose it(gets highlighted as blue)and click OK
now navigate to where the downloaded script is located and click on it.
on the top corner there should be an icon of superuser (skull with cross bones) click it and the n click run
now you are running the script....
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
now I wont help you with each and every aspect here(Its actually very simple if confused ask).
main point is to accept nearly everything when asked
a few exceptions are.
if you have zip align is any other script like int2ext then choose to disable boot align and zip align and only enable fix emissions.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
launcher strength = die-hard
Note :don't lock home in memory.
min-frees Settings this is your ram manager :
The setting are not available for 384mb devices(like us) so after a lot of trial and error I found the best working categorization they are as follows :-
Old Settings:
for people who like to have a smooth lag-free experience in their current app BUT no multitasking choose balanced(512hp) categorized by me as aggressive.(option 6)
for people who like limited multitasking along with a fairly lag-free experience choose Quick v6 cust-OOMizer. Categorized by me as balanced. (option 10).
for people who like a large amount of apps open simultaneously and don't mid as many apps open choose 256hp balanced categorized by me as Multitasking (option 3).
New Settings: (only for people who know what they are doing).
These are custom minfree values that can be entered from option 10(custOOMize) and not enabling minfree calculator values.
they are still experimental.
Code:
8,12,30,36,41,47----Balanced(same as minfree calculator).
8,12,33,39,44,50----Aggressive
8,12,24,30,35,41----Multitasking
a good guide to understand min-free settings and OOM is this
Note : disable zram(comp-cache).
Note : disable lock launcher in memory.
now when prompted for kernel strength choose default(thus no conflict with crossbreeder).
Detailing (helps use it).
for detailing choose every 4th boot.
Fast-Engine Flush
for fast engine flush(its kind of like adrenaline boost hell its the same). choose every 6hrs(its automatic wont even know its there) recommended for gb or froyo roms....still lagging choose every 3hrs or recommended is 6 hrs.
NOTE FOR GAMERS
enable fast engine flush every . hrs this will remove cached apps every 6mins allowing for free ram i.e a fast and generally lagfree experience though i recommend to change back to 6hrs once game finishes.
this should allow for a fast and smooth performance with no loss of life.
Thanks and Happy Flashing.
Dark Passenger said:
Supercharger CrossBreeder Combo:-- Yes This will help provide a boost.(this is an alternate to Activido)you can get the latest supercharger v6 script form here its called beast but is safe tested and assured.you can get latest crossbreeder here.erikcas has already patched the service.jar so you don't have to do anythingnow lets begin.Install CrossBreeder in recovery its a flash-able zip.now for the interesting part crossbreeder has certain parts of supercharger in it.Mainly Kernel Mods(KAK)so in supercharger I'm sure you know how to use it if no heres a small guide.Guide
install an app called script manager(availabe in the playstore).inside the app your first prompt will have an option of browse as root choose it(gets hilighted as blue).and click oknow navigate to where the downloaded script is located and click on it.on the top corner there should be an icon of superuser (skull with cross bones) click it and the n click runnow you are running the script....
now I wont help you with each and every aspect here(Its actually very simple if confused ask).main point is to accept everything when asked(launcher strength die-hard).minfrees according to me the minfrees set by the calculator are a tad bit too high(they tend to kill everything if you dont multitask this is the best).a better alternative is to use the balanced settings from 512hp(should be enough but if you get black screen in apps try multitasking 512hp)now when prompted for kernel strength choose default(thus no conflict with crossbreeder).for detailing choose every 4th boot.for fast engine flush(its explained kind of like adrenaline boost). choose every 6hrs(its automatic wont even know its there)....still lagging choose every 3hrs(very risky).thats about it.this should allow for a fast and smooth performance with no loss of life.also please disable zram. and lock home in memory.Thanks and Happy Flashing.---------- Post added at 09:44 PM ---------- Previous post was at 09:42 PM ----------@OJ sorry for piling onto your thread but its such a small matter so didn't want to make one of my own.So we can have this as a comprehensive guide.
Click to expand...
Click to collapse
Why sorry..??? You are helping me.. then no sorry..
BTW, thanks for this new trick.. i am gonna try this.. and will include it in the guide as an alternative to Activo Speeder..
One more thing, it would be nice if you improve this guide a bit.. so that all people will get it.. thnx..
OJ said:
Why sorry..??? You are helping me.. then no sorry..
BTW, thanks for this new trick.. i am gonna try this.. and will include it in the guide as an alternative to Activo Speeder..
Click to expand...
Click to collapse
Sorry was for using your thread but rather than having multiple threads on the same topic I thought we should have one with multiple methods.
OJ said:
One more thing, it would be nice if you improve this guide a bit.. so that all people will get it.. thnx..
Click to expand...
Click to collapse
how so...? Edited it a bit let me know what else is needed
can you please explain what is the benefit of installing app as a system app instead of normally installing in internal memory
Sent from my GT-S5670 using xda premium
Dark Passenger said:
Sorry was for using your thread but rather than having multiple threads on the same topic I thought we should have one with multiple methods.how so...? Edited it a bit let me know what else is needed
Click to expand...
Click to collapse
Now it is perfect.. i will add it soon..
Hello guys...
.
i use these apps with LeWa_13.06.07 ROM.... it gives better performance.........
the launcher is butter smooth without any lag after flashing the 60 FPS patch... details available in original LeWa thread.....
for better performance use the app " Rom DIY (root) ", available in play store.... disable the apps you don't use, including system apps which cannot be disabled through Task Manger and reboot. you will notice the difference in performance.... before using the app, Temple Run OZ force closes, but after disabling some unwanted system apps, it plays smoothly. I locked some apps to the RAM and even after using cleaner, i got more than 230 MB free RAM. (see the screenshot below)
for more real estate use " resolution change / Density " available in play store.... set the DPI to 180 or 200 and reboot.. (see the screenshot below)
LeWa is a better ROM available for MMX 110, but the Video Call Option and the Chinese fonts in some apps is the draw back here........
While going through the XDA News, I found an interesting article. It has some lines to add to the build.prop that removes the recents lag and also helps ram management. It was for the Note 4, and someone also said it worked on the S6. So I tried it on my S4 I9505 and it also worked Here is the link to the news article.
You Can Optimize Your Note 4’s Recents Menu & RAM
Make sure to read all the article and threads linked in the article before making any changes... you do this by your own choice remember. I nor XDA will be responsible for irresponsible editing or bootloops or your phone falling in love with and iPhone...
Like I said it works on my phone. I can't promise it will work on your phone but make sure to back up your build.prop before making any changes... enjoy
Minumum background apps 8 , maximum 70 . These settings need to be optimised for our phone considering it only has 2 gb ram and not 3 gb. Theres also settings for minimum free ram available i believe , that has to be scaled down as to permit the minimum background apps in ram , else it will contradict and kill them for free ram . Considering the cpus are different , kernel is different with different instructions , they might not even work on S4