From 490a506e2b7940a5d388142f79eaa27846cf3bb5 Mon Sep 17 00:00:00 2001 From: Manjunatha Ramachandra Date: Wed, 13 Sep 2017 12:08:47 +0530 Subject: msm8996-common: Set sync wakee policy tunable Prefer waker CPU (with 1 runnable task) instead of an idle CPU in waker cluster. Change-Id: I174d496cf31bbf8706eaf6ad3740883d1c64b20f --- rootdir/etc/init.qcom.power.rc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.power.rc b/rootdir/etc/init.qcom.power.rc index b2a660b..8cd5021 100755 --- a/rootdir/etc/init.qcom.power.rc +++ b/rootdir/etc/init.qcom.power.rc @@ -41,6 +41,9 @@ on enable-low-power write /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk 1 write /sys/module/lowmemorykiller/parameters/vmpressure_file_min 81250 + # Set sync wakee policy tunable + write /proc/sys/kernel/sched_prefer_sync_wakee_to_waker 1 + # Configure governor settings for little cluster write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "interactive" write /sys/devices/system/cpu/cpu0/cpufreq/interactive/use_sched_load 1 -- cgit v1.2.3 From b6292a6b94042334df39a5c4dcafdc6eebb3238e Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Mon, 27 Jun 2016 23:22:08 +0100 Subject: Set FRP device permissions Change-Id: Ica769bf4bc058041ae044c6a71464823a92f073d --- rootdir/etc/fstab.qcom | 3 ++- rootdir/etc/ueventd.qcom.rc | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'rootdir') diff --git a/rootdir/etc/fstab.qcom b/rootdir/etc/fstab.qcom index f09eee1..3da3e16 100644 --- a/rootdir/etc/fstab.qcom +++ b/rootdir/etc/fstab.qcom @@ -17,6 +17,7 @@ /dev/block/bootdevice/by-name/modem /firmware vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait /dev/block/bootdevice/by-name/bluetooth /bt_firmware vfat ro,shortname=lower,uid=1002,gid=3002,dmask=222,fmask=333,context=u:object_r:bt_firmware_file:s0 wait /dev/block/bootdevice/by-name/misc /misc emmc defaults defaults -/dev/block/zram0 none swap defaults zramsize=536870912,max_comp_streams=4 +/dev/block/zram0 none swap defaults zramsize=536870912,max_comp_streams=4 +/dev/block/bootdevice/by-name/frp /frp emmc defaults defaults /devices/soc/6a00000.ssusb/6a00000.dwc3/xhci-hcd.0.auto/usb* auto auto defaults voldmanaged=usbdisk:auto diff --git a/rootdir/etc/ueventd.qcom.rc b/rootdir/etc/ueventd.qcom.rc index 5263e81..bdff059 100644 --- a/rootdir/etc/ueventd.qcom.rc +++ b/rootdir/etc/ueventd.qcom.rc @@ -244,3 +244,7 @@ # TFA9890 FOR SMARTPA /dev/tfa9890 0660 media media + +# Add device block for FRP +/dev/block/platform/soc/7464900.sdhci/by-name/frp 0600 system system +/dev/block/platform/soc/624000.ufshc/by-name/frp 0600 system system -- cgit v1.2.3 From 15087283d31e09165caf099cd3e574e31ff640fb Mon Sep 17 00:00:00 2001 From: Abhishek Arpure Date: Fri, 19 May 2017 08:32:12 -0700 Subject: msm8996-common: Move hardware specific .rc files to /vendor/etc/init/hw The reason these files are moved to /vendor/etc/init/hw and not /vendor/etc/init is because 'init' scans the /vendor/etc/init folder for vendor service .rc fragments to import. That would either result in duplicate imports or out-of-order imports of these hardware specific .rc files and that *may* have unintended consequences. In order to preserve the current import order for MTP, we move all hardware specific .rc files to /vendor/etc/init/hw which is not autoscanned by init BUT leave the init.${ro.hardware}.rc (i.e. init.qcom.rc in this case) in root for 'init' to find. Change-Id: I14531da05e2a3a256f734f8de96e1f1969c753f9 --- rootdir/Android.mk | 6 +++--- rootdir/etc/init.qcom.rc | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'rootdir') diff --git a/rootdir/Android.mk b/rootdir/Android.mk index bcdc60c..9324fcb 100644 --- a/rootdir/Android.mk +++ b/rootdir/Android.mk @@ -16,7 +16,7 @@ LOCAL_MODULE_TAGS := optional eng LOCAL_MODULE_CLASS := ETC LOCAL_SRC_FILES := etc/init.qcom.power.rc LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_RELATIVE_PATH := init/hw +LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw include $(BUILD_PREBUILT) include $(CLEAR_VARS) @@ -25,7 +25,7 @@ LOCAL_MODULE_TAGS := optional eng LOCAL_MODULE_CLASS := ETC LOCAL_SRC_FILES := etc/init.qcom.rc LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_RELATIVE_PATH := init/hw +LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw include $(BUILD_PREBUILT) include $(CLEAR_VARS) @@ -34,7 +34,7 @@ LOCAL_MODULE_TAGS := optional eng LOCAL_MODULE_CLASS := ETC LOCAL_SRC_FILES := etc/init.qcom.usb.rc LOCAL_VENDOR_MODULE := true -LOCAL_MODULE_RELATIVE_PATH := init/hw +LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw include $(BUILD_PREBUILT) include $(CLEAR_VARS) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index d193e33..e551463 100755 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -26,6 +26,7 @@ # import /vendor/etc/init/hw/init.qcom.power.rc import /vendor/etc/init/hw/init.qcom.usb.rc +import /vendor/etc/init/hw/init.target.rc on early-init mount debugfs debugfs /sys/kernel/debug -- cgit v1.2.3 From 138360c7d1b7e6004daab82a93b1b5b84d8cad10 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Wed, 31 Jan 2018 12:47:59 +0100 Subject: msm8996-common: Move fstab to /vendor Change-Id: I2e86c3be08d0d4f19a6cf89a931f4a1e6ac12cdf --- rootdir/Android.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rootdir') diff --git a/rootdir/Android.mk b/rootdir/Android.mk index 9324fcb..eb67fd2 100644 --- a/rootdir/Android.mk +++ b/rootdir/Android.mk @@ -7,7 +7,7 @@ LOCAL_MODULE := fstab.qcom LOCAL_MODULE_TAGS := optional eng LOCAL_MODULE_CLASS := ETC LOCAL_SRC_FILES := etc/fstab.qcom -LOCAL_VENDOR_MODULE := true +LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC) include $(BUILD_PREBUILT) include $(CLEAR_VARS) -- cgit v1.2.3 From f39082c259630939f16ae5a554384a1415535f29 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Wed, 31 Jan 2018 16:17:03 +0000 Subject: msm8996-common: Build a vendor image * Turn the partition /factory into something more useful for us. Change-Id: I32a3088ef7803d3db691b9031dda2dbe55565ba3 --- rootdir/etc/fstab.full | 1 + rootdir/etc/fstab.qcom | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'rootdir') diff --git a/rootdir/etc/fstab.full b/rootdir/etc/fstab.full index 4c3d9c6..8f3aa35 100644 --- a/rootdir/etc/fstab.full +++ b/rootdir/etc/fstab.full @@ -9,6 +9,7 @@ /dev/block/bootdevice/by-name/boot /boot emmc defaults defaults /dev/block/bootdevice/by-name/recovery /recovery emmc defaults defaults /dev/block/bootdevice/by-name/system /system ext4 ro,barrier=1 wait +/dev/block/bootdevice/by-name/factory /vendor ext4 ro,barrier=1 wait /dev/block/bootdevice/by-name/userdata /data f2fs nosuid,nodev,noatime,inline_xattr,data_flush wait,check,encryptable=footer,length=-16384 /dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,noatime,barrier=1,noauto_da_alloc wait,check,encryptable=footer,length=-16384 /dev/block/bootdevice/by-name/cache /cache f2fs nosuid,nodev,noatime,inline_xattr,flush_merge,data_flush wait,check diff --git a/rootdir/etc/fstab.qcom b/rootdir/etc/fstab.qcom index 3da3e16..d50afd4 100644 --- a/rootdir/etc/fstab.qcom +++ b/rootdir/etc/fstab.qcom @@ -1,9 +1,10 @@ # Android fstab file. -# The filesystem that contains the filesystem checker binary (typically /system) cannot -# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK +# The filesystem that contains the filesystem e2fsck binary (typically /system) cannot +# specify 'check', and must come before any filesystems that do specify 'check' -#TODO: Add 'check' as fs_mgr_flags with data partition. -# Currently we dont have e2fsck compiled. So fs check would failed. +# NOTE: /system and /vendor (/factory mounted as /vendor) partitions are now early-mounted and the fstab entry is specified in device tree: +# /proc/device-tree/firmware/android/fstab/system +# /proc/device-tree/firmware/android/fstab/vendor # /dev/block/bootdevice/by-name/boot /boot emmc defaults defaults -- cgit v1.2.3 From 5d6afff28bd6b64109fc69dc637ce1e249385714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cosme=20Dom=C3=ADnguez=20D=C3=ADaz?= Date: Sun, 25 Feb 2018 02:13:53 +0100 Subject: msm8996-common: wcnss_filter: /system/bin -> /vendor/bin. --- rootdir/etc/init.qcom.rc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index e551463..ecbd951 100755 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -703,7 +703,7 @@ on property:wc_transport.start_hci=true on property:wc_transport.start_hci=false stop start_hci_filter -service start_hci_filter /system/bin/wcnss_filter +service start_hci_filter /vendor/bin/wcnss_filter class late_start user bluetooth group bluetooth diag system wakelock @@ -716,7 +716,7 @@ on property:wc_transport.start_root=true on property:wc_transport.start_root=false stop hci_filter_root -service hci_filter_root /system/bin/wcnss_filter +service hci_filter_root /vendor/bin/wcnss_filter class late_start user bluetooth group bluetooth diag system @@ -728,7 +728,7 @@ on property:wc_transport.start_root=true on property:wc_transport.start_root=false stop hci_filter_root -service hci_filter_root /system/bin/wcnss_filter +service hci_filter_root /vendor/bin/wcnss_filter class late_start user bluetooth group bluetooth diag system -- cgit v1.2.3 From 0610c89f4624e6640b6edc1418bb69686c00ec60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cosme=20Dom=C3=ADnguez=20D=C3=ADaz?= Date: Sun, 25 Feb 2018 19:55:26 +0100 Subject: msm8996-common: Restore port-bridge and fix its path. --- rootdir/etc/init.qcom.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index ecbd951..e5db2c8 100755 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -742,7 +742,7 @@ service ftmd /system/bin/logwrapper /system/bin/ftmdaemon disabled oneshot -service port-bridge /system/bin/port-bridge +service port-bridge /vendor/bin/port-bridge class main user radio system group radio system inet -- cgit v1.2.3 From 166c635c2f8fa7b358ae5b276943fd97b1c80b2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cosme=20Dom=C3=ADnguez=20D=C3=ADaz?= Date: Sun, 25 Feb 2018 20:01:41 +0100 Subject: msm8996-common: Use TARGET_OUT_VENDOR_EXECUTABLES for all qcom shell scripts --- rootdir/Android.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rootdir') diff --git a/rootdir/Android.mk b/rootdir/Android.mk index eb67fd2..bc0e71a 100644 --- a/rootdir/Android.mk +++ b/rootdir/Android.mk @@ -42,7 +42,7 @@ LOCAL_MODULE := init.qcom.usb.sh LOCAL_MODULE_TAGS := optional eng LOCAL_MODULE_CLASS := EXECUTABLES LOCAL_SRC_FILES := etc/init.qcom.usb.sh -LOCAL_VENDOR_MODULE := true +LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES) include $(BUILD_PREBUILT) include $(CLEAR_VARS) @@ -50,7 +50,7 @@ LOCAL_MODULE := init.qcom.bt.sh LOCAL_MODULE_TAGS := optional eng LOCAL_MODULE_CLASS := EXECUTABLES LOCAL_SRC_FILES := etc/init.qcom.bt.sh -LOCAL_VENDOR_MODULE := true +LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES) include $(BUILD_PREBUILT) include $(CLEAR_VARS) -- cgit v1.2.3 From 43c35c9e4bafe83c22819221b8b22f2503bad4c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cosme=20Dom=C3=ADnguez=20D=C3=ADaz?= Date: Sun, 25 Feb 2018 20:04:32 +0100 Subject: msm8996-common: Fix permissions for rc and sh files. --- rootdir/etc/init.qcom.power.rc | 0 rootdir/etc/init.qcom.rc | 0 rootdir/etc/init.qcom.sensors.sh | 0 rootdir/etc/init.qcom.usb.rc | 0 4 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 rootdir/etc/init.qcom.power.rc mode change 100755 => 100644 rootdir/etc/init.qcom.rc mode change 100644 => 100755 rootdir/etc/init.qcom.sensors.sh mode change 100755 => 100644 rootdir/etc/init.qcom.usb.rc (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.power.rc b/rootdir/etc/init.qcom.power.rc old mode 100755 new mode 100644 diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc old mode 100755 new mode 100644 diff --git a/rootdir/etc/init.qcom.sensors.sh b/rootdir/etc/init.qcom.sensors.sh old mode 100644 new mode 100755 diff --git a/rootdir/etc/init.qcom.usb.rc b/rootdir/etc/init.qcom.usb.rc old mode 100755 new mode 100644 -- cgit v1.2.3 From a20cb11d6e50e3fa1b06679a4f21bab9586cd49d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cosme=20Dom=C3=ADnguez=20D=C3=ADaz?= Date: Sun, 25 Feb 2018 20:15:49 +0100 Subject: msm8996-common: cnss-daemon: /system/bin -> /vendor/bin. --- rootdir/etc/init.qcom.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index e5db2c8..e7018a8 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -813,7 +813,7 @@ service wifi_fccutild /system/bin/wifi_fccutild disabled oneshot -service cnss-daemon /system/bin/cnss-daemon -n -l +service cnss-daemon /vendor/bin/cnss-daemon -n -l class late_start user system group system inet net_admin wifi -- cgit v1.2.3 From bc6c1a4554847d317521829c89cdb776e64b8528 Mon Sep 17 00:00:00 2001 From: Luca Stefani Date: Sun, 4 Feb 2018 18:51:25 +0100 Subject: msm8996-common: rootdir: Remove length from userdata * Current code expects lenght to be the real partition size > The footer is automatically added now Change-Id: I47165062ae0b15c935c8b1c561b9788ff825c4f5 --- rootdir/etc/fstab.full | 4 ++-- rootdir/etc/fstab.qcom | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'rootdir') diff --git a/rootdir/etc/fstab.full b/rootdir/etc/fstab.full index 8f3aa35..a7d2c4e 100644 --- a/rootdir/etc/fstab.full +++ b/rootdir/etc/fstab.full @@ -10,8 +10,8 @@ /dev/block/bootdevice/by-name/recovery /recovery emmc defaults defaults /dev/block/bootdevice/by-name/system /system ext4 ro,barrier=1 wait /dev/block/bootdevice/by-name/factory /vendor ext4 ro,barrier=1 wait -/dev/block/bootdevice/by-name/userdata /data f2fs nosuid,nodev,noatime,inline_xattr,data_flush wait,check,encryptable=footer,length=-16384 -/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,noatime,barrier=1,noauto_da_alloc wait,check,encryptable=footer,length=-16384 +/dev/block/bootdevice/by-name/userdata /data f2fs nosuid,nodev,noatime,inline_xattr,data_flush wait,check,encryptable=footer +/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,noatime,barrier=1,noauto_da_alloc wait,check,encryptable=footer /dev/block/bootdevice/by-name/cache /cache f2fs nosuid,nodev,noatime,inline_xattr,flush_merge,data_flush wait,check /dev/block/bootdevice/by-name/cache /cache ext4 nosuid,nodev,noatime,barrier=1 wait,check /dev/block/bootdevice/by-name/persist /persist ext4 nosuid,nodev,noatime,barrier=1 wait diff --git a/rootdir/etc/fstab.qcom b/rootdir/etc/fstab.qcom index d50afd4..b1bc993 100644 --- a/rootdir/etc/fstab.qcom +++ b/rootdir/etc/fstab.qcom @@ -9,8 +9,8 @@ # /dev/block/bootdevice/by-name/boot /boot emmc defaults defaults /dev/block/bootdevice/by-name/recovery /recovery emmc defaults defaults -/dev/block/bootdevice/by-name/userdata /data f2fs nosuid,nodev,noatime,inline_xattr,data_flush wait,check,encryptable=footer,length=-16384 -/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,noatime,barrier=1,noauto_da_alloc wait,check,encryptable=footer,length=-16384 +/dev/block/bootdevice/by-name/userdata /data f2fs nosuid,nodev,noatime,inline_xattr,data_flush wait,check,encryptable=footer +/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,noatime,barrier=1,noauto_da_alloc wait,check,encryptable=footer /dev/block/bootdevice/by-name/cache /cache f2fs nosuid,nodev,noatime,inline_xattr,flush_merge,data_flush wait,check /dev/block/bootdevice/by-name/cache /cache ext4 nosuid,nodev,noatime,barrier=1 wait,check /dev/block/bootdevice/by-name/persist /persist ext4 nosuid,nodev,noatime,barrier=1 wait -- cgit v1.2.3 From 2aa10a60e6699197966bf2661bd3f4ca9081f36c Mon Sep 17 00:00:00 2001 From: Mahantesh Sanakall Date: Mon, 14 Aug 2017 21:20:01 +0530 Subject: msm8996-common: Enable quota feature for userdata partition. This will enable quota feature for the data partition. Change-Id: I45f54583d84a67c2097065a29fe67b1012dfcc12 --- rootdir/etc/fstab.full | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rootdir') diff --git a/rootdir/etc/fstab.full b/rootdir/etc/fstab.full index a7d2c4e..9b63c3d 100644 --- a/rootdir/etc/fstab.full +++ b/rootdir/etc/fstab.full @@ -10,8 +10,8 @@ /dev/block/bootdevice/by-name/recovery /recovery emmc defaults defaults /dev/block/bootdevice/by-name/system /system ext4 ro,barrier=1 wait /dev/block/bootdevice/by-name/factory /vendor ext4 ro,barrier=1 wait -/dev/block/bootdevice/by-name/userdata /data f2fs nosuid,nodev,noatime,inline_xattr,data_flush wait,check,encryptable=footer -/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,noatime,barrier=1,noauto_da_alloc wait,check,encryptable=footer +/dev/block/bootdevice/by-name/userdata /data f2fs nosuid,nodev,noatime,inline_xattr,data_flush wait,check,encryptable=footer,quota +/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,noatime,barrier=1,noauto_da_alloc wait,check,encryptable=footer,quota /dev/block/bootdevice/by-name/cache /cache f2fs nosuid,nodev,noatime,inline_xattr,flush_merge,data_flush wait,check /dev/block/bootdevice/by-name/cache /cache ext4 nosuid,nodev,noatime,barrier=1 wait,check /dev/block/bootdevice/by-name/persist /persist ext4 nosuid,nodev,noatime,barrier=1 wait -- cgit v1.2.3 From 0c2a9063300d49758e785ac5786ab965af41643f Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Mon, 5 Feb 2018 12:27:10 +0000 Subject: msm8996-common: rootdir: Stop creating useless folders under /data Change-Id: I910c9f574e842410e8a09c1c1d0d82be51d6026c --- rootdir/etc/init.qcom.rc | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index e7018a8..625edff 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -280,10 +280,8 @@ on post-fs-data mkdir /persist/qc_senseid 0700 system system mkdir /persist/bms 0700 root system restorecon_recursive /persist - mkdir /data/misc/dts 0770 media audio mkdir /data/usf 0700 system system mkdir /data/misc/qvop 0660 system system - mkdir /data/misc/audio_pp 0771 media audio # Create directory used by display clients mkdir /data/vendor/display 0770 system graphics @@ -294,9 +292,6 @@ on post-fs-data mkdir /data/vendor/misc/qti_fp/calib_test 0770 system system mkdir /data/vendor/misc/qti_fp/database 0770 system system - # Create directory for TZ Apps - mkdir /data/misc/qsee 0770 system system - # Create folder for mm-qcamera-daemon mkdir /data/misc/camera 0770 camera camera @@ -332,9 +327,6 @@ on post-fs-data mkdir /data/connectivity 0771 system system chown system system /data/connectivity - mkdir /data/dpm/nsrm 0771 system system - chown system system /data/dpm/nsrm - # Create directory used by audio subsystem mkdir /data/misc/audio 0770 audio audio @@ -342,9 +334,6 @@ on post-fs-data mkdir /data/misc/audio/acdbdata 0770 media audio mkdir /data/misc/audio/acdbdata/delta 0770 media audio - # Create directory used by the DASH client - mkdir /data/misc/dash 0770 media audio - # Create directory for radio mkdir /data/vendor/radio 0770 system radio @@ -363,23 +352,11 @@ on post-fs-data chown system system /sys/devices/platform/msm_sdcc.3/polling chown system system /sys/devices/platform/msm_sdcc.4/polling - # Create the symlink to qcn wpa_supplicant folder for ar6000 wpa_supplicant - mkdir /data/system 0775 system system - - #symlink /data/misc/wifi/wpa_supplicant /data/system/wpa_supplicant # Create directories for Location services mkdir /data/vendor/location 0770 gps gps mkdir /data/vendor/location/mq 0770 gps gps mkdir /data/vendor/location/xtwifi 0770 gps gps - # Create directory from IMS services - mkdir /data/shared 0755 - chown system system /data/shared - - # Create directory for FOTA - mkdir /data/fota 0771 - chown system system /data/fota - # Create /data/time folder for time-services mkdir /data/time/ 0700 system system mkdir /data/audio/ 0770 media audio @@ -396,14 +373,6 @@ on post-fs-data mkdir /data/misc/fm 0770 system system chmod 0770 /data/misc/fm - # RIDL data - mkdir /data/misc/SelfHost/ 0710 system shell - mkdir /data/misc/SelfHost/QCLogs/ 2750 system shell - mkdir /data/misc/SelfHost/QCLogs/temp/ 0700 system shell - mkdir /data/misc/SelfHost/storage/ 0700 system shell - mkdir /data/misc/SelfHost/Running/ 2750 system shell - mkdir /data/misc/SelfHost/socket/ 2770 system system - #Create PERFD deamon related dirs mkdir /data/vendor/perfd 0770 root system chmod 2770 /data/vendor/perfd -- cgit v1.2.3 From 09ecc3011a3ebde207ed9ed8d6b1ec4ae7b21f7d Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Thu, 1 Feb 2018 19:07:54 +0100 Subject: msm8996-common: rootdir: Remove unnecessary /persist permissions * We mount /persist in fstab so this is useless. Change-Id: I62cec54e22af6207114eca94c2c80275ece30443 --- rootdir/etc/init.qcom.rc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 625edff..4ea368a 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -337,10 +337,6 @@ on post-fs-data # Create directory for radio mkdir /data/vendor/radio 0770 system radio - # Mounting of persist is moved to 'on emmc-fs' and 'on fs' sections - # We chown/chmod /persist again so because mount is run as root + defaults - chown system system /persist - chmod 0771 /persist chmod 0664 /sys/devices/platform/msm_sdcc.1/polling chmod 0664 /sys/devices/platform/msm_sdcc.2/polling chmod 0664 /sys/devices/platform/msm_sdcc.3/polling -- cgit v1.2.3 From 559ae9622e248302c3ee86af9e5532e651888fa6 Mon Sep 17 00:00:00 2001 From: Naresh Tanniru Date: Mon, 5 Jun 2017 22:25:38 +0530 Subject: msm8996-common: init.qcom.rc: Create /data/vendor folder for audio - for audio acdb and dump files create /data/vendor folder Change-Id: If24a072d3686c3740ba36a3d6eb1849b4a769a3b --- rootdir/etc/init.qcom.rc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 4ea368a..03451ec 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -1,4 +1,4 @@ -# Copyright (c) 2009-2012, 2014-2015, The Linux Foundation. All rights reserved. +# Copyright (c) 2009-2012, 2014-2017, The Linux Foundation. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: @@ -271,6 +271,9 @@ on boot # msm specific files that need to be created on /data on post-fs-data + mkdir /data/vendor 0770 system system + mkdir /data/vendor/misc 0770 system system + mkdir /tombstones/modem 0771 system system mkdir /tombstones/lpass 0771 system system mkdir /tombstones/wcnss 0771 system system @@ -328,11 +331,11 @@ on post-fs-data chown system system /data/connectivity # Create directory used by audio subsystem - mkdir /data/misc/audio 0770 audio audio + mkdir /data/vendor/misc/audio 0770 audio audio # Create directory for audio delta files - mkdir /data/misc/audio/acdbdata 0770 media audio - mkdir /data/misc/audio/acdbdata/delta 0770 media audio + mkdir /data/vendor/misc/audio/acdbdata 0770 media audio + mkdir /data/vendor/misc/audio/acdbdata/delta 0770 media audio # Create directory for radio mkdir /data/vendor/radio 0770 system radio -- cgit v1.2.3 From 2ec08caba486c2bb7f68539fc7954b445d6c49df Mon Sep 17 00:00:00 2001 From: Saurabh Srivastava Date: Mon, 5 Jun 2017 18:07:21 +0530 Subject: msm8996-common: Fixing permission for /data/vendor Removing creation of /data/vendor with system group access. CRs-Fixed: 2055140 Change-Id: Ic9fb98ea1420769f2ffa5262fd6e1a82ad848941 --- rootdir/etc/init.qcom.rc | 1 - 1 file changed, 1 deletion(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 03451ec..96fd101 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -271,7 +271,6 @@ on boot # msm specific files that need to be created on /data on post-fs-data - mkdir /data/vendor 0770 system system mkdir /data/vendor/misc 0770 system system mkdir /tombstones/modem 0771 system system -- cgit v1.2.3 From d9fb201633ea5899b527348ae4a2b33bc3ef1972 Mon Sep 17 00:00:00 2001 From: Aditya Bavanari Date: Fri, 14 Jul 2017 20:06:30 +0530 Subject: msm8996-common: init.qcom.rc: Modify permissions for /data/vendor/misc Modify permissions for /data/vendor/misc to 01771 from 0770 in order to enable audio module to access the directory. CRs-Fixed: 2074932 Change-Id: Ibc832cd0ec7c04a99b3fa1e9a554f919e11a149a --- rootdir/etc/init.qcom.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 96fd101..24fa31d 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -271,7 +271,7 @@ on boot # msm specific files that need to be created on /data on post-fs-data - mkdir /data/vendor/misc 0770 system system + mkdir /data/vendor/misc 01771 system system mkdir /tombstones/modem 0771 system system mkdir /tombstones/lpass 0771 system system -- cgit v1.2.3 From 0d39a55fb766fc4af4386e973f28c796a8d6bf9a Mon Sep 17 00:00:00 2001 From: Luca Stefani Date: Thu, 1 Feb 2018 19:55:34 +0100 Subject: msm8996-common: rootdir: Move sections to reflect exec order Change-Id: I431fbcd9af56697dc0bc673b8c102579c208f620 --- rootdir/etc/init.qcom.rc | 282 +++++++++++++++++++++++------------------------ 1 file changed, 141 insertions(+), 141 deletions(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 24fa31d..44beffc 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -51,6 +51,15 @@ on init write /sys/module/qpnp_rtc/parameters/poweron_alarm 1 +on fs + wait /dev/block/platform/soc/${ro.boot.bootdevice} + symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice + restorecon_recursive /dev/block/platform/soc/${ro.boot.bootdevice} + mount_all /vendor/etc/fstab.qcom + + # Restorecon + restorecon_recursive /persist + on late-fs # boot time fs tune write /sys/block/sda/queue/iostats 0 @@ -60,6 +69,138 @@ on late-fs write /sys/block/dm-0/queue/read_ahead_kb 2048 write /sys/block/dm-1/queue/read_ahead_kb 2048 +# msm specific files that need to be created on /data +on post-fs-data + mkdir /data/vendor/misc 01771 system system + + mkdir /tombstones/modem 0771 system system + mkdir /tombstones/lpass 0771 system system + mkdir /tombstones/wcnss 0771 system system + mkdir /tombstones/dsps 0771 system system + mkdir /persist/data/sfs 0700 system system + mkdir /persist/data/tz 0700 system system + mkdir /persist/qc_senseid 0700 system system + mkdir /persist/bms 0700 root system + restorecon_recursive /persist + mkdir /data/usf 0700 system system + mkdir /data/misc/qvop 0660 system system + + # Create directory used by display clients + mkdir /data/vendor/display 0770 system graphics + + # Create directories for Fingerprint + mkdir /data/vendor/misc/qti_fp 0770 system system + mkdir /data/vendor/misc/qti_fp/bg_estimation 0770 system system + mkdir /data/vendor/misc/qti_fp/calib_test 0770 system system + mkdir /data/vendor/misc/qti_fp/database 0770 system system + + # Create folder for mm-qcamera-daemon + mkdir /data/misc/camera 0770 camera camera + + mkdir /data/media 0770 media_rw media_rw + chown media_rw media_rw /data/media + + # Create directory for tftp + mkdir /data/vendor/tombstones 0771 system system + mkdir /data/vendor/tombstones/rfs 0771 system system + + mkdir /data/misc/bluetooth 0770 bluetooth bluetooth + + # Create the directories used by the Wireless subsystem + mkdir /data/misc/wifi 0770 wifi wifi + mkdir /data/misc/wifi/sockets 0770 wifi wifi + mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi + mkdir /data/misc/dhcp 0770 dhcp dhcp + chown dhcp dhcp /data/misc/dhcp + + # Create port-bridge log dir + mkdir /data/misc/port_bridge 0770 radio radio + chmod 0770 /data/misc/port_bridge + + # Create netmgr log dir + mkdir /data/vendor/netmgr 0770 radio radio + chmod 0770 /data/vendor/netmgr + + # Create ipacm log dir + mkdir /data/vendor/ipa 0770 radio radio + chmod 0770 /data/vendor/ipa + + # Create the directories used by CnE subsystem + mkdir /data/connectivity 0771 system system + chown system system /data/connectivity + + # Create directory used by audio subsystem + mkdir /data/vendor/misc/audio 0770 audio audio + + # Create directory for audio delta files + mkdir /data/vendor/misc/audio/acdbdata 0770 media audio + mkdir /data/vendor/misc/audio/acdbdata/delta 0770 media audio + + # Create directory for radio + mkdir /data/vendor/radio 0770 system radio + + chmod 0664 /sys/devices/platform/msm_sdcc.1/polling + chmod 0664 /sys/devices/platform/msm_sdcc.2/polling + chmod 0664 /sys/devices/platform/msm_sdcc.3/polling + chmod 0664 /sys/devices/platform/msm_sdcc.4/polling + + # Chown polling nodes as needed from UI running on system server + chown system system /sys/devices/platform/msm_sdcc.1/polling + chown system system /sys/devices/platform/msm_sdcc.2/polling + chown system system /sys/devices/platform/msm_sdcc.3/polling + chown system system /sys/devices/platform/msm_sdcc.4/polling + + # Create directories for Location services + mkdir /data/vendor/location 0770 gps gps + mkdir /data/vendor/location/mq 0770 gps gps + mkdir /data/vendor/location/xtwifi 0770 gps gps + + # Create /data/time folder for time-services + mkdir /data/time/ 0700 system system + mkdir /data/audio/ 0770 media audio + + # Create a folder for audio delta files + mkdir /data/audio/acdbdata 0770 media audio + mkdir /data/audio/acdbdata/delta 0770 media audio + setprop vold.post_fs_data_done 1 + + # Create a folder for SRS to be able to create a usercfg file + mkdir /data/data/media 0770 media media + + # Create FM dir for patchdownloader + mkdir /data/misc/fm 0770 system system + chmod 0770 /data/misc/fm + + #Create PERFD deamon related dirs + mkdir /data/vendor/perfd 0770 root system + chmod 2770 /data/vendor/perfd + rm /data/vendor/perfd/default_values + + # NFC local data and nfcee xml storage + mkdir /data/nfc 0770 nfc nfc + mkdir /data/nfc/param 0770 nfc nfc + + #Create IOP deamon related dirs + mkdir /data/vendor/iop 0770 root system + + # Mark the copy complete flag to not completed + write /data/vendor/radio/copy_complete 0 + chown radio radio /data/vendor/radio/copy_complete + chmod 0660 /data/vendor/radio/copy_complete + + # copy prebuilt qcril.db files always + copy /vendor/radio/qcril_database/qcril.db /data/vendor/radio/qcril_prebuilt.db + chown radio radio /data/vendor/radio/qcril_prebuilt.db + chmod 0660 /data/vendor/radio/qcril_prebuilt.db + + # File flags for prebuilt ril db file + write /data/vendor/radio/prebuilt_db_support 1 + chown radio radio /data/vendor/radio/prebuilt_db_support + chmod 0400 /data/vendor/radio/prebuilt_db_support + write /data/vendor/radio/db_check_done 0 + chown radio radio /data/vendor/radio/db_check_done + chmod 0660 /data/vendor/radio/db_check_done + on early-boot # set RLIMIT_MEMLOCK to 64MB setrlimit 8 67108864 67108864 @@ -77,15 +218,6 @@ on early-boot write /sys/bus/msm_subsys/devices/subsys4/restart_level "related" write /sys/bus/msm_subsys/devices/subsys5/restart_level "related" -on fs - wait /dev/block/platform/soc/${ro.boot.bootdevice} - symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice - restorecon_recursive /dev/block/platform/soc/${ro.boot.bootdevice} - mount_all /vendor/etc/fstab.qcom - - # Restorecon - restorecon_recursive /persist - on boot # Secure touch chmod 0660 /sys/devices/soc/75ba000.i2c/i2c-12/12-004a/secure_touch_enable @@ -269,138 +401,6 @@ on boot # Allow access for WLAN firmware chown system system /sys/module/cnss_common/parameters/bdwlan_file -# msm specific files that need to be created on /data -on post-fs-data - mkdir /data/vendor/misc 01771 system system - - mkdir /tombstones/modem 0771 system system - mkdir /tombstones/lpass 0771 system system - mkdir /tombstones/wcnss 0771 system system - mkdir /tombstones/dsps 0771 system system - mkdir /persist/data/sfs 0700 system system - mkdir /persist/data/tz 0700 system system - mkdir /persist/qc_senseid 0700 system system - mkdir /persist/bms 0700 root system - restorecon_recursive /persist - mkdir /data/usf 0700 system system - mkdir /data/misc/qvop 0660 system system - - # Create directory used by display clients - mkdir /data/vendor/display 0770 system graphics - - # Create directories for Fingerprint - mkdir /data/vendor/misc/qti_fp 0770 system system - mkdir /data/vendor/misc/qti_fp/bg_estimation 0770 system system - mkdir /data/vendor/misc/qti_fp/calib_test 0770 system system - mkdir /data/vendor/misc/qti_fp/database 0770 system system - - # Create folder for mm-qcamera-daemon - mkdir /data/misc/camera 0770 camera camera - - mkdir /data/media 0770 media_rw media_rw - chown media_rw media_rw /data/media - - # Create directory for tftp - mkdir /data/vendor/tombstones 0771 system system - mkdir /data/vendor/tombstones/rfs 0771 system system - - mkdir /data/misc/bluetooth 0770 bluetooth bluetooth - - # Create the directories used by the Wireless subsystem - mkdir /data/misc/wifi 0770 wifi wifi - mkdir /data/misc/wifi/sockets 0770 wifi wifi - mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi - mkdir /data/misc/dhcp 0770 dhcp dhcp - chown dhcp dhcp /data/misc/dhcp - - # Create port-bridge log dir - mkdir /data/misc/port_bridge 0770 radio radio - chmod 0770 /data/misc/port_bridge - - # Create netmgr log dir - mkdir /data/vendor/netmgr 0770 radio radio - chmod 0770 /data/vendor/netmgr - - # Create ipacm log dir - mkdir /data/vendor/ipa 0770 radio radio - chmod 0770 /data/vendor/ipa - - # Create the directories used by CnE subsystem - mkdir /data/connectivity 0771 system system - chown system system /data/connectivity - - # Create directory used by audio subsystem - mkdir /data/vendor/misc/audio 0770 audio audio - - # Create directory for audio delta files - mkdir /data/vendor/misc/audio/acdbdata 0770 media audio - mkdir /data/vendor/misc/audio/acdbdata/delta 0770 media audio - - # Create directory for radio - mkdir /data/vendor/radio 0770 system radio - - chmod 0664 /sys/devices/platform/msm_sdcc.1/polling - chmod 0664 /sys/devices/platform/msm_sdcc.2/polling - chmod 0664 /sys/devices/platform/msm_sdcc.3/polling - chmod 0664 /sys/devices/platform/msm_sdcc.4/polling - - # Chown polling nodes as needed from UI running on system server - chown system system /sys/devices/platform/msm_sdcc.1/polling - chown system system /sys/devices/platform/msm_sdcc.2/polling - chown system system /sys/devices/platform/msm_sdcc.3/polling - chown system system /sys/devices/platform/msm_sdcc.4/polling - - # Create directories for Location services - mkdir /data/vendor/location 0770 gps gps - mkdir /data/vendor/location/mq 0770 gps gps - mkdir /data/vendor/location/xtwifi 0770 gps gps - - # Create /data/time folder for time-services - mkdir /data/time/ 0700 system system - mkdir /data/audio/ 0770 media audio - - # Create a folder for audio delta files - mkdir /data/audio/acdbdata 0770 media audio - mkdir /data/audio/acdbdata/delta 0770 media audio - setprop vold.post_fs_data_done 1 - - # Create a folder for SRS to be able to create a usercfg file - mkdir /data/data/media 0770 media media - - # Create FM dir for patchdownloader - mkdir /data/misc/fm 0770 system system - chmod 0770 /data/misc/fm - - #Create PERFD deamon related dirs - mkdir /data/vendor/perfd 0770 root system - chmod 2770 /data/vendor/perfd - rm /data/vendor/perfd/default_values - - # NFC local data and nfcee xml storage - mkdir /data/nfc 0770 nfc nfc - mkdir /data/nfc/param 0770 nfc nfc - - #Create IOP deamon related dirs - mkdir /data/vendor/iop 0770 root system - - # Mark the copy complete flag to not completed - write /data/vendor/radio/copy_complete 0 - chown radio radio /data/vendor/radio/copy_complete - chmod 0660 /data/vendor/radio/copy_complete - - # copy prebuilt qcril.db files always - copy /vendor/radio/qcril_database/qcril.db /data/vendor/radio/qcril_prebuilt.db - chown radio radio /data/vendor/radio/qcril_prebuilt.db - chmod 0660 /data/vendor/radio/qcril_prebuilt.db - - # File flags for prebuilt ril db file - write /data/vendor/radio/prebuilt_db_support 1 - chown radio radio /data/vendor/radio/prebuilt_db_support - chmod 0400 /data/vendor/radio/prebuilt_db_support - write /data/vendor/radio/db_check_done 0 - chown radio radio /data/vendor/radio/db_check_done - chmod 0660 /data/vendor/radio/db_check_done - # start camera server as daemon service qcamerasvr /vendor/bin/mm-qcamera-daemon class main -- cgit v1.2.3 From 1d3f76791250c420724ec625e56c02a9b97bba9e Mon Sep 17 00:00:00 2001 From: Gurpreet Ghai Date: Thu, 18 May 2017 20:56:00 +0530 Subject: msm8996-common: Create folder for Bluetooth logs/dump collection These changes are to create folder to collect logs and dump from Bluetooth HAL daemon. CRs-Fixed: 2051034 Change-Id: Ib930a80aab1354ad1463a02febf71eba922e2df8 --- rootdir/etc/init.qcom.rc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 44beffc..3150543 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -104,7 +104,10 @@ on post-fs-data mkdir /data/vendor/tombstones 0771 system system mkdir /data/vendor/tombstones/rfs 0771 system system + mkdir /data/vendor/ramdump 0771 root system mkdir /data/misc/bluetooth 0770 bluetooth bluetooth + mkdir /data/vendor/bluetooth 0770 bluetooth bluetooth + mkdir /data/vendor/ramdump/bluetooth 0770 bluetooth bluetooth # Create the directories used by the Wireless subsystem mkdir /data/misc/wifi 0770 wifi wifi -- cgit v1.2.3 From 21978cf2c1e33336c8e4b8d6d55dc833bd10be87 Mon Sep 17 00:00:00 2001 From: RAJATH R Date: Tue, 19 Sep 2017 11:09:37 +0530 Subject: msm8996-common: Removing redundant permission for BT folder Removing redundant creation and assignment of permission for data/misc/bluetooth folder from init.qcom.rc file. Change-Id: I941a53d01675b44fa6a5b59bcd2b72f9e6a11ab7 --- rootdir/etc/init.qcom.rc | 1 - 1 file changed, 1 deletion(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 3150543..2fae40e 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -105,7 +105,6 @@ on post-fs-data mkdir /data/vendor/tombstones/rfs 0771 system system mkdir /data/vendor/ramdump 0771 root system - mkdir /data/misc/bluetooth 0770 bluetooth bluetooth mkdir /data/vendor/bluetooth 0770 bluetooth bluetooth mkdir /data/vendor/ramdump/bluetooth 0770 bluetooth bluetooth -- cgit v1.2.3 From 3a50f5c9f117b983c35b6d1975e9b9488132e07d Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Thu, 1 Feb 2018 19:07:26 +0100 Subject: msm8996-common: rootdir: Move sensors permissions handling to 'post-fs-data' * We need to set proper permissions earlier otherwise users might be forced to reboot as their sensors wouldn't work due to not working sensors daemon. Change-Id: Idbb5dd8a539a85c9b498e70b158569a2c9f37682 --- rootdir/etc/init.qcom.rc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 2fae40e..92a0d0b 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -157,6 +157,18 @@ on post-fs-data mkdir /data/vendor/location/mq 0770 gps gps mkdir /data/vendor/location/xtwifi 0770 gps gps + # SSC/SLPI sensors + mkdir /persist/sensors 0775 root system + chown root system /persist/sensors/sensors_settings + chmod 0664 /persist/sensors/sensors_settings + chown root system /persist/sensors/sns.reg + chmod 0664 /persist/sensors/sns.reg + + # /dev/sensors only supports an ioctl to get the current SLPI timestamp; + # allow the sensors daemon to perform this as non-root + chown root system /dev/sensors + chmod 0660 /dev/sensors + # Create /data/time folder for time-services mkdir /data/time/ 0700 system system mkdir /data/audio/ 0770 media audio -- cgit v1.2.3 From 50ef3ca5113e38529cf5f3940a9b2121670cf75b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cosme=20Dom=C3=ADnguez=20D=C3=ADaz?= Date: Sun, 25 Feb 2018 21:53:57 +0100 Subject: msm8996-common:: rootdir: Remove unneeded init.qcom.sensors.sh. --- rootdir/Android.mk | 8 -------- rootdir/etc/init.qcom.rc | 5 ----- rootdir/etc/init.qcom.sensors.sh | 43 ---------------------------------------- 3 files changed, 56 deletions(-) delete mode 100755 rootdir/etc/init.qcom.sensors.sh (limited to 'rootdir') diff --git a/rootdir/Android.mk b/rootdir/Android.mk index bc0e71a..6c3df51 100644 --- a/rootdir/Android.mk +++ b/rootdir/Android.mk @@ -62,14 +62,6 @@ LOCAL_SRC_FILES := etc/ueventd.qcom.rc LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR) include $(BUILD_PREBUILT) -include $(CLEAR_VARS) -LOCAL_MODULE := init.qcom.sensors.sh -LOCAL_MODULE_TAGS := optional eng -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := etc/init.qcom.sensors.sh -LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES) -include $(BUILD_PREBUILT) - include $(CLEAR_VARS) LOCAL_MODULE := chargeonlymode LOCAL_MODULE_OWNER := zuk diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 92a0d0b..ca705e2 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -808,11 +808,6 @@ service loc_launcher /vendor/bin/loc_launcher group gps inet diag wifi writepid /dev/cpuset/system-background/tasks -service sensor-sh /vendor/bin/init.qcom.sensors.sh - class core - user root - oneshot - service atfwd /system/bin/ATFWD-daemon class late_start user system diff --git a/rootdir/etc/init.qcom.sensors.sh b/rootdir/etc/init.qcom.sensors.sh deleted file mode 100755 index fd193e2..0000000 --- a/rootdir/etc/init.qcom.sensors.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/vendor/bin/sh -# Copyright (c) 2015, The Linux Foundation. All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# * Neither the name of The Linux Foundation nor -# the names of its contributors may be used to endorse or promote -# products derived from this software without specific prior written -# permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# - -# -# Function to start sensors for SSC enabled platforms -# -start_sensors() -{ - if [ -c /dev/msm_dsps -o -c /dev/sensors ]; then - chmod -h 775 /persist/sensors - chmod -h 664 /persist/sensors/sensors_settings - mkdir -p /persist/sensors/registry/registry - chown -h system.root /persist/sensors/sensors_settings - start sensors - fi -} - -start_sensors -- cgit v1.2.3 From 8184e6b76a894b7de3899b730f4d85aeb4e9eb90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cosme=20Dom=C3=ADnguez=20D=C3=ADaz?= Date: Mon, 26 Feb 2018 22:19:13 +0100 Subject: msm8996-common: Remove duplicated definition of service 'hci_filter_root' --- rootdir/etc/init.qcom.rc | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index ca705e2..f413864 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -697,18 +697,6 @@ on property:wc_transport.start_root=true on property:wc_transport.start_root=false stop hci_filter_root -service hci_filter_root /vendor/bin/wcnss_filter - class late_start - user bluetooth - group bluetooth diag system - disabled - -on property:wc_transport.start_root=true - start hci_filter_root - -on property:wc_transport.start_root=false - stop hci_filter_root - service hci_filter_root /vendor/bin/wcnss_filter class late_start user bluetooth -- cgit v1.2.3 From 79b6a199c986e91a16e339eecfc396d72e9dc6de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cosme=20Dom=C3=ADnguez=20D=C3=ADaz?= Date: Mon, 26 Feb 2018 22:30:30 +0100 Subject: msm8996-common: Remove wfdservice. * Qualcomm Wifi Direct, as far as I know, but we dont ship its blob. --- rootdir/etc/init.qcom.rc | 7 ------- 1 file changed, 7 deletions(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index f413864..75a1125 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -818,13 +818,6 @@ service msm_irqbalance /vendor/bin/msm_irqbalance -f /vendor/etc/msm_irqbalance. disabled writepid /dev/cpuset/system-background/tasks -service wfdservice /system/bin/wfdservice - class main - user system - group audio camera inet net_bt_stack drmrpc media_rw media input net_admin - # removed these because of limit of 12 groups - #graphics net_bt net_bt_admin bluetooth - # Seemp health service service seemp_healthd /vendor/bin/seemp_healthd class late_start -- cgit v1.2.3 From 9ee266b7f33020597966942e2c268ec67c53a7c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cosme=20Dom=C3=ADnguez=20D=C3=ADaz?= Date: Mon, 26 Feb 2018 22:39:57 +0100 Subject: msm8996-common: Remove imports of missing rc files. * There is no init.target.rc or init.zuk.usb.rc --- rootdir/etc/init.qcom.rc | 2 +- rootdir/etc/init.qcom.usb.rc | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 75a1125..c716cc8 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -24,9 +24,9 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # + import /vendor/etc/init/hw/init.qcom.power.rc import /vendor/etc/init/hw/init.qcom.usb.rc -import /vendor/etc/init/hw/init.target.rc on early-init mount debugfs debugfs /sys/kernel/debug diff --git a/rootdir/etc/init.qcom.usb.rc b/rootdir/etc/init.qcom.usb.rc index 63a8886..e4a3535 100644 --- a/rootdir/etc/init.qcom.usb.rc +++ b/rootdir/etc/init.qcom.usb.rc @@ -25,8 +25,6 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -import /vendor/etc/init/hw/init.zuk.usb.rc - on init write /sys/class/android_usb/android0/f_rndis/wceis 1 write /sys/class/android_usb/android0/iSerial ${ro.serialno} -- cgit v1.2.3 From fa2a19958bd920fce62d6aef12b5aa6cf20cde1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cosme=20Dom=C3=ADnguez=20D=C3=ADaz?= Date: Mon, 26 Feb 2018 22:45:30 +0100 Subject: msm8996-common: rootdir: Remove unneeded dirs. * This fixes these SELinux denials and it doesn't break anything for now... :-P avc: denied { create } for pid=1 comm=init name=firmware scontext=u:r:init:s0 tcontext=u:object_r:firmware_file:s0 tclass=dir permissive=0 avc: denied { create } for pid=1 comm=init name=bt_firmware scontext=u:r:init:s0 tcontext=u:object_r:bt_firmware_file:s0 tclass=dir permissive=0 --- rootdir/etc/init.qcom.rc | 3 --- 1 file changed, 3 deletions(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index c716cc8..ec3a89a 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -34,10 +34,7 @@ on early-init chown root system /dev/kmsg chmod 0620 /dev/kmsg - mkdir /firmware 0771 system system - mkdir /bt_firmware 0771 system system symlink /data/tombstones /tombstones - mkdir /dsp 0771 media media # ZRAM setup write /sys/block/zram0/comp_algorithm lz4 -- cgit v1.2.3 From ce7239c3e669e12e0bb920b9eb1d425855df839b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cosme=20Dom=C3=ADnguez=20D=C3=ADaz?= Date: Mon, 26 Feb 2018 23:12:59 +0100 Subject: msm8996-common: rootdir: Remove seempd * Disable on the kernel and we don't ship its blob. --- rootdir/etc/init.qcom.rc | 6 ------ 1 file changed, 6 deletions(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index ec3a89a..68e3b66 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -450,12 +450,6 @@ service qseecomd /vendor/bin/qseecomd group root writepid /dev/cpuset/system-background/tasks -service seempd /system/bin/seempd - class late_start - user system - group system - socket seempdw dgram 0666 system system - service secotad /system/bin/secotad class late_start user system -- cgit v1.2.3 From eadf00baad689fa6ac5237b5f98af0f4f6e943fe Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Mon, 1 Jan 2018 15:04:23 +0100 Subject: msm8996-common: rootdir: Remove audiod service * Dropped by Qualcomm in O. Change-Id: Id1c6e9d475b59b41c0cc4e4633e2ce7faabd19ef --- rootdir/etc/init.qcom.rc | 5 ----- 1 file changed, 5 deletions(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 68e3b66..bc9c33c 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -475,11 +475,6 @@ service adsprpcd /vendor/bin/adsprpcd user media group media -service audiod /system/bin/audiod - class late_start - user system - group system - service imsqmidaemon /vendor/bin/imsqmidaemon class main user system -- cgit v1.2.3 From d8b10bdbba1277867cde0b43eb77b258de7bc84c Mon Sep 17 00:00:00 2001 From: Bruce Levy Date: Wed, 2 Aug 2017 15:21:07 -0700 Subject: msm8996-common: Mark rmt_storage as shutdown critical rmt_storage should not be automatically killed by Android during shutdown since it is needed to actually process the peripheral shutdown Change-Id: I58a29fe86955f0abad944727bb4208dad89f495d --- rootdir/etc/init.qcom.rc | 1 + 1 file changed, 1 insertion(+) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index bc9c33c..fb17836 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -657,6 +657,7 @@ service rmt_storage /vendor/bin/rmt_storage class core user root group root system wakelock + shutdown critical writepid /dev/cpuset/system-background/tasks service tftp_server /vendor/bin/tftp_server -- cgit v1.2.3 From 1839e7c05023b5ee89386cb308d018786e18a9df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cosme=20Dom=C3=ADnguez=20D=C3=ADaz?= Date: Tue, 27 Feb 2018 22:16:36 +0100 Subject: msm8996-common: Import ueventd.qcom.rc from ZUI 3.5.261. --- rootdir/etc/ueventd.qcom.rc | 73 +++++++++++++++++++++++++++++++++++++-------- 1 file changed, 61 insertions(+), 12 deletions(-) (limited to 'rootdir') diff --git a/rootdir/etc/ueventd.qcom.rc b/rootdir/etc/ueventd.qcom.rc index bdff059..d48ee2c 100644 --- a/rootdir/etc/ueventd.qcom.rc +++ b/rootdir/etc/ueventd.qcom.rc @@ -1,4 +1,4 @@ -# Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. +# Copyright (c) 2012-2015, 2017, The Linux Foundation. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: @@ -29,12 +29,13 @@ /dev/diag 0660 system oem_2901 /dev/genlock 0666 system system +/dev/wlan 0660 wifi wifi /dev/kgsl 0666 system system /dev/kgsl-3d0 0666 system system /dev/kgsl-2d0 0666 root root /dev/kgsl-2d1 0666 root root /dev/ion 0664 system system -/dev/rtc0 0600 system system +/dev/rtc0 0660 system system /dev/smd0 0660 system system /dev/smd4 0660 system system /dev/smd_cxm_qmi 0640 radio radio @@ -51,6 +52,11 @@ #permissions for CSVT /dev/smd11 0660 radio radio +#permsissions for BT/FM +/dev/smd2 0660 bluetooth bluetooth +/dev/smd3 0660 bluetooth bluetooth +/dev/btpower 0660 bluetooth system + #permissions for pta /dev/pta 0660 system system @@ -106,12 +112,21 @@ /dev/mhi_pipe_14 0640 radio radio /dev/mhi_pipe_16 0640 radio radio /dev/mhi_pipe_32 0640 radio radio +/dev/at_usb0 0640 radio radio +/dev/at_mdm0 0640 radio radio /dev/video* 0660 system camera /dev/media* 0660 system camera /dev/v4l-subdev* 0660 system camera /dev/qseecom 0660 system drmrpc +/dev/smcinvoke 0660 system system +/dev/qsee_ipc_irq_spss 0660 system drmrpc /dev/seemplog 0660 system system /dev/pft 0660 system drmrpc +/dev/spcom 0660 system system +/dev/sp_kernel 0660 system system +/dev/sp_ssr 0660 system system +/dev/sp_keymaster 0660 system system +/dev/cryptoapp 0660 system system /dev/gemini0 0660 system camera /dev/jpeg0 0660 system camera /dev/jpeg1 0660 system camera @@ -120,6 +135,12 @@ /dev/adsprpc-smd 0664 system system /dev/system_health_monitor 0644 radio system /dev/mdss_rotator 0664 system system +# wlan +/dev/wcnss_wlan 0660 system system +/dev/wcnss_ctrl 0660 system system +/sys/devices/soc/a000000.qcom,wcnss-wlan/net/wlan0/queues/rx-* rps_cpus 0660 system system +/sys/devices/soc/a000000.qcom,wcnss-wlan/net/p2p0/queues/rx-* rps_cpus 0660 system system +/dev/spidev0.0 0660 system audio /dev/msm_camera/* 0660 system camera /dev/gemini/ 0660 system camera /dev/mercury0 0660 system camera @@ -129,8 +150,11 @@ /dev/msm_vidc_enc 0660 system audio /dev/msm_rotator 0660 system system /dev/hw_random 0600 root root +/dev/sdsprpc-smd 0660 system system #permissions for audio +/dev/wcd_dsp0_control 0660 system audio +/dev/wcd-dsp-glink 0660 system audio /dev/audio_slimslave 0660 system audio /dev/msm_qcelp 0660 system audio /dev/msm_evrc 0660 system audio @@ -146,7 +170,8 @@ /dev/msm_aac_in 0660 system audio /dev/msm_qcelp_in 0660 system audio /dev/msm_evrc_in 0660 system audio -/dev/msm_amrnb_in 0640 system audio +/dev/msm_amrnb_in 0660 system audio +/dev/msm_amrwb_in 0660 system audio /dev/msm_a2dp_in 0660 system audio /dev/msm_ac3 0660 system audio /dev/msm_audio_cal 0660 system audio @@ -158,8 +183,6 @@ /dev/msm_preproc_ctl 0660 system audio /dev/msm_rtac 0660 system audio /dev/msm_voicememo 0660 system audio -/dev/smd3 0660 bluetooth bluetooth -/dev/smd2 0660 bluetooth bluetooth /dev/ttyHSL1 0660 system system /dev/ttyHS1 0660 system system /dev/mdm 0660 system radio @@ -168,9 +191,12 @@ /dev/tty_sdio_00 0660 system system /dev/ttyGS0 0660 system system /dev/i2c-5 0660 media media -/dev/voice_svc 0660 system audio +/dev/input/event* 0660 system input /dev/avtimer 0660 system audio +# TFA9890 For SmartPA +/dev/tfa9890 0660 media media + # DVB devices /dev/dvb/adapter0/demux* 0440 media media /dev/dvb/adapter0/dvr* 0660 media media @@ -180,9 +206,6 @@ /dev/tsc_mux0 0660 media media /dev/tsc_ci0 0660 media media -# ultrasonic fingerprint -/sys/devices/soc/757a000.i2c/i2c-6/* eeprom 0440 system system - # sensors /sys/devices/i2c-12/12-* pollrate_ms 0664 system system /sys/devices/f9925000.i2c/i2c-0/0-* enable 0660 input system @@ -205,6 +228,21 @@ /sys/devices/virtual/optical_sensors/lightsensor ls_poll_delay 0660 input system /sys/devices/virtual/input/input* poll 0660 input system /sys/devices/virtual/input/input* pollrate_ms 0660 input system +/sys/devices/virtual/input/input* enable 0660 system input +/sys/devices/virtual/input/input* poll_delay 0660 system input +/sys/devices/soc/78b7000.i2c/i2c-3/3-0020/input/input* secure_touch 0440 system drmrpc +/sys/devices/soc/78b7000.i2c/i2c-3/3-0020/input/input* secure_touch_enable 0660 system drmrpc +/sys/devices/soc/78b7000.i2c/i2c-3/3-0038/input/input* secure_touch 0440 system drmrpc +/sys/devices/soc/78b7000.i2c/i2c-3/3-0038/input/input* secure_touch_enable 0660 system drmrpc +/sys/devices/soc/78b7000.i2c/i2c-3/3-004b/input/input* secure_touch 0440 system drmrpc +/sys/devices/soc/78b7000.i2c/i2c-3/3-004b/input/input* secure_touch_enable 0660 system drmrpc +/sys/devices/soc/c179000.i2c/i2c-5/5-0020/input/input* secure_touch 0440 system drmrpc +/sys/devices/soc/c179000.i2c/i2c-5/5-0020/input/input* secure_touch_enable 0660 system drmrpc + +# laser sensor access +/sys/devices/virtual/input/input* enable_ps_sensor 0660 system input +/sys/devices/virtual/input/input* set_delay_ms 0660 system input +/sys/devices/virtual/input/input* do_flush 0660 system input # vm_bms /dev/vm_bms 0660 system system @@ -216,6 +254,13 @@ /sys/devices/soc/600000.qcom,pcie/pci0000:00/0000:00:00.0/0000:01:00.0/net/wlan0/queues/rx-* rps_cpus 0660 system system /sys/devices/soc/600000.qcom,pcie/pci0000:00/0000:00:00.0/0000:01:00.0/net/p2p0/queues/rx-* rps_cpus 0660 system system +# wigig +/sys/bus/pci/drivers/wil6210* 0000:01:00.0/wil6210/fst_link_loss 0660 wifi wifi +/sys/bus/pci/drivers/wil6210* 0000:01:00.0/wil6210/thermal_throttling 0660 system system +/sys/bus/pci/drivers/wil6210* 0000:01:00.0/net/wigig0/queues/rx-0/rps_cpus 0660 system system +/sys/bus/pci/drivers/wil6210* 0000:01:00.0/net/wigig0/gro_flush_timeout 0660 system system +/sys/devices/virtual/net/bond0 queues/rx-0/rps_cpus 0660 system system + #nfc permissions /dev/nfc-nci 0660 nfc nfc /dev/nq-nci 0660 nfc nfc @@ -242,9 +287,13 @@ /dev/hbtp_input 0660 system system /dev/hbtp_vm 0660 system system -# TFA9890 FOR SMARTPA -/dev/tfa9890 0660 media media - # Add device block for FRP +/dev/block/platform/soc/7824900.sdhci/by-name/config 0600 system system /dev/block/platform/soc/7464900.sdhci/by-name/frp 0600 system system /dev/block/platform/soc/624000.ufshc/by-name/frp 0600 system system +/dev/block/platform/soc/1da4000.ufshc/by-name/frp 0600 system system +/dev/block/platform/soc/c0c4000.sdhci/by-name/frp 0600 system system +/dev/block/platform/soc/1d84000.ufshc/by-name/frp 0600 system system + +# Kmsg device +/dev/kmsg 0620 root system -- cgit v1.2.3 From a68befa55060b779e609bb659c5d9580f21ff3f4 Mon Sep 17 00:00:00 2001 From: Brian Duddie Date: Wed, 19 Jul 2017 12:47:14 -0700 Subject: msm8996-common: Run sensors daemon as system user instead of root Grant capabilities and change file permissions to allow the sensors.qcom daemon to start up as the system user/group, rather than running as root. Fixes: 63775281 Test: monitor logcat after reboot, confirm no file open errors. Run QSensorTest, confirm all sensors provide sane data. Confirm that IMU calibration can read + write its saved settings. Run sensors CTS. Change-Id: Ib80ea21900d6af6cd34c82c4a63f50c7e0ac18ff --- rootdir/etc/init.qcom.rc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index fb17836..6bb20c7 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -724,8 +724,11 @@ service qti /vendor/bin/qti service sensors /vendor/bin/sensors.qcom class core - user root - group root wakelock + user system + group system + # Grants the ability for this daemon to bind IPC router ports so it can + # register QMI services + capabilities NET_BIND_SERVICE writepid /dev/cpuset/system-background/tasks on property:ro.use_data_netmgrd=false -- cgit v1.2.3 From 0e90fc10d51030cb63189947b1c205bbb27e7cea Mon Sep 17 00:00:00 2001 From: Sahitya Tummala Date: Fri, 21 Jul 2017 11:47:15 +0530 Subject: msm8996-common: Set ioprio for rmt_storage service Earlier, this used to be set from rmt_storage service with sys_admin capability. But now, that capability is dropped off and hence, set it here in init scripts. Change-Id: Ie8a3895c2b63da35d78fb9e571d74b735c969520 --- rootdir/etc/init.qcom.rc | 1 + 1 file changed, 1 insertion(+) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 6bb20c7..93b53b2 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -658,6 +658,7 @@ service rmt_storage /vendor/bin/rmt_storage user root group root system wakelock shutdown critical + ioprio rt 0 writepid /dev/cpuset/system-background/tasks service tftp_server /vendor/bin/tftp_server -- cgit v1.2.3 From bd5dbfb9fe13df2957874e25aee164d61788dc6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cosme=20Dom=C3=ADnguez=20D=C3=ADaz?= Date: Tue, 27 Feb 2018 22:34:42 +0100 Subject: msm8996-common: rootdir: Move qcamerasvr from main to late_start. --- rootdir/etc/init.qcom.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 93b53b2..b085164 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -414,7 +414,7 @@ on boot # start camera server as daemon service qcamerasvr /vendor/bin/mm-qcamera-daemon - class main + class late_start user camera group camera system inet input graphics writepid /dev/cpuset/system-background/tasks -- cgit v1.2.3 From a9fedd62985c8e2c770fd160219156683838610a Mon Sep 17 00:00:00 2001 From: Dan Pasanen Date: Tue, 10 May 2016 15:38:22 -0500 Subject: msm8996-common: Turn down debugging on wpa_supplicant/hostapd --- rootdir/etc/init.qcom.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index b085164..a3cdad0 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -749,7 +749,7 @@ service wpa_supplicant /vendor/bin/hw/wpa_supplicant \ -I/system/vendor/etc/wifi/p2p_supplicant_overlay.conf -N \ -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ -I/system/vendor/etc/wifi/wpa_supplicant_overlay.conf \ - -O/data/misc/wifi/sockets -puse_p2p_group_interface=1 -dd \ + -O/data/misc/wifi/sockets -puse_p2p_group_interface=1 \ -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0 # we will start as root and wpa_supplicant will switch to user wifi # after setting up the capabilities required for WEXT -- cgit v1.2.3 From e96efd99be1416ba3cdd02fcd9e15f5241fe3216 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Sun, 24 Dec 2017 02:29:51 +0000 Subject: msm8996-common: Move Wi-Fi files to vendor Change-Id: I7e95baa01490ec76cf8ddfa051f01fc9b0bc5c7a --- rootdir/etc/init.qcom.rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index a3cdad0..a2c3f44 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -746,9 +746,9 @@ on property:sys.sysctl.tcp_adv_win_scale=* service wpa_supplicant /vendor/bin/hw/wpa_supplicant \ -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \ - -I/system/vendor/etc/wifi/p2p_supplicant_overlay.conf -N \ + -I/vendor/etc/wifi/p2p_supplicant_overlay.conf -N \ -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ - -I/system/vendor/etc/wifi/wpa_supplicant_overlay.conf \ + -I/vendor/etc/wifi/wpa_supplicant_overlay.conf \ -O/data/misc/wifi/sockets -puse_p2p_group_interface=1 \ -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0 # we will start as root and wpa_supplicant will switch to user wifi -- cgit v1.2.3 From 20ba28f2df0f5fd07c5691377d7ee6879e701b77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cosme=20Dom=C3=ADnguez=20D=C3=ADaz?= Date: Thu, 1 Mar 2018 22:05:34 +0100 Subject: msm8996-common: Clean up unneeded/unused services. * We don't ship blobs for them. --- rootdir/etc/init.qcom.rc | 49 ------------------------------------------------ 1 file changed, 49 deletions(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index a2c3f44..77e14be 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -419,11 +419,6 @@ service qcamerasvr /vendor/bin/mm-qcamera-daemon group camera system inet input graphics writepid /dev/cpuset/system-background/tasks -service qvop-daemon /system/bin/qvop-daemon - class late_start - user system - group system drmrpc - # start up peripheral manager service per_mgr /vendor/bin/pm-service class late_start @@ -450,11 +445,6 @@ service qseecomd /vendor/bin/qseecomd group root writepid /dev/cpuset/system-background/tasks -service secotad /system/bin/secotad - class late_start - user system - group system - service thermal-engine /vendor/bin/thermal-engine class main user root @@ -520,12 +510,6 @@ on property:vendor.ims.DATA_DAEMON_STATUS=1 start ims_rtp_daemon start vendor.imsrcsservice -service dts_configurator /system/bin/dts_configurator - class late_start - user system - group system media audio - oneshot - service ppd /vendor/bin/mm-pp-dpps class late_start user system @@ -551,12 +535,6 @@ on property:init.svc.zygote=running on property:init.svc.zygote=restarting stop ppd -service tlocd /system/bin/tloc_daemon - class late_start - user system - group drmrpc gps net_raw - seclabel u:r:tlocd:s0 - service readmac /vendor/bin/readmac class main user root @@ -569,16 +547,6 @@ service energy-awareness /vendor/bin/energy-awareness group system oneshot -service mdtpd /vendor/bin/mdtpd - class late_start - user root - group system radio drmrpc - -service qcomsysd /system/bin/qcom-system-daemon - class main - user root - group root diag - on property:sys.boot_completed=1 write /dev/kmsg "Boot completed " @@ -760,12 +728,6 @@ service wpa_supplicant /vendor/bin/hw/wpa_supplicant \ disabled oneshot -service ptt_socket_app /system/bin/ptt_socket_app -d - class main - user root - group root - oneshot - service wifi_fccutild /system/bin/wifi_fccutild user system group system inet net_admin @@ -787,11 +749,6 @@ service loc_launcher /vendor/bin/loc_launcher group gps inet diag wifi writepid /dev/cpuset/system-background/tasks -service atfwd /system/bin/ATFWD-daemon - class late_start - user system - group system radio - on property:ro.data.large_tcp_window_size=true # Adjust socket buffer to enlarge TCP receive window for high bandwidth (e.g. DO-RevB) write /proc/sys/net/ipv4/tcp_adv_win_scale 2 @@ -809,12 +766,6 @@ service msm_irqbalance /vendor/bin/msm_irqbalance -f /vendor/etc/msm_irqbalance. disabled writepid /dev/cpuset/system-background/tasks -# Seemp health service -service seemp_healthd /vendor/bin/seemp_healthd - class late_start - user system - group system - on charger setprop persist.sys.usb.config charging -- cgit v1.2.3 From d1db139ac0bab3d0a9c47596d618cc16b4ae7a4c Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Tue, 27 Feb 2018 20:00:45 +0000 Subject: msm8996-common: Get rid of recovery-only fstab * Mounting /system and /vendor partitions is handled in kernel now, however removing the entries from fstab caused issues building the OTA. The workaround was to have a separate fstab, but turns out that simply setting the recoveryonly flag does the trick because those are then ignored during a normal Android boot. Change-Id: I2944384d0a1c41bc9f9f51e2e29daff2bed0a0f4 --- rootdir/etc/fstab.full | 24 ------------------------ rootdir/etc/fstab.qcom | 4 +++- 2 files changed, 3 insertions(+), 25 deletions(-) delete mode 100644 rootdir/etc/fstab.full (limited to 'rootdir') diff --git a/rootdir/etc/fstab.full b/rootdir/etc/fstab.full deleted file mode 100644 index 9b63c3d..0000000 --- a/rootdir/etc/fstab.full +++ /dev/null @@ -1,24 +0,0 @@ -# Android fstab file. -# The filesystem that contains the filesystem checker binary (typically /system) cannot -# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK - -#TODO: Add 'check' as fs_mgr_flags with data partition. -# Currently we dont have e2fsck compiled. So fs check would failed. - -# -/dev/block/bootdevice/by-name/boot /boot emmc defaults defaults -/dev/block/bootdevice/by-name/recovery /recovery emmc defaults defaults -/dev/block/bootdevice/by-name/system /system ext4 ro,barrier=1 wait -/dev/block/bootdevice/by-name/factory /vendor ext4 ro,barrier=1 wait -/dev/block/bootdevice/by-name/userdata /data f2fs nosuid,nodev,noatime,inline_xattr,data_flush wait,check,encryptable=footer,quota -/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,noatime,barrier=1,noauto_da_alloc wait,check,encryptable=footer,quota -/dev/block/bootdevice/by-name/cache /cache f2fs nosuid,nodev,noatime,inline_xattr,flush_merge,data_flush wait,check -/dev/block/bootdevice/by-name/cache /cache ext4 nosuid,nodev,noatime,barrier=1 wait,check -/dev/block/bootdevice/by-name/persist /persist ext4 nosuid,nodev,noatime,barrier=1 wait -/dev/block/bootdevice/by-name/dsp /dsp ext4 ro,nosuid,nodev,barrier=1 wait -/dev/block/bootdevice/by-name/modem /firmware vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait -/dev/block/bootdevice/by-name/bluetooth /bt_firmware vfat ro,shortname=lower,uid=1002,gid=3002,dmask=222,fmask=333,context=u:object_r:bt_firmware_file:s0 wait -/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults -/dev/block/zram0 none swap defaults zramsize=536870912,max_comp_streams=4 - -/devices/soc/6a00000.ssusb/6a00000.dwc3/xhci-hcd.0.auto/usb* auto auto defaults voldmanaged=usbdisk:auto diff --git a/rootdir/etc/fstab.qcom b/rootdir/etc/fstab.qcom index b1bc993..9133cbd 100644 --- a/rootdir/etc/fstab.qcom +++ b/rootdir/etc/fstab.qcom @@ -2,7 +2,7 @@ # The filesystem that contains the filesystem e2fsck binary (typically /system) cannot # specify 'check', and must come before any filesystems that do specify 'check' -# NOTE: /system and /vendor (/factory mounted as /vendor) partitions are now early-mounted and the fstab entry is specified in device tree: +# NOTE: /system and /vendor (/factory mounted as /vendor) partitions are now early-mounted and the fstab entry is specified in device tree (duplicated below for recovery image purposes only): # /proc/device-tree/firmware/android/fstab/system # /proc/device-tree/firmware/android/fstab/vendor @@ -11,6 +11,8 @@ /dev/block/bootdevice/by-name/recovery /recovery emmc defaults defaults /dev/block/bootdevice/by-name/userdata /data f2fs nosuid,nodev,noatime,inline_xattr,data_flush wait,check,encryptable=footer /dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,noatime,barrier=1,noauto_da_alloc wait,check,encryptable=footer +/dev/block/bootdevice/by-name/system /system ext4 ro,barrier=1 wait,recoveryonly +/dev/block/bootdevice/by-name/factory /vendor ext4 ro,barrier=1 wait,recoveryonly /dev/block/bootdevice/by-name/cache /cache f2fs nosuid,nodev,noatime,inline_xattr,flush_merge,data_flush wait,check /dev/block/bootdevice/by-name/cache /cache ext4 nosuid,nodev,noatime,barrier=1 wait,check /dev/block/bootdevice/by-name/persist /persist ext4 nosuid,nodev,noatime,barrier=1 wait -- cgit v1.2.3 From 7a52bb207abe49c3931e2238b1da0cbcf2311146 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cosme=20Dom=C3=ADnguez=20D=C3=ADaz?= Date: Fri, 2 Mar 2018 00:05:08 +0100 Subject: msm8996-common: Try first with ext4. * ext4 is the stock's default choice. * f2fs support is highly dependent on which kernel you use. --- rootdir/etc/fstab.qcom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rootdir') diff --git a/rootdir/etc/fstab.qcom b/rootdir/etc/fstab.qcom index 9133cbd..0785242 100644 --- a/rootdir/etc/fstab.qcom +++ b/rootdir/etc/fstab.qcom @@ -9,12 +9,12 @@ # /dev/block/bootdevice/by-name/boot /boot emmc defaults defaults /dev/block/bootdevice/by-name/recovery /recovery emmc defaults defaults -/dev/block/bootdevice/by-name/userdata /data f2fs nosuid,nodev,noatime,inline_xattr,data_flush wait,check,encryptable=footer /dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,noatime,barrier=1,noauto_da_alloc wait,check,encryptable=footer +/dev/block/bootdevice/by-name/userdata /data f2fs nosuid,nodev,noatime,inline_xattr,data_flush wait,check,encryptable=footer /dev/block/bootdevice/by-name/system /system ext4 ro,barrier=1 wait,recoveryonly /dev/block/bootdevice/by-name/factory /vendor ext4 ro,barrier=1 wait,recoveryonly -/dev/block/bootdevice/by-name/cache /cache f2fs nosuid,nodev,noatime,inline_xattr,flush_merge,data_flush wait,check /dev/block/bootdevice/by-name/cache /cache ext4 nosuid,nodev,noatime,barrier=1 wait,check +/dev/block/bootdevice/by-name/cache /cache f2fs nosuid,nodev,noatime,inline_xattr,flush_merge,data_flush wait,check /dev/block/bootdevice/by-name/persist /persist ext4 nosuid,nodev,noatime,barrier=1 wait /dev/block/bootdevice/by-name/dsp /dsp ext4 ro,nosuid,nodev,barrier=1 wait /dev/block/bootdevice/by-name/modem /firmware vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait -- cgit v1.2.3 From e7c2e7a297fe9ccf6d254dd73763178d5cec706f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cosme=20Dom=C3=ADnguez=20D=C3=ADaz?= Date: Tue, 27 Feb 2018 00:06:28 +0100 Subject: msm8996-common: Reduce dmesg verbose level by default. --- rootdir/etc/init.qcom.rc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 77e14be..d1fd36a 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -388,9 +388,9 @@ on boot # an ack packet comes out of order write /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberal 1 - # Set the console loglevel to < KERN_INFO - # Set the default message loglevel to KERN_INFO - write /proc/sys/kernel/printk "6 6 1 7" + # Set the console loglevel to < KERN_WARNING + # Set the default message loglevel to KERN_WARNING + write /proc/sys/kernel/printk "4 4 1 7" # Allow access for CCID command/response timeout configuration chown system system /sys/module/ccid_bridge/parameters/bulk_msg_timeout -- cgit v1.2.3