[Galaxy S Advance I9070 Original Android Developmen] cocafe:
HOW-TO for old versions

( Charger control )

Please note that this control can damage your battery/phone.

If your battery/phone damaged,read the top of #1 post. :p

Lower current makes the charging longer,but protects battery.

Too high current can burn your battery!

I recommend you that dont set the max limited current over 900mA.

To change the AC max limited current: (range: 100 - 1100) (default: 600)

To change the USB max limited current: (range: 50 - 1100) (default: 500)

* Your values wont be applied immediately.They will be applied when plug charger.

* I recommend you input some values like 300,350,600...

* The value(s) that is not in range will be reverted to stock default value(s).

* Increase USB current properly can implement USB fast charging

To get the charging current:

When you plug charger:

( Real charged notification )

Well,please let me call it notification.

To be honest,it needs to check manually.

* You can use Rootexplorer to view this file.

* When it says "First full charging reached",then the UI should show you charged 100%

But it is not the real full charged.

* When it says it is the real full charged,you can unplug the charger.

* When you are charging and do a reboot will reset the counter.

* According to my experiments,it needs 1-2 hours to charge to real full.

( Sound control )

Please note that listening to too high volume music over 1 hour can damage your ears.

Or makes your speaker/headset overload.

( 5.0+) Sound control has been enhanced.

( 5.1+) Sound control behaviours have been optimized.

Switch to sound control folder first:

cd /sys/mo*/snd_soc*/p*

* Use RootExplorer to view this folder,you will see a lot files.

Sound hacks wont take effects immediately.It depends on powering on/off ab8500 asoc.

Stop music for 5s to let ab8500 asoc shut down fully,then turn on music.

You need to enable XXXXX_con first,then tweak the XXXXX_bit.

After enabling XXXXX_con,it will be applied when codec powers on or it wont.

How do i check whether it has shuted down or not?

dmesg | grep codec

If you get "Disable ab850x",it has been powered off.

I will explain how to calculate the binay values below.

If we echo 0000 to something,system will consider it as 0.

But that doesnt matter.

'(default)' means that is my default setting in sound control.

[AnaGain3] (Headset audio path):

Ana stands for 'analong'.This is analong gain.

To enable control:

To tweak volume: [volume 0(default, +31dB) > 34 > 68(stock) > 85 > 87]

* Most values(except 0,34,68,85) will make the volume lost balance.

* If you hear too much noise with 0,34 is recommended.

* It is nice to use 0 with large speakers(audio output)

[HsXDigGain] (Headset Digital Gain)

HsL means left channel.HsR is the right.

To enable control:

To tweak:

* 0000: +8 dB gain (default)

* 0001: +7 dB gain

* ....: -1 dB step

* 0111: +1 dB gain

* 1000: 0 dB gain

* 1001 to 1111: -inf dB gain (mute)

* If you use +31 dB AnaGain3 + +8 dB DigGain,the result will higher than +39dB!

* Be careful,when the volume is too high,codec will power off automatically.

* Experience the differences between digital gain and analong gain by yourself.

[HsLowPow] (Headset low power mode)

This lowpow mode is enabled by driver normally.

If you want high performance audio instead of LPA(low power audio),

You can disable it.

To enable control:

To tweak:

* 0: Normal Operation (default)

* 1: Hs drivers in Low Power

[HsDacLowPow] (Headset DAC low power mode)

DAC is Digital-to-Analong Converter.

This lowpow mode is enabled by driver normally.

To enable control:

To tweak:

* 00: Normal Operation (default)

* 01: Hs DAC drivers in Low Power

* 10: Hs DAC in Low Power

* 11: Hs DAC and Hs DAC drivers in Low Power

[HsHP] (Headset high pass filter)

This high pass filter is disabled by driver normally.

Enable this can reduce some sub-nosie of audio.

To enable control:

To tweak:

* 0: Headset high pass filter disabled

* 1: Headset high pass filter enabled (offset cancellation enabled) (defualt)

[ClassDDithHPGain]

ClassD is a kind of amplifier.

According to the documents,our ClassDs only relate to Handsfree(speaker).

To enable control:

To tweak:

* Gain control for the high pass component of dithering filter

* 0000: Minimum gain

* ....:

* 1010: Maximum gain (default)

[ClassDDithWGain]

* Gain control for the white component of dithering filter

* 0000: Minimum gain

* ......:

* 1010: Maximum gain

[ClassDHiVol]

This is a gain of speaker.But +2dB only. :(

echo 1 > classdhivol_con

Say 1(default) to enable:

* In fact,our speaker is right channel only!

[ADDigGain2]

This is the audio path of mic2

* Default: about +20dB

* Max: Say 0 to addiggain2_bit to +31dB

[EarDigGainb]

This is the digtal gain of earpiece

Experimental still.But you can try.

* The values of eardiggain_bit is the same as hsldiggain_bit

How to calculate the binary values?

We use HsXDigGain as example.

The gain step is "+1".

In binary: So the values will like these:

0+1 = 1 | 0001: +7 dB

1+1 = 10 | 0010: +6 dB

10+1 = 11 | 0011: +5 dB

11+1 = 100 | 0100: +4 dB

..... | ......

( Fsync control )

To disable fsync: (0=disable 1=enable)

* Disabling fsync can improve io performace,

but it can make the data which hasnt been written lose when a sudden poweroff comes.

* Disabling fsync or enabling dyn_fsync will make param driver fail to store data

That means your "reboot recovery" will be failed.

To enable dynamic fsync:

* Dynamic fsync will sync all buffers when screen turns off,

* If there is a heavy io load,the screen might stick for seconds.

* This is an experimental feature.

( Logcat )

Well,we have made android logger(logcat) as module to free more RAM.

Some guys request logcat.

Now we provide you a workaround:

Create a new init.d script:

Then you can use logcat command.

RELEASE NOTES: 6.8

First of all,i rewrote OP in a hurry,if there is any problem,please tell me.

And the EP version is still beta.

I remember someone asks for CWM Touch

Yeh i made it,but i haven't got the right permission from the owner(i used his recovery)(he doesn't reply me)

Here is his thread: http://xdaforums.com/showthread.php?t=2114182

Go and ask :)

ABBamp will add HsMic gain in the future maybe.

And got the confirmation from a Sony dev,OTG works on their devices

At least we find a way to go(STE hides all info about OTG in documents!!!:mad: )

About the panel illumination table,here is a tip:

Set index 0 value to 1

(in fact,any value you like,lower brightness,lower power costs,but be careful with eyes)

Then use Powersaving Mode button to switch ultralow brightness mode and normal mode. :D

You can tweak all levels too!

In the ulow brightness mode,it is similar to some dimming apps,but the advantage is,it doesn't draw on software surface,in other words,it costs 0 cpu,and colors are better

The weeks in the future,there are full of exams,so development has to slow down

Anyway,summer holiday is coming

EDIT:

Oh please recheck OP again

It takes me 2 hours to write :mad:

BTW,i have been back to school