SafetyNet logging from vendor.
These weren't enabled because of the below bug causing denials.
Bug: 113083310
Bug: 121035042
Test: no denials
Change-Id: Ie32a5c99f1488fdbfcabb19aff8fa1f3ff2c7b63
diff --git a/cmds/servicemanager/binder.c b/cmds/servicemanager/binder.c
index a2b4da2..cf3b172 100644
--- a/cmds/servicemanager/binder.c
+++ b/cmds/servicemanager/binder.c
@@ -154,9 +154,7 @@
// fallback to original method
if (result != 0) {
-#ifndef VENDORSERVICEMANAGER
android_errorWriteLog(0x534e4554, "121035042");
-#endif
result = ioctl(bs->fd, BINDER_SET_CONTEXT_MGR, 0);
}
diff --git a/cmds/servicemanager/service_manager.c b/cmds/servicemanager/service_manager.c
index ca004e9..ec3fac5 100644
--- a/cmds/servicemanager/service_manager.c
+++ b/cmds/servicemanager/service_manager.c
@@ -77,11 +77,9 @@
ad.uid = uid;
ad.name = name;
-#ifndef VENDORSERVICEMANAGER
if (sid == NULL) {
android_errorWriteLog(0x534e4554, "121035042");
}
-#endif
int result = selinux_check_access(sid ? sid : lookup_sid, tctx, class, perm, (void *) &ad);
allowed = (result == 0);