Skip to content

Commit 957aa8b

Browse files
committed
Small fix for Frida detection
1 parent 488e240 commit 957aa8b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Ports/Android/src/com/codename1/impl/android/FridaDetectionUtil.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,17 @@ public static boolean isFridaPropertySet() {
8383
try {
8484
List<String> suspiciousProperties = new ArrayList<String>();
8585
suspiciousProperties.add(getSystemProperty("ro.debuggable"));
86-
suspiciousProperties.add(getSystemProperty("ro.secure"));
8786

8887
for (String property : suspiciousProperties) {
8988
if ("1".equals(property)) {
9089
Log.e(TAG, "Suspicious system property detected: " + property);
9190
return true;
9291
}
9392
}
93+
if ("0".equals(getSystemProperty("ro.secure"))) {
94+
Log.e(TAG, "Suspicious system property detected: ro.secure=0");
95+
return true;
96+
}
9497
} catch (Exception e) {
9598
Log.e(TAG, "Error checking for Frida properties: " + e.getMessage());
9699
}

0 commit comments

Comments
 (0)