From ee1df407beb40383c56eca23ae35534f363e682b Mon Sep 17 00:00:00 2001 From: JimiChen Date: Tue, 21 Mar 2023 19:58:44 +0800 Subject: [PATCH] change device type for /dev/stmvl53l1_ranging It was a rls_device. Move to lwis_device now. Bug: 274552433 Test: launch GCA Change-Id: Id920583cc06b09063de85b160c12a5c3a5468c11 --- legacy/whitechapel_pro/file_contexts | 1 - vendor/file_contexts | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/legacy/whitechapel_pro/file_contexts b/legacy/whitechapel_pro/file_contexts index 5037b3b6..ea564edb 100644 --- a/legacy/whitechapel_pro/file_contexts +++ b/legacy/whitechapel_pro/file_contexts @@ -25,7 +25,6 @@ # Devices /dev/ttySAC0 u:object_r:tty_device:s0 /dev/bigwave u:object_r:video_device:s0 -/dev/stmvl53l1_ranging u:object_r:rls_device:s0 /dev/watchdog0 u:object_r:watchdog_device:s0 /dev/dri/card0 u:object_r:graphics_device:s0 /dev/fimg2d u:object_r:graphics_device:s0 diff --git a/vendor/file_contexts b/vendor/file_contexts index 5586303a..d3325f4f 100644 --- a/vendor/file_contexts +++ b/vendor/file_contexts @@ -148,6 +148,9 @@ /dev/lwis-eeprom-smaug-oksoko u:object_r:lwis_device:s0 /dev/lwis-top u:object_r:lwis_device:s0 /dev/lwis-tof-vl53l8 u:object_r:lwis_device:s0 +# Although stmvl53l1_ranging is not a real lwis_device but we treat it as an abstract lwis_device. +# Binding it here with lwis-tof-vl53l8 for a better maintenance instead of creating another device type. +/dev/stmvl53l1_ranging u:object_r:lwis_device:s0 /dev/lwis-votf u:object_r:lwis_device:s0 /dev/st54spi u:object_r:st54spi_device:s0 /dev/trusty-ipc-dev0 u:object_r:tee_device:s0