diff --git a/recovery/root/init.recovery.vold_decrypt.hwservicemanager.rc b/recovery/root/init.recovery.vold_decrypt.hwservicemanager.rc new file mode 100644 index 0000000..ab8b4ac --- /dev/null +++ b/recovery/root/init.recovery.vold_decrypt.hwservicemanager.rc @@ -0,0 +1,18 @@ +# Service names must be less than 16 characters in android-7.1 and +# below. The makefile will truncate service names if needed in any +# init.recovery.vold_decryp.*.rc file found in the vold_decrypt +# directory. +# It cannot however do this for any .rc file(s) that may be +# overridden by the device tree files! + +# The seclabels are not needed when built in Android 8.0 tree +# in 7.1 however the below do not exist, so run them under vold +service sys_hwservicemanager /system/bin/hwservicemanager + user root + group root + setenv PATH /system/bin + setenv LD_LIBRARY_PATH /system/lib64:/system/lib + onrestart setprop hwservicemanager.ready false + disabled + oneshot + seclabel u:r:vold:s0 diff --git a/recovery/root/init.recovery.vold_decrypt.keymaster-3-0.rc b/recovery/root/init.recovery.vold_decrypt.keymaster-3-0.rc new file mode 100644 index 0000000..e9f0b02 --- /dev/null +++ b/recovery/root/init.recovery.vold_decrypt.keymaster-3-0.rc @@ -0,0 +1,17 @@ +# Service names must be less than 16 characters in android-7.1 and +# below. The makefile will truncate service names if needed in any +# init.recovery.vold_decryp.*.rc file found in the vold_decrypt +# directory. +# It cannot however do this for any .rc file(s) that may be +# overridden by the device tree files! + +# The seclabels are not needed when built in Android 8.0 tree +# in 7.1 however the below do not exist, so run them under vold +service ven_keymaster-3-0 /vendor/bin/hw/android.hardware.keymaster@3.0-service + user root + group root + setenv PATH /vendor/bin:/system/bin + setenv LD_LIBRARY_PATH /vendor/lib64:/system/lib64:/vendor/lib:/system/lib + disabled + oneshot + seclabel u:r:vold:s0 diff --git a/recovery/root/init.recovery.vold_decrypt.rc b/recovery/root/init.recovery.vold_decrypt.rc new file mode 100644 index 0000000..f66e269 --- /dev/null +++ b/recovery/root/init.recovery.vold_decrypt.rc @@ -0,0 +1,13 @@ +import /init.recovery.vold_decrypt.keymaster-3-0.rc +import /init.recovery.vold_decrypt.hwservicemanager.rc +import /init.recovery.vold_decrypt.servicemanager.rc + +service sys_vold /system/bin/vold \ + --blkid_context=u:r:blkid:s0 --blkid_untrusted_context=u:r:blkid_untrusted:s0 \ + --fsck_context=u:r:fsck:s0 --fsck_untrusted_context=u:r:fsck_untrusted:s0 + socket vold stream 0660 root mount + socket cryptd stream 0660 root mount + setenv PATH /system/bin + setenv LD_LIBRARY_PATH /system/lib64:/system/lib + disabled + oneshot diff --git a/recovery/root/init.recovery.vold_decrypt.servicemanager.rc b/recovery/root/init.recovery.vold_decrypt.servicemanager.rc new file mode 100644 index 0000000..40672d7 --- /dev/null +++ b/recovery/root/init.recovery.vold_decrypt.servicemanager.rc @@ -0,0 +1,8 @@ +service sys_servicemanager /system/bin/servicemanager + user root + group root + setenv PATH /system/bin + setenv LD_LIBRARY_PATH /system/lib64:/system/lib + disabled + oneshot + seclabel u:r:vold:s0