[Android General] mite_jan:
deepsleep stops working after 15% (low battery led "activates")

after this happens and you charge your phone to 100% you need to restart the phone so deepsleep can work again ...

so actually led is not disabled on low battery

few pages back i have mentioned that these values are stored in the framework-res.apk

i have decompiled it and here are the contents of integers.xml

<?xml version="1.0" encoding="utf-8"?>

<resources>

<integer name="config_shortAnimTime">200</integer>

<integer name="config_mediumAnimTime">400</integer>

<integer name="config_longAnimTime">500</integer>

<integer name="status_bar_notification_info_maxnum">999</integer>

<integer name="config_soundEffectVolumeDb">-6</integer>

<integer name="config_lockSoundVolumeDb">-6</integer>

<integer name="config_activityShortDur">150</integer>

<integer name="config_activityDefaultDur">220</integer>

<integer name="config_radioScanningTimeout">0</integer>

<integer name="config_networkTransitionTimeout">60000</integer>

<integer name="config_max_pan_devices">5</integer>

<integer name="config_wifi_supplicant_scan_interval">15000</integer>

<integer name="config_wifi_scan_interval_p2p_connected">60000</integer>

<integer name="config_wifi_framework_scan_interval">300000</integer>

<integer name="config_wifi_driver_stop_delay">120000</integer>

<integer name="config_lidOpenRotation">-1</integer>

<integer name="config_deskDockRotation">-1</integer>

<integer name="config_carDockRotation">-1</integer>

<integer name="config_defaultUiModeType">1</integer>

<integer name="config_deskDockKeepsScreenOn">1</integer>

<integer name="config_carDockKeepsScreenOn">1</integer>

<integer name="config_lidKeyboardAccessibility">0</integer>

<integer name="config_lidNavigationAccessibility">0</integer>

<integer name="config_longPressOnPowerBehavior">1</integer>

<integer name="config_criticalBatteryWarningLevel">4</integer>

<integer name="config_shutdownBatteryTemperature">680</integer>

<integer name="config_lowBatteryWarningLevel">15</integer>

<integer name="config_lowBatteryCloseWarningLevel">20</integer>

<integer name="config_defaultNotificationLedOn">500</integer>

<integer name="config_defaultNotificationLedOff">2000</integer>

<integer name="config_notificationsBatteryLowARGB">0xffff0000</integer>

<integer name="config_notificationsBatteryMediumARGB">0xffffff00</integer>

<integer name="config_notificationsBatteryFullARGB">0xff00ff00</integer>

<integer name="config_notificationsBatteryLedOn">125</integer>

<integer name="config_notificationsBatteryLedOff">2875</integer>

<integer name="config_longPressOnHomeBehavior">2</integer>

<integer name="config_screenBrightnessSettingMinimum">30</integer>

<integer name="config_screenBrightnessSettingMaximum">255</integer>

<integer name="config_screenBrightnessSettingDefault">102</integer>

<integer name="config_screenBrightnessDim">20</integer>

<integer name="config_lightSensorWarmupTime">0</integer>

<integer name="config_virtualKeyQuietTimeMillis">0</integer>

<integer name="config_datause_polling_period_sec">600</integer>

<integer name="config_datause_threshold_bytes">0</integer>

<integer name="config_datause_throttle_kbitsps">300</integer>

<integer name="config_datause_notification_type">2</integer>

<integer name="db_connection_pool_size">4</integer>

<integer name="db_journal_size_limit">524288</integer>

<integer name="db_wal_autocheckpoint">100</integer>

<integer name="config_downloadDataDirSize">100</integer>

<integer name="config_MaxConcurrentDownloadsAllowed">5</integer>

<integer name="config_downloadDataDirLowSpaceThreshold">10</integer>

<integer name="config_cursorWindowSize">2048</integer>

<integer name="config_ntpTimeout">20000</integer>

<integer name="config_networkPolicyDefaultWarning">2048</integer>

<integer name="config_maxResolverActivityColumns">2</integer>

<integer name="config_multiuserMaximumUsers">1</integer>

<integer name="config_safe_media_volume_index">10</integer>

<integer name="max_action_buttons">2</integer>

<integer name="preferences_left_pane_weight">4</integer>

<integer name="preferences_right_pane_weight">6</integer>

<integer name="preference_screen_header_scrollbarStyle">0x2000000</integer>

<integer name="preference_fragment_scrollbarStyle">0x2000000</integer>

<integer name="kg_carousel_angle">75</integer>

<integer name="kg_security_flip_duration">100</integer>

<integer name="kg_security_fade_duration">100</integer>

<integer name="kg_glowpad_rotation_offset">0</integer>

</resources>

so now i am thinking one way would be to disable led but let it notify for low battery or if that doesn't work disable completely low battery warning

it is just that i am having issues compiling the framework-res back and replacing it (i dont know if it needs to be signed or not)

if anyone knows what i am talking fell free to help and let us solve this deep sleep issue forever