Revert^2 "Migrate contexts tests to Android.bp"
This reverts commit baa93cc651227cf92760545d5283b021b853a774.
Reason for revert: amlogic build fixed
Change-Id: I8b046dc810d47a2d87012f02a668873889fce705
diff --git a/tools/checkfc.c b/tools/checkfc.c
index 9cbd912..83c631e 100644
--- a/tools/checkfc.c
+++ b/tools/checkfc.c
@@ -171,6 +171,12 @@
const char *type_name = sepol_context_get_type(ctx);
+ // Temporarily exempt hal_power_stats_vendor_service from the check.
+ // TODO(b/211953546): remove this
+ if (strcmp(type_name, "hal_power_stats_vendor_service") == 0) {
+ goto out;
+ }
+
uint32_t len = ebitmap_length(&global_state.assert.set);
if (len > 0) {
res = !is_type_of_attribute_set(global_state.sepolicy.pdb, type_name,