From 33244c55b83c3d794be7457bb8b066635ea5d7be Mon Sep 17 00:00:00 2001 From: Simon Sickle Date: Thu, 30 Nov 2017 00:35:23 -0600 Subject: [PATCH] Add servicemanager --- BoardConfig.mk | 3 +- recovery/root/init.recovery.qcom.rc | 41 ++++++++++++++++++++++------ recovery/root/sbin/servicemanager | Bin 0 -> 18592 bytes 3 files changed, 35 insertions(+), 9 deletions(-) create mode 100644 recovery/root/sbin/servicemanager diff --git a/BoardConfig.mk b/BoardConfig.mk index 91eed58..8bb177c 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -77,7 +77,6 @@ TARGET_COPY_OUT_VENDOR := vendor # Crypto TARGET_HW_DISK_ENCRYPTION := true -TARGET_KEYMASTER_WAIT_FOR_QSEE := true TARGET_CRYPTFS_HW_PATH := $(BOARD_PATH)/cryptfs_hw # Recovery @@ -118,3 +117,5 @@ TW_EXCLUDE_DEFAULT_USB_INIT := true TW_NO_USB_STORAGE := true TW_SCREEN_BLANK_ON_BOOT := true TW_INCLUDE_CRYPTO := true +TW_EXCLUDE_MTP := true +BOARD_SUPPRESS_SECURE_ERASE := true \ No newline at end of file diff --git a/recovery/root/init.recovery.qcom.rc b/recovery/root/init.recovery.qcom.rc index e4f2bde..2ca4fd8 100644 --- a/recovery/root/init.recovery.qcom.rc +++ b/recovery/root/init.recovery.qcom.rc @@ -25,12 +25,43 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# encryption support +service servicemanager /sbin/servicemanager + disabled + user root + group root readproc + seclabel u:r:recovery:s0 + writepid /dev/cpuset/system-background/tasks + +service keystore /sbin/keystore /data/misc/keystore + disabled + user root + group root drmrpc readproc + seclabel u:r:recovery:s0 + writepid /dev/cpuset/foreground/tasks + +service qseecomd /sbin/qseecomd + disabled + user root + group root + seclabel u:r:recovery:s0 + +service servicemanager /sbin/servicemanager + disabled + user root + group root readproc + seclabel u:r:recovery:s0 + writepid /dev/cpuset/system-background/tasks + on init + setprop ro.hardware.keystore msm8998 + setprop ro.hardware.gatekeeper msm8998 + setprop ro.hardware.bootctrl msm8998 chmod 0660 /dev/qseecom chown system drmrpc /dev/qseecom chmod 0664 /dev/ion chown system system /dev/ion + start qseecomd + start servicemanager on fs wait /dev/block/platform/soc/1da4000.ufshc @@ -39,17 +70,11 @@ on fs chown system drmrpc /dev/qseecom chmod 0664 /dev/ion chown system system /dev/ion - export LD_LIBRARY_PATH /sbin:/vendor/lib64:/vendor/lib64/hw install_keyring -service qseecomd /sbin/qseecomd - disabled - seclabel u:r:recovery:s0 - on boot # save battery by switching to interactive once booted write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor interactive write /sys/devices/system/cpu/cpu2/online 0 - write /sys/devices/system/cpu/cpu3/online 0 - start qseecomd \ No newline at end of file + write /sys/devices/system/cpu/cpu3/online 0 \ No newline at end of file diff --git a/recovery/root/sbin/servicemanager b/recovery/root/sbin/servicemanager new file mode 100644 index 0000000000000000000000000000000000000000..0b4a5727fef880fd16522c5e2a59a6ea3e195fe1 GIT binary patch literal 18592 zcmeHPe|!|xwZF3y$Yv8DB+Cy8nu$nFRtyl3Uj~^ZU;z1%hN!gFZZ^9MS@UDVZh{ED zCJ^mIp_D~hl~Rf5drekrsl`fKEr_-cjr9ew)b`U)O#-%oASQs2LE^mcnVB0V+pN5P z`gwmnZ@Zj1=bn4+x#ygF?vKn^yI{$k7C~UVi0oBH*uzOWMK&tha*PK6nayHx_&0@( zV?%+*Xf(ZE)&Xku(rbw3&}z^{Kx#M3q7x$FD1(nft|7r8M%`fGt?4?ILzbxH)Q)s* zyQOsuHq`CF{W;|0BXRUAFzO@WEL{vNsTZSrR`7AP zhn^FSaYVxX20w?q-Ph5M^!#T_q0ugyU8WcvaLC6uIrvbp+FLQX#8)}F+*euV4b0Fq zrg~~Z_RgvF1pGb^yUw7INy+c|%kE|$eNcCg-)VXN50>XHd%K@`3gkfx$umN6K>avi z(g2E%5N$C2o1@StN1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