Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
fuss132
Old
(Last edited by fuss132; 24th April 2012 at 07:57 PM.)
#1  
fuss132's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 4959
Posts: 1,462
Join Date: Dec 2010
Location: Augsburg

 
DONATE TO ME
Angry [MOD] Various Tweaks for your Galaxy S2G

Hey guys,

I would like to start to develop for this phone even without a phone (but I hope this fact is changing soon ^^ I saved 200euro by myselfe to buy a phone maybe you can help me with the rest :P).

Doesn´t matter here´s a flashable zip (untested because of the no device point) that should work and includes the following tweaks. Download it and flash it through CWM. I played abit with your device´s files Detailed explanation of what is included below. Of course other Devs can use this in their Roms without asking.

Please report Bugs if you´ve found any!


GPS Boost (Credits to Crescendo Xenomorph for your brilliant idea, I played a bit with the values that are in the file you found):

To come to a better GPS and faster capture of location I edited /system/etc/sirfgps.conf

Quote:
PROJECT=SAMSUNG_T1
UART_DRIVER=/dev/ttyO0
RESET_GPIO=/sys/devices/virtual/sec/gps/GPS_nRST/value
ONOFF_GPIO=/sys/devices/virtual/sec/gps/GPS_PWR_EN/value
EXTERNAL_LNA=1
REF_CLOCK_26MHZ=1
UART_BAUD_RATE=2
FREQUENCY_AIDING=0
SENSOR_AIDING=0
SET_ID_IMSI=1
DEBUGGING_FILES=0
SSL_ENABLED=1
CERTI_VERSION=0
CP_RESPONSETIME=2
CONTROL_PLANE=1
ATT_NETWORK_OPERATOR=0
EMC_ENABLE=0
If you change EMC_ENABLE, SENSOR_AIDING and FREQUENCY_AIDING to 1 there will be a big improvement but also more battery consume when you use GPS. (Of course already done in the .zip).


Faster Boot:

To enable a faster boot I edited the script /system/etc/init.goldfish.sh

Quote:
[...]
# disable boot animation for a faster boot sequence when needed
boot_anim=`getprop ro.kernel.android.bootanim`
case "$boot_anim" in
0) setprop debug.sf.nobootanimation 1
;;
esac
[...]
You have to make sure that setprop debug.sf.nobootanimation 1 will be done in every case, you will now boot very faster. (Also done in the .zip).


Higher IdleTimeout (Bluetooth):

It´s not really a Tweak I just increst the IdleTimeout time because I always use it at this level, it seems more logical to me. Edited in /system/etc/bluetooth/input.conf

Quote:
# Configuration file for the input service

# This section contains options which are not specific to any
# particular interface
[General]

# Set idle timeout (in minutes) before the connection will
# be disconnect (defaults to 0 for no timeout)
#IdleTimeout=30

Longer DiscoverableTimeout (Bluetooth):

When I want to transfer files via bluetooth I always anger about the low time the phone is by default in a discoveryable mode (so that your device can be seen by other devices). So I also cahnged this from 180 to 300

Quote:
[...]
# How long to stay in discoverable mode before going back to non-discoverable
# The value is in seconds. Default is 180, i.e. 3 minutes.
# 0 = disable timer, i.e. stay discoverable forever
DiscoverableTimeout = 300
[...]
You can find the lines in /system/etc/bluetooth/main.conf



Set PairableTimeout (Bluetooth):

Samsung invented the DiscoverableTimeout but doesn´t use the pairablemodeTimeout to save battery! Why?

Quote:
[...]
# How long to stay in pairable mode before going back to non-discoverable
# The value is in seconds. Default is 0.
# 0 = disable timer, i.e. stay pairable forever
PairableTimeout = 0
[..]
So I set a PairableTimeout at 1000 by default. You can find the lines in /system/etc/bluetooth/main.conf


If you have any problem feel free to post your question below. I will add some other tweaks when I found some new If you like my work, please thank, may consieder a donation and line my facebook page. Thanks! Happy flashing


Attached Files
File Type: zip various_tweaks.zip - [Click for QR Code] (237.3 KB, 223 views)
The Following 22 Users Say Thank You to fuss132 For This Useful Post: [ Click to Expand ]
 
rascal123
Old
#2  
rascal123's Avatar
Senior Member
Thanks Meter 52
Posts: 387
Join Date: Mar 2012
Location: kl
Awesome works.. thanks for ur hardwork..neway this G device got lots of trouble like music stutter while listening to the music through earphone...and also hang a lot..can hang just because of turning on or off a wifi sometime and so on..could u please see through this device and if possible could u please do ot edit some tweaks that may lighter this device so that it will not hang a lot..

Sent from my GT-I9100G
 
fuss132
Old
#3  
fuss132's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 4959
Posts: 1,462
Join Date: Dec 2010
Location: Augsburg

 
DONATE TO ME
Quote:
Originally Posted by rascal123 View Post
Awesome works.. thanks for ur hardwork..neway this G device got lots of trouble like music stutter while listening to the music through earphone...and also hang a lot..can hang just because of turning on or off a wifi sometime and so on..could u please see through this device and if possible could u please do ot edit some tweaks that may lighter this device so that it will not hang a lot..

Sent from my GT-I9100G
I will do this
This here is more like what configs I find usefull but when I know more about the device I will do the real improvements

Sent from my GT-I9000 using XDA
The Following 2 Users Say Thank You to fuss132 For This Useful Post: [ Click to Expand ]
 
punjprateek
Old
#4  
Senior Member
Thanks Meter 62
Posts: 297
Join Date: Dec 2011
Location: new delhi
Anyone check and plss report does all bluetooth tweaks are working or not...

Sent from my GT-I9100G using XDA
------------------------------------------------------
Phone Owned:
Galaxy I9003 SL (SOLD)
Galaxy I9100G S2
Custom Rom
CyanogenMod 9 builds
Custom Kernel
CyanogenMod 9 Kernel
The Following User Says Thank You to punjprateek For This Useful Post: [ Click to Expand ]
 
DocteurT
Old
#5  
DocteurT's Avatar
Senior Member
Thanks Meter 27
Posts: 114
Join Date: Apr 2012
Default thanks

danke mein freund , will try the faster boot for sure
 
Metallico
Old
#6  
Metallico's Avatar
Senior Member
Thanks Meter 71
Posts: 561
Join Date: Apr 2012
Location: Montevideo (Uruguay)
The GPS improve didn´t work for me.

Regards!
 
Schkorpi
Old
#7  
Junior Member
Thanks Meter 1
Posts: 8
Join Date: Apr 2012
Location: Lennep
Great work, GPS connects much faster now, boot is also faster. Thx
 
rascal123
Old
#8  
rascal123's Avatar
Senior Member
Thanks Meter 52
Posts: 387
Join Date: Mar 2012
Location: kl
Blutooth and gps are working just ammend the tweak myself using root explorer cause i still want my bootanmation thanks for sharing the code..waiting for further tweaks from u fuss..

Sent from my GT-I9100G
 
lolapalola9
Old
#9  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Apr 2012
Hi...fuss...can u provide the untweek version too..becouse my s2 bootanimation seen disappear after i flash ur tweek....can u help me?
 
Madarox
Old
#10  
Senior Member
Thanks Meter 23
Posts: 251
Join Date: Feb 2012
Location: Alexandria
Quote:
Originally Posted by rascal123 View Post
Blutooth and gps are working just ammend the tweak myself using root explorer cause i still want my bootanmation thanks for sharing the code..waiting for further tweaks from u fuss..

Sent from my GT-I9100G
When u edited the script yourself,did you change anything in the code provided to keep ur boot animation ?

 
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...