a20: Address SELinux denials

* Additionally, try to save more battery on CameraLightSensor

Change-Id: I8a3a86a67eeefb0b023e4162f0a32c9ecca20ff4
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
roynatech2544 2021-10-31 19:54:51 +09:00
commit 0fc8d0c629
No known key found for this signature in database
GPG key ID: 9675C32163D88D30
9 changed files with 12 additions and 6 deletions

View file

@ -81,7 +81,7 @@ public class Camera2Service extends Service {
} catch (IllegalStateException e){
Log.w(TAG, "onReady: Session is NULL");
}
},1500);
}, 4000);
} catch (Exception e){
Log.e(TAG, "Camera is in use");
e.printStackTrace();

View file

@ -68,7 +68,7 @@
<string name="charge_summary">Enable/Disable Charging here.</string>
<string name="fastcharge_title">Battery Info and Settings</string>
<string name="fastcharge_summary">Enable/Disable Fastcharge Feature</string>
<string name="fastcharge_description">Manage FastCharge Feature here.</string>
<string name="fastcharge_description">Manage Charging Feature here.</string>
<string name="battery_info_title">Battery Misc Info</string>
<string name="battery_info_summary">Section for geeks</string>

View file

@ -18,5 +18,5 @@ runtime_resource_overlay {
name: "TetheringConfigOverlay",
resource_dirs: ["res"],
sdk_version: "current",
vendor: true
vendor: true,
}

View file

@ -116,6 +116,7 @@ genfscon sysfs /devices/platform/13870000.i2c/i2c-11/11-0048/input/ u
genfscon sysfs /devices/platform/11ce0000.speedy/i2c-5/5-0003/input/input11 u:object_r:sysfs_touchscreen_writable:s0
# A20 Display
genfscon sysfs /devices/platform/13870000.i2c/i2c-11/11-0020/input/ u:object_r:sysfs_touchscreen_writable:s0
genfscon sysfs /devices/platform/11ce0000.speedy/i2c-6/6-0003/input/input12 u:object_r:sysfs_touchscreen_writable:s0
genfscon sysfs /devices/platform/14870000.dsim/backlight/panel u:object_r:sysfs_graphics:s0
genfscon sysfs /devices/platform/14a50000.abox/service u:object_r:sysfs_abox_writable:s0
@ -157,7 +158,7 @@ genfscon sysfs /devices/platform/13840000.i2c/i2c-9/9-003d/s2mu106-powermeter/po
genfscon sysfs /devices/platform/13840000.i2c/i2c-9/9-003d/s2mu106-muic/power_supply/muic-manager u:object_r:sysfs_charger:s0
genfscon sysfs /devices/platform/13840000.i2c/i2c-9/9-003d/s2mu106-charger/power_supply/otg u:object_r:sysfs_charger:s0
genfscon sysfs /devices/platform/13840000.i2c/i2c-9/9-003d/s2mu106-charger/power_supply/s2mu106-charger u:object_r:sysfs_charger:s0
genfscon sysfs /devices/platform/13830000.i2c/i2c-8/8-003b/power_supply/s2mu106-fuelgauge/ u:object_r:sysfs_fuelgauge:s0
genfscon sysfs /devices/platform/13830000.i2c/i2c-8/8-003b/power_supply/s2mu106-fuelgauge/type u:object_r:sysfs_fuelgauge:s0
genfscon sysfs /class/input/input1/enabled u:object_r:sysfs_sec_touchscreen:s0
genfscon sysfs /module/modem_ctrl_ss310ap/parameters/ds_detect u:object_r:sysfs_modem:s0

View file

@ -12,3 +12,5 @@ allow hal_audio_default imei_efs_file:file r_file_perms;
get_prop(hal_audio_default, vendor_radio_prop)
allow hal_audio_default init:unix_stream_socket connectto;
binder_call(hal_audio_default, system_suspend)

View file

@ -29,6 +29,7 @@ allow hal_power_default sysfs_input:file r_file_perms;
allow hal_power_default sysfs_virtual:dir r_dir_perms;
allow hal_power_default sysfs_virtual:file r_file_perms;
allow hal_power_default sysfs_touchscreen_writable:dir r_dir_perms;
allow hal_power_default sysfs_sec_touchscreen:dir read;
allow hal_power_default sysfs_sec_touchscreen:dir { read open };
allow hal_power_default sysfs_sec_touchscreen:file r_file_perms;
type hal_lineage_power_hwservice, hwservice_manager_type;
add_hwservice(hal_power_default, hal_power_hwservice)

View file

@ -38,6 +38,7 @@ allow hal_sensors_default sysfs_lcd_writable:file r_file_perms;
# /sys/class/input
allow hal_sensors_default sysfs_input:dir r_dir_perms;
allow hal_sensors_default sysfs_input:file write;
# /sys/devices/virtual/input/input4
# /sys/devices/virtual/input/input6

View file

@ -4,3 +4,4 @@ allow mediacodec sysfs_v4l_mfc:dir search;
allow mediacodec sysfs_v4l_mfc:file r_file_perms;
hal_client_domain(mediacodec, hal_power)
hal_client_domain(mediacodec, hal_omx)

View file

@ -161,7 +161,7 @@ PRODUCT_COPY_FILES += \
# Overlays
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay-lineage
# DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay-lineage
# Permissions
PRODUCT_COPY_FILES += \