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