Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
pyronia
Old
(Last edited by pyronia; 12th May 2012 at 06:28 AM.)
#1  
pyronia's Avatar
Senior Member - OP
Thanks Meter 171
Posts: 1,490
Join Date: Oct 2011
Location: Puchong
Default [GUIDE] how to EASY Script making | my collections of script

Click image for larger version

Name:	uploadfromtaptalk1328149292994.png
Views:	475
Size:	144.0 KB
ID:	883612

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!
Click image for larger version

Name:	uploadfromtaptalk1328149223213.png
Views:	534
Size:	32.0 KB
ID:	883611

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 ργяσ™•
.Galaxy Ace GT-S5830 /Instanet Free Data Access

[init.d SCRIPT] TURN-OFF TOUCH KEY LIGHT!!!
[init.d SCRIPT] SET DEFAULT I/O SCHEDULER



Quote:
Originally Posted by slaid480 View Post
Scripts are starting correctly for Me,I used Script manger!!
VPN PALING MURAH RM5 SEBULAN
SAMSUNG GALAXY NOTE RM1560
BlackBerry BIS UNLIMITED - sekali bayar utk seumur hidup!
The Following 16 Users Say Thank You to pyronia For This Useful Post: [ Click to Expand ]
 
domnic79
Old
#2  
domnic79's Avatar
Recognized Contributor
Thanks Meter 768
Posts: 1,335
Join Date: Apr 2011
Location: Panaji
Do u hv any script to increase d 2g speed?

TEAM COOPER. Wanna support us? click on d links below->
https://mobile.twitter.com/CooperROMs

http://facebook.com/pages/TeamCooper...555792517&_rdr
Dont jus say thanks, use d 'THANKS' button. [XDA RULE]


Phone: Galaxy Note GT-n7000
Rom: Team Union v6
Member of Team Cooper
My Work for Galaxy Ace 5830i:
Simplicity

Dont jus say thanks, use d THANKS button. [XDA RULE]
 
JernejB2
Old
#3  
Member
Thanks Meter 1
Posts: 46
Join Date: Jul 2011
sorry bro, this ain't DIY guide!
 
pyronia
Old
#4  
pyronia's Avatar
Senior Member - OP
Thanks Meter 171
Posts: 1,490
Join Date: Oct 2011
Location: Puchong
Quote:
Originally Posted by JernejB2 View Post
sorry bro, this ain't DIY guide!
So what is it?





regards,
•ƒγяύs ργяσ™•
.Galaxy Ace GT-S5830 /Instanet Free Data Access

[init.d SCRIPT] TURN-OFF TOUCH KEY LIGHT!!!
[init.d SCRIPT] SET DEFAULT I/O SCHEDULER



Quote:
Originally Posted by slaid480 View Post
Scripts are starting correctly for Me,I used Script manger!!
VPN PALING MURAH RM5 SEBULAN
SAMSUNG GALAXY NOTE RM1560
BlackBerry BIS UNLIMITED - sekali bayar utk seumur hidup!
The Following User Says Thank You to pyronia For This Useful Post: [ Click to Expand ]
 
pyronia
Old
#5  
pyronia's Avatar
Senior Member - OP
Thanks Meter 171
Posts: 1,490
Join Date: Oct 2011
Location: Puchong
Quote:
Originally Posted by domnic79 View Post
Do u hv any script to increase d 2g speed?

TEAM COOPER. Wanna support us? click on d links below->
https://mobile.twitter.com/CooperROMs

http://facebook.com/pages/TeamCooper...555792517&_rdr
Dont jus say thanks, use d 'THANKS' button. [XDA RULE]
Did u try build.prop tweak?

ro.ril.hep=1
ro.ril.hsxpa=2
ro.ril.enable.dtm=1
ro.ril.gprsclass=12
ro.ril.hsdpa.category=8
ro.ril.enable.a53=1
ro.ril.hsupa.category=5
ro.ril.enable.3g.prefix=1





regards,
•ƒγяύs ργяσ™•
.Galaxy Ace GT-S5830 /Instanet Free Data Access

[init.d SCRIPT] TURN-OFF TOUCH KEY LIGHT!!!
[init.d SCRIPT] SET DEFAULT I/O SCHEDULER



Quote:
Originally Posted by slaid480 View Post
Scripts are starting correctly for Me,I used Script manger!!
VPN PALING MURAH RM5 SEBULAN
SAMSUNG GALAXY NOTE RM1560
BlackBerry BIS UNLIMITED - sekali bayar utk seumur hidup!
The Following User Says Thank You to pyronia For This Useful Post: [ Click to Expand ]
 
tossan
Old
#6  
tossan's Avatar
Senior Member
Thanks Meter 69
Posts: 133
Join Date: Jan 2012
Location: Hueco Mundo
Thumbs up Appreciated!

Thanks for the foolprooved guidance for a noob like me. Runs perfectly after the first shot.
Now let's see how longer the battery will last after this tweak. Will also try the other scripts and tell ya the outcome!
^^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Quote:

[ATTN - ALL ANDROID DEVS]
A droid with a not working 5.0 MPix camera built-in is just as useful as an iPhone without the jailbreak. ...

And yes ... truth hurts pretty much.
It normally begins with the eyes, then going straight into the brain. Sometimes new connections will be made there, but most of the time no traces will be left. Consider yourself unlucky, if the latter is the case.

U
wanna quit? Don't speak out loud threats, which you will never fulfill. ...
 
pyronia
Old
#7  
pyronia's Avatar
Senior Member - OP
Thanks Meter 171
Posts: 1,490
Join Date: Oct 2011
Location: Puchong
Quote:
Originally Posted by tossan View Post
Thanks for the foolprooved guidance for a noob like me. Runs perfectly after the first shot.
Now let's see how longer the battery will last after this tweak. Will also try the other scripts and tell ya the outcome!
^^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Which tweak do u use now?





regards,
•ƒγяύs ργяσ™•
.Galaxy Ace GT-S5830 /Instanet Free Data Access

[init.d SCRIPT] TURN-OFF TOUCH KEY LIGHT!!!
[init.d SCRIPT] SET DEFAULT I/O SCHEDULER



Quote:
Originally Posted by slaid480 View Post
Scripts are starting correctly for Me,I used Script manger!!
VPN PALING MURAH RM5 SEBULAN
SAMSUNG GALAXY NOTE RM1560
BlackBerry BIS UNLIMITED - sekali bayar utk seumur hidup!
The Following User Says Thank You to pyronia For This Useful Post: [ Click to Expand ]
rohanb10 Old
#8  
Guest
Thanks Meter
Posts: n/a
Does the Internet Speed tweak work for 3G/2G/Both?
 
tossan
Old
#9  
tossan's Avatar
Senior Member
Thanks Meter 69
Posts: 133
Join Date: Jan 2012
Location: Hueco Mundo
Quote:
Originally Posted by pyronia View Post
Which tweak do u use now?
At first attempt: The tweak in the OP.
I'll let it run for a week. Should by then everything seems to be ok, I'll tackle your next script ("TOUCH KEY LIGHT OFF"). If it should becoming somehow disturbing to the whole eco system, I can just uninstall the script by deleting it from the init.d folder, right?
... Sorry for the noobish questions. Thanks in advance! ...
^^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Quote:

[ATTN - ALL ANDROID DEVS]
A droid with a not working 5.0 MPix camera built-in is just as useful as an iPhone without the jailbreak. ...

And yes ... truth hurts pretty much.
It normally begins with the eyes, then going straight into the brain. Sometimes new connections will be made there, but most of the time no traces will be left. Consider yourself unlucky, if the latter is the case.

U
wanna quit? Don't speak out loud threats, which you will never fulfill. ...
 
pyronia
Old
#10  
pyronia's Avatar
Senior Member - OP
Thanks Meter 171
Posts: 1,490
Join Date: Oct 2011
Location: Puchong
Quote:
Originally Posted by tossan View Post
At first attempt: The tweak in the OP.
I'll let it run for a week. Should by then everything seems to be ok, I'll tackle your next script ("TOUCH KEY LIGHT OFF"). If it should becoming somehow disturbing to the whole eco system, I can just uninstall the script by deleting it from the init.d folder, right?
... Sorry for the noobish questions. Thanks in advance! ...
^^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Yes, to disable either u change the permission to 644 or remove it...then reboot...





regards,
•ƒγяύs ργяσ™•
.Galaxy Ace GT-S5830 /Instanet Free Data Access

[init.d SCRIPT] TURN-OFF TOUCH KEY LIGHT!!!
[init.d SCRIPT] SET DEFAULT I/O SCHEDULER



Quote:
Originally Posted by slaid480 View Post
Scripts are starting correctly for Me,I used Script manger!!
VPN PALING MURAH RM5 SEBULAN
SAMSUNG GALAXY NOTE RM1560
BlackBerry BIS UNLIMITED - sekali bayar utk seumur hidup!

The Following User Says Thank You to pyronia For This Useful Post: [ Click to Expand ]
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...