FORUMS

[DEV] Script for tweaks (version 1.02) 18-12-2010

54 posts
Thanks Meter: 23
 
By ruigui, Member on 10th December 2010, 01:23 PM
Post Reply Email Thread
Here is a script i've made (had nothing to do, so...).
Phone must be rooted and have busybox installed.

What first menu looks like:
Quote:

1 - enable/disable hardware acceleration
2 - enable/disable jit
3 - enable/disable stagefright player
4 - change heapsize

s - show status
r - revert to original configuration

q - quit (don't forget to reboot your phone!)
==================
enter your option:

Download:
http://www.4shared.com/file/gApTB6EG/tweaks.html
md5 b0865d9de67a82215913512cb644211d

Just copy the file to your sdcard. Then in a terminal emulator run:
su
cat /sdcard/tweaks > /data/tweaks
rm /sdcard/tweaks
cd /data/
./tweaks

If it doesn't run, type first:
chmod 755 /data/tweaks

Additional notes:
Script does not work if run from sdcard, must be in /data/ or /system/ (this one goes to allsalvati for testing)

---

If anything is wrong i will fix it, but only if you give me feedback
If you know any good tweaks, say it and i'll add them.

---

Changelog:
version 1.02:
backup/restore added

version 1.01d:
working again. sorry for the mess...

version 1.01c:
nothing new. just rearranging code

version 1.01b:
messages were not staying in output. fixed

version 1.01a:
small fix. v1.01 was not working

version 1.01:
added status menu
The Following 5 Users Say Thank You to ruigui For This Useful Post: [ View ] Gift ruigui Ad-Free
10th December 2010, 02:14 PM |#2  
The_ERROR's Avatar
Senior Member
Flag Ostrava (mostly)
Thanks Meter: 364
 
More
Quote:
Originally Posted by ruigui

Here is a script i've made (had nothing to do, so...). Phone must have busybox.
Download:
http://www.4shared.com/file/gApTB6EG/tweaks.html
md5 ea568c399c67ecd87db0dd790cdf0e93

Just copy the file to your sdcard. Then in a terminal emulator run:
cd /sdcard/
./tweaks

If it doesn't run, type first:
chmod 777 /sdcard/tweaks

Please give me some feedback. I don't own the phone so i can't test.

what the script does?
10th December 2010, 02:24 PM |#3  
The_ERROR's Avatar
Senior Member
Flag Ostrava (mostly)
Thanks Meter: 364
 
More
So script should be able to do:
  • enable/disable hw acceleration
  • enable/disable jit
  • enable/disable stagefright player
  • change heapsize
10th December 2010, 02:28 PM |#4  
OP Member
Thanks Meter: 23
 
More
Yes. For now it's what it does.
The ideia is to be able to enable/disable a certain tweak, without reflashing zips, and rewriting files in phone.
But i need some feedback to know if it is working. I can't test it.
It will only change values in /data/local.prop, nothing else.
10th December 2010, 02:55 PM |#5  
The_ERROR's Avatar
Senior Member
Flag Ostrava (mostly)
Thanks Meter: 364
 
More
It seems that it is well written, so I will try that and let you know what's happened.
10th December 2010, 03:01 PM |#6  
OP Member
Thanks Meter: 23
 
More
Thanks for testing. I'm still waiting to have some money so i can buy this phone...
Meanwhile, i'm "playing" with ROMs and files. I'm not good at scripting, but i'm trying to learn while doing something useful.
10th December 2010, 03:19 PM |#7  
Member
Thanks Meter: 14
 
More
How much did you increase the heap size?
10th December 2010, 03:32 PM |#8  
OP Member
Thanks Meter: 23
 
More
Quote:
Originally Posted by domenic_s

How much did you increase the heap size?

I didn't increase it. Script shows this message:
"default=24, recommended=32"
"enter new heapsize value (1-64): "

You can enter any value between 1 and 64.

If you enter any other value, or a string, character, symbol... script will show this message:
"wrong value"
"please input a value between 1 and 64"
10th December 2010, 07:51 PM |#9  
eigokyoukan's Avatar
Senior Member
Flag Cincinnati
Thanks Meter: 321
 
More
For those who don't feel like editing this themselves this is great. Thanks for releasing it for people to try out more tweaks on stock ROMs.
10th December 2010, 08:12 PM |#10  
Senior Member
Flag Florianópolis
Thanks Meter: 16
 
More
i'm trying to run this script and gives me the following message: ./tweaks: permission denied

Before anything i typed su, then chmod 777 and it gave me error.
10th December 2010, 08:45 PM |#11  
OP Member
Thanks Meter: 23
 
More
It should work be working...
Anyone else confirms this issue? Is this script running or not?
If it is working and there are more tweaks, i can easilly add them to the script.
If this is an isolated case, i really can't help. I don't own an android phone (yet), so i can't test....

allsalvati do you have busybox installed?
Post Reply Subscribe to Thread

Tags
script, tweak

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes