Wildcard graphics.common SPHAL version.
Updating the version of the android.hardware.graphics.common HAL
requires changing version numbers atomically across the whole
codebase. Using a wildcard here removes one more place that would
need to be touched when the next update happens.
Bug: 368395888
Flag: EXEMPT selinux changes only
Test: Builds, boot tests + presubmit pass
Change-Id: I2576d7b00236a2379b0242cbcfe9e8aaeae5f1f0
diff --git a/vendor/file_contexts b/vendor/file_contexts
index d0c698d..6f99d90 100644
--- a/vendor/file_contexts
+++ b/vendor/file_contexts
@@ -165,7 +165,7 @@
/(vendor|system/vendor)/lib(64)?/android\.hardware\.common-V2-ndk\.so u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/lib(64)?/android\.hardware\.common\.fmq-V1-ndk\.so u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/lib(64)?/android\.hardware\.graphics\.allocator-V2-ndk\.so u:object_r:same_process_hal_file:s0
-/(vendor|system/vendor)/lib(64)?/android\.hardware\.graphics\.common-V5-ndk\.so u:object_r:same_process_hal_file:s0
+/(vendor|system/vendor)/lib(64)?/android\.hardware\.graphics\.common-V[0-9]+-ndk\.so u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/lib(64)?/android\.hardware\.graphics\.common@1\.0\.so u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/lib(64)?/android\.hardware\.graphics\.common@1\.1\.so u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/lib(64)?/android\.hardware\.graphics\.common@1\.2\.so u:object_r:same_process_hal_file:s0