yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] AdamJuva:
Hi,

it is strange, because I have used default value for Secondary Service which affects widget or service app, because this value is very sensitive and I was very carefully on it. Try reinstall Beautiful widgets and other widgets which don't work for you. I can't give you other advice, because I use some widgets, too (for example Fancy widget, system widget, NHL widget and more) and I don't have problem with it. If reinstalling will not help you, so try to download some application which has option for changing LMK settings and reduce value for Secondary Service.

Reinstall Google Maps, this script doesn't cause FC.
[Android Software/Hacking General [Developers Only]] zico_newbie:
can it work on another devices? so can check it on another devices? may be check on terminal?
[Android Software/Hacking General [Developers Only]] qlifee:
Now it's fine.. thanks a million. :D
[Android Software/Hacking General [Developers Only]] brainmaster:
Anyone else experiencing this problem? If yes, wouldn't it be easier to adjust the values in the script?

I can do it myself, just tell me what to adjust.

Thank you for your help.
[Android Software/Hacking General [Developers Only]] VicXxX:
Installed on Samsung GT-i5801. Running well so far. I will report over time how it affects the over all working.
[Android Software/Hacking General [Developers Only]] rweitsz:
Script on AmeriCanAndroid

Installed it on my HD2 Running AmeriCanAndroid. Seems smoother and noticed no issues. Can send SMS as well.

Thanks
[Android Software/Hacking General [Developers Only]] kylon:
can this work with wildfire?
[Android Software/Hacking General [Developers Only]] fla.sh:
Hey, it's works great on Samsung Galaxy Ace!

Thanks, +1 for you :D
[Android Software/Hacking General [Developers Only]] neotoky:
Can anyone help?
[Android Software/Hacking General [Developers Only]] solnt:
I'm using TP2 + FRX07 build. I cann't find init.d anywhere using Root explorer, that's mean this build doesn't support init.d, isn't it?

:(
[Android Software/Hacking General [Developers Only]] evohack99:
Flash to evo. Running cm7 how do I check lmk cm values?
[Android Software/Hacking General [Developers Only]] orsonbear:
LG Optimus One (P500): success!

This script runs fine on my P500 with Franco Kernel 16.1 & Void.#Froyo-final.

I have removed from /etc/init.d the "33minfreehandler" file to avoid conflicts with the new script.

Thanks!
[Android Software/Hacking General [Developers Only]] nickriley:
Diky! Flashed on my HD2, looks good till now..
[Android Software/Hacking General [Developers Only]] jonathan.strunk:
I'm running Synergy on my EVO and added the script out of the OP zip to my init.d folder and it seems to be running great. Synergy already ran smooth but I've definitely noticed apps opening and closing faster. This is great! Thanks!
[Android Software/Hacking General [Developers Only]] jitin02:
Seems to b running smooth on my dell streak stock rom . But little fast battery drain
[Android Software/Hacking General [Developers Only]] HyBReDM:
My battery is being destroyed ever since I installed this on the Droid Incredible. Any ideas on how to fix or uninstall?
[Android Software/Hacking General [Developers Only]] gtdor:
just a little answer pls
[Android Software/Hacking General [Developers Only]] evohack99:
Iwould also like to know
[Android Software/Hacking General [Developers Only]] calyxim:
Minimalistic text weather stopped working for me too. Beautiful widgets is fine so far.

I tried reinstalling minimalistic text but no joy...
[Android Software/Hacking General [Developers Only]] genderblurr:
Before I flash this can I with amon with miui + tiamat 3.3.7-sbc

Edit: I also use chainfire 3d driver

Sent from Raiden the EVO w/ MIUI.
[Android Software/Hacking General [Developers Only]] Majin101:
i tried doin this on my htc hero, how do i know if it worked? I checked for the swap # it's all 0 0 0
[Android Software/Hacking General [Developers Only]] frickinjerms:
well i tried my suggestion and it is kickin rad :) i have an extra 20mb on ram left with normal usage and things dont hiccup anymore... synergy rc2 on le evo 4gggg
[Android Software/Hacking General [Developers Only]] tlxxxsracer:
Will this work on Miui 1.7.15 using savagedZen 2.2.1?

I think you really should make a reset/uninstall script for those who flash through CWM
[Android Software/Hacking General [Developers Only]] zakoo2:
just installed it on my MotoDefy running CM7, seems to be working great so far :)
[Android Software/Hacking General [Developers Only]] voodooboy3000:
Thanks this has made miui xj much snappier
[Android Software/Hacking General [Developers Only]] AragornPE:
Hi, I own a Milestone 2 and it does support init.d through Argen2Stone cooked ROM. But the files inside /system/etc/init.d/ doesn't have a "S" in front of their names, it's just 99complete, 07zipalign and such. Does this work on my M2? And do I have to place the file with the S or just the name?

Thanks!
[Android Software/Hacking General [Developers Only]] genderblurr:
Sent from Raiden the EVO w/ MIUI via the XDA app.
[Android Software/Hacking General [Developers Only]] tlxxxsracer:
forgot to add an important detail. Im using an Evo 4g :p
[Android Software/Hacking General [Developers Only]] doc_v15:
Apply via Recovery

Is there any way to apply this script via recovery?? pleaseee

Using samsung galaxy spica GT i5700
[Android Software/Hacking General [Developers Only]] zakoo2:
yes, just download the cwm zip (from first post) to the root of your sdcard, and apply it from recovery!

sent from my cm7 defy
[Android Software/Hacking General [Developers Only]] riahc3:
It seems to be great (can't tell if its placebo).

Could you give a tech explanation of what the script does? Thanks
[Android Software/Hacking General [Developers Only]] neotoky:
Does this work for Trigger Final 3.2 running Bali kernel on samsung vibrant?

http://xdaforums.com/show....php?t=1041447

http://xdaforums.com/show....php?t=1043947

I flashed the script and opened galaxy tuner and I didn't see any of the values changed.
[Android Software/Hacking General [Developers Only]] arunciks:
Apps Crashing

After adding script to nexus One with QND-XPART 17.17 rom. Many auto launch apps FC and the debug I can see the error at the end of this post. There is a possibility that QND uses some other script too. I wasn't able to research...

E/AndroidRuntime( 2348): FATAL EXCEPTION: Desktop Items Loader

E/AndroidRuntime( 2348): android.database.sqlite.SQLiteException: unable to open database file

E/AndroidRuntime( 2348): at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)

E/AndroidRuntime( 2348): at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1849)

E/AndroidRuntime( 2348): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:820)

E/AndroidRuntime( 2348): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:854)

E/AndroidRuntime( 2348): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:847)

E/AndroidRuntime( 2348): at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:556)

E/AndroidRuntime( 2348): at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:203)

E/AndroidRuntime( 2348): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:118)

E/AndroidRuntime( 2348): at com.fede.launcher.LauncherProvider.query(Unknown Source)

E/AndroidRuntime( 2348): at android.content.ContentProvider$Transport.query(ContentProvider.java:195)

E/AndroidRuntime( 2348): at android.content.ContentResolver.query(ContentResolver.java:262)

E/AndroidRuntime( 2348): at com.fede.launcher.dt.a(Unknown Source)

E/AndroidRuntime( 2348): at com.fede.launcher.bz.run(Unknown Source)

E/AndroidRuntime( 2348): at java.lang.Thread.run(Thread.java:1019)
[Android Software/Hacking General [Developers Only]] athost:
I use this script with QND-XPART without any issues.
[Android Software/Hacking General [Developers Only]] krohme:
Has anyone tried this on Insertcoin v51?
[Android Software/Hacking General [Developers Only]] brainmaster:
@ OP - can you help me on this? Which values should I change in your script so that the widgets stay on homescreen?
[Android Software/Hacking General [Developers Only]] zeppelinrox:
If you're on a gingerbread rom, they're getting killed at 48 or 56 mb free ram - not 24.

The secondary server slot is probably empty so, if that's the case, that 24 mb value in slot 3 actually doesn't do anything.

But you can check where they reside with auto memory manager.

So you will want to reduce the value of slot 4 or 5, depending on where they are.
[Android Software/Hacking General [Developers Only]] Saxysaxplayer:
Yeah, same here.. I'm using the EXACT same setup... I am thinking about making a post asking what kernels are compatible with this script, but I'm too lazy.
[Android Software/Hacking General [Developers Only]] AragornPE:
Anyone knows anything about it?
[Android Software/Hacking General [Developers Only]] srkoza:
working great on miui

i got over 200mb free now and yes i get that its not about free memory but it also works great with apps, everything starts fast thanks juwe!!!
[Android Software/Hacking General [Developers Only]] AdmnGT:
I had a significant amount of free memory on my phone, and somehow the widgets on my homescreen took 3 seconds to appear whenever I would press the "home" key after being on the internet, or something of that sort.
[Android Software/Hacking General [Developers Only]] Bananebieger:
Hello together. Because jukyO asked in the XJ Rom thread for HTC Desire Classic I am posting here too.

Galaxy Tuner doesn't work on Desire Classic, thats why I looked for an alternative app.

I found "AutoKiller Memory Optimizer" from ANDRS STUDIO. That app kann read the LMK values.

Unfortunately it can only read LMK values and no VM values, maybe somebody else knows an app that Desire users can use to get those values.

Theres no need to keep AutoKiller Memory Optimizer on your mobile btw. Read out those values and uninstall it.

Thats what I used it for.
[Android Software/Hacking General [Developers Only]] ced357:
Can i flash it on my DHD?
[Android Software/Hacking General [Developers Only]] AABatteries:
I must say - wow, this is impressive. I thought that as for now, nothing could improve the performance of my old HTC Dream running CM6.1 w/ additional mem enabled kernelj guess I was wrong. the difference is really noticable, no more serious lags, a lot less random ANRs, and I'm averaging ~20 mb free mem with real speed, instead of ~10 mb and real sluggishness.

Thanks Juwe!

ABOVE: Yes, you can use it on any android phone, including DHD. just make a nand to be on the safe side.
[Android Software/Hacking General [Developers Only]] Mattix724:
Wow, I don't know if it's this script or Spare Parts but my phone is flying. I have about 60mb/160mb free on my Zio M6000 with Adrynaline's 729mhz kernel which already had lowmemorykiller in the kernel, I will do a bit more testing but might include in my rom.
[Android Software/Hacking General [Developers Only]] iRide113:
VM and LMK values are not like that at all, but it works none the less. Now to just see about battery. I know it can't drain battery per say, but being able to have more apps working at once might.

Downloaded the CWM and flashed. On Serendipity and Talon...
[Android Software/Hacking General [Developers Only]] rast4man:
Just installed on my Hero CDMA with aosp ROM 2.3.4 GB. So far I'm noticing better multitasking ability but it's only been about 40 minutes since it's been installed. I use my Hero for everyday use so I'll report back if anyone is interested, as to the performance gains.

Great app, thanks.

Regards,

rast4man
[Android Software/Hacking General [Developers Only]] AdamJuva:
Download AutoKiller Memory Optimizer and reduce value of Content_Provider to 52 MB.
[Android Software/Hacking General [Developers Only]] zakoo2:
ever since i installed it, my 3g goes away every few hours and the only thing i can do about it is reboot. some apps lagg like hell, and the keyboard get unresponsive sometimes. fix that somehow pls! other than these things, the phone really runs smooth, apps start faster, and i dont need an app killer anymore, so keep it up! till then, whats the easiest method for uninstalling it?

sent from my cm7 defy
[Android Software/Hacking General [Developers Only]] jukyO:
@OP:

is there any way to read LMK and VM values through adb or similar?
[Android Software/Hacking General [Developers Only]] brainmaster:
Why should i download an additional app to change the values that can be changed in the original script? The whole concept of having the script and not the app that controls the memory is then gone.

Can you tell me which values should I change in your script to make it work. Otherwise I can also remove the script and install the app that configures the memory, but I want to stick with the script.
[Android Software/Hacking General [Developers Only]] Eiskrem-Kaiser:
Originally Posted by Eiskrem-Kaiser View Post

I tried to paste that file into system/etc/init.d with Root Explorer, but same as with Super Manager, it won't paste the file. I have mounted the folder to R/W, but it still doesn't work.

Might that be, because I don't have S-OFF? Is there another way to paste the file into that folder? I also tried flashing via AmonRa, but that doesn't work either.

How exactly? I am a noob in such things. Mind elaborating? Can I push a file into a system folder with S-ON? Since that doesn't work with Root Explorer or Super Manager. Can adb push get around that? Or do I need S-OFF in any case?

Is there a way to uninstall this script if it doesn't work or causes problems?
[Android Software/Hacking General [Developers Only]] lilde jon:
thank you，it runs perfectly on my defy with miui 1.7.15
[Android Software/Hacking General [Developers Only]] bottosac:
Same problem for me.

No paste with Root Explorer and if I install the script with CWM after a reboot the file disappear. :(
[Android Software/Hacking General [Developers Only]] Eiskrem-Kaiser:
Also, how can I change the permissions of the file with adb? That probably won't work with the root explorer either, I would think.
[Android Software/Hacking General [Developers Only]] AdamJuva:
Because you can't control VM values with application, only Galaxy Tuner can do that, but it is only for Galaxy S. You will not cancel effect of my script if you use this app only for changing value which I wrote you.

But if you really wanna edit script, so change this value "14336" to "13312" of this line "echo "2560,4096,6144,12288,14336,18432" > /sys/module/lowmemorykiller/parameters/minfree"
[Android Software/Hacking General [Developers Only]] brainmaster:
Thank you for answering my post. So, if I change that value, hopefully it wont kill my widgets?
[Android Software/Hacking General [Developers Only]] jukyO:
I did it the following way:

0. Copy unzipped script to sd-card (S97ramscript)

1. Boot to recovery

2. In recovery menu there is an option Mounts

3. Mount /system and /sdcard

4. With adb do this:

adb shell
cd /sdcard
cp S97ramscript /system/etc/init.d

To check if its copied properly and its permissions:

cd /system/etc/init.d
ls -la

"S97ramscript" file should be listed with rwx permissions:

-rwxrwxrwx 1 root root 782 Jul 20 2011 S97ramscript

If permissions are not correct, do :

chmod 777 S97ramscript

Hope it helps. If it doesn't work, its because, I wrote above from my head, exact log I have at home.

Cheers!
[Android Software/Hacking General [Developers Only]] Eiskrem-Kaiser:
The first command works:

adb shell

but when I type

su

, it gives me an error, saying "/sbin/sh: su: not found".
[Android Software/Hacking General [Developers Only]] alroger:
Working great here. My tab is flying!

SGT-P1000N - XDA App - CM7 thanks to HumberOS
[Android Software/Hacking General [Developers Only]] shubham24:
Can this work on galaxy5
[Android Software/Hacking General [Developers Only]] catapult1234:
Eeeerhm....smartscreen filter (IE9) has tagged it unsafe download. :confused:

am i the only one getting this message?

Cheers

-edit- getting the block while trying to download the cwm zip
[Android Software/Hacking General [Developers Only]] AdamJuva:
Yes, it shouldn't kill your widgets.
[Android Software/Hacking General [Developers Only]] reinbeau:
It's a false positive, someone explained it somewhere here on XDA, but antivirus software doesn't like some of the executables available for download here.
[Android Software/Hacking General [Developers Only]] catapult1234:
Ah ok. Thanks for explaining!

Cheers
[Android Software/Hacking General [Developers Only]] meigston:
Very nice!

Defy 2.2 with froyo is now UP!

no lags on google maps, up on manager memory!

Do it.
[Android Software/Hacking General [Developers Only]] Zeno Chan:
Does this script work on rooted stock Xperia arc? I'm not sure if it works on arc's stock kernal. Have anyone tried it?
[Android Software/Hacking General [Developers Only]] vkmaxx:
I can confirm that it's working on i5700 - nice job! Thx!
[Android Software/Hacking General [Developers Only]] habylab:
Hi there Juwe, I want to get to the bottom of this. Basically, it doesn't work at all, the the values are not being set. I am on semaphores kernel 1.3.2 and recently fixed a problem where no init.d scripts would run. But I cannot get yours to run!! It has the right permissions and other scripts are working? I haven't got any other memory management scripts. The could it be to do with the tweaks in cf root?
[Android Software/Hacking General [Developers Only]] jukyO:
No worries. This command just switches user to superuser. And in recovery, when you enter adb shell, you are probably already superuser. So just continue entering commands provided below su command.
[Android Software/Hacking General [Developers Only]] ghost010:
Will this work on stock ginger and netercy kernal on my nexus s? Duno if the kernal suports the script file.
[Android Software/Hacking General [Developers Only]] Eiskrem-Kaiser:
Works like a charm, so far. HTC Desire, CM7. Thanks for the help.
[Android Software/Hacking General [Developers Only]] brainmaster:
Look for the /system/etc/init.d folder, if it is present and there are scripts in it (probably because of the Netarchy kernel), then it will work.

Just copy the script to that folder and set permissions to 777. Reboot.
[Android Software/Hacking General [Developers Only]] :
This seems to be working. Nexus S, Miui 1.7.15, Jame Bond kernel. Had to copy script to /etc/init.d using root explorer, and set rwrwrw permissions manually.
[Android Software/Hacking General [Developers Only]] AdamJuva:
Yes, you don't have to use tweaks in tweak manager where is written RAM:... or VM:...

I use Semaphore kernel, too and my script works great without those tweaks.
[Android Software/Hacking General [Developers Only]] habylab:
So which tweaks do I need to turn off? I I appreciate your help.
[Android Software/Hacking General [Developers Only]] hgoldner:
The developer of the ROM I use (Nils' Business GingerSense 2.3 for the Incredible) has utilized this script now in his ROM and the improvement is noticeable and remarkable.

Thanks!
[Android Software/Hacking General [Developers Only]] habylab:
Wow, and hands down amazing now it's working. Good job.
[Android Software/Hacking General [Developers Only]] krickatthedisco:
props to the dev(s), this is great on my thunderbolt running cm7 rc 1.2 mr2.5 and on my iconia tab running virtuous xoom 1.1.2
[Android Software/Hacking General [Developers Only]] arabian developers:
thaaaaaaaaaaaanx

thaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaanx
[Android Software/Hacking General [Developers Only]] poontab:
Lmfao 10char
[Android Software/Hacking General [Developers Only]] integrasaurus:
Just installed your script manually via root explorer on my Nexus S, Miui 1.7.15, Netarchy 1.3.7 cfs. Looking good so far! Thank you Juwe11!
[Android Software/Hacking General [Developers Only]] Mattix724:
That's exactly how I did it.
[Android Software/Hacking General [Developers Only]] UsManyDead:
I would like to try your script to see how it goes on LeeDroid 3.3.1 HD. Since the folder init.d already exists in the system/etc/ then I'm good to go. I have Android System Info with which I can see LMK values but not the VM. I read till here and saw there is no way to see if the VM modified using an app on HTC Desire.

Anyway if it works or not, I'm sure I'll be able to make that difference. The only question I have is: if I want to revert back (maybe try some other script) which is the easiest way? To run Nandroid Back-up from Recovery or just delete the script and Reboot?

Thanks for all your hard work. Keep it up ;)
[Android Software/Hacking General [Developers Only]] abZorber:
Juwe11

Can you explain, please, this feature.

I'm on the Desire HD and Virtuous Unity 1.29.0.

This ROM already has its own optimization script in init.d.

I found these parameters for lowmemorykiller settings in that script:

1024,2048,4096,5120,6144,8192.

Your settings for /sys/module/lowmemorykiller/parameters/minfree are "2560,4096,6144,12288,14336,18432"

What do these settings stands for? How it works?

And finally, will i need to delete lowmemorykiller parameters from your script or they would be more proper than i already have?
[Android Software/Hacking General [Developers Only]] AdamJuva:
Read OP. There are written informations about it. Their LMK values are setted for keeping applications in RAM dor each time. Even if you have really low free memory (those values are almost same as default From Samsung and Google). My Script has setted values for the best balance.
[Android Software/Hacking General [Developers Only]] abZorber:
Thanks for answering.

So, am i right saying that these values represent the limits of memory, and reaching these limits forces tasks to shut-down?

Sorry, i couldn't find WHAT these values mean in first post.
[Android Software/Hacking General [Developers Only]] taqri85:
this is working on my huawei ideos u8150-b using FUSIONideos v2.4. Cant say anything about the improvement in performance though.
[Android Software/Hacking General [Developers Only]] dyval:
can this be used on android on SD? Currently using AmericanAndroid. Can it be flashed through Rom manager?
[Android Software/Hacking General [Developers Only]] zincro3:
awesome script, now i have more free ram
[Android Software/Hacking General [Developers Only]] Eiskrem-Kaiser:
Does one have to reinstall the script after flashing a new rom?
[Android Software/Hacking General [Developers Only]] Mattix724:
Yes
[Android Software/Hacking General [Developers Only]] faiyyaz:
Will it work on froyobread v6.01?? I got xperia x10 mini pro..
[Android Software/Hacking General [Developers Only]] gil80:
I'm using miui and galaxy tuner wont work on that. The app autokiller you mentioned doesn't show exactly the same values. Ive installed your settings via cwm and then isaw the folder init.d didn't have your script so I put it there manually but how can I be sure it working?

I use glitch v11 kernel which I was told it supports init.d
[Android Software/Hacking General [Developers Only]] Jurrvoss:
OK , so I downloaded the file you can place in /system/etc/init.d with rootexplorer.

But when I want to move it to the location , it says it's a read only file , so I tried to change the permissions but everytime I do they change back to their original state..

anyone got same problem and/or has the solution to his?

thnx in advance
[Android Software/Hacking General [Developers Only]] Mattix724:
Click R/W in root explorer.
[Android Software/Hacking General [Developers Only]] Jurrvoss:
I did , but it didn't work , I have experience with rootexplorer.. but I just don't understand why it won't move..
[Android Software/Hacking General [Developers Only]] Mattix724:
Push it via adb shell or terminal emulator. You will need root access.

"cat /sdcard/S97ramscript > /system/etc/init.d/S97ramscript"

"chmod 0777 /system/etc/init.d/S97ramscript"
[Android Software/Hacking General [Developers Only]] jukyO:
I posted the solution 2 pages back:

That should do.