From a658683689c11c8da3a612abb644ad26c703b3b4 Mon Sep 17 00:00:00 2001 From: Jeffrey Carlyle Date: Fri, 26 Aug 2022 10:10:30 -0700 Subject: [PATCH] dck: allow st54spi devivce to be accessed by recovery and fastbootd This is needed so that Digital Car Keys can be cleared from the ST54 during a user data wipe. Bug: 203234558 Test: data wipe in Android recovery mode on raven Test: data wipe in Android recovery mode on c10 Test: data wipe in user mode fastbootd mode on raven Test: data wipe in user mode fastbootd mode on c10 Signed-off-by: Jeffrey Carlyle Change-Id: Icaa3d62aa6b3b88b8db6c1c11807907a06e51019 --- whitechapel_pro/fastbootd.te | 1 + whitechapel_pro/recovery.te | 1 + 2 files changed, 2 insertions(+) diff --git a/whitechapel_pro/fastbootd.te b/whitechapel_pro/fastbootd.te index 0d215a84..5945ef24 100644 --- a/whitechapel_pro/fastbootd.te +++ b/whitechapel_pro/fastbootd.te @@ -4,4 +4,5 @@ allow fastbootd devinfo_block_device:blk_file rw_file_perms; allow fastbootd sda_block_device:blk_file rw_file_perms; allow fastbootd sysfs_ota:file rw_file_perms; allow fastbootd citadel_device:chr_file rw_file_perms; +allow fastbootd st54spi_device:chr_file rw_file_perms; ') diff --git a/whitechapel_pro/recovery.te b/whitechapel_pro/recovery.te index bfa3c7dc..a498af07 100644 --- a/whitechapel_pro/recovery.te +++ b/whitechapel_pro/recovery.te @@ -1,4 +1,5 @@ recovery_only(` allow recovery sysfs_ota:file rw_file_perms; allow recovery citadel_device:chr_file rw_file_perms; + allow recovery st54spi_device:chr_file rw_file_perms; ')