yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy W I8150] saintsoh:
runs well on stock galaxy wonder gingerbread, no other enhancements/tweaks needed.

summarize, winrar (compress) file contain three files;

1) build.prop.addon

2) readaheadkbcode

3) vmscript140901

extract files n copy to your phone ext_sd.

use root explorer,

build.prop.addon - copy all text n paste at the eol (end-of-line) of /system/build.prop file.

readaheadkbcode n vmscript140901 r scipt files.

use script manager,

load one script file, clik superuser n boot buttons, save it.

do the same to the next script file.

done, reboot.

or

use init.d support,

copy the two script files n paste to etc/init.d folder

important note: must change ownship from root,app101 to root,shell.

done, reboot.

note:

prerequisite:

1) busybox

2) superuser

3) terminal emulator

4) root phone

5) cwm recovery

6) root explorer

edit:

u may ask why should u be bother using this old crap?

its old n useless, so why bother? then u shouldnt be using gw anymore.

there r many cheap quad-core n oct-core phones in the market nowadays.

i'm still using pentium dual-core n XP pc, it is working fine without annoyances.

likewise with gw stock gingerbread is working fine without annoyances.

i've tried cm9,10,11 plus many others enhancements/tweaks, all will give some sort of annoying problems

many enhancements/tweaks r placebo, reasons r parameters.

different manufacturers nandroid set their parameters differently.

main reason i did this is all custom roms, enhancements, tweaks failed me from getting pass 120 level of candy crush saga game.

for this reason, i start do my own scripts n incorporate useful/effective parameters.

currently, i going pass 277 level with these scripts/addon, no fc, no lag.

share with ppl whom like to use gingerbread without annoyances, 100% functional, no craps.

pls refrain from commenting if u dislike, thks.
[Samsung Galaxy W I8150] dec0der:
Does anyone here can share the stock gingerbread browser.apk and its dex or odex? thanks
[Samsung Galaxy W I8150] saintsoh:
here took it out from my phone.

ps:

if there is any user passwords in it, pls delete it.

dun abuse my kindness.
[Samsung Galaxy W I8150] dec0der:
Thanks bro :good:
[Samsung Galaxy W I8150] saintsoh:
i found something interesting whilst scrolling thru init.rc.

tcp settings with two extras, ie. lte n evdo_b, it is not a feature tat gw hw have or can be use.

lte = Long Term Evolution, ie. 4G.

evdo_b = Enhance Voice Data Only ver. B, ie. old network prior CDMA2000, maybe third world countries still in use.

anyway, i incorporate it with max setting to system/build.prop file replace the old ones.

marginal improvement when surf play store, ie. whilst i totally max my bandwidth with plentiful of other downloads.

how/what to do with it?

1) extract compressed file n paste to ext_sd.

2) use root explorer n view file.

3) copy all text, paste n replace the old tcp settings on system/build.prop file.

done, reboot.
[Samsung Galaxy W I8150] saintsoh:
vmscript update.

add read/write_wakeup_threshold to the script.

default read = 64, write = 128, entropy avail range = 100 ~ 200.

set read = 1024, write = 2048, entropy avail range = 2000 ~ 3000.

edit 140915;

add change msgmni to default.

it run so well, i decided not to upgrade my phone.

will wait for 64 bits soc phone to come out next year.

ps:

run gb with holo launcher, it look/feel the same as kitkat w/o all the annoyances. :D
[Samsung Galaxy W I8150] TiTAN-O-One:
Does your scripts work with CM9? So far I only see some vm tweaks and abit of build.prop tweaks which i dont think will affect CM9 perfomance?

Via the Internet
[Samsung Galaxy W I8150] saintsoh:
simple, just view the script if cm9 have the same parameters then it will virtually set it.
[Samsung Galaxy W I8150] TiTAN-O-One:
Rite, i have extracted the rar and placed the contents at etc/init.d, changed permissions and the chmod thingy and then reboot it.

Just to make sure that the script is working i checked the kernel tweaks applied on ROM Toolbox to make sure if the values is applied and well, it didnt. Its still in the default tweaks i made last time.

Is the steps i did correct? I rmb after the reboot the device sped up abit. Less lag, just that im not sure if I my steps made the ROM Toolbox not detect the tweaks/changes

Via the Internet
[Samsung Galaxy W I8150] saintsoh:
chown to root,shell is important, otherwise it wont work.

as long as parameters r not change according to the script, it is restricted by init.rc.

likewise for stock, some parameters cant be change due to init.rc restrictions.

i managed to find those tat allow virtual change.

otherwise, try use script manager.

use root explorer, just browser n view parameter files.
[Samsung Galaxy W I8150] TiTAN-O-One:
I tried the script. At first i placed vmscript and readahead thingy on system/etc/init.d. Enabled init.d via Broodplank's init.d toggler and then reboot. After that, the values didn't apply even tho i met your perquisites for installing.

So I tried once again and this time i just simply ran the script manually using some script tool app. The values did apply and my device is running blazing quick. My mostly used app launches quicker compared to stock CM9. And yea, i do hope u continue updating the vmscript

But is there a way to make the scripts run automatically in each boot? Also, dk if its the kernel or rom but i cant downclock my cpu tho. But thats just the issues i faced. Other than tht its quick. I can run some games or whatever apps for you just to check out on your script's perfomance. Tho im not playing Candy Crush till lvl 100+ :D

Via the Internet
[Samsung Galaxy W I8150] saintsoh:
i flashed zip-init.d (link on previous post) on stock gb,

its simple n will run those vmscripts wo any fuzz on every reboot.

else

script managers have option to run those scripts at boot, i'm not sure why u cant find the option.

script manager have superuser n boot buttons, just clik on those two buttons n save loaded scripts, done.

i've tried all cwm custom roms, they all have too many bugs/annoyances.

i always roll back to stock, tats why i start build my own scripts.

i'm looking at parameters to free memory resources.

free memory + aggressive set entropy makes the system run smooth n fast.

there arent any vm left tat i can find, so this as superbly good as is. :good:

candy crush sage game at 290+ level, going strong n fast, no lag, no fc. :D
[Samsung Galaxy W I8150] saintsoh:
update vmscript.

add lowmem_reserve_ratio,

this allow more low reserve memory for use.

probably no more update for vm, coz nothing left to tingering. ;)
[Samsung Galaxy W I8150] saintsoh:
vmscript update.

add sem.

default "250 3200 32 128

change "250 3200 100 128

Increase semop value from 32 to 100, it can be increased upto 250 which is equal to semaphores per array.

recommended by redhat n oracle, cant stop myself when i found this :silly: .
[Samsung Galaxy W I8150] jglory:
sorry for asking this [MENTION=5355409]saintsoh[/MENTION] , maybe u have some trick for our galW, to install COC on gingerbread ? I have try any suggestion that I get from google, but it didn't work. thanks in advance .:D

---------- Post added at 02:44 PM ---------- Previous post was at 02:43 PM ----------

sorry for asking this [MENTION=5355409]saintsoh[/MENTION] , maybe u have some trick for our galW, to install COC on gingerbread ? I have try any suggestion that I get from google, but it didn't work. thanks in advance .:D
[Samsung Galaxy W I8150] saintsoh:
u should read the requirements of coc.

it requires android 4.0.3 and up, its not design for gb.

try use cm9, 10 or 11.
[Samsung Galaxy W I8150] jglory:
Thank for the answer mate, :o
[Samsung Galaxy W I8150] saintsoh:
minor change n corrective update on vmscript.

compressed file contains three files;

1) two r script files - vmscript141006 n readaheadkbcode.

2) build.prop.addon.

to run script files use either script manager or init.d support (must change files permission, chown to root,shell).

build.prop.addon, use root explorer, copy n paste all texts to system/build.prop eol (end-of line).

pump up antutu benchmark from 8500 to 9000.

stock gb run smooth n fast with these, enjoy.

ps:

install holo launcher to update the old gb touchwiz launcher.
[Samsung Galaxy W I8150] saintsoh:
i did realized vmscript is running a bit edgy after playing game.

maybe its just a gut feel, anyway.

solution: edit lowmemorykiller minfree last figure is 12288, change it to 11264.

ie:

echo "3072,4096,6144,8192,10240,12288" > /.....

use root explorer, mount rw, edit change it to

echo "3072,4096,6144,8192,10240,11264" > /.....

this will reduce the empty_app_mem from 48 to 44.

(note: linux read mem page as in 4k, ie 12288*4/1024=48 n 11264*4/1024=44).
[Samsung Galaxy W I8150] saintsoh:
check this out;

http://www.gsmarena.com/lenovo_golden_warrior_a8-6529.php :good:

incredible specs everything everybody wanted is build in it, below $200 too.
[Samsung Galaxy W I8150] saintsoh:
sorry guys, big numbers not necessary give good performance.

revert to previous settings which does better faultless performance.

edit vmscript lowmemorykiller minfree to

echo "3072,4096,5120,8192,9216,10240" > /..... :cowboy:

edit:

add update minfree vmscript.
[Samsung Galaxy W I8150] TiTAN-O-One:
Saw this phone before. In the pictures, the phone is seriously nice looking. In reality, it isnt. The bezels are thicker compared to the one shown in the pic. But ofcos it wont stop me from buying this phone.

Lack of custom ROM development and display are things I would stop buying this.

Via the Internet
[Samsung Galaxy W I8150] saintsoh:
spec n price wise, i dun mind buying it.

its superb, eventually when everyone realize how good, development will start.
[Samsung Galaxy W I8150] saintsoh:
how to determine max heapsize

how do i determine max heap size?

dalvik.vm.heapsize in system/build.prop file set the max heap size.

default dalvik.vm.heapsize=64m

currently, my setup is 72m but most gamers like to set it to 128m.

what i found out is GB heap use n size is set at default 6m n 8m respectively.

heap use n size cant be change, it is pre-set at default.

only change can be made is max heapsize.

my grudge way of determine max heap size is check to total files size in data/dalvik-cache.

depends on individual phones, the total amount of apps n games installed.

thus i suggest tat u change max heap size according to total files size in data/dalvik-cache.

increment of 4m, for example after i install a couple of app n game, dalvik-cache total files size have increase.

currently total files size it is 74.5mb, i will change dalvik.vm.heapsize=76m.

if let say yours is 77mb, increment of 4mb, set dalvik.vm.heapsize=80m.

grudge way may not be correct but seemly runs good.

periodically change max heap size when install or uninstall apps or games.
[Samsung Galaxy W I8150] saintsoh:
update vmscript.

add mmap_min_addr - increase security to low mem addresses, prevent null dereference hacking attack.

gb default is 4k (4096).

my preference is 16k (16384, this is my setting).

max for ARM is 32k (32768), any figure higher than this will render all root apps inoperable (u have been WARN).

max for desktop is 64k (65536), desktop can get away with it.
[Samsung Galaxy W I8150] sir mordred:
[MENTION=5355409]saintsoh[/MENTION] if you are still using stock rom on your W, Can you extract the framework-res.apk and upload it plase?? ı need that file :p

thanx
[Samsung Galaxy W I8150] saintsoh:
here is ur request.
[Samsung Galaxy W I8150] sir mordred:
thank you so much bro ;)
[Samsung Galaxy W I8150] saintsoh:
minor change, best balance n performance, by my butt feel. :D

run minimalist stock gb, tat means without bloated samsung widgets.

dun run any background apps like master cleaner, cm security w applock, etc.

battery temperature hoover around 37 degree C, will not exceeding 40.

every phone is not the same, so yours may not perform as mine.

use it at your own risk, but not to worry coz its virtual, not permanent.

just remove or delete script files will return your phone back to b4.
[Samsung Galaxy W I8150] saintsoh:
update vmscript parameters due to updated candy crush saga game cause lag n fc. :p

adapt as when problem arise. :D
[Samsung Galaxy W I8150] Harakhti:
Hey, [MENTION=5355409]saintsoh[/MENTION] , no doubt you may find this interesting, but the lag on custom firmware seems to be behind Google Services. I often get incredible performance during nighttime (when services in the region are less likely to update) and average performance during daytime with a hint of resource lag. Very notable if you turn Wi-Fi on and off in the afternoons and see the device freeze due to the massive syncing.
[Samsung Galaxy W I8150] saintsoh:
usually turn off internet connection, only turn on when needed.

candy crush saga game use as watermark test, it use a lot of resource to run.

afaik, lag or fc not relate to sync of google services in my case, either gb or custom rom.
[Samsung Galaxy W I8150] Harakhti:
I haven't seen an FC since maybe a month now that wasn't related to Google Now. I guess those hardware differences do their odds and ends with everyone. :p
[Samsung Galaxy W I8150] saintsoh:
well, candy crush saga (ccs) game wont lag/fc until reaches 100~120 level.

b4 i do scripts, stock gb n all custom rom will lag n fc when reach 100~120 level.

currently @ 320 level, running great with exception from last time.

ccs update will add extra levels, now max @ 690 levels. ;)
[Samsung Galaxy W I8150] saintsoh:
how do i determine max heap size?

pls ignore this, its all misguiding.

after tinkering with low n high figures.

as low as 20m b4 apps going out of breathe.

as high as 384m, 512m n above will cause bootloop.

couldnt find any guide for max heap size.

best max figure i can run smoothly is 128m. :laugh::fingers-crossed:

of course, u put 256 or 384m it will still run.

i think it depend on how much ram on the hw.

gw with 512mb ram, 350mb ram left after system loaded.
[Samsung Galaxy W I8150] TiTAN-O-One:
Idk abt you but i rmb setting my phone up to 128mb but then it kinda lags. 72mb works okay. Im currently using 72mb

Via the Internet
[Samsung Galaxy W I8150] saintsoh:
now tat u mention it, i do notice some lag with 128m setting.

candy cush saga 2014 nov update causing hiccup, now dun seem to close when exit.

set back to 72m, seemly this is good setup. :good:
[Samsung Galaxy W I8150] saintsoh:
vmscript update, minor change on parameters to keep temperature down. :o
[Samsung Galaxy W I8150] saintsoh:
i've experienced some form of lag or slow mode whilst playing ccs (candy crush saga).

solution:

use root explorer n edit vmscript file (dun forget to mount rw if it is in init.d folder).

change dirty_writeback_centisecs parameter from 6000 to 3000.

default stock values r 60000 (10 mins).

b4 it was set at 500 (5 sec), its make cpu work constantly.

tats why battery get heated up fast.
[Samsung Galaxy W I8150] saintsoh:
sorry guys, slightly better but still lag.

lower the parameters further down runs better if u r playing games.
[Samsung Galaxy W I8150] saintsoh:
cant have both performance n conserve battery power (to reduce heat) at the same time.

here r the options:

1) conserve energy n not into games, set as:

2) intermediate, in-between, set as:

3) into games n performance, set as:

pick the best. :p
[Samsung Galaxy W I8150] saintsoh:
minor change to vmscript;

edit vmscript n change min_free_kbytes parameter from 2816 to 3072.

ccs nov update use more memory resources, this solved lag due to insufficient memory. :)
[Samsung Galaxy W I8150] saintsoh:
minor vmscript update, managed to smooth out ccs lag, maybe due to heavy load.

final, no more tat i think i can come up with. :D

to summarize:

compressed file contains three files, unzip n copy files to external_sd;

1) build.prop.addon, copy all text n paste to eol (end-of-line) /system/build.prop file (remember to mount rw b4 editing).

2) ReadAheadKbCode n vmscript141122 r script files, use either init.d support or script manager.

(note: learn howtouse script files, read previous postings).
[Samsung Galaxy W I8150] saintsoh:
again, beg my pardon. :p

just when i think tat i had it nailed, going fore playing ccs level 339, hit lag n fc. failure....... :crying:

re-adjust, increase lowmemorykiller parameters, continue to ccs level 340.......hopefully no more surprises. :highfive:
[Samsung Galaxy W I8150] saintsoh:
bomber, stuck at ccs level 340 n lag but no fc. ;)

reconfig lowmemorykiller.......mmm, seem to run smooth.

dk wat will happen next. :D
[Samsung Galaxy W I8150] saintsoh:
ok, lowmemorykiller reconfigured parameters work well.

free more memory resources, unused resources r wasteful resources (linux logic).

edit vmscript n change min_free_kbytes from 3072 to 2048.

if u've problem try 2560 or 2816 (always use 4k pages, eg. 2560*4/1024=10, 2816*4/1024=11 or 3072*4/1024=12 pages).
[Samsung Galaxy W I8150] saintsoh:
another failure after moving up one level to ccs level 341, lag n fc.

for gamers, maintain min_free_kbytes parameter @ 3072 or 4096 whichever gives better performance.

ccs graphics r rich, min_free_kbytes parameter @ 2048 unable to cope with. :silly:
[Samsung Galaxy W I8150] saintsoh:
ok, up a ccs level to 342.

run smooth, no lag, no fc......so far so good. :D

set min_free_kbytes=4096.

finalized done. :)
[Samsung Galaxy W I8150] saintsoh:
every time up a level (current ccs @ level 345), mr. lag show up.

as long as hw can handle the lag, fc will not happen.

its the hw limitations, as good as it can be. :)

change up lowmemorykiller, double the default values.

its great n able to play candy crush saga where all others have failed.

enjoy. :D
[Samsung Galaxy W I8150] TiTAN-O-One:
Everytime up a level, Mr. [MENTION=5355409]saintsoh[/MENTION] shows up and sends a lagfix fix that actually works for CM9 also :D

I have never seen anybody so engrossed at CCS before :D:thumbup:
[Samsung Galaxy W I8150] saintsoh:
u should try playing candy crush saga.

up to 100 level r simple, kiddy stuff.

the challenge start above 100 level.

dun buy any thing, else can be costly. :p
[Samsung Galaxy W I8150] saintsoh:
update vmscript. :)

add file-max.

increase file-max parameter, default from 37505 to 65536. :D
[Samsung Galaxy W I8150] saintsoh:
recent candy crush saga (ccs) update has stop enticing me from playing it. :p

i stop tinker with gw stock gb since it already optimized. :D

ps;

for those playing ccs, its good to set max heap size to 128m on /system/build.prop file.

stock default is dalvik.vm.heapsize=64m.

build.prop.addon is dalvik.vm.heapsize=72m.

gamers set dalvik.vm.heapsize=128m.

edit on 141211;

couldnt decide, settle in the middle, set to dalvik.vm.heapsize=96m. :silly:
[Samsung Galaxy W I8150] saintsoh:
sometime i amaze myself, i want to stop but cant. :D

vmscript update. :o

add perf_event_max_sample_rate.

set perf_event_max_sample_rate to 50000.

default 100000 = 0.1 sec.

set 50000 = 0.05 sec.

improve performance responsiveness.

enjoy. :)
[Samsung Galaxy W I8150] saintsoh:
vmscript update, no more lag. :D

add shmall, shmmax, threads-max. :)
[Samsung Galaxy W I8150] saintsoh:
merry x'mas to all.... :angel:

x'mas present vmscript update. :laugh:

max utilization of memory allocation optimize base on 350mb as per gw memory lot.

enjoy.

merry x'mas....

ho..ho..ho.......
[Samsung Galaxy W I8150] saintsoh:
whewwwww..

tot was not able to restore backup after try out the latest cm11-20141223...its a very close call. :victory:

be warn, if u flash the new recovery-6.0.5.1, u will not be able to restore ur backup nandroid.

coz the new recovery image will result in error "can't mount /data".

flash old recovery-6.0.5.1.

goto "advanced" menu, and select reboot recovery.

recovery has loaded,

select wipe data/factory reset.

goto "mounts and storage" menu,

select format /system,

select format /data, then u can restore ur backup.

old recovery-6.0.5.1 link:

http://xdaforums.com/showpost.php?p=55445744&postcount=313
[Samsung Galaxy W I8150] TiTAN-O-One:
I still don't understand why there's issues with new recovery :confused:

Sent from mah AssForMini :D
[Samsung Galaxy W I8150] saintsoh:
becoz new partition created - data/media - for future cm12.
[Samsung Galaxy W I8150] saintsoh:
vmscript update.

add randomize_va_space.

disable randomize, allow smooth operations.

default is 1.

set to 0.

randomize_va_space values:

0: No randomization of address space.

1: Conservative address space randomization. Code start register will be randomized.

2: Full address space randomization. Contains the feature of value 1 in addition brk area is randomized.

Virtual memory

No randomization of address space, each program will have exactly the same memory structure, making hardcoding of instruction and push the instruction to the fixed memory space easier.

With address space randomization, each execution of a program will be residing in different starting addresses. This makes hardcoding and pushing of hardcoded instruction to the predicted memory space harder. Linux security measure to prevent hacking.
[Samsung Galaxy W I8150] saintsoh:
minor change to sem parameters.

edit vmscript, change sem parameters from;

echo "250 96000 100 384" > /proc/sys/kernel/sem; to

echo "250 9600088000 100 384352" > /proc/sys/kernel/sem;

edit:

reference to semmns;

edit build.prop in /system,

change dalvik.vm.heapsize from 72, 96 or 128m to 88m.

dalvik.vm.heapsize=88m

done, save n reboot.
[Samsung Galaxy W I8150] TiTAN-O-One:
About the dalvik.vm.heapsize thing. W?hat happens if we set it high/low

Sent from my S800 China Phone
[Samsung Galaxy W I8150] saintsoh:
dalvik vm heap size is about dalvik cache, i may be wrong.

u can do a search about heap size.

too low will not be enough to run system/app/game.

tried as low as 16m, stop at boot or run app/game will fc.

too high, just waste memory.

tried as high as 512m, boot loop, no memory left for other stuffs.

heap size at 384m can run wo problem but dun know wat other problems will it cause.

when stuck at boot up or loop, restore backup nandroid.

give it a try n learn the effects of low n high.

edit:

link below may explain better about heap size;

https://butterflydroid.wordpress.com/2011/09/22/what-is-dalvik-vm-heapsize-benefits-and-downfalls/
[Samsung Galaxy W I8150] TiTAN-O-One:
Ah, get it now i own a cheap as heck Huawej device (as cheap as 69 sgd). The heapsjze is very low and i can't run even Temple Run 1. Set it abit higher but gotten freezing

Sent from mah AssForMini :D
[Samsung Galaxy W I8150] saintsoh:
do note tat the parameters set here is based on 350mb memory after system load.

it is for stock gw gb only n may not be compatible for other models.

if use on other models,

check parameters as per vmscript n it should change when implement if not, it has no effect.

how to check parameters?

dun use emulate terminal, becoz it is tedious to type full sentence for every cat command.

use any root explorer, browse thru vmscript parameter folders n view it (file).

as simple as tat.
[Samsung Galaxy W I8150] saintsoh:
vmscript update.

increase inofity profile.
[Samsung Galaxy W I8150] saintsoh:
WARNING:

ALWAYS DO A NANDROID BACKUP FIRST.

USE IT AT YOUR OWN RISK, I'M NOT RESPONSIBLE FOR YOUR OWN DEMISE.

script update. :D

edit on 10-Apr-2015:

sorry, some misgivings.

removed shmmni, shmmax, shmall, msgmni, msgmax, msgmnb parameter settings.
[Samsung Galaxy W I8150] TiTAN-O-One:
Oh my, long time no see! :D I thought you stopped with the VMScript Update already :D

Sent from my Lol-ed S4 Mini :D
[Samsung Galaxy W I8150] saintsoh:
just sharing... :o

i also got a phablet runs much better gw.

phablet is large n cumbersome, gw is much more handy n still working fine.

with this script, it runs as good as my phablet, share it with anyone whom still using gb.

this is for gw stock rom only coz the parameters r based on 352mb ram as per stock gb rom.

may not work with other tweaks incorporated or custom roms.

just enjoy it as i did with it. :)