underRogueCellTower
Determine if the device is currently under a Rogue Cell Tower.
📝 Permissions needed in the manifest
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Content copied to clipboard
🔑 Minimum required license level: Advanced.
Sample usage
try {
val networkDiagnostic = rasp.diagnostic.network
val underRogueCellTower = networkDiagnostic.underRogueCellTower()
Log.d("RASP-DEMO", "underRogueCellTower: $underRogueCellTower")
} catch (e: Exception) {
Log.e("RASP-DEMO", "[networkDiagnostic] underRogueCellTower error: ${e.message}")
}
Content copied to clipboard
To observe changes of the rogue cell tower attack you can use the observe() method.
val modelNetwork = rasp.watcher.network.observe()
launch {
networkModel.underRogueCellTower.collect { detected ->
if (detected != null && detected) {
Log.d("RASP-DEMO", "[underRogueCellTower] $detected")
}
}
Content copied to clipboard
Return
Boolean
— true if a Rogue Cell Tower is currently detected.