Speed up Homescreen and Widget Re-draws - Droid X Android Development

Tired of your widgets redrawing and lagging when you come back to the home launcher? Well then enter this into your data/local.prop file
Code:
ro.home_app_adj=1
Just put that into your /data/local.prop file and then reboot
You should be good to go!

How does this work ?
Does it keep them the widgets and homescreen elements in memory thereby increase memory usagE ?

StDevious said:
How does this work ?
Does it keep them the widgets and homescreen elements in memory thereby increase memory usagE ?
Click to expand...
Click to collapse
Yes it keeps them in memory. However, the X has plenty to spare. No performance issues whatsoever, just a faster redraw.
Its almost like the checkbox in LP that say "Attempt To Force into Memory", only this way actually works.

Is this just for the Blur Home or will it effect things like ADW.Launcher?

thanks bees!

Ubermicro13 said:
Is this just for the Blur Home or will it effect things like ADW.Launcher?
Click to expand...
Click to collapse
AFAIK, It works for every home.

Thanks Beesley! I'll give it a shot.

So after performing this, i checked the local.prop and it appears to have been overwritten upon reboot...

tdrussell said:
So after performing this, i checked the local.prop and it appears to have been overwritten upon reboot...
Click to expand...
Click to collapse
Same on mine I'm on rubiX Focused 1.6.

tdrussell said:
So after performing this, i checked the local.prop and it appears to have been overwritten upon reboot...
Click to expand...
Click to collapse
Happened to me also on Fission 2.1

fantastic! I use it.. in fact, I used bees' other mods for awhile. Love 'em!

I'm running Fab's ApeX ROM and after doing the edit and rebooting the edit is gone. I've tried deleting the backup file prior to rebooting but it still does not stick.

I used text editing the local.prop file with fission rom v2.1.RC2 through root explorer. The setting seems to stay after a reboot. However, I did not notice any improvement at all.

didn't survive reboot
local.prop just went back to how it was before

Related

Open Overclocker (WTF >_>)

I find it strange that this App seems to try to open itself upon startup.....even after I have wiped twice switching ROMs. How is it even on there?
|Spike|
Probably stores information somewhere else on the phone than normal. adb shell your phone and look for it manually
AGx-07_162 said:
I find it strange that this App seems to try to open itself upon startup.....even after I have wiped twice switching ROMs. How is it even on there?
|Spike|
Click to expand...
Click to collapse
Hmm odd.. I wrote that app and I made an activity that starts on startup the normal way... not sure why it would still be there after a wipe... *shrug*
I had a similar issue with another app. No matter how many times I wiped, there it was. I think the Market got "wonky" and was downloading it each time I started up for the first time after a wipe. Almost seemed the market website didn't get notified of the successful download/install and was trying to "finish" the download upon signing back on.
whats the problem? uninstall it if you don't like it. personally, I think its a great application and I use it daily.
What should you keep your settings on with this app, both high and low. Also after applying the numbers do you need to reboot?
AGx-07_162 said:
I find it strange that this App seems to try to open itself upon startup.....even after I have wiped twice switching ROMs. How is it even on there?
|Spike|
Click to expand...
Click to collapse
Seems like a silly question, but do you use apps on SD card.
One of my favorite features of doing that is that I dont actually have to reinstall after wiping, just redo the simlink
Argh! Stupid browser double posting
themyth69 said:
What should you keep your settings on with this app, both high and low. Also after applying the numbers do you need to reboot?
Click to expand...
Click to collapse
That depends on personal preference. I keep mine at 528/528 'cause I like me some speed
EDIT: forgot the second half of your post, you don't need to reboot after applying.
ive never been able to get open over clocker to do ANYTHING, i put values in the box hit apply and nothing happens... reboot... cpu at same speed.... its like the button just does nothing, tried the standalone app and dudecake.9 with it integrated. it hasnt ever caused me any problems and removing it worked fine for me, it just never did much of anything at all for me
are you using the dude's build? he included the app in his builds until this last build
ESKIMOn00b said:
tried the standalone app and dudecake.9 with it integrated.
Click to expand...
Click to collapse
yes i have

Extract home background that was set previously, after original has been deleted

I've got a home background I set about a gazillion years ago, back when I first installed Cyanogen 4.0.1 (yes, *that* old).
I want to upgrade now, and I would like to take my nice background with me, but turns out during one of my more enthusiastic SD card cleanup sessions, I deleted the original JPG.
Does anyone know a way I can extract it from the launcher database (or wherever it gets stashed in Android-land when you set a JPG as your background)?
this might not be helpful, but could you not jus put the .jpg back on ur phone?
djosiah said:
this might not be helpful, but could you not jus put the .jpg back on ur phone?
Click to expand...
Click to collapse
use astro and find the .jpg on your phone. or if you actually pushed it into launcher, just adb pull launcher.apk and then sift through that to find it.
He mentioned that he deleted the jpg off the sdcard long ago, means its not on the phone. I think launcher's db file may contain it, you can back that up and push it on the newer builds. I know it works for restoring the shortcut locations.
BUT in all seriousness, you can upgrade and not wipe and I'm sure the background may stay with you. Cyanogen roms usually keep all the settings as long as you don't wipe.
prash said:
He mentioned that he deleted the jpg off the sdcard long ago, means its not on the phone. I think launcher's db file may contain it, you can back that up and push it on the newer builds. I know it works for restoring the shortcut locations.
BUT in all seriousness, you can upgrade and not wipe and I'm sure the background may stay with you. Cyanogen roms usually keep all the settings as long as you don't wipe.
Click to expand...
Click to collapse
thats true, but if he deleted the file from his sd, he wouldnt be able to still use the jpg as his background. so im thinking like you do, it must be in the launcher db.
palosjr said:
thats true, but if he deleted the file from his sd, he wouldnt be able to still use the jpg as his background. so im thinking like you do, it must be in the launcher db.
Click to expand...
Click to collapse
It'd show up, as current background, but there would be no way to set it again if he changed it without the original.
Sorry in advance to revive this thread but I just realized if you used the app from market called 'Wallpaper Set & Save" it has an option to save the current wallpaper, open it up and select the second option to get your wallpaper back.. This is exactly the solution to your issue.
prash said:
Sorry in advance to revive this thread but I just realized if you used the app from market called 'Wallpaper Set & Save" it has an option to save the current wallpaper, open it up and select the second option to get your wallpaper back.. This is exactly the solution to your issue.
Click to expand...
Click to collapse
I was going to suggest that as soon as I saw the thread title
I often use it when I'm too lazy to pull wallpapers from launcher.apk so I just set them and save them...
prash said:
Sorry in advance to revive this thread but I just realized if you used the app from market called 'Wallpaper Set & Save" it has an option to save the current wallpaper, open it up and select the second option to get your wallpaper back.. This is exactly the solution to your issue.
Click to expand...
Click to collapse
I've had this app save me dozens of times everytime i want to save a wallpaper from a specific update or theme. I think what loccy wants though is the wallpapers provided in the launcher.apk.
Wallpaper Set n Save will save your current wallpaper
http://www.androlib.com/android.application.com-android-wallpapersetandsave-jzt.aspx
I'm always looking for spoon-fed ways to do things....
I was wondering where they are, too. I keep getting the Cyanogen default as default after having flashed and reloaded the Advanced Launcher. I've put some big ones in there, and if those stay, I'm hogging up a lot of space.
Thanks all for the tips!

[QUESTION] Why does the app menu lag with more apps?

When I wiped my ext partition and had maybe 20 default apps on, the app launcher moved like a beast, instant, basically like the godly iphone UI + a discrete adjuster.
However now I'ved restored my 250ish apps/elements it now lags like a mofo. What I want to know is what physically is being limited hardware wise, and is there any way to boost the performance of this memory? I assume it would be between CPU, RAM and GPU, although I dont understand how it could be annoy of those [sorry for my noobishness]:
CPU: Snapdragon, OCed, not exactly CPU intensive anyway
RAM: Have 250MB free, never seems to get 'full' when i quickly tab to the usage
GPU: This is what I guess, but if so why cant we get around this with a less intensive menu setup? Surely all that is happening is we have 20-25 icons + labels floating up and down on a screen? To be honest id prefer literally just that on an instant screen over the 'oo that looks nice.... oh wait it lags like a *****' we have now.
Any comments would be appreciated
MOD EDIT - Moved to Q&A
well, one thing which would probably slow down the launcher is the sd card speed... and considering u've got a helluva lot of apps on ur sd card, it seems like a plausable reason...
Is anyone able to confirm that? Surely though its precached the icons and names somewhere though :/
dogiedogie said:
Is anyone able to confirm that? Surely though its precached the icons and names somewhere though :/
Click to expand...
Click to collapse
if you use CM rom you can go to spare parts and enable "keep launcher in memory" that usually helps a lot
I have Kang, so has a launcher over CM. The setting was enabled, but i dissabled and renabled to see if that was a problem. Possibly did solve a bit of it, but it still takes at least half a second for the menu to catch up with my finger, even including 'touch lag'. The only way you can see what I mean is if you play with an empty phone, its INSTANT.
dogiedogie said:
I have Kang, so has a launcher over CM. The setting was enabled, but i dissabled and renabled to see if that was a problem. Possibly did solve a bit of it, but it still takes at least half a second for the menu to catch up with my finger, even including 'touch lag'. The only way you can see what I mean is if you play with an empty phone, its INSTANT.
Click to expand...
Click to collapse
probably some runaway apps taking a toll on ram and system resources.
i did a major clean up yesterday and my phone is zippier than ever
dogiedogie said:
Is anyone able to confirm that? Surely though its precached the icons and names somewhere though :/
Click to expand...
Click to collapse
You mean the activity/app choice list right? (like when you make a application shortcut, or view installed applications). It does lag when you have a lot of apps. If it does cache the data its definitely short-term, if you try it again after a day its slow the first time.
Lets hope froyo has something to make it faster, systemwide.
britoso said:
You mean the activity/app choice list right? (like when you make a application shortcut, or view installed applications). It does lag when you have a lot of apps. If it does cache the data its definitely short-term, if you try it again after a day its slow the first time.
Lets hope froyo has something to make it faster, systemwide.
Click to expand...
Click to collapse
Sorry, if there is any misunderstanding I am talking about the app menu, where you go to open your apps from the home page.
dogiedogie said:
Sorry, if there is any misunderstanding I am talking about the app menu, where you go to open your apps from the home page.
Click to expand...
Click to collapse
ok, I dont have noticeable lag with my 140 apps. I have a 6 column launcher too
britoso said:
ok, I dont have noticeable lag with my 140 apps. I have a 6 column launcher too
Click to expand...
Click to collapse
I assume the only difference between our phones then is SD card.
I have http://www.amazon.co.uk/gp/product/B001CQT0X4/ref=oss_product
EDIT: http://www.steelbytes.com/?mid=20&cmd=download&pid=1&lang=eng I used that and got a read speed of 3mb/s, could you do the same so we can see if its that?
Cheers.
then is SD card.
I have http://www.amazon.co.uk/gp/product/B001CQT0X4/ref=oss_product
EDIT: http://www.steelbytes.com/?mid=20&cmd=download&pid=1&lang=eng I used that and got a read speed of 3mb/s, could you do the same so we can see if its that?
Cheers.
Click to expand...
Click to collapse
for my Ridata 16GB (class6/6x), tested by mounting and via usb.
Read: 3.1 MB/sec (approx 20x)
britoso said:
for my Ridata 16GB (class6/6x), tested by mounting and via usb.
Read: 3.1 MB/sec (approx 20x)
Click to expand...
Click to collapse
Hmmm :/ So its not my SD card. I just dont understand why it physically lags, when I watch people showcasing some new app etc, their menu is perfectly fluid, even with a similar number of apps.
Anyone have any other ideas?

Launcher Pro issue on G.O.T 2.2.1

I have the G.O.T 2.2.1 installed and CM6 mod on my Milestone. I have removed ADW Launcher and installed Launcher Pro Plus as default home.
Many times when I'm inside an application and hit the Home button in order to get onto the Home default screen...the icons and widgets are not there and it takes 10-15 second for them to appear...It's kinda frustrating and I have to say that I was using the same Settings under the 2.1update1 stock and the launcher worked without these issue...
Does anyone know how to fix this?Thanks!
vladstercr said:
I have the G.O.T 2.2.1 installed and CM6 mod on my Milestone. I have removed ADW Launcher and installed Launcher Pro Plus as default home.
Many times when I'm inside an application and hit the Home button in order to get onto the Home default screen...the icons and widgets are not there and it takes 10-15 second for them to appear...It's kinda frustrating and I have to say that I was using the same Settings under the 2.1update1 stock and the launcher worked without these issue...
Does anyone know how to fix this?Thanks!
Click to expand...
Click to collapse
If you'd search for "lag" "launcher" in Motorola Milestone forums, you would have found this:
If you use ADW or LauncherPro and if after using your browser, email or any other apps for awhile, then if you press the 'HOME' button, if it takes forever to redraw your home screen, and you are sick of that HORRIBLE LAG, then try this: In a terminal,
type su and enter.
Then type echo ro.HOME_APP_ADJ=1 >> /data/local.prop and enter.
Then reboot.
Now evaluate whether or not this fixes your lag.
If you want to undo what this command does, simply remove that toggle from: /data/ local.prop
Click to expand...
Click to collapse
It should help.
greglord said:
If you'd search for "lag" "launcher" in Motorola Milestone forums, you would have found this:
It should help.
Click to expand...
Click to collapse
Thanks. I already tried this. I always search before asking.
Doesnt fix the issue for me...Still having the same lag! Any other ideas?
vladstercr said:
Thanks. I already tried this. I always search before asking.
Doesnt fix the issue for me...Still having the same lag! Any other ideas?
Click to expand...
Click to collapse
I have also tried every fix I could: Disabling Window Animations, the ro.HOME_APP_ADJ hack, low memory profiles for LauncherPro, but it ultimately boils down to the fact that the Milestone/Droid's RAM is the issue, as I've actually had this very same issue affect ADW launcher as well, and I'm sure it would creep up on other Homescreen replacements too
GOT 2.2.1 might make the issue worse because they might have baked in some things that take up a lot of memory, and when android reaches a point where it needs to kill stuff, it forces the widgets out of memory.
There's apparently a complete re-write of LauncherPro coming in the next few months, but even then I'm not sure it will be much help.
vladstercr said:
Thanks. I already tried this. I always search before asking.
Doesnt fix the issue for me...Still having the same lag! Any other ideas?
L.E.
Fixed: For those that are having this issue... Just disable "Keep in memory" from Launcher PRO "General Settings" and it will work just fine
Click to expand...
Click to collapse
I have tried this, and it eventually comes back.
This issue doesn't want to go away easily
darklipslide said:
I have tried this, and it eventually comes back.
This issue doesn't want to go away easily
Click to expand...
Click to collapse
Yes...As you can see I have deleted my "Later Edit" because after a reboot...the problem came back...
I'm having the same issue with watching live stream in the browser and some flash contents...It plays for a while...then it closes the browser...
I guess these things will be fixed when the final version of FROYO for our Milestone will be released...
Until then...maybe somebody is wise enough to help us! Thanks!
darklipslide said:
...I've actually had this very same issue affect ADW launcher as well...
Click to expand...
Click to collapse
try enabling in adw settings>system preferences>system persistent. If you enable this Android will take some another witness for his killing process.

[Q] Problem with ADW Launcher in CM7 RC4.1

Hi all,
I have a question while enjoying my Milestone to the max, thanks to CM7!
Since RC4 I have a problem with ADW Launcher after booting the device.
First it seems like there's a delay connecting to the SD card, because the icons of apps installed on SD don't show up on my homescreen. Instead a stock or native icon is visible.
Then the homescreen goes black for a few seconds and reloads completely. The icons of apps on SD still don't show, and my weather widget says it can't connect.
After a little while a message pops up, saying that "activity ADW Launcher in process android.process.acore doesn't respond". I can choose to close ADW Launcher or wait. In both cases all loads well after making one of those choises, it doesn't matter which one.
Since I suspected some kind of delay affecting the SD card and Internet connection, I expected this to be (partially) solved in RC4.1 according to this release note: "fix: kernel modules sometimes installed too late (sd-ext not mounted, overclock not applied)". But unfortunately in my case it isn't.
I already have tried disabling Sense previews and Wallpaper Hack in ADWLauncer settings, but that didn't help. Am I the only one with this problem or does it sound familiar? In that case, what can be done?
Thanks a lot,
Gerard
The Netherlands
the problem of the launcher crashing is sumthin everyone faces .. n it does slow the phone down as well .. ask a techie if u can remove adw launcer and install another launcer cuz ther has to b a launcher faster than adw ..
Okay, but I can't imagine this behaviour occurring on every device at the moment?
on most devices u c this prob .. tht is wher stock rom is better and snappier ..
in rc4 sumtimes the power control widgets in the notification bar also disappear .. its werid ..
twixyz said:
Okay, but I can't imagine this behaviour occurring on every device at the moment?
Click to expand...
Click to collapse
Not on supercharged phones. No launcher redraws. Ever.
Plus, gingerbread packed with apps feels as light and fast as stock froyo with nothing installed on it.
You should try it.
zeppelinrox said:
Not on supercharged phones. No launcher redraws. Ever.
Plus, gingerbread packed with apps feels as light and fast as stock froyo with nothing installed on it.
You should try it.
Click to expand...
Click to collapse
I sure will. In fact, I wanted to supercharge my Milestone since I read the topic, but I'm still struggling through the loads of information trying to figure out what I need and need not to do. Once I created a step-by-step instruction, I'm good to go.
Maybe you can help me to make me see the big picture. From what I understand, I need an app like AMM and one of your scripts. In the app I can modify the minfree settings. The script takes care of loading these settings on every boot. Is this correct? If so, can you please tell me which files I need for the first 2 steps? I don't need extra apps like GScript and Busybox so far, do I? Trying to start off simple...
Any additional instructions are welcome!
Thanks a lot,
Gerard
The Netherlands
Go Launcher Ex... was the solution of all my launcher problems...
Good Luck!
twixyz said:
I sure will. In fact, I wanted to supercharge my Milestone since I read the topic, but I'm still struggling through the loads of information trying to figure out what I need and need not to do. Once I created a step-by-step instruction, I'm good to go.
Maybe you can help me to make me see the big picture. From what I understand, I need an app like AMM and one of your scripts. In the app I can modify the minfree settings. The script takes care of loading these settings on every boot. Is this correct? If so, can you please tell me which files I need for the first 2 steps? I don't need extra apps like GScript and Busybox so far, do I? Trying to start off simple...
Any additional instructions are welcome!
Thanks a lot,
Gerard
The Netherlands
Click to expand...
Click to collapse
Latest and greatest... http://forum.xda-developers.com/showpost.php?p=12883386&postcount=379
Yes all the steps are in the Gscript section.
You don't need AMM or AKMO but I use AMM just for diagnosing and poking around to see how everything is working.
All you gotta do is install busybox and gscript as per instructions in the Gscript section.
Hi all, and especially Zeppelinrox,
Since CM7 RC4 my launcher hardly ever gets NOT redrawn/reloaded. Very annoying. I've tried every setting and combinations of settings with no luck. So I've decided to step into the deep and give Superlaunch and Bulletproof a go. I'm still not sure if I understand the whole package though, so I'd like to verify whether or not I did the right thing.
I've just installed Gscript and in there I activated from script v5: balanced, status and the Bulletproof launcher. I unchecked the "keep launcher in memory" setting. Then I rebooted.
Now I'm gonna do some tests, but was this procedure correct and complete? And does this stick after a reboot? If not, how can I make it stick for both Superlaunch and Bulletproof? I assume I don't have to manually execute these scripts after rebooting every time?
I'll report my findings later today. Thanks in advance!
Regards,
Gerard
The Netherlands
Yes it all sounds correct and the settings will persist after reboot.
However, by default the launcher is not bulletproof you can run that script separately if tou still get redraws.
V6 has Hard To Kill Launcher which is as strong as it can be without bulletproofing - much stronger than lock home in memory.
With V6, bulletproofing should not be necessary at all while allowing games to be played.
But it is still an option for those that don't play games.
Sent from my Milestone using Tapatalk
Well, I can tell you this: it's awesome! I've been poking around for hours now, and never had a single redraw. My Milestone runs smoother than ever. Fan-tas-tic!
I just don't understand the AMM readings. It always shows it's own mild settings, but shouldn't it display the script values?
Thanks a lot!
Gerard
Which script did you apply?
AMM is stupid that way lol
Just be sure SuperUser give no permissions to AMM
AKMO will show the current minfree values when you run it though - just disable it's apply settings at boot option - or don't give superuser permission.
I applied Balanced3 from gscript-Custom_ROMS_SuperCharge+BulletProof_Pack_v5.zip (10.7 KB, 461 views)
In SuperUser permissions for AMM are denied.
So AMM doesn't read the current values at all and I'm OK? Guess I'll have to calculate the values myself from the show status script then, or is there an easier (preferable newbie) way to verify if all settings are correct?
Now we're at it, later today I'm gonna install the CM7 update. I know I'll have to recalibrate the battery after that, but do I have to run these scripts again too?
Thanks again!
Gerard
Ya I'd like to figure out a way to do the calculation with the script.
I haven't been able too get to far on that as of yet.
I mentioned in my prvious post - you can quickly check with AKMO - Autokiller Memory Optimizer - just disable the apply on boot option.
There is also Minfree Manager.
Yep, run the scripts again after flashing a rom
I just installed AKMO and it displays the scripts values flawlessly!
Don't know what AMM did, but apparently it kept on changing the values to very strange numbers after a reboot. I can't remember them, but the 3rd one was 256 (1). I'm sure it had no root permissions though. But now AMM is gone, all loads well after rebooting according to AKMO.
It makes all the difference in the world, I can tell you that. My Milestone runs like a complete new device. So smooth, fast and stable. I can recommend it to everyone!
I have just one more question. What script is best suitable for running big map apps, like Google Earth? It's lagging, freezing and closing with the standard minfree settings. The Balanced3 script makes it better, but can it improve even more?
Thanks again and again and...
Gerard
I dunno.
That's a big app
Maybe you can overclock it more LOL
btw... I DID IT... I got the script to convert pages to mb... woohoo
I'm already at 1000 Mhz, can't seem to get it running at 1100 or higher though, cause it keeps rebooting from the M logo. But maybe there's potential for a script handling "big apps" ;-)
Anyway, congrats on your progress with the scripts! I wonder why devs haven't implemented this in their ROM's yet.
Now it's time to move on to my next project: an ext-partition. I read so much about it. Still no idea about the advantages though, so I'll start by figuring that out first.
Thanks for all your help and good luck with your work!
Gerard
twixyz said:
I'm already at 1000 Mhz, can't seem to get it running at 1100 or higher though, cause it keeps rebooting from the M logo. But maybe there's potential for a script handling "big apps" ;-)
Anyway, congrats on your progress with the scripts! I wonder why devs haven't implemented this in their ROM's yet.
Now it's time to move on to my next project: an ext-partition. I read so much about it. Still no idea about the advantages though, so I'll start by figuring that out first.
Thanks for all your help and good luck with your work!
Gerard
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=10994672&postcount=226
Use that and only do the steps to create the ext2 partition. Then after that, reboot CM7 and you should have all of your apps on your ext2 partition, thus making your phone a bit faster(less internal memory used) and the potential for a TON of more apps installed on your phone, depending on the size of your ext2 partition.
Really! You just saved me a lot of reading, thanks!
So after I created the ext2 partition through my PC, rebooting the device handles moving my apps? No reinstalling, no manual uninstalling from internal memory? But how about apps without apps2sd option, will they be unaffected? Or does ext2 simulate internal memory, so all apps can be installed there? If so, will apps from the Market then automatically be installed on ext2, with or without apps2sd?
Sounds great!
Thanks in advance,
Gerard
twixyz said:
Really! You just saved me a lot of reading, thanks!
So after I created the ext2 partition through my PC, rebooting the device handles moving my apps? No reinstalling, no manual uninstalling from internal memory? But how about apps without apps2sd option, will they be unaffected? Or does ext2 simulate internal memory, so all apps can be installed there? If so, will apps from the Market then automatically be installed on ext2, with or without apps2sd?
Sounds great!
Thanks in advance,
Gerard
Click to expand...
Click to collapse
All you should have to do is reboot and the reboot might take longer than usual as CM7 would be transferring all your apps to the ext2 partition. All apps that are installed afterwards are installed on your ext2 partition.
Sent from my Milestone using XDA Premium App

Categories

Resources