@aalzehla/capacitor-jailbreak-root-detection 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -26,10 +26,16 @@ extension UIDevice {
|
|
|
26
26
|
if JailBrokenHelper.isSuspiciousSystemPathsExists() { return true }
|
|
27
27
|
if JailBrokenHelper.isDirectoriesWriteable() { return true }
|
|
28
28
|
if JailBrokenHelper.checkDYLD() { return true }
|
|
29
|
-
if JailBrokenHelper.isFridaRunning() { return true }
|
|
29
|
+
// if JailBrokenHelper.isFridaRunning() { return true }
|
|
30
30
|
return JailBrokenHelper.canEditSystemFiles()
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
+
|
|
34
|
+
var isFridaRunning: Bool {
|
|
35
|
+
get {
|
|
36
|
+
return JailBrokenHelper.isFridaRunning()
|
|
37
|
+
}
|
|
38
|
+
}
|
|
33
39
|
}
|
|
34
40
|
|
|
35
41
|
private struct JailBrokenHelper {
|
|
@@ -227,7 +233,7 @@ private struct JailBrokenHelper {
|
|
|
227
233
|
// return true
|
|
228
234
|
// }
|
|
229
235
|
let port = UInt16(27042);
|
|
230
|
-
if(isFridaPortOpen(port)) { return true; }
|
|
236
|
+
if(isFridaPortOpen(port: port)) { return true; }
|
|
231
237
|
if(checkDYLD()) { return true; }
|
|
232
238
|
if(detectSuspiciousLibraries()) { return true; }
|
|
233
239
|
return false
|