universal7580: ramdisk: Cleanup repeated permission setting
authorDanny Wood <danwood76@gmail.com>
Fri, 16 Nov 2018 11:05:19 +0000 (11:05 +0000)
committerJan Altensen <info@stricted.net>
Fri, 16 Aug 2019 21:18:35 +0000 (23:18 +0200)
Change-Id: I452bf554949978662a90306e040961e7be9ad5f5

ramdisk/etc/init.samsung.rc
ramdisk/etc/init.samsungexynos7580.rc

index 594d5b746859d372c3f6b5163c78a0b73d9e0bf0..fc105fde7e3905c33f3c59b95fde8098a7859db7 100644 (file)
@@ -100,31 +100,6 @@ on boot
     chown radio system /efs/bluetooth
     chmod 0775 /efs/bluetooth
 
-    chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_rate
-    chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_rate
-    chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_slack
-    chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_slack
-    chown system system /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
-    chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
-    chown system system /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
-    chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
-    chown system system /sys/devices/system/cpu/cpufreq/interactive/target_loads
-    chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/target_loads
-    chown system system /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
-    chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
-    chown system system /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
-    chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
-    chown system system /sys/devices/system/cpu/cpufreq/interactive/boost
-    chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boost
-    chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse
-    chown system system /sys/devices/system/cpu/cpufreq/interactive/input_boost
-    chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/input_boost
-    chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration
-    chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration
-    chown system system /sys/devices/system/cpu/cpufreq/interactive/io_is_busy
-    chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/io_is_busy
-
-
     # Change permission for dvfshelper
     chown radio system /sys/power/cpufreq_table
     chmod 0664 /sys/power/cpufreq_table
@@ -133,27 +108,6 @@ on boot
     chown radio system /sys/power/cpufreq_max_limit
     chmod 0664 /sys/power/cpufreq_max_limit
 
-    chown radio system /sys/devices/11400000.mali/dvfs_table
-    chown radio system /sys/devices/11400000.mali/dvfs_min_lock
-    chown radio system /sys/devices/11400000.mali/dvfs_max_lock
-    chmod 0664 /sys/devices/11400000.mali/dvfs_table
-    chmod 0664 /sys/devices/11400000.mali/dvfs_min_lock
-    chmod 0664 /sys/devices/11400000.mali/dvfs_max_lock
-
-    chown radio system /sys/class/devfreq/bus_mif.7/available_frequencies
-    chown radio system /sys/class/devfreq/bus_mif.7/min_freq
-    chown radio system /sys/class/devfreq/bus_mif.7/max_freq
-    chmod 0664 /sys/class/devfreq/bus_mif.7/available_frequencies
-    chmod 0664 /sys/class/devfreq/bus_mif.7/min_freq
-    chmod 0664 /sys/class/devfreq/bus_mif.7/max_freq
-
-    chown radio system /sys/class/devfreq/bus_int.6/available_frequencies
-    chown radio system /sys/class/devfreq/bus_int.6/min_freq
-    chown radio system /sys/class/devfreq/bus_int.6/max_freq
-    chmod 0664 /sys/class/devfreq/bus_int.6/available_frequencies
-    chmod 0664 /sys/class/devfreq/bus_int.6/min_freq
-    chmod 0664 /sys/class/devfreq/bus_int.6/max_freq
-
     # NFC_NXP
     setprop ro.nfc.port "I2C"
     chmod 0660 /dev/pn547
@@ -179,13 +133,7 @@ on boot
     chown system system /sys/class/timed_output/vibrator/intensity
 
     #permission for TSP, Touchkey and Wacom
-    chown system radio /sys/class/sec/tsp/cmd
     chmod 0660 /sys/class/sec/tsp/input/enabled
-    chown system system /sys/class/sec/tsp/input/enabled
-
-    chmod 0660 /sys/class/sec_touchkey/input/enabled
-    chown system system /sys/class/sec/sec_touchkey/input/enabled
-    chown system radio /sys/class/sec/sec_touchkey/brightness
 
     chmod 0660 /sys/class/sec/sec_epen/input/enabled
     chown system system /sys/class/sec/sec_epen/input/enabled
@@ -320,43 +268,10 @@ on boot
 
     # Sensors permissions
     # Accelerometer_sensor
-    chown system radio /sys/class/sensors/accelerometer_sensor/raw_data
-    chown system radio /sys/class/sensors/accelerometer_sensor/calibration
-    chown system radio /sys/class/sensors/accelerometer_sensor/reactive_alert
-    chown system radio /sys/class/sensors/accelerometer_sensor/selftest
-    chown system radio /sys/class/sensors/accelerometer_sensor/vendor
-    chown system radio /sys/class/sensors/accelerometer_sensor/name
     chown system system /efs/calibration_data
     chmod 0666 /efs/calibration_data
-    # Proximity_sensor
-    chown system radio /sys/class/sensors/proximity_sensor/state
-    chown system radio /sys/class/sensors/proximity_sensor/raw_data
-    chown system radio /sys/class/sensors/proximity_sensor/prox_avg
-    chown system radio /sys/class/sensors/proximity_sensor/prox_cal
-    chown system radio /sys/class/sensors/proximity_sensor/prox_thresh
-    chown system radio /sys/class/sensors/proximity_sensor/thresh_high
-    chown system radio /sys/class/sensors/proximity_sensor/thresh_low
-    chown system radio /sys/class/sensors/proximity_sensor/vendor
-    chown system radio /sys/class/sensors/proximity_sensor/name
-    # Light_sensor
-    chown system radio /sys/class/sensors/light_sensor/lux
-    chown system radio /sys/class/sensors/light_sensor/raw_data
-    chown system radio /sys/class/sensors/light_sensor/vendor
-    chown system radio /sys/class/sensors/light_sensor/name
-    # Gyro_sensor
-    chown system radio /sys/class/sensors/gyro_sensor/power_on
-    chown system radio /sys/class/sensors/gyro_sensor/power_off
-    chown system radio /sys/class/sensors/gyro_sensor/temperature
-    chown system radio /sys/class/sensors/gyro_sensor/selftest
-    chown system radio /sys/class/sensors/gyro_sensor/selftest_dps
-    chown system radio /sys/class/sensors/gyro_sensor/vendor
-    chown system radio /sys/class/sensors/gyro_sensor/name
     # Magnetic_sensor
-    chown system radio /sys/class/sensors/magnetic_sensor/selftest
-    chown system radio /sys/class/sensors/magnetic_sensor/raw_data
     chown system radio /sys/class/sensors/magnetic_sensor/adc
-    chown system radio /sys/class/sensors/magnetic_sensor/vendor
-    chown system radio /sys/class/sensors/magnetic_sensor/name
     chown system radio /sys/class/sensors/magnetic_sensor/status
     # MPL IIO
     chown system system /dev/invensense
@@ -393,4 +308,4 @@ service mobicore /system/bin/mcDriverDaemon -r /system/app/FFFFFFFF0000000000000
     class core
     user system
     group system
-    oneshot
\ No newline at end of file
+    oneshot
index d9f4cfe4eea3393dfd8e88cd9d7d019ba5e72352..a0b057ecea1b7334aaae18599103134b4baea3fb 100644 (file)
@@ -425,6 +425,7 @@ on fs
     chown system radio /sys/class/sensors/proximity_sensor/raw_data
     chown system radio /sys/class/sensors/proximity_sensor/prox_avg
     chown system radio /sys/class/sensors/proximity_sensor/prox_cal
+    chown system radio /sys/class/sensors/proximity_sensor/prox_thresh
     chown system radio /sys/class/sensors/proximity_sensor/vendor
     chown system radio /sys/class/sensors/proximity_sensor/name
     chown system radio /sys/class/sensors/proximity_sensor/thresh_high
@@ -455,7 +456,6 @@ on fs
     chown system radio /sys/class/sensors/barometer_sensor/calibration
 
 # Magnetic_sensor
-    chown system radio /sys/class/sensors/magnetic_sensor/raw_data
     chown system radio /sys/class/sensors/magnetic_sensor/vendor
     chown system radio /sys/class/sensors/magnetic_sensor/name
     chown system radio /sys/class/sensors/magnetic_sensor/selftest
@@ -486,7 +486,6 @@ on fs
     chown system radio /sys/class/sensors/hrm_sensor/read_reg
     chown system radio /sys/class/sensors/hrm_sensor/write_reg
     chown system radio /sys/class/sensors/hrm_sensor/ctrl_allreg_file
-    chown system radio /sys/class/sensors/hrm_sensor/led_current
     chown system radio /sys/class/sensors/hrm_sensor/alc_enable
     chown system radio /sys/class/sensors/hrm_sensor/selftest
 
@@ -495,9 +494,6 @@ on fs
     chown system radio /sys/class/sensors/hrmled_sensor/vendor
     chown system radio /sys/class/sensors/hrmled_sensor/hrmled_flush
 
- # Meta_sensor
-    chown system radio /sys/class/sensors/sensor_dev/flush
-
 # UV_sensor
     chown system radio /sys/class/sensors/uv_sensor/name
     chown system radio /sys/class/sensors/uv_sensor/vendor