sanders: Switch to oem_xxxx AIDs

This commit is contained in:
Alberto97
2017-09-03 17:56:19 +02:00
committed by therootlord
parent 7f34a5044e
commit 1af52a897a
3 changed files with 95 additions and 95 deletions

View File

@@ -22,36 +22,36 @@ on fs
symlink /persist /pds
on post-fs
mkdir /persist/camera 0755 mot_tcmd mot_tcmd
mkdir /persist/camera/focus 0775 camera mot_tcmd
mkdir /persist/camera/ledcal 0775 camera mot_tcmd
mkdir /persist/batt_health 0755 mot_pwric mot_pwric
mkdir /persist/camera 0755 oem_5004 oem_5004
mkdir /persist/camera/focus 0775 camera oem_5004
mkdir /persist/camera/ledcal 0775 camera oem_5004
mkdir /persist/batt_health 0755 oem_5001 oem_5001
mkdir /persist/mdm 0770 radio radio
mkdir /persist/factory 0755 mot_tcmd mot_tcmd
mkdir /persist/factory/audio 0755 mot_tcmd system
mkdir /persist/factory/wlan 0755 mot_tcmd mot_tcmd
mkdir /persist/factory/regulatory 0755 mot_tcmd system
mkdir /persist/public 0755 mot_tcmd mot_tcmd
mkdir /persist/public/atvc 0770 mot_atvc shell
mkdir /persist/public/battd 0755 mot_accy mot_tcmd
mkdir /persist/public/att_dm 0775 radio mot_tcmd
mkdir /persist/factory 0755 oem_5004 oem_5004
mkdir /persist/factory/audio 0755 oem_5004 system
mkdir /persist/factory/wlan 0755 oem_5004 oem_5004
mkdir /persist/factory/regulatory 0755 oem_5004 system
mkdir /persist/public 0755 oem_5004 oem_5004
mkdir /persist/public/atvc 0770 oem_5012 shell
mkdir /persist/public/battd 0755 oem_5000 oem_5004
mkdir /persist/public/att_dm 0775 radio oem_5004
mkdir /persist/public/hiddenmenu 0755 radio radio
mkdir /persist/public/hiddenmenu/data 0775 system mot_tcmd
mkdir /persist/public/hiddenmenu/data 0775 system oem_5004
mkdir /persist/public/locale 0700 system system
mkdir /persist/public/omadm 0700 radio radio
mkdir /persist/public/svcs 0770 system system
mkdir /persist/wifi 0755 mot_tcmd mot_tcmd
mkdir /persist/bt 0755 mot_tcmd bluetooth
mkdir /persist/wmdrm 0775 mot_drm mot_drm
mkdir /persist/wifi 0755 oem_5004 oem_5004
mkdir /persist/bt 0755 oem_5004 bluetooth
mkdir /persist/wmdrm 0775 oem_5003 oem_5003
mkdir /persist/public/usc_dm 0775 radio radio
mkdir /persist/sds 0700 vold vold
chown mot_tcmd mot_tcmd /persist/factory/fti
chown oem_5004 oem_5004 /persist/factory/fti
chmod 0660 /persist/factory/fti
chown mot_tcmd mot_tcmd /persist/factory/byte
chown oem_5004 oem_5004 /persist/factory/byte
chmod 0660 /persist/factory/byte
chmod 0660 /persist/wifi/wlan_mac.bin
chown mot_tcmd mot_tcmd /persist/bt/bt_bdaddr
chown oem_5004 oem_5004 /persist/bt/bt_bdaddr
chmod 0664 /persist/bt/bt_bdaddr
# Set life_calls and life_timer file permissions
@@ -68,31 +68,31 @@ on post-fs-data
chmod 0770 /data/wapi_certificate
# Setup folders for security
mkdir /persist/security 02770 mot_tpapi mot_tpapi
mkdir /data/local/dbvc 0750 mot_tcmd shell
mkdir /persist/security 02770 oem_5007 oem_5007
mkdir /data/local/dbvc 0750 oem_5004 shell
# Create directory used by power_supply_logger
mkdir /data/power_supply_logger 0750 mot_pwric log
mkdir /data/power_supply_logger 0750 oem_5001 log
# Create moodle directory that MOT_MOODLE can write to
mkdir /data/local/moodle 0770 graphics mot_tcmd
mkdir /data/local/moodle 0770 graphics oem_5004
# Permissions for Factory Test of Charging Paths
chown mot_pwric mot_pwric /sys/class/power_supply/battery/device/force_chg_auto_enable
chown mot_pwric mot_pwric /sys/class/power_supply/battery/device/force_chg_ibatt
chown mot_pwric mot_pwric /sys/class/power_supply/battery/device/force_chg_itrick
chown mot_pwric mot_pwric /sys/class/power_supply/battery/device/force_chg_iusb
chown mot_pwric mot_pwric /sys/class/power_supply/battery/device/force_chg_usb_suspend
chown mot_pwric mot_pwric /sys/class/power_supply/battery/device/force_chg_fail_clear
chown mot_pwric mot_pwric /sys/class/power_supply/battery/device/force_chg_usb_otg_ctl
chown oem_5001 oem_5001 /sys/class/power_supply/battery/device/force_chg_auto_enable
chown oem_5001 oem_5001 /sys/class/power_supply/battery/device/force_chg_ibatt
chown oem_5001 oem_5001 /sys/class/power_supply/battery/device/force_chg_itrick
chown oem_5001 oem_5001 /sys/class/power_supply/battery/device/force_chg_iusb
chown oem_5001 oem_5001 /sys/class/power_supply/battery/device/force_chg_usb_suspend
chown oem_5001 oem_5001 /sys/class/power_supply/battery/device/force_chg_fail_clear
chown oem_5001 oem_5001 /sys/class/power_supply/battery/device/force_chg_usb_otg_ctl
chown root mot_mod /sys/module/qpnp_smbcharger_mmi/parameters/eb_rechrg_start_soc
chown root mot_mod /sys/module/qpnp_smbcharger_mmi/parameters/eb_rechrg_stop_soc
chown root mot_mod /sys/module/qpnp_smbcharger_mmi/parameters/eb_attach_start_soc
chown root mot_mod /sys/module/qpnp_smbcharger_mmi/parameters/eb_attach_stop_soc
chown root mot_mod /sys/module/qpnp_smbcharger_mmi/parameters/eb_low_start_soc
chown root mot_mod /sys/module/qpnp_smbcharger_mmi/parameters/eb_low_stop_soc
chown root mot_mod /sys/module/qpnp_smbcharger_mmi/parameters/eb_on_sw
chown root oem_5020 /sys/module/qpnp_smbcharger_mmi/parameters/eb_rechrg_start_soc
chown root oem_5020 /sys/module/qpnp_smbcharger_mmi/parameters/eb_rechrg_stop_soc
chown root oem_5020 /sys/module/qpnp_smbcharger_mmi/parameters/eb_attach_start_soc
chown root oem_5020 /sys/module/qpnp_smbcharger_mmi/parameters/eb_attach_stop_soc
chown root oem_5020 /sys/module/qpnp_smbcharger_mmi/parameters/eb_low_start_soc
chown root oem_5020 /sys/module/qpnp_smbcharger_mmi/parameters/eb_low_stop_soc
chown root oem_5020 /sys/module/qpnp_smbcharger_mmi/parameters/eb_on_sw
chmod 0664 /sys/module/qpnp_smbcharger_mmi/parameters/eb_rechrg_start_soc
chmod 0664 /sys/module/qpnp_smbcharger_mmi/parameters/eb_rechrg_stop_soc
@@ -102,7 +102,7 @@ on post-fs-data
chmod 0664 /sys/module/qpnp_smbcharger_mmi/parameters/eb_low_stop_soc
chmod 0664 /sys/module/qpnp_smbcharger_mmi/parameters/eb_on_sw
chown root mot_mod /sys/class/power_supply/usb/usb_priority
chown root oem_5020 /sys/class/power_supply/usb/usb_priority
chmod 0660 /sys/class/power_supply/usb/usb_priority
# Sensor Hub calibration data directory
@@ -122,7 +122,7 @@ on post-fs-data
chown system wifi /data/wapi_certificate
# Create greybus firmware folder
mkdir /data/gbfirmware 0770 mot_mod mot_mod
mkdir /data/gbfirmware 0770 oem_5020 oem_5020
# Create bug2go folder
mkdir /data/bug2go 0770 log log
@@ -165,9 +165,9 @@ on boot
# restore default_message_loglevel to KERN_WARNING
write /proc/sys/kernel/printk "7 4 1 7"
chown root mot_tcmd /sys/module/phy_msm_usb/parameters/host_mode_disable
chown root oem_5004 /sys/module/phy_msm_usb/parameters/host_mode_disable
chmod 0660 /sys/module/phy_msm_usb/parameters/host_mode_disable
chown root mot_tcmd /sys/devices/soc/7000000.ssusb/disable_id_pin
chown root oem_5004 /sys/devices/soc/7000000.ssusb/disable_id_pin
chmod 0220 /sys/devices/soc/7000000.ssusb/disable_id_pin
#change ownership and permission for LTR559
@@ -179,20 +179,20 @@ on boot
chmod 0660 /sys/class/sensors/Rear\ Proximity\ sensor/enable_wakeup
# Change permission for type C params
chown root mot_tcmd /sys/devices/soc/78b6000.i2c/i2c-2/2-0022/CC_state
chown root mot_tcmd /sys/devices/soc/78b6000.i2c/i2c-2/2-0022/enable_vconn
chown root oem_5004 /sys/devices/soc/78b6000.i2c/i2c-2/2-0022/CC_state
chown root oem_5004 /sys/devices/soc/78b6000.i2c/i2c-2/2-0022/enable_vconn
# Change ownership and permission for AMPS factory testing
chown root mot_tcmd /sys/class/i2c-adapter/i2c-2/2-002d/enable
chown root oem_5004 /sys/class/i2c-adapter/i2c-2/2-002d/enable
chmod 0660 /sys/class/i2c-adapter/i2c-2/2-002d/enable
chown root mot_tcmd /sys/class/i2c-adapter/i2c-2/2-002d/hsic_vdd
chown root oem_5004 /sys/class/i2c-adapter/i2c-2/2-002d/hsic_vdd
chmod 0660 /sys/class/i2c-adapter/i2c-2/2-002d/hsic_vdd
# Change permission for fingerprint sensor
chown system mot_tcmd /sys/bus/spi/devices/spi8.0/nav
chown system mot_tcmd /sys/bus/spi/devices/spi8.0/clk_enable
chown system mot_tcmd /sys/bus/spi/devices/spi8.0/dev_enable
chown system mot_tcmd /sys/bus/spi/devices/spi8.0/irq
chown system mot_tcmd /sys/bus/spi/devices/spi8.0/irq_cnt
chown system oem_5004 /sys/bus/spi/devices/spi8.0/nav
chown system oem_5004 /sys/bus/spi/devices/spi8.0/clk_enable
chown system oem_5004 /sys/bus/spi/devices/spi8.0/dev_enable
chown system oem_5004 /sys/bus/spi/devices/spi8.0/irq
chown system oem_5004 /sys/bus/spi/devices/spi8.0/irq_cnt
chmod 0440 /sys/bus/spi/devices/spi8.0/irq_cnt
# Change ownership and permission for backlight
@@ -215,8 +215,8 @@ on boot
chown system system /sys/class/timed_output/vibrator/enable
chmod 0660 /sys/class/timed_output/vibrator/enable
chown root mot_tcmd /sys/class/graphics/fb0/te_enable
chown root mot_tcmd /sys/class/graphics/fb0/frame_counter
chown root oem_5004 /sys/class/graphics/fb0/te_enable
chown root oem_5004 /sys/class/graphics/fb0/frame_counter
chown audio audio /sys/kernel/aov/trigger
chown audio audio /sys/kernel/aov/register
@@ -264,8 +264,8 @@ service adspd /system/bin/adspd
service batt_health /system/bin/batt_health
class late_start
user mot_pwric
group mot_pwric cache net_admin log
user oem_5001
group oem_5001 cache net_admin log
disabled
on property:sys.boot_completed=1 && property:ro.boot.secure_hardware=0

View File

@@ -130,9 +130,9 @@ if [ "$selinux" == "permissive" ]; then
fi
# Set permissions to enable factory touch tests
chown root:mot_tcmd $touch_path/drv_irq
chown root:mot_tcmd $touch_path/hw_irqstat
chown root:mot_tcmd $touch_path/reset
chown root:oem_5004 $touch_path/drv_irq
chown root:oem_5004 $touch_path/hw_irqstat
chown root:oem_5004 $touch_path/reset
# Set permissions to allow Bug2Go access to touch statistics
chown root:log $touch_path/stats

View File

@@ -195,11 +195,11 @@
# Block devices
/dev/block/bootdevice/by-name/hob 0660 radio radio
/dev/block/bootdevice/by-name/dhob 0660 radio radio
/dev/block/bootdevice/by-name/clogo 0660 root mot_tcmd
/dev/block/bootdevice/by-name/cid 0660 root mot_tcmd
/dev/block/bootdevice/by-name/clogo 0660 root oem_5004
/dev/block/bootdevice/by-name/cid 0660 root oem_5004
/dev/block/bootdevice/by-name/logs 0640 root log
/dev/block/bootdevice/by-name/utags 0660 mot_tcmd system
/dev/block/bootdevice/by-name/utagsBackup 0660 mot_tcmd system
/dev/block/bootdevice/by-name/utags 0660 oem_5004 system
/dev/block/bootdevice/by-name/utagsBackup 0660 oem_5004 system
# Broadcast devices
/dev/tsc_mux0 0660 media media
@@ -290,53 +290,53 @@
/dev/i2c-* 0660 system system
#JOT fixture devices for AMPS factory testing
/dev/hidraw0 0660 root mot_tcmd
/dev/hidraw1 0660 root mot_tcmd
/dev/hidraw0 0660 root oem_5004
/dev/hidraw1 0660 root oem_5004
# MOD device
/sys/devices/soc/75b5000.i2c/i2c-7/7-0072 irq_enable 0660 mot_tcmd mot_tcmd
/sys/devices/soc/0.apba_ctrl apba_enable 0660 mot_tcmd mot_mod
/sys/devices/soc/0.apba_ctrl apba_mode 0660 mot_tcmd mot_mod
/sys/devices/soc/0.apba_ctrl flash_partition 0220 mot_tcmd mot_mod
/sys/devices/soc/0.apba_ctrl unipro_mid 0440 root mot_mod
/sys/devices/soc/0.apba_ctrl unipro_pid 0440 root mot_mod
/sys/devices/soc/0.apba_ctrl vid 0440 root mot_mod
/sys/devices/soc/0.apba_ctrl pid 0440 root mot_mod
/sys/devices/soc/0.apba_ctrl fw_version 0440 root mot_mod
/sys/devices/soc/0.apba_ctrl fw_version_str 0440 root mot_mod
/sys/devices/soc/soc:muc_svc@0/mods_interfaces/* hotplug 0660 root mot_mod
/sys/devices/soc/soc:muc_svc@0/mods_interfaces/* uevent 0660 root mot_mod
/sys/devices/soc/soc:muc_svc@0/mods_interfaces/* current_limit 0220 root mot_mod
/sys/devices/soc/soc:muc_svc@0/mods_interfaces/* rtc_sync 0220 root mot_mod
/sys/devices/soc/soc:muc_svc@0 flashmode 0660 root mot_mod
/sys/devices/soc/soc:muc_svc@0 reset 0660 root mot_mod
/sys/devices/soc/0.muc/0.muc:muc_svc@0/mods_interfaces/* hotplug 0660 root mot_mod
/sys/devices/soc/0.muc/0.muc:muc_svc@0/mods_interfaces/* uevent 0660 root mot_mod
/sys/devices/soc/0.muc/0.muc:muc_svc@0 flashmode 0660 root mot_mod
/sys/devices/platform/mods_ap uevent 0660 root mot_mod
/sys/devices/platform/mods_ap/* uevent 0660 root mot_mod
/sys/devices/platform/mods_ap/greybus1 uevent 0664 root mot_mod
/sys/devices/soc/75b5000.i2c/i2c-7/7-0072 irq_enable 0660 oem_5004 oem_5004
/sys/devices/soc/0.apba_ctrl apba_enable 0660 oem_5004 oem_5020
/sys/devices/soc/0.apba_ctrl apba_mode 0660 oem_5004 oem_5020
/sys/devices/soc/0.apba_ctrl flash_partition 0220 oem_5004 oem_5020
/sys/devices/soc/0.apba_ctrl unipro_mid 0440 root oem_5020
/sys/devices/soc/0.apba_ctrl unipro_pid 0440 root oem_5020
/sys/devices/soc/0.apba_ctrl vid 0440 root oem_5020
/sys/devices/soc/0.apba_ctrl pid 0440 root oem_5020
/sys/devices/soc/0.apba_ctrl fw_version 0440 root oem_5020
/sys/devices/soc/0.apba_ctrl fw_version_str 0440 root oem_5020
/sys/devices/soc/soc:muc_svc@0/mods_interfaces/* hotplug 0660 root oem_5020
/sys/devices/soc/soc:muc_svc@0/mods_interfaces/* uevent 0660 root oem_5020
/sys/devices/soc/soc:muc_svc@0/mods_interfaces/* current_limit 0220 root oem_5020
/sys/devices/soc/soc:muc_svc@0/mods_interfaces/* rtc_sync 0220 root oem_5020
/sys/devices/soc/soc:muc_svc@0 flashmode 0660 root oem_5020
/sys/devices/soc/soc:muc_svc@0 reset 0660 root oem_5020
/sys/devices/soc/0.muc/0.muc:muc_svc@0/mods_interfaces/* hotplug 0660 root oem_5020
/sys/devices/soc/0.muc/0.muc:muc_svc@0/mods_interfaces/* uevent 0660 root oem_5020
/sys/devices/soc/0.muc/0.muc:muc_svc@0 flashmode 0660 root oem_5020
/sys/devices/platform/mods_ap uevent 0660 root oem_5020
/sys/devices/platform/mods_ap/* uevent 0660 root oem_5020
/sys/devices/platform/mods_ap/greybus1 uevent 0664 root oem_5020
# MOD display device
/sys/devices/platform/mods_ap/greybus1/*/*/display/display* state 0660 root mot_mod
/sys/devices/platform/mods_ap/greybus1/*/*/display/display* config 0444 root mot_mod
/sys/devices/platform/mods_ap/greybus1/*/*/display/display* notification 0660 root mot_mod
/sys/devices/platform/mods_ap/greybus1/*/*/display/display* state 0660 root oem_5020
/sys/devices/platform/mods_ap/greybus1/*/*/display/display* config 0444 root oem_5020
/sys/devices/platform/mods_ap/greybus1/*/*/display/display* notification 0660 root oem_5020
# MOD light device
/sys/devices/platform/mods_ap/greybus1/*/*/leds/mod_light*::backlight brightness 0660 root mot_mod
/sys/devices/platform/mods_ap/greybus1/*/*/leds/mod_light*::backlight brightness 0660 root oem_5020
# RAW device
/dev/gbraw* 0660 root mot_mod
/dev/gbraw* 0660 root oem_5020
# Audio device
/sys/devices/platform/mods_codec.0 uevent 0660 root mot_mod
/sys/devices/platform/mods_codec.0/* uevent 0660 root mot_mod
/sys/devices/platform/mods_codec.0 uevent 0660 root oem_5020
/sys/devices/platform/mods_codec.0/* uevent 0660 root oem_5020
# MOD camera device
/dev/mot_camera_ext* 0660 system camera
/sys/devices/virtual/video4linux/mot_camera_ext* open_mode 0660 system camera
/sys/devices/virtual/video4linux/mot_camera_ext* uevent 0660 root mot_mod
/sys/devices/virtual/video4linux/mot_camera_ext* uevent 0660 root oem_5020
/sys/devices/virtual/video4linux/video* open_mode 0660 system camera
/sys/devices/virtual/video4linux/video* uevent 0660 root mot_mod
/sys/devices/virtual/video4linux/video* uevent 0660 root oem_5020
# Laser device
/dev/laser 0660 system camera
@@ -345,7 +345,7 @@
/dev/drv2605 0660 system system
#DTV
/dev/isdbt 0660 mot_dtv mot_dtv
/dev/isdbt 0660 oem_5019 oem_5019
#Egistec fingerprint
/dev/esfp0 0660 system system