sdm660-common: DeviceSettings: Update notification LED path for K4.19
Signed-off-by: OdSazib <odsazib@gmail.com> Change-Id: I063a776c16dffadf73d7f12f97995f6fad85d57c
This commit is contained in:
parent
b8c814713d
commit
a81f0b99a0
3 changed files with 8 additions and 2 deletions
|
@ -41,7 +41,7 @@ public class DeviceSettings extends PreferenceFragment implements
|
||||||
|
|
||||||
public static final String CATEGORY_NOTIF = "notification_led";
|
public static final String CATEGORY_NOTIF = "notification_led";
|
||||||
public static final String PREF_NOTIF_LED = "notification_led_brightness";
|
public static final String PREF_NOTIF_LED = "notification_led_brightness";
|
||||||
public static final String NOTIF_LED_PATH = "/sys/class/leds/white/max_brightness";
|
public static final String NOTIF_LED_PATH = "/sys/class/leds/red/max_brightness";
|
||||||
|
|
||||||
public static final String CATEGORY_AUDIO_AMPLIFY = "audio_amplify";
|
public static final String CATEGORY_AUDIO_AMPLIFY = "audio_amplify";
|
||||||
public static final String PREF_EARPIECE_GAIN = "earpiece_gain";
|
public static final String PREF_EARPIECE_GAIN = "earpiece_gain";
|
||||||
|
|
|
@ -7,7 +7,7 @@ import org.lineageos.settings.device.FileUtils;
|
||||||
|
|
||||||
public class NotificationLedSeekBarPreference extends SecureSettingCustomSeekBarPreference {
|
public class NotificationLedSeekBarPreference extends SecureSettingCustomSeekBarPreference {
|
||||||
|
|
||||||
public static final String NOTIF_LED_PATH = "/sys/class/leds/white/brightness";
|
public static final String NOTIF_LED_PATH = "/sys/class/leds/red/brightness";
|
||||||
|
|
||||||
public NotificationLedSeekBarPreference(Context context, AttributeSet attrs) {
|
public NotificationLedSeekBarPreference(Context context, AttributeSet attrs) {
|
||||||
super(context, attrs);
|
super(context, attrs);
|
||||||
|
|
|
@ -33,6 +33,12 @@ on boot
|
||||||
chmod 0660 /sys/kernel/sound_control/headphone_gain
|
chmod 0660 /sys/kernel/sound_control/headphone_gain
|
||||||
chmod 0660 /sys/kernel/sound_control/mic_gain
|
chmod 0660 /sys/kernel/sound_control/mic_gain
|
||||||
|
|
||||||
|
# Notification LED
|
||||||
|
chown system system /sys/class/leds/red/brightness
|
||||||
|
chown system system /sys/class/leds/red/max_brightness
|
||||||
|
chmod 0660 /sys/class/leds/red/brightness
|
||||||
|
chmod 0660 /sys/class/leds/red/max_brightness
|
||||||
|
|
||||||
# KCal
|
# KCal
|
||||||
chown system system /sys/devices/platform/kcal_ctrl.0/kcal_cont
|
chown system system /sys/devices/platform/kcal_ctrl.0/kcal_cont
|
||||||
chown system system /sys/devices/platform/kcal_ctrl.0/kcal_enable
|
chown system system /sys/devices/platform/kcal_ctrl.0/kcal_enable
|
||||||
|
|
Loading…
Reference in a new issue