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:
OdSazib 2021-07-22 13:13:21 +06:00
parent b8c814713d
commit a81f0b99a0
No known key found for this signature in database
GPG key ID: 41E22825A5BD3496
3 changed files with 8 additions and 2 deletions

View file

@ -41,7 +41,7 @@ public class DeviceSettings extends PreferenceFragment implements
public static final String CATEGORY_NOTIF = "notification_led";
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 PREF_EARPIECE_GAIN = "earpiece_gain";

View file

@ -7,7 +7,7 @@ import org.lineageos.settings.device.FileUtils;
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) {
super(context, attrs);

View file

@ -33,6 +33,12 @@ on boot
chmod 0660 /sys/kernel/sound_control/headphone_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
chown system system /sys/devices/platform/kcal_ctrl.0/kcal_cont
chown system system /sys/devices/platform/kcal_ctrl.0/kcal_enable