diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 62143d5..a82007d 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -70,6 +70,9 @@ BOARD_ANT_WIRELESS_DEVICE := "qualcomm-hidl" # Audio USE_XML_AUDIO_POLICY_CONF := 1 +# Charger +BOARD_CHARGER_DISABLE_INIT_BLANK := true + # Dex ifeq ($(HOST_OS),linux) ifneq ($(TARGET_BUILD_VARIANT),eng) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 301f50e..fe3e177 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -39,6 +39,9 @@ on boot chown system system /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/main_display/display_mode chown system system /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/main_display/hbm +on charger + write /sys/class/backlight/panel0-backlight/brightness 150 + service dashd /sbin/dashd class core critical