[Galaxy S Plus I9001 Android Development] Christopher83:
Which is the charging limit? Could you check it by running these commands?

su
cat /sys/class/misc/batterylifeextender/charging_limit

From your log:

- the usb cable has been attached, the battery started charging

<6>[ 81.779327] [BATT] msm_batt_cable_status_update: charger_type = 2 (0:none, 1:TA, 2:USB)
<6>[ 81.779479] Charger Type: STD DOWNSTREAM PORT
<6>[ 81.780578] [BATT] msm_batt_chg_en: Start charging! (charging_source = USB)
<6>[ 81.780578] Charger Type: STD DOWNSTREAM PORT
<6>[ 81.782501] [BATT] msm_batt_cable_status_update: power_supply_changed !
<4>[ 81.787384] [MAX17043] FGPureSOC = 8778 (87.78)	FGAdjustSOC = 9021	FGSOC = 90
<6>[ 81.788574] [BATT] msm_batt_update_psy_status: charger_status=3, charger_type=0, battery_status=0, battery_temp_adc=936, chg_current=230, wc_adc=0
<6>[ 81.788574] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 81.833892] [MAX17043] FGPureSOC = 8778 (87.78)	FGAdjustSOC = 9021	FGSOC = 90
<6>[ 81.835021] [BATT] msm_batt_update_psy_status: charger_status=0, charger_type=2, battery_status=0, battery_temp_adc=935, chg_current=230, wc_adc=0
<6>[ 81.835021] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 86.842102] [MAX17043] FGPureSOC = 8778 (87.78)	FGAdjustSOC = 9021	FGSOC = 90
<6>[ 86.843231] [BATT] msm_batt_update_psy_status: charger_status=0, charger_type=2, battery_status=0, battery_temp_adc=923, chg_current=230, wc_adc=0
<6>[ 86.843231] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 89.462097] [MAX17043] FGPureSOC = 8778 (87.78)	FGAdjustSOC = 9021	FGSOC = 90
<6>[ 89.463287] [BATT] msm_batt_update_psy_status: charger_status=0, charger_type=2, battery_status=0, battery_temp_adc=914, chg_current=230, wc_adc=0
<6>[ 89.463500] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 94.462066] [MAX17043] FGPureSOC = 8778 (87.78)	FGAdjustSOC = 9021	FGSOC = 90
<6>[ 94.468139] [BATT] msm_batt_update_psy_status: charger_status=0, charger_type=2, battery_status=0, battery_temp_adc=904, chg_current=230, wc_adc=0
<6>[ 94.468322] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 99.472351] [MAX17043] FGPureSOC = 8778 (87.78)	FGAdjustSOC = 9021	FGSOC = 90
<6>[ 99.473663] [BATT] msm_batt_update_psy_status: charger_status=0, charger_type=2, battery_status=0, battery_temp_adc=896, chg_current=230, wc_adc=0
<6>[ 99.473999] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 104.482086] [MAX17043] FGPureSOC = 8778 (87.78)	FGAdjustSOC = 9021	FGSOC = 90
<6>[ 104.483215] [BATT] msm_batt_update_psy_status: charger_status=0, charger_type=2, battery_status=0, battery_temp_adc=890, chg_current=230, wc_adc=0
<6>[ 104.483215] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 109.492675] [MAX17043] FGPureSOC = 8792 (87.92)	FGAdjustSOC = 9035	FGSOC = 90
<6>[ 109.493865] [BATT] msm_batt_update_psy_status: charger_status=0, charger_type=2, battery_status=0, battery_temp_adc=884, chg_current=230, wc_adc=0
<6>[ 109.494049] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 114.502258] [MAX17043] FGPureSOC = 8792 (87.92)	FGAdjustSOC = 9035	FGSOC = 90
<6>[ 114.503387] [BATT] msm_batt_update_psy_status: charger_status=0, charger_type=2, battery_status=0, battery_temp_adc=879, chg_current=230, wc_adc=0
<6>[ 114.503387] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 119.512115] [MAX17043] FGPureSOC = 8792 (87.92)	FGAdjustSOC = 9035	FGSOC = 90
<6>[ 119.513214] [BATT] msm_batt_update_psy_status: charger_status=0, charger_type=2, battery_status=0, battery_temp_adc=875, chg_current=933, wc_adc=0
<6>[ 119.513244] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 124.523315] [MAX17043] FGPureSOC = 8792 (87.92)	FGAdjustSOC = 9035	FGSOC = 90
<6>[ 124.524536] [BATT] msm_batt_update_psy_status: charger_status=0, charger_type=2, battery_status=0, battery_temp_adc=871, chg_current=858, wc_adc=0
<6>[ 124.524749] [BATT] msm_batt_update_psy_status: power_supply_changed !

- the usb has been disconnected, the battery started discharging

<6>[ 126.298004] [BATT] msm_batt_cable_status_update: charger_type = 0 (0:none, 1:TA, 2:USB)
<6>[ 126.299896] [BATT] msm_batt_chg_en: Stop charging! (charging_source = 0x0, full_check = 0)
<6>[ 126.299896] [BATT] msm_batt_cable_status_update: power_supply_changed !
<4>[ 126.304382] [MAX17043] FGPureSOC = 8792 (87.92)	FGAdjustSOC = 9035	FGSOC = 90
<6>[ 126.305633] [BATT] msm_batt_update_psy_status: power_supply_changed !
<6>[ 126.308258] msm_otg_suspend: usb in low power mode
<4>[ 126.309265] [MAX17043] FGPureSOC = 8792 (87.92)	FGAdjustSOC = 9035	FGSOC = 90
<6>[ 126.310485] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 129.342590] [MAX17043] FGPureSOC = 8792 (87.92)	FGAdjustSOC = 9035	FGSOC = 90
<6>[ 129.343688] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 134.353332] [MAX17043] FGPureSOC = 8778 (87.78)	FGAdjustSOC = 9021	FGSOC = 90
<6>[ 134.354583] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 139.362152] [MAX17043] FGPureSOC = 8778 (87.78)	FGAdjustSOC = 9021	FGSOC = 90
<6>[ 139.363250] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 144.372375] [MAX17043] FGPureSOC = 8778 (87.78)	FGAdjustSOC = 9021	FGSOC = 90
<6>[ 144.373504] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 149.382202] [MAX17043] FGPureSOC = 8778 (87.78)	FGAdjustSOC = 9021	FGSOC = 90
<6>[ 149.383422] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 154.392852] [MAX17043] FGPureSOC = 8778 (87.78)	FGAdjustSOC = 9021	FGSOC = 90
<6>[ 154.394104] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 159.402496] [MAX17043] FGPureSOC = 8778 (87.78)	FGAdjustSOC = 9021	FGSOC = 90
<6>[ 159.403930] [BATT] msm_batt_update_psy_status: power_supply_changed !
...
<4>[ 393.766540] [MAX17043] FGPureSOC = 8691 (86.91)	FGAdjustSOC = 8932	FGSOC = 89
<6>[ 393.768524] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 398.776153] [MAX17043] FGPureSOC = 8691 (86.91)	FGAdjustSOC = 8932	FGSOC = 89
<6>[ 398.777893] [BATT] msm_batt_update_psy_status: power_supply_changed !

- the usb cable has been attached, the battery started charging

<6>[ 398.923858] [BATT] msm_batt_cable_status_update: charger_type = 2 (0:none, 1:TA, 2:USB)
<6>[ 398.924377] Charger Type: STD DOWNSTREAM PORT
<6>[ 398.926177] [BATT] msm_batt_chg_en: Start charging! (charging_source = USB)
<6>[ 398.926483] Charger Type: STD DOWNSTREAM PORT
<6>[ 398.929870] [BATT] msm_batt_cable_status_update: power_supply_changed !
<4>[ 402.368316] [MAX17043] FGPureSOC = 8691 (86.91)	FGAdjustSOC = 8932	FGSOC = 89
<6>[ 402.370300] [BATT] msm_batt_update_psy_status: charger_status=0, charger_type=2, battery_status=0, battery_temp_adc=959, chg_current=230, wc_adc=0
<6>[ 402.370819] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 407.352966] [MAX17043] FGPureSOC = 8691 (86.91)	FGAdjustSOC = 8932	FGSOC = 89
<6>[ 407.354736] [BATT] msm_batt_update_psy_status: charger_status=0, charger_type=2, battery_status=0, battery_temp_adc=945, chg_current=230, wc_adc=0
<6>[ 407.355255] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 412.355987] [MAX17043] FGPureSOC = 8706 (87.6)	FGAdjustSOC = 8947	FGSOC = 89
<6>[ 412.357971] [BATT] msm_batt_update_psy_status: charger_status=0, charger_type=2, battery_status=0, battery_temp_adc=936, chg_current=230, wc_adc=0
<6>[ 412.358520] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 417.366241] [MAX17043] FGPureSOC = 8706 (87.6)	FGAdjustSOC = 8947	FGSOC = 89
<6>[ 417.368255] [BATT] msm_batt_update_psy_status: charger_status=0, charger_type=2, battery_status=0, battery_temp_adc=930, chg_current=230, wc_adc=0
<6>[ 417.368774] [BATT] msm_batt_update_psy_status: power_supply_changed !
<4>[ 422.374694] [MAX17043] FGPureSOC = 8706 (87.6)	FGAdjustSOC = 8947	FGSOC = 89
<6>[ 422.376464] [BATT] msm_batt_update_psy_status: charger_status=0, charger_type=2, battery_status=0, battery_temp_adc=925, chg_current=230, wc_adc=0
<6>[ 422.377197] [BATT] msm_batt_update_psy_status: power_supply_changed !