From 37d474f0e999a40481970612a651c8075f411783 Mon Sep 17 00:00:00 2001 From: Bowgo Tsai <bowgotsai@google.com> Date: Thu, 1 Feb 2018 22:07:29 +0800 Subject: [PATCH] Fix boot failure on angler/bullhead Need use 'nonplat_service_contexts_file' as the file context for /vendor_service_context on non full-treble device. Otherwise, servicemanager can't read the file. Bug: 72787689 Test: build Change-Id: Ib54e4f2501c7bbf8b397eacf4afadfae344ddd03 --- private/file_contexts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/private/file_contexts b/private/file_contexts index 3c24ce517..25d0d9d70 100644 --- a/private/file_contexts +++ b/private/file_contexts @@ -55,7 +55,9 @@ /plat_service_contexts u:object_r:service_contexts_file:s0 /plat_hwservice_contexts u:object_r:hwservice_contexts_file:s0 /nonplat_service_contexts u:object_r:nonplat_service_contexts_file:s0 -/vendor_service_contexts u:object_r:service_contexts_file:s0 +# Use nonplat_service_contexts_file to allow servicemanager to read it +# on non full-treble devices. +/vendor_service_contexts u:object_r:nonplat_service_contexts_file:s0 /nonplat_hwservice_contexts u:object_r:hwservice_contexts_file:s0 /vendor_hwservice_contexts u:object_r:hwservice_contexts_file:s0 /vndservice_contexts u:object_r:vndservice_contexts_file:s0 -- GitLab