From dcf924b4d91c14f074428f3e7025c73dbafbd48b Mon Sep 17 00:00:00 2001 From: mtk10008 Date: Sat, 18 Jan 2020 10:17:13 +0800 Subject: [PATCH] [ALPS04696977] Boot cleanup [Detail] Android Q has more restrictions, for example vendor cannot access /data unless than (/data/vendor), etc... Clean up boot fail items MTK-Commit-Id: 44078402d526f7ef73ebfa31d95dbd24fa0f77af Change-Id: I9b5b9dd2df253bad03e4b5fe1cab69404c9251ab CR-Id: ALPS04696977 Feature: build process --- non_plat/init.te | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/non_plat/init.te b/non_plat/init.te index b3d0e58..bf68918 100644 --- a/non_plat/init.te +++ b/non_plat/init.te @@ -135,3 +135,14 @@ allow init proc_wmtdbg:file w_file_perms; # Date : W18.20 # Operation : mount soc vendor's partition when booting allow init mnt_vendor_file:dir mounton; + +# Date : W19.28 +# Purpose: Allow to setattr /proc/last_kmsg +allow init proc_last_kmsg:file setattr; + +# Purpose: Allow to setattr for duraspeed.rc +allow init proc_cpu_loading:file setattr; + +# Purpose: Allow to relabelto for selinux_android_restorecon +allow init boot_block_device:lnk_file relabelto; +allow init vbmeta_block_device:lnk_file relabelto;