You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**DeviceGuard** is a security engine designed for Banking, Insurance, and Enterprise apps. It prevents fraud by detecting environment tampering (Rooting, Emulators, GPS Spoofing) before a document is captured.
777
777
@@ -799,42 +799,41 @@ if ((boolean) report.get("isRooted")) {
799
799
// Block User
800
800
}
801
801
802
+
if ((boolean) report.get("isLocationSpoofed")) {
803
+
// Reject the capture - User is faking location
804
+
}
805
+
802
806
```
803
807
804
808
#### 📋 Response Data (Security Map)
805
809
806
810
| Key | Data Type | Description | Severity |
807
811
| --- | --- | --- | --- |
808
812
|**`isRooted`**|`boolean`|`true` if device is Rooted (Su/Magisk). | 🔴 Critical |
813
+
|**`isLocationSpoofed`**|`boolean`|`true` if device is using Mock/Fake GPS location. | 🔴 Critical|
814
+
|**`locationMessage`**|`String`| Diagnostic message for the location spoofing check.| 🔴 Critical|
809
815
|**`isEmulator`**|`boolean`|`true` if running on a Simulator. | 🔴 Critical |
810
816
|**`isDevOptionsEnabled`**|`boolean`|`true` if Developer Options are ON. | 🟠 High |
811
817
|**`isAdbEnabled`**|`boolean`|`true` if USB Debugging is ON. | 🟠 High |
812
818
|**`isVpnActive`**|`boolean`|`true` if VPN is masking the IP. | 🟡 Medium |
813
819
814
-
### B. Anti-Spoofing (Mock Location)
820
+
### B. Screen Protection (Privacy)
815
821
816
-
Detect if the GPS coordinates provided by the device are fake (Mock Location).
822
+
Prevents the QuickCapture screen from being recorded or captured via screenshots. Video recordings will result in a **black screen**.
817
823
818
824
```java
819
-
// Pass the location object received from DeviceInfo or LocationManager
0 commit comments