[GUIDE] how to EASY Script making | my collections of script
First of all, i'm not a dev...so, do not ask to much. I'm just a newbie that read and learn too much :P
This is a tutorial to make a script the easy way! As i google a lot, i find most dev are telling u a big lie! And u dont know it, most of popular words from them is "u have to use notepad++" or something advance like it to edit and make a script.
THE SECRET NOW REVEALED!
Well, lets make it simple...what u need is;
1.Root phone.
2.Root explorer or any file manager with root access.
3.A brain that can think
Our test subject is the Battery Tweak, copy script below;
#!/system/bin/sh
echo "500" > /proc/sys/vm/dirty_expire_ centisecs
echo "1000" > /proc/sys/vm/dirty_writeback_ centisecs
-Open root explorer, go to your sdcard.
-Tab menu> more> new file.
-Write a name like 25BatteryTweak.
-Save!
-Now, tab and hold on the file then tab Open in text editor.
-Tab and hold to paste the script.
-Save!
There u have it, a script made by u
All u have to do now is copy it to system/init.d folder then tab on mount/rw.
Tab and hold the file, tab permission and set permission to rwxr-xr-x like picture below then reboot!
All done in the phone, NO pc required!
My collections of SCRIPT'S
Default I/O Scheduler
BFQ
CFQ
DEADLINE
NOOP
VR
SIO
etc:
TOUCH KEY LIGHT OFF
INTERNET SPEED TWEAK
BATTERY TWEAK
DEADLINE IO SCHEDULER TWEAK
KERNEL TWEAK
Why i make a sapareted script? For me, bloat script with too much lines wont work :P dont get it? Figure out yourself
( if u download the script via PC and it became notepad file with .txt extention, dont panic dude

just put it in your sd then rename the script by remove the ".txt" )
------------------------------
How to check if the script is execute or not?
For example, to check the battery tweak...before u apply the script type this on terminal emulator;
su
cat /proc/sys/vm/dirty_expire_ centisecs
cat /proc/sys/vm/dirty_writeback_ centisecs
U will get...
su
cat /proc/sys/vm/dirty_expire_ centisecs
1000
cat /proc/sys/vm/dirty_writeback_ centisecs
2000
After apply the tweak u will get to see the change in the default value...
su
cat /proc/sys/vm/dirty_expire_ centisecs
500
cat /proc/sys/vm/dirty_writeback_ centisecs
1000
------------------------
If this post somehow help u, kindly hit the thanks button...or u can buy me chapati :P
regards,
•ƒγяύs ργяσ™•