yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] colinmc8:
Does my kernel support it?

I don´t know if its the kernel version I need to give:

2.6.35.10-g308ba26

[v05]-snq-is-still #1

Wed May 4 22:47:29 CST 2011

Build number

RCMix S v2.0.1

If this Kernel supports the script, I don´t know why I can´t get it working.

If I use autokiller, can I enter the values from the first page manually?
[Android Software/Hacking General [Developers Only]] googlick:
Now I know what happened. Apparently a ran sysctl -p before I checked values, and it sets parameres read from file /etc/sysctl.conf, that looks as follows at my Milestone

# cat /etc/sysctl.conf

vm.min_free_kbytes = 1991

vm.dirty_ratio = 10

vm.dirty_background_ratio = 5

vm.vfs_cache_pressure = 100

vm.oom_kill_allocating_task = 0

#

So vfs_cache_pressure is OK (10) after reboot.

BTW, here is a list of Kernel Scheduler Features after the script applying

# cat /sys/kernel/debug/sched_features

NEW_FAIR_SLEEPERS NO_NORMALIZED_SLEEPER WAKEUP_PREEMPT

START_DEBIT AFFINE_WAKEUPS CACHE_HOT_BUDDY SYNC_WAKEUPS

NO_HRTICK NO_DOUB LE_TICK ASYM_GRAN LB_BIAS LB_WAKEUP_UPDATE

ASYM_EFF_LOAD NO_WAKEUP_OVERLAP LAST_BUDDY

#
[Android Software/Hacking General [Developers Only]] sweetpiggy:
nexus S superAOSP rom + netarchy kernel

tryed first(CWM) and second installation(root explorer)....

no work for me :( any change in autokiller :()

how can i try?
[Android Software/Hacking General [Developers Only]] fragargon:
Hi, yes the kernel 2.6.35.10-g308ba26 [v05]-snq-is-still #1 support ini.d

You should fine it into /system/init.d

Just put that script into this folder and gives perms - reboot

hope this help

hope this help
[Android Software/Hacking General [Developers Only]] King_Rat:
Q:

Is this generic for all android devices/versions/ph models??

I have IDEOS U8150... Custom ROM = DroniX 0.4... Froyo 2.2.1... running FusionDEV's Xtreme kernel...

regards,
[Android Software/Hacking General [Developers Only]] jonas2295:
how can i give it perms ?

mean which file to edit?...i saw that it sets permissions but dunno where ?! pls help thx
[Android Software/Hacking General [Developers Only]] brainmaster:
Here is the answer.
[Android Software/Hacking General [Developers Only]] jonas2295:
thanks but i need to do that with my custom ROM i am currently buildung so root explorer isn´t a solution..
[Android Software/Hacking General [Developers Only]] fragargon:
so u should do that with Ur updater script like...

set perms chmod 0777 system/init.d/S98ramscript

be carefull syntax is not fully correct need , but at work atm do get my doc under hand. this was an exemple but if you are building Ur custom rom, this should be a problem

hope this help
[Android Software/Hacking General [Developers Only]] jonas2295:
awesome thanks :D
[Android Software/Hacking General [Developers Only]] brainmaster:
If you have other scripts in your init.d folder for your custom rom zip, then you don't need to set permissions particulary for this file. The system permissions are O.K. for that file, I have tested it on my Custom ROM.
[Android Software/Hacking General [Developers Only]] dawabz94:
Applied on my SGS2 i9100 XXKG3 / Speedmod kernel

Might be placebo or not, I feel it makes a difference

The phone feels smoother and snappier

I donated to your rom works on SGS1 and am happy I did

This is easyly implemented and seems to make a noticeable diff so thanks :)
[Android Software/Hacking General [Developers Only]] fragargon:
hi,

yes you re right, at home atm.

the right syntax in updater script is

set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");

so file in it got inherited recursive_perms at 1st boot up after install

well spoted man ;)
[Android Software/Hacking General [Developers Only]] subaash:
awesome..btw what is the name of the live wallpaper he's using ....
[Android Software/Hacking General [Developers Only]] King_Rat:
Tested and working on IDEOS U8150...

King_Rat via Tapatalk
[Android Software/Hacking General [Developers Only]] taqri85:
yeah tested on huawei u8150 but doesn't seem to make any difference. deleted. phone works better now. may be its not optimised for our phone. cheers :)
[Android Software/Hacking General [Developers Only]] Midomad:
hi

thas the kernel 2.6.32.9-perftjstyle@dev-pc#5 support the script?

i have galaxy mini.

and if yes i follow the same instructions in the first page?

many thanks
[Android Software/Hacking General [Developers Only]] King_Rat:
:mmm: I'm running - D variety... and things seem snappier... Guess B & D are different re, this mod too

King_Rat via Tapatalk
[Android Software/Hacking General [Developers Only]] taqri85:
yeah may be. will definitely give it another try. cheers.
[Android Software/Hacking General [Developers Only]] idle0095:
What starfield wallpaper is the OP Running?????????????????????????????????????????????????????????????????????????/
[Android Software/Hacking General [Developers Only]] RyNkA:
It works on Unity V4 kernel :->...

Testing performance right now
[Android Software/Hacking General [Developers Only]] Karthik.katy:
will this work on galaxy 5?
[Android Software/Hacking General [Developers Only]] AdamJuva:
Yes, if your kernel supports init.d and if you have root.
[Android Software/Hacking General [Developers Only]] Karthik.katy:
Thanks very much.. I'll try it now
[Android Software/Hacking General [Developers Only]] manny05:
I keep getting a warning that my database storage is getting low... I press okay and it takes me to a list of apps and it says I have 1.5gb free.... So this is obviously an error since I have plenty of space left... Any solutions? Or ideas as to why I'm getting this? I can provide a screenshot if I need to
[Android Software/Hacking General [Developers Only]] idle0095:
Juwe11 what starfield wallpaper are you useing????
[Android Software/Hacking General [Developers Only]] TechKidTarek:
would this work on the samsung galaxy s2 ?
[Android Software/Hacking General [Developers Only]] taqri85:
depends upon the init.d support.

Sent from two cans and a few strings.
[Android Software/Hacking General [Developers Only]] dawabz94:
Works great on sgs2 i9100 stock with speedmod kernel

So I guess would work fine with any kernel supporting init.d

At worst you run it manually after each boot, assuming you're rooted of course

:-)
[Android Software/Hacking General [Developers Only]] anujsh:
i m using galaxy 3 india froyo rom, there not thing like init.d in system/etc........ where do i put the file and should i have to rename the given file to init.d??
[Android Software/Hacking General [Developers Only]] idle0095:
the OP on this thread is not answering my dame question. How many times do i need to ask it. What dame wallpaper are you running?
[Android Software/Hacking General [Developers Only]] dawabz94:
If your kernel supports init.d, manually create init.d folder in /etc then push the file there
[Android Software/Hacking General [Developers Only]] neocorteqz:
Maybe cause it has no relevance to the thread topic? Just saying...
[Android Software/Hacking General [Developers Only]] lateral18:
does this script will work in the htc Aria running a liberated rom 2.2.2 .
[Android Software/Hacking General [Developers Only]] anujsh:
Thanks for ur help I but I figured it out later. Thanks once again.
[Android Software/Hacking General [Developers Only]] DasGensu:
Cant flash this on my desire pvt4 via amonra, could someone make a .zip for AmonRa?
[Android Software/Hacking General [Developers Only]] ManuStaufi:
WOW! It works great! :D

First I had 140-150MB of free RAM on my Wildfire. Now, I've got 190MB of free RAM!

But you have to uninstall every RAM optimisation tools or rather task killer.

With task killer I could not see any significant effects...
[Android Software/Hacking General [Developers Only]] sweetpiggy:
What i'm doing wrong?

Why don't work on my nexus s + superOSR rom + netarchy kernel! ?!?!
[Android Software/Hacking General [Developers Only]] lateral18:
it seems to only work for a few hours , but it has made a improvement . anything i am doing wrong , or is just how it works , the free memory is 100mb , then little by little it goes down to 64mb, or is that how it works ?? :op
[Android Software/Hacking General [Developers Only]] bik2101:
i hope someone can help me with this. so i've tried both option 2 and 3 from the OP for installing the script on my inc2.

now i just don't know how to check whether it was successful or not.

how can i find out what my LMK values are and what my VM values are?? I tried that autokiller task manager app, but the numbers that were posted on the OP are not showing up.
[Android Software/Hacking General [Developers Only]] ayong chia:
Hi juwe,

I have something to ask, will it be problem when i installed ur script and also installed some task killer apps? Am i need to delete the task killer apps?
[Android Software/Hacking General [Developers Only]] galaxysl9003HKuser:
i cant use the cwm

it say me abored
[Android Software/Hacking General [Developers Only]] killer_jazz:
How to check i have flash it from AutoKiller Memory Optimizer and do i need to config the setting in AutoKiller Memory Optimizer?
[Android Software/Hacking General [Developers Only]] IlKYoSuKElI:
I'm guessing this isn't working with the stripped bamf ROM

Or the bamf gingerbread ROMs because my values are not the same as listed on this thread...unless I'm reading it wrong...but it does change them compared to before I did this RAM optimizer... it should be set after flashing right? Nothing more to do?
[Android Software/Hacking General [Developers Only]] sweetpiggy:
sorry but....

any help for me? thanks
[Android Software/Hacking General [Developers Only]] dr.notor:
For sure will not work on any ROM which uses busybox run-parts to run the init.d scripts. Why? Because the filename is simply wrong. Needs to be 97ramscript (or whatever other ## sequence, not S97.)

Also, hardcoding stuff like /dev/block/stl9 into updater-script is very wrong. Do not use the CWM flash ZIP unless the MTD device matches your phone's /system partition.
[Android Software/Hacking General [Developers Only]] sweetpiggy:
Don't work changing the name:(
[Android Software/Hacking General [Developers Only]] cta.smith:
Thanks. This looks good, going to give it a shot.
[Android Software/Hacking General [Developers Only]] kn_hebat:
i want ask

my android is froyo origiinal,

can i use this script??? where is folder init.d??? can i make this folder???
[Android Software/Hacking General [Developers Only]] jjangjojo:
How can I remove this?

EDIT: Is the kernel version : 2.6.32.9 root@SE-S604 #1 support init.d?
[Android Software/Hacking General [Developers Only]] demo23019:
This works great thanks so much using with NS and MIUI 1.8.5 just a FYI CWM didn't flash correctly for some reason file was nowhere to be seen after flashing.

But manually installing worked fine

probably just delete the S97 script file from /system/etc/init.d and reboot

and if you want to know if its compatible just Download app Galaxy Tuner or AutoKiller Memory Optimizer and check values just like he says in OP
[Android Software/Hacking General [Developers Only]] jjangjojo:
Thanks but what will happen if my kernel does not support init.d and I flash it using CWM?
[Android Software/Hacking General [Developers Only]] demo23019:
not sure probably nothing but make a backup just in case
[Android Software/Hacking General [Developers Only]] osana412:
wow.... I would try this... thnx man..
[Android Software/Hacking General [Developers Only]] jjangjojo:
I went to the system/etc but no init.d folder what to do? Does this mean that my kernel does not support init.d??
[Android Software/Hacking General [Developers Only]] javul:
Hello! i tried to install the mod, and i don't have any init.d folder in the system\etc\ folder.... Do i create it? or how do i install it? My phone's rom is the original.

Froyo original KB1

kernel: 2.6.32.9
[Android Software/Hacking General [Developers Only]] Blackwolf14:
Hi, thanks for script but probably doesn't work.:confused:
[Android Software/Hacking General [Developers Only]] DroidRunner:
Figured out how to change all the values to whatever I want. Do I choose Lowmemory values or VM values to input.
[Android Software/Hacking General [Developers Only]] neocorteqz:
Means your kernel doesn't support init.d.

As for peoples ram being low, I wouldn't worry too much, unlike windows, linux runs very well on low memory. Just saying.
[Android Software/Hacking General [Developers Only]] javul:
Can i update mi kernel?? or change rom to be able to use that script?
[Android Software/Hacking General [Developers Only]] wolfway:
what are the LMK and VM values? I want to know for sure this works on mine before flashing it (htc wildfire running CM 7.0.2 and I do have an init.d folder in system/etc/ )

I downloaded the AutoKiller Memory Optimizer app but cant figure out where to find those values...

Sorry if already asked but google didn't help me and this thread is 85 pages long :)
[Android Software/Hacking General [Developers Only]] yyh2503:
great work

and i apply the zip in recovery

is it working now???

or i must install Galaxy Tuner or AutoKiller Memory Optimizer to use it???

3q
[Android Software/Hacking General [Developers Only]] bik2101:
i can confirm this script does not work with either the tiamat kernel or the JDkernel for the inc2 on cm7. maybe cm7's kernel works, but i haven't given that a shot. and this is regardless of renaming the script to just a number instead of s97
[Android Software/Hacking General [Developers Only]] isnuryusuf:
From your Juwe_RAM_Script.zip - [Click for QR Code] (417 Bytes, 10129 views)

i found wrong file name on /proc/sys/vm/dirty_backgroud_ratio, should be /proc/sys/vm/dirty_background_ratio with "n" in the file name

To all:

backup first your old kernel parameter value with this code bellow :

#!/system/bin/sh

if [ -e /sys/module/lowmemorykiller/parameters/minfree ]; then
cat /sys/module/lowmemorykiller/parameters/minfree > /backup-kernel-parameter
fi

if [ -e /proc/sys/vm/swappiness ]; then
cat /proc/sys/vm/swappiness >> /sdcard/backup-kernel-parameter
fi

if [ -e /proc/sys/vm/vfs_cache_pressure ]; then
cat /proc/sys/vm/vfs_cache_pressure >> /sdcard/backup-kernel-parameter
fi

if [ -e /proc/sys/vm/dirty_expire_centisecs ]; then
cat /proc/sys/vm/dirty_expire_centisecs >> /sdcard/backup-kernel-parameter
fi

if [ -e /proc/sys/vm/dirty_writeback_centisecs ]; then
cat /proc/sys/vm/dirty_writeback_centisecs >> /sdcard/backup-kernel-parameter
fi

if [ -e /proc/sys/vm/dirty_ratio ]; then
cat > /proc/sys/vm/dirty_ratio >> /sdcard/backup-kernel-parameter
fi

if [ -e /proc/sys/vm/dirty_background_ratio ]; then
cat /proc/sys/vm/dirty_background_ratio >> /sdcard/backup-kernel-parameter
fi

and then try temporary set your kernel paramater with this command :

echo "2560,4096,6144,12288,14336,18432" > /sys/module/lowmemorykiller/parameters/minfree
echo "50" > /proc/sys/vm/swappiness
echo "10" > /proc/sys/vm/vfs_cache_pressure
echo "500" > /proc/sys/vm/dirty_expire_centisecs
echo "1000" > /proc/sys/vm/dirty_writeback_centisecs
echo "90" > /proc/sys/vm/dirty_ratio
echo "5" > /proc/sys/vm/dirty_background_ratio

if you like your new configuration, just install and say thnks to juwe
[Android Software/Hacking General [Developers Only]] :
Working awesome:

Samsung galaxy mini GT-S5570

Cyanogenmod 7 - Android 2.3.4

Kernel by tj_style

Thanks :D
[Android Software/Hacking General [Developers Only]] TheSubtleKnife:
This script just eats my battery life and makes things lag for me :(

Is there anyway to undo this script?
[Android Software/Hacking General [Developers Only]] isnuryusuf:
if you not backup your old configuration, u cannot undo this script, but try to remove /system/etc/init.d/your-memory-optimize-script and reboot

hope this step will be back the kernel paramater to default kernel paramater configuration
[Android Software/Hacking General [Developers Only]] TheSubtleKnife:
worked like a charm! +thanks

too bad this script didnt work tho
[Android Software/Hacking General [Developers Only]] AdamJuva:
I am working on update.
[Android Software/Hacking General [Developers Only]] habylab:
Good news!
[Android Software/Hacking General [Developers Only]] ayong chia:
When will release? :D
[Android Software/Hacking General [Developers Only]] PMGRANDS:
Does this Work on All phones? I have a CDMA Hero...

Thanx in Advance!
[Android Software/Hacking General [Developers Only]] woodpeckerlo:
...............
[Android Software/Hacking General [Developers Only]] woodpeckerlo:
I`m trying it now on Xperia x8 so i guess it works on few other phones
[Android Software/Hacking General [Developers Only]] woodpeckerlo:
HOW TO CHECK IF SCRIPT WORKS

Download app Galaxy Tuner or AutoKiller Memory Optimizer and check values:

LMK values

10MB, 16MB, 24MB, 48MB, 56MB, 72MB

VM values

50, 10, 5, 10, 90, 5

I had to set these values manually in AutoKiller on fist tab! They were diferent when i started app! Does that mean that script didn`t work after i installed it via xRecovery!???
[Android Software/Hacking General [Developers Only]] lateral18:
when will the update be ready ???
[Android Software/Hacking General [Developers Only]] URINUDNK:
Hmm will i have to reinstall this when i upgrade the version of my rom? (GingerDX)
[Android Software/Hacking General [Developers Only]] ayong chia:
Sure must,because when u upgrade new firmware the script will be remove...
[Android Software/Hacking General [Developers Only]] cricket650:
How to create the file?
[Android Software/Hacking General [Developers Only]] phoivos86:
Three questions guys, kinda noob-ish:

1. Can I use it with my kernel?

2. Does this script affect the battery draining [for better of for worse]?

3. Does it affect task managers?
[Android Software/Hacking General [Developers Only]] ayong chia:
1. What is ur kernel? Please read 1st page

2. From what i know is not

3. It not effect ur task manager...

And the last is CMIIW
[Android Software/Hacking General [Developers Only]] beelbed:
hi juwe...

I use samsung GT-5570 and using unofficial CM7 from Tj_Style

when I install your script from CWM, my phone got stuck on boot.cannot enter to home screen..

can anybody help me please??
[Android Software/Hacking General [Developers Only]] :
Even I have the same problem...

Before flashing the final version of cyanogenmod however the script was running fine.. maybe its because of android 2.3.5

Edit: After installing the script manually from root explorer and restarting, my phone got stuck in a bootloop, but on re-flashing oc kernel it worked just fine...

Sent from my GT-S5570
[Android Software/Hacking General [Developers Only]] phoivos86:
My kernel is: 2.6.32.21-HCDRJacob-g5ece49a-dirty

What is CMIIW?
[Android Software/Hacking General [Developers Only]] ayong chia:
That's why i suggest u to read 1st page... For the 1st page for the requirement...
[Android Software/Hacking General [Developers Only]] bik2101:
actually that's wrong..

2) if you read the 1st post, the changes in VM values is supposed to help improve battery life.
[Android Software/Hacking General [Developers Only]] bik2101:
those are not the values you should be setting in autokiller, it should match the LMK values, not the VM values. afaik, i don't think there's any app that allows you to change VM values ( or even view them for that matter unless your on a galaxy s)
[Android Software/Hacking General [Developers Only]] ACiD StOUt:
Working like a charm, although I thought with 170MB free RAM there's not much to improve on my Wildfire running CM 7.1.0 RC1. But I was wrong. Now, booted up, ran a few apps, everything is fast and nice with still 187MB RAM free! Great work! Thank you very much!
[Android Software/Hacking General [Developers Only]] phoivos86:
Yes but someone reported battery draining in this thread. Thusly I asked if other users faced the same problem, before I flash this patch.

I read in the requirements that I must have a Kernel which supports init.d

That's why I posted my Kernel, to be told if it does support init.d

I do not know how to find out for myself...
[Android Software/Hacking General [Developers Only]] Blackwolf14:
Any help for me?
[Android Software/Hacking General [Developers Only]] :
I would like to try this version of Ram Optimization and I have void #eridanus rom installed and on init.d folder I have 4 files.

what should I do?
[Android Software/Hacking General [Developers Only]] pearse:
Big thanks for this script, it's crazy good. Apparently when i first flashed through CWM i had another script in my init.d folder. Now that i installed the script manually and removed the other script from my rom my phone is even faster! Ridiculous!
[Android Software/Hacking General [Developers Only]] Chuchave:
hey i read some of the posts an seen some that one of the scripts was problematic i guess i have the original file an all i guess ur revamped one Juwe_RAM_Script-CWM its a 156.60kb file..and the second one is the Juwe_RAM_Script-CWM_Flashable which is 150.60 kb size file which one is the good one? and from CWM do i select reboot into recovery and in recovery select update zip from sd card or install from sdcard..id hate to do it wrong n overwrite my rom if thats possible
[Android Software/Hacking General [Developers Only]] K Dotty:
Just use the second file (Juwe_RAM_Script-CWM.zip) and flash it using ROM Manager or reboot into recovery and "install from sdcard".

It wont overwrite yor rom but just make sure you make a backup of your rom before you flash just incase you have any issues.
[Android Software/Hacking General [Developers Only]] ZAM_TK:
Couldn't find the init.d in /system/etc. I can find init.goldfish.sh but this is a file. could you please help me locate this?
[Android Software/Hacking General [Developers Only]] ZAM_TK:
There is no init.d folder in /system/etc. Do I need to create a folder name init.d and put the file into that???
[Android Software/Hacking General [Developers Only]] ayong chia:
That's mean ur kernel not support this script,so don't try to apply it... All at ur own risk...
[Android Software/Hacking General [Developers Only]] MarkDenver:
Not true at all...it just means it has not been used yet. Init.d folder does not exist until you need it for a script.
[Android Software/Hacking General [Developers Only]] ayong chia:
Then try it on ur own risk... Dnt cry if something bad happened to u ;)
[Android Software/Hacking General [Developers Only]] Guhrasoh:
If the kernel doesn't support init scripts creating the folder and placing the script in there will do exactly nothing, because it will simply be ignored.
[Android Software/Hacking General [Developers Only]] 5enzeventig:
I would like to install this on my nexus but I am getting the

E:signature verification failed error .

Can't see to find the option to bypass the verification

Weird? Tried searching but couldnt find any solved threads, sorry for that.

hmm suddently it works! Magical Reply button here on xda
[Android Software/Hacking General [Developers Only]] Karthik.katy:
Should we do all the 3 methods for creating or first method is enough?
[Android Software/Hacking General [Developers Only]] bombadier:
Anybody got this working with Virtuous Unity 1.31? I have had no luck,anybody else?
[Android Software/Hacking General [Developers Only]] bombadier:
One will do,copy the script to init.d change permissions and see if it works.
[Android Software/Hacking General [Developers Only]] AdamJuva:
Updated!!!!
[Android Software/Hacking General [Developers Only]] ayong chia:
Thank you juwe,btw, is the file just 1kb? Is it correct?
[Android Software/Hacking General [Developers Only]] lexx210:
So if I flash this with faux123's kernel will it work? Does his kernel support init.d? Also, would anyone know if this works on a Bell Atrix? Thanks.
[Android Software/Hacking General [Developers Only]] AdamJuva:
Yes, download attached zip unzip S97ramscript and put it to your init.d folder, set perms to 777 and reboot.
[Android Software/Hacking General [Developers Only]] URINUDNK:
Erhm, i just installed it with xRecovery, is that completely wrong or?
[Android Software/Hacking General [Developers Only]] M.z:
Nive juwe :)

Its very function .
[Android Software/Hacking General [Developers Only]] FatalityBoyZahy:
Is this compatible with an LG G2X running CyanogenMod 7.1 Nightly 106?