su: remove lineage branding or property check
we are not building lineage
Issue: FP2P-458
Change-Id: Ic2de9850015ab8dc82a79a7585b9f7887d8bd599
diff --git a/su.c b/su.c
index 5ec7ee4..8e3726a 100644
--- a/su.c
+++ b/su.c
@@ -266,17 +266,9 @@
}
int access_disabled(const struct su_initiator* from) {
- char lineage_version[PROPERTY_VALUE_MAX];
char build_type[PROPERTY_VALUE_MAX];
int enabled;
- /* Only allow su on Lineage builds */
- property_get("ro.lineage.version", lineage_version, "");
- if (!strcmp(lineage_version, "")) {
- ALOGE("Root access disabled on Non-Lineage builds");
- return 1;
- }
-
/* Only allow su on debuggable builds */
if (!property_get_bool("ro.debuggable", false)) {
ALOGE("Root access is disabled on non-debug builds");