yashsingh1/xdaforums huggingface dataset:
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
It should improve multitasking performance on any 1.88 Based ROM. It would prolly work on just about any ROM base but TBH but I have only tried it on the 1.88 base.

I have also included an "Undo" zip to replace the .sh file with an original untouched file straight from the stock ROM. You may want to back yours up manually. The file is located in /system/etc/.

You may want to check with your favorite ROM Dev to ensure this mod will not over write any tweaks they have placed in the ROM. This will work on any CleanROM 3.x version.

Needless to say this mod will not make your phone handle 1,000 apps simultaneously but it will allow Android to handle the memory as it would on any other phone without any modifications from HTC.

Hit Thanks!

-Scott
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
Reserved.
[AT&T, Rogers HTC One X, Telstra One XL] sbryan12144:
Good job bud. Keep up the good work :)
[AT&T, Rogers HTC One X, Telstra One XL] dkirchik:
I can switch from XDA, angry birds, strike fleet omega, and Facebook. Without any of them needing to reload. So dude you're my hero!!
[AT&T, Rogers HTC One X, Telstra One XL] the_scotsman:
I've never really had a problem with the multitasking performance up to now, but will flash this anyway as I know it's been causing others problems.

Nice find :good:
[AT&T, Rogers HTC One X, Telstra One XL] ChongoDroid:
Now we can just post this thread link in a semi rude manner when someone compares the GS3 multitasking to the HTC one X multitasking lol

Sent from my HTC One X
[AT&T, Rogers HTC One X, Telstra One XL] thedauntlessone:
You might want to hold on that. The mod improves the multitasking functionality by a bit, but not significantly.

Previously, before this mod, only the last used app will be cached in memory at most. With this mod, I can cache more apps in memory (depends on the apps opened and cached). So far, once the app is 4th place and beyond, the memory is immediately cleared. I'm using it with Kobra rom, but I look forward to Scott's new update to see if multitasking will be improved significantly. I'll be testing it more in the afternoon when I have more time.

Still very useful if you're flipping back and forth between 2 apps and a big thanks like Scott for making for making this mod.
[AT&T, Rogers HTC One X, Telstra One XL] ChongoDroid:
I can cache more then that,

Edit I opened a lot of apps and most of them can be cached, the only apps that didn't stay in memory were Facebook and Instagram and that's only because they were coded that way(I think)

Facebook is different because if I cache on news feed it'll redraw but when viewing a picture it'll remain frozen in time.

This mod is fo weal fo weal

Sent from my HTC One X
[AT&T, Rogers HTC One X, Telstra One XL] ChongoDroid:
My record was 5, 6 if you count lbe privacy guard.

System panel, Netflix, Facebook, Twitter, and of course.. xda premium :P

Edit: sorry to keep spamming your thread Scott but I just wanted to say that this mod plus cleanRom dev edition.. is pure win. All the function I really want from sense and not a lick more (maybe that's why my apps cache lol). Plus I don't have to add all my usual favorite tweaks (gradient, themes, etc) all I add to this is the hd YouTube and a little tinkering with cpueditor and I'm cooking bacon.

Beer will be heading your way in short time in the form of a PayPal notification, thank you sir

Tldr= it's awesome

Sent from my HTC One X
[AT&T, Rogers HTC One X, Telstra One XL] thedauntlessone:
Video or it didn't happen.
[AT&T, Rogers HTC One X, Telstra One XL] leletyM3:
I ll give it a try! Thanks
[AT&T, Rogers HTC One X, Telstra One XL] neocryte:
Thank you Scott, will try this with CleanROM tonight!
[AT&T, Rogers HTC One X, Telstra One XL] slippers67:
Thanks for the mod! I actually edited the sh file on cleanrom 2.6 se and it's working great (didn't want to flash your zip in case the script file from 1.88 is different than the one in 1.85).

Multitasking is noticeably better.
[AT&T, Rogers HTC One X, Telstra One XL] patstock11:
Interested to hear from more people on how well the phone runs with this. I was under the impression that sense is a resource hog and robs ram to run smooth. Allocating more to apps, affected at all ?
[AT&T, Rogers HTC One X, Telstra One XL] craig0r:
I haven't noticed any difference at all in the Modaco ROM. I'll probably jump back to CleanROM when 3.1 is out to compare.
[AT&T, Rogers HTC One X, Telstra One XL] godfirst:
I'm able so far to cache 4 and then the 5th gets cleared.
[AT&T, Rogers HTC One X, Telstra One XL] mattpannella:
ok so this works awesome

multitasking is actually useful now

even if it's only 3 or 4 apps, that makes a world of difference from how it was
[AT&T, Rogers HTC One X, Telstra One XL] craig0r:
UPDATE: After applying this mod, I then reduced my "minfree" values to 20/22/24MB, and the multitasking is pretty amazing now.
[AT&T, Rogers HTC One X, Telstra One XL] saketh91:
can i install this mod in miui v4?.I think it is based on 1.73
[AT&T, Rogers HTC One X, Telstra One XL] kleeman7:
Does this have any noticeable effects to battery?
[AT&T, Rogers HTC One X, Telstra One XL] godfirst:
Not from what I see so far, it might even have made it better:cool:
[AT&T, Rogers HTC One X, Telstra One XL] godfirst:
If it's based on 1.73 then i don't know,OP has only tested it on 1.88, but he said it's possible, I'm on cleanRom lite edition which is based off of 1.88.
[AT&T, Rogers HTC One X, Telstra One XL] slippers67:
You can simply edit init.qcom.post_boot.sh in system/etc yourself on a 1.73 rom if you're afraid the file is different than 1.88. Just remove all the lines listed in the original post (not just the highlighted red line). Obviously do a nandroid backup and make a copy of the original init.qcom.post_boot.sh before doing this, just to be safe.
[AT&T, Rogers HTC One X, Telstra One XL] buddy17:
To the people saying the memory only goes back 4-5 apps.....to me, that seems like a good balance between battery life and usability. 2-3 apps is the max i ever notice myself needing to be cached, so the extra 1-2 is a good safety factor.

I will give this a go for the rest of the afternoon and see how things work on SE.
[AT&T, Rogers HTC One X, Telstra One XL] kleeman7:
But in theory allowing android to control memory instead of HTC make make the phone snappier.
[AT&T, Rogers HTC One X, Telstra One XL] Itaintrite:
scrosler, is this the same as mod3 that you posted in Dev ROM thread?
[AT&T, Rogers HTC One X, Telstra One XL] Dx9:
so just flash the zip in CWM? Thats it? Im on Clean Rom 3.0 Standard
[AT&T, Rogers HTC One X, Telstra One XL] godfirst:
Correct
[AT&T, Rogers HTC One X, Telstra One XL] bradleyG:
Has anybody tried this on CM9 yet? I'm on Alpha 4 and want to try it but I'm unsure if there will be any negative effects, I don't know what CM9 is based off of.
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
Depends on the app. Everything is relative. If you have an app that uses a terabyte of RAM then you will have less free RAM and other apps will close. If you have 10 apps that use .025 Kilobytes each then you can run 50 of them.

Relative to the hardware and apps being used. But the fact that you can go from 1 to 4/5/6 apps is 400% / 500% / 600% increase in multitasking performance. Thats not significant?

What would you consider significant?

You need to remember that it only has a gig of RAM. The SGS3 has 2 Gigs.

I prolly would not.

Yep

I prolly would not. CM9 is custom built source.

-Scott
[AT&T, Rogers HTC One X, Telstra One XL] thedauntlessone:
It wasn't a knock on your hard work, but I couldn't get my phone to cache apps further than the last 2 apps. If it's allowing people to cache 4+ last used apps, then that is significant. Maybe it's not working well with Kobra 1.2, which is why I'm looking forward to your new rom.
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
I was just going to say the same thing...

I wonder if he has tweaks that over ride the default settings? I have not used his ROM so I cant say. Like I said in the OP double check with him and ask him if it over rides default settings in his ROM.

Edit: And I know you weren't knocking but I was trying to illustrate a point... Everyone's results will ALWAYS be different. I could give 5 people an identical ROM and get 5 different reports of battery life, ranging from great to terrible. Everyone uses there phone differently.
[AT&T, Rogers HTC One X, Telstra One XL] thedauntlessone:
He has superchargerV6 which is supposedly a memory management tweak. Maybe that thing is overriding your mod, but that's for another thread.

Thanks for the mod. Seeing people with great results, I'm definitely going to try your rom with the mod tonight.

EDIT:

I went ahead and reinstalled Kobra 1.2 without superchargerV6 and so far the script is working flawlessly.
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
Oh, I see. Yeah, thats prolly the issue.

If that script changes any memory management then it destroys the intent of my patch.

Once again, I dont know. I have never used any Supercharger scripts on my phone.
[AT&T, Rogers HTC One X, Telstra One XL] ChongoDroid:
Test it yourself or I don't care,

Even on cobra 1.0 with sense I could multitask at least 4 apps. But then again I've been applying my own tweaks since day one so who knows what my actual parameters are.

As Scott said it is really up to the size of the app and how it was coded. After testing this even more I can confidently say I can multitask way more then my original estimate.

Sent from my HTC One X
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
Yep, like you said that I said... Its realtive to the apps and usage.

Alls this does is remove the HTC limitations and lets Android do its thing.
[AT&T, Rogers HTC One X, Telstra One XL] ChongoDroid:
Man, so far I can't get it to close lol!

Closed everything (400mb available) then it went Netflix> Gmail> beyond pod> play store> YouTube> drop box> n64oid> Google drive. Still had 199mb left, I need more apps to test this. Lol

I need to download some more graphic intensive games to really test this, will report back later. So far it's the bees knees Scott!

Sent from my HTC One X
[AT&T, Rogers HTC One X, Telstra One XL] supercluver:
Would this be okay to flash on CleanROM 2.6 SE? I haven't updated to 3.0 yet as my phone is just working flawlessly (besides the mediocre multitasking) and if this would work then I'd be just SO HAPPY. Thanks-
[AT&T, Rogers HTC One X, Telstra One XL] Silellak:
Flashed this on CleanROM DE 2.3, even though it's 1.85-based, because I'm just crazy like that.

Things seem good so far. Multitasked between 4 lighter apps (Boid Beta, Facebook, Google+, ICS Stock Browser) and didn't see much reloading. This could just be because it's a fresh boot, so I'll see how it works in a day or two.

Oh, and I have Apex Launcher, WidgetLocker, and Tasker locked in at all times to avoid any of them refreshing, so the multitasking is on top of these other always-active processes.

Thanks for this, Scott! :good:
[AT&T, Rogers HTC One X, Telstra One XL] rdxhd:
What ROM are you using that you have 400mb available? I barely get to 300mb
[AT&T, Rogers HTC One X, Telstra One XL] ChongoDroid:
I'm on clean Rom dev edition, I've deleted a couple apps but it's about as clean as it gets. (Hell up until a few days ago tts was considered bloat.. jk ;)

Ps I don't suggest using the "close all" function in the task manager on the regular. Only when testing multitasking lol

Sent from my HTC One X
[AT&T, Rogers HTC One X, Telstra One XL] loneBoat:
Nice! How do you lock Widgetlocker into memory? I know Apex has a setting, but I cannot find a similar setting in WL.

Thanks!
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
Wow. Thats pretty good.

Yeah, its pretty much the same file between 1.85 and 1.88
[AT&T, Rogers HTC One X, Telstra One XL] patstock11:
Bout to flash this. Still can't figure out why HTC would implement tasking Luke this. When it's so easily improved/fixed
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
Im sure they have reasons... But I dont understand them. On the same note keep in mind stock ROMS come with a lot more bloat than a custom ROM so take that bloat out and in proper memory control... And you have a better performing ROM.
[AT&T, Rogers HTC One X, Telstra One XL] Silellak:
It's kind of hidden, so I can see why you might've missed it.

Go to WidgetLocker Settings -> Advanced -> Show Notification Icon.

This will put a WidgetLocker icon in the notification bar, which should keep the OS from killing to to free up memory. Hope that helps!
[AT&T, Rogers HTC One X, Telstra One XL] iElvis:
Some people have suggested it's to give preference to Sense ... but that doesn't make much sense (heh) since the Sense launcher was continuing restarting before I replaced it with Nova. :confused:
[AT&T, Rogers HTC One X, Telstra One XL] FZ1Darren:
This worked great on rooted, unlocked stock 1.85 ROM . Thanks so much.
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
Cool.

When I get more time I will look the variations between the two if there even are any and update the OP.
[AT&T, Rogers HTC One X, Telstra One XL] G-Bus:
Amazing work sir... I have installed it and right away noticed that when I go back all apps are there and don't reload. For me, it's more than enough!

Hopefully it doesn't affect the battery life. I will report back if it does..
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
When I tested this Mod, both on my Site and the CleanROM DE Thread people reported no adverse action to battery... YMMV though.
[AT&T, Rogers HTC One X, Telstra One XL] G-Bus:
Even better then!
[AT&T, Rogers HTC One X, Telstra One XL] Dx9:
Say I'm in the browser and just hit the home button to close out. I come back after 20 min and click on the browser and the page then reloads. Guess there is still some kinda time limit before it totally kills it?
[AT&T, Rogers HTC One X, Telstra One XL] godfirst:
I think it's helped increase the battery life a tad more.
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
Maybe the browser itself shuts down? Is this the HTC Browser you sepeak of?

Could be lots of things. What did you do with the phone while the browser was dormant?

Thats what a few of the testers said but I dont honestly understand how???
[AT&T, Rogers HTC One X, Telstra One XL] slippers67:
I'm not experiencing this. If I have a page loaded, hit home, and come back 30 mins later, then start the HTC browser again, the page is still there. This is with me doing nothing but the occasional phone call or text.
[AT&T, Rogers HTC One X, Telstra One XL] godfirst:
I think it just depends on how much cache the app is using at the time
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
Yeah, like i said... Everyone will get differnt results on this.

For me, The Google Play store stays on the same app so when I am browsing and testing i dont have to start all over each time I go back to the Play store. That to me is the most important feature. :D
[AT&T, Rogers HTC One X, Telstra One XL] malox23:
Great job, works like a charm!
[AT&T, Rogers HTC One X, Telstra One XL] InobleI:
I just laughed. But thanks a lot man. Good work, keep it up
[AT&T, Rogers HTC One X, Telstra One XL] pantmunu:
Has anyone tried this on cyanogenmod ..
[AT&T, Rogers HTC One X, Telstra One XL] aznrice2k4:
Just flashed this on CleanRom 3.1.1 dev edition. Let's see how this bad boy performs.
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
No. I would really urge against that. This is for Sense based ROMS.
[AT&T, Rogers HTC One X, Telstra One XL] pantmunu:
Thanks.
[AT&T, Rogers HTC One X, Telstra One XL] brandontrout:
Running this on Cleanrom 3.0 SE. Runs great, huge improvement over HTC's junk. Thanks!
[AT&T, Rogers HTC One X, Telstra One XL] Calkulin:
Just an FYI, all your doing is reverting to the settings that the kernel has, so instead of having

7746,9720,11694,13742,15715,24709

that the script has, your reverting to

7746,9720,11694,13742,15715,19589

which is what the kernel has, so your only really changing how the os handles apps that have been given a oom_adj value of 12, the rest are still handled the same way. If you really want to make a major difference, then I would suggest you change the adj and minfree values to match other 1GB phones.
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
Actually I did and saw quite less the improvement. I used the ones that "mike1986." had in his "Android Revolution ROM" and it seemed not to help much. I was going to see how my Rezound was set up but was pretty happy with this and the night seemed to wan on...

Didint look at any other ROMS. Any suggestions?

Right now the lower number is exceedingly effective but I would like to hear what you think would be better.

Thanks!
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
Oh and any thoughts as to why HTC would over ride there own kernel settings? Seems silly?
[AT&T, Rogers HTC One X, Telstra One XL] Calkulin:
For some 1GB phones(including my Galaxy S2) and tablets, I have seen these values

adj - 0,1,2,4,7,15

minfree - 8192,10240,12288,14336,16384,20480
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
Would that not be a tighter restriction? or am I misunderstanding the values?
[AT&T, Rogers HTC One X, Telstra One XL] Calkulin:
Silly yes but if you look at that script, there are a lot of settings for multiple phones(chipsets), so my guess is that they are using it to make sure all the phones perform the same, no matter what kernel you are using
[AT&T, Rogers HTC One X, Telstra One XL] rdxhd:
So the MOD is working well for me. I do have 1 question. I can have up to 4 apps without seeing any reloading. However, once I open a 5th app they start to reload even when I have 140-120 mb left of memory. What gives? The apps that I am using are stock browser, Play store, Gmail, Gtalk and pulse.

Thanks for the great work!!
[AT&T, Rogers HTC One X, Telstra One XL] Calkulin:
Yes, I just copied the wrong text, my mistake since I was in a rush :o but to convert those number to Mb's, then just multiply by 4 and divide by 1024

7746,9720,11694,13742,15715,24709

=

30.25,37.97,45.68,53.68,61.38,96.52

The first one is usually foreground apps and last is empty apps(background apps are somewhere in the middle). So in stock form, once memory reachs below 96.52, the OS will start to kill what it calls empty apps and proceed in order trying to recovery memory but if it reaches below 30.25, foreground apps could be killed also. So reducing those values will help to alleviate some of the aggressive memory management that HTC introduced but I'm sure they have also tweaked other memory related things in the framework, so it probably doesn't stop there.

Just for reference, I use this for my phone

adj - 0,1,2,4,7,15

minfree - 2048,3072,4096,6144,7168,20480
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
Awsome!! I will mod this up this tonight so people can give it a shot! (Or they can manully edit the values)

Appreciate the input!

-Scott
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
Ok, I posted version 2 in the Op with Calkulin's recommended settings.

Big thanks to him for educating me on the stock values! Hit his thanks button a couple posts up!

Give her hell!

-Scott
[AT&T, Rogers HTC One X, Telstra One XL] aznrice2k4:
Is this flashable on the latest Cleanrom 3.1?
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
Yep, pretty much any CleanROM version will take any of the mods in the OP. Pretty much any ROM period but it may conflict with other tweaks in the ROM. Check with your ROM Dev.
[AT&T, Rogers HTC One X, Telstra One XL] jklitten:
Should we run undo.zip before upgrading? I assume not because it just seems to be replacing some lines of text, but I just want to double check.
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
From the OP..
[AT&T, Rogers HTC One X, Telstra One XL] sassafras_:
Scrosler,

Which is which? Is 'Elite' the One X and 'Ville' the One S?

sassafras
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
Not sure what Ville is. But yes, the One X is Elite
[AT&T, Rogers HTC One X, Telstra One XL] rdxhd:
Thanks for the new mod. I am a little confused by the new minfree values. I thought lower values would be better since the system wouldn't kill apps until a lower memory had been reached. Your new values range from 8 to 80 mb this seems counter intuitive. I would have thought we would have go for lower value ranges. Could you explain a little bit? Anyway, thanks for the great work!!
[AT&T, Rogers HTC One X, Telstra One XL] loneBoat:
Wait - I thought 3.1 had this included?? :confused:
[AT&T, Rogers HTC One X, Telstra One XL] rdxhd:
It does but he release a new version 2.0 of the mod that you can flash separetly.
[AT&T, Rogers HTC One X, Telstra One XL] loneBoat:
EDIT nevermind
[AT&T, Rogers HTC One X, Telstra One XL] maybewehitamoose:
Ville is the One S, the One X is Evita in the US and Endeavo(u)r internationally. I haven't seen it referred to as the Elite.

Edit: did some poking around, and I found an article referring to AT&T's device as the "HTC Elite" when they were calling the international model the "HTC Edge".
[AT&T, Rogers HTC One X, Telstra One XL] :
V2 seems to be working better for me.

Thanks Scott ;)

Sent from my Nocturnalized Beast
[AT&T, Rogers HTC One X, Telstra One XL] iElvis:
Whoa, this is definitely an improvement.

I could get 2-3 apps running without an issue on v1, but Facebook would always refresh even if one other was open. Now, I can run two others and it's still where I left it.

HTC management must be smoking something--why would they gimp their flagship phone to such a degree?
[AT&T, Rogers HTC One X, Telstra One XL] patstock11:
I've been asking the exact same question. It's bizarre. If I had to take a guess, they are protecting sense at any n all costs
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
The new values are less than half the original

Original: 7746,9720,11694,13742,15715,24709

New: 2048,3072,4096,6144,7168,20480
[AT&T, Rogers HTC One X, Telstra One XL] iElvis:
I think now that these settings might be a tad too aggressive. My phone has frozen up twice today, both times when something memory-intensive was going on. The first time it unfroze after about a minute, the second time I had to hard reboot.

The first time it happened, I was playing music over bluetooth while doing some mail and browsing, the second time I was updating apps.

Also showing some wicked battery drain. Check out attached--drop is where I had to reboot.

Is flashing the v1 version over this going to cause any issues or should I reflash the full CR3.1?
[AT&T, Rogers HTC One X, Telstra One XL] ComposMentis:
In your image it's clear an app in the background is keeping your phone awake even when the screen is off. Do you have WiFi set to best performance? I have v2 installed and my phone is sleeping properly.
[AT&T, Rogers HTC One X, Telstra One XL] Scott:
Flashing version 1 over top of version 2 would be fine.

Not so sure that the memory mods would cause that though... I mean, that seems really bad.

How did the ROM perform before this setting adjustments?

I made an alternet set of tweaks but with OC to be tested on another ROM and no one has reported this.

Quite Strange.
[AT&T, Rogers HTC One X, Telstra One XL] iElvis:
Yeah, that's a different issue I've been having. Haven't figured it out yet, because it seems to come and go.

---------- Post added at 02:08 PM ---------- Previous post was at 02:07 PM ----------

Other than these two episodes, it's been just fine. I decided to stick with v2 for now and see if it keeps happening.

I've probably got too many apps installed lol, I'm going to clear out some unnecessary ones and see if that makes a difference.