> For the complete documentation index, see [llms.txt](https://docs.talsec.app/appsec-articles/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.talsec.app/appsec-articles/articles/new-release-talsec-android-v20-and-ios-v9-built-to-stop-mobile-fraud-and-reduce-download-size.md). Agents can also search and read this documentation through its [MCP server](https://docs.talsec.app/appsec-articles/~gitbook/mcp).

# New Release: Talsec Android v20 & iOS v9, Built to Stop Mobile Fraud and Reduce Download Size

Android SDK 20 adds three runtime protections against phone scams, accessibility malware and fake overlays, and a 26% smaller download. Android SDK 20 and iOS SDK 9 add three security check phases.

## TL;DR

* **Ongoing call detection** against cellular and VoIP vishing calls
* **Screen control protection** against accessibility malware
* **Overlay windows protection** against fake overlays and tapjacking
* **Download size reduced to 11 MB** (26% smaller for single ARM64 ABI)
* New callbacks for the **critical, fast and postponed security check phases**
* Improved **root detection** (Magisk), **bootloader detection** (leaked keyboxes)

{% hint style="info" %}
\[free] Update to latest freeRASP: [docs.talsec.app/freerasp/freerasp/introduction](https://docs.talsec.app/freerasp/freerasp/introduction)\
\[premium] Update to latest RASP+: [my.talsec.app](https://my.talsec.app)
{% endhint %}

<figure><img src="https://1548930415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNjTFXsqCLQ3RU2oA2uHC%2Fuploads%2FHBF6JP1wb1IZdiZYSWGy%2F01-cover.jpg?alt=media&amp;token=6914d8b6-6417-4fbd-98e8-be9c684c85c6" alt=""><figcaption></figcaption></figure>

This release targets social engineering and mobile fraud. In the AI age, **vishing calls**, **scam scripts** and **tapjacking attacks** cost attackers almost nothing to run at scale. Platform protections often do not activate at the right moment, or the **scammer persuades the victim to ignore them**. Talsec Android SDK 20 adds three runtime protections that let your app itself detect these attacks and react at the right moment.

Android SDK 20 and iOS SDK 9 also change how your app learns about the progress of its security checks. With this change, **you can decide what the user can do while the checks still run**.

<figure><img src="https://1548930415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNjTFXsqCLQ3RU2oA2uHC%2Fuploads%2FIs6SWuMHzbt3zoX2CJh6%2F02-release-overview.jpg?alt=media&amp;token=c8bba935-456b-4255-8471-b11e6d8c7cd3" alt=""><figcaption></figcaption></figure>

## Anti-fraud protections and the fraud scenarios they help you stop \[Android]

**The "bank security" phone call.** A scammer calls, claims to be from the bank's fraud team and guides the victim through a payment, a login or a confirmation step. The call can come over the cellular network or over a VoIP app. With a synthetic AI voice, the caller can sound like anyone (see [The AI Impersonator](https://docs.talsec.app/appsec-articles/articles/tt-the-ai-impersonator-runtime-defense-against-machine-generated-deception-with-dmitri-bogatenkov)). *Use:* ongoing call detection on payment and approval screens. Remind the user not to act under pressure: take a moment, think twice, stay vigilant. Alternatively, delay or block the sensitive action while a call is in progress.

**Remote control through accessibility.** Banking RATs, usually installed by a [dropper](https://docs.talsec.app/appsec-articles/articles/droppers-how-banking-trojans-get-onto-android-phones-and-how-talsec-breaks-the-chain-early), persuade the victim to enable their accessibility service. Then they read one-time codes, complete forms and tap "Confirm" in your genuine app themselves. See [the banking RAT that drives your genuine app at 3 a.m.](https://docs.talsec.app/appsec-articles/fraud-intelligence-reports/alert-on-device-fraud-the-banking-rat-that-drives-your-genuine-app-at-3-a.m) and [Hirudo](https://docs.talsec.app/appsec-articles/fraud-intelligence-reports/hirudo-the-android-banking-trojan-that-patches-the-banks-own-app-and-how-talsec-stops-it). *Use:* screen control protection on login, one-time code and payment screens.

**Overlay phishing and tapjacking.** A malicious app draws a window over your app to trick the user into tapping something else or typing credentials into a fake form. Overlays are a standard banking RAT feature: [the 3 a.m. banking RAT](https://docs.talsec.app/appsec-articles/fraud-intelligence-reports/alert-on-device-fraud-the-banking-rat-that-drives-your-genuine-app-at-3-a.m) draws a fake lock screen to capture the phone's PIN. *Use:* overlay windows protection on every screen that takes credentials or confirms an action.

**Screen sharing during the call.** In many phone scams, the scammer asks the victim to install a remote access tool such as TeamViewer or AnyDesk, or to share their screen. *Use:* combine ongoing call detection with the existing screen capture protection, which shows your app as a blank screen to these tools (see [How to Block Screenshots, Screen Recording, and Remote Access Tools](https://docs.talsec.app/appsec-articles/articles/how-to-block-screenshots-screen-recording-and-remote-access-tools-in-android-and-ios-apps)).

### Ongoing call detection

Ongoing call detection tells your app that the user is on a phone call while your app is in the foreground. It covers both cellular and VoIP calls.

<figure><img src="https://1548930415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNjTFXsqCLQ3RU2oA2uHC%2Fuploads%2F7qFkclcwUe80iDW8IHAC%2F03-ongoing-call-detection.png?alt=media&amp;token=1f44541e-3635-4b8a-96ff-a03411cc54d9" alt=""><figcaption></figcaption></figure>

What makes it practical:

* **No phone permissions.** The detection uses stable heuristics and needs no additional permissions. The user does not see a permission prompt. The detection also does not interfere with their phone privacy: the callback reports only the call state, not who is calling.
* **Calls that started earlier.** In a typical scam, the scammer is already on the line when the victim opens your app. The callback reports such a call as `ONGOING` as soon as the detection starts. It reports a call that starts later as `STARTED`. `STOPPED` tells you that the call ended.
* **Only where you need it.** The detection runs only from the moment you start it until you stop it. Start it when a sensitive activity resumes. Stop it when the activity pauses.

### Screen control protection

`blockScreenControl` prevents accessibility services from reading or controlling the screen of the given activity. You enable it for each activity. This way, you can protect the login, one-time code and payment screens and keep the rest of the app unchanged. `isScreenControlBlocked` tells you whether the protection is active.

<figure><img src="https://1548930415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNjTFXsqCLQ3RU2oA2uHC%2Fuploads%2F0hRUwxFqFbNpmuINAktZ%2F04-screen-control-protection.png?alt=media&amp;token=6ead7af9-0f31-46b8-a4bf-f7879d890e25" alt=""><figcaption></figcaption></figure>

### Overlay windows protection

`blockOverlayWindows` hides overlay windows of other apps over the given activity. It needs the `HIDE_OVERLAY_WINDOWS` permission. The method returns `true` if it applied the setting to the activity's window, and `false` if it could not apply it. This way, you always know whether the screen is protected. `isOverlayWindowsBlocked` tells you the current state.

<figure><img src="https://1548930415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNjTFXsqCLQ3RU2oA2uHC%2Fuploads%2FiBL05egiQT9EdQGJPHTN%2F05-overlay-windows-protection.png?alt=media&amp;token=e03b6050-8d60-4b1c-b1d4-5e1132f72eeb" alt=""><figcaption></figcaption></figure>

## SDK size: 4 MB (26%) smaller download, now about 11 MB \[Android]

For a typical arm64 phone, RASP v20 adds about 11 MB to your app's Play Store download and about 17 MB on the device. That's roughly 4 MB (26%) smaller to download than v19, mostly because the native library is 28% smaller.

Most of that size is protection, by design. We write RASP's detection logic in native code and obfuscate it heavily. This makes it much harder for attackers to reverse-engineer, hook, or patch out. The on-device size is larger than the download because Android stores native libraries uncompressed. Android can then load them directly, without extracting a copy.

## Check phases: what your app can unlock, and when \[Android, iOS]

`onAllChecksFinished()` is gone. After `Talsec.start()`, the SDK evaluates its checks in three phases. A separate callback reports the end of each phase. The SDK calls each callback once per app start, always in this order:

<figure><img src="https://1548930415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNjTFXsqCLQ3RU2oA2uHC%2Fuploads%2FdKgNbJvvng21rrt1HmH1%2F06-check-phases.png?alt=media&amp;token=de4d6d0e-1244-43b1-aab3-481621788c3b" alt=""><figcaption></figcaption></figure>

### 1. `onCriticalChecksFinished()`: the earliest moment to react

The critical phase covers app tampering, debugger, unofficial installation, emulator and missing obfuscation, plus the fast part of root and hook detection. When the SDK calls this callback, the other checks still run. It is the earliest moment to react to the most serious threats, for example before you show the login screen.

### 2. `onFastChecksFinished()`: the device's security status is known

The fast phase covers the remaining standard checks, such as secure hardware, passcode, developer mode, automation, system VPN, location spoofing and bootloader. When the SDK calls this callback, the device's security status is known. The postponed checks still run. The SDK calls it at the same point where it called `onAllChecksFinished()`. This makes it the direct replacement in existing code.

### 3. `onPostponedChecksFinished()`: the most complete result

The postponed phase runs the deeper checks for root, hooks and time spoofing. When the SDK calls this callback, it has sent its diagnostic data, and the initial evaluation is complete. Use it when you need the most complete result, for example before a high-risk operation.

```kotlin
val raspExecutionListener = object : ThreatListener.RaspExecutionState() {
    override fun onCriticalChecksFinished() {
        // The most serious threats are evaluated: decide whether to show the login screen
    }
    override fun onFastChecksFinished() {
        // The device's security status is known (the old onAllChecksFinished)
    }
    override fun onPostponedChecksFinished() {
        // The most complete result: allow high-risk operations
    }
}
```

Good to know:

* Threat callbacks are not tied to the phases. The SDK calls each one as soon as its check detects a threat, before or after a phase callback. After the initial evaluation, the checks continue to run periodically. The SDK reports event-based detections, such as ongoing calls, whenever they happen.
* On iOS, the same three methods are on `RaspExecutionState`, and the SDK calls them on the main thread.
* A later SDK version can group the checks differently. Do not build logic that depends on one check being in one phase.

Full changelog: [freeRASP What's New and Changelog](https://docs.talsec.app/freerasp/freerasp/whats-new-and-changelog). Feature pages: [Ongoing Call detection](https://docs.talsec.app/freerasp/freerasp/wiki/threat-detection/ongoing-call-detection-android-only), [Screen Control & Overlay Protection](https://docs.talsec.app/freerasp/freerasp/wiki/threat-detection/screen-capture), [RASP Execution State](https://docs.talsec.app/freerasp/freerasp/wiki/rasp-execution-state), [Android API](https://docs.talsec.app/freerasp/freerasp/integration/android/api).

## Made with passion by the Talsec team 💙

Every release is a team effort, and this one is no exception. This time, a few more AI agents joined the team, with us in the driver's seat. Here are the humans behind it:

<figure><img src="https://1548930415-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNjTFXsqCLQ3RU2oA2uHC%2Fuploads%2F7bicYmBpxMy3lgtaGQO4%2F07-team-hike.jpg?alt=media&amp;token=2c0bd38f-3ff3-4592-9721-1777de13027f" alt=""><figcaption></figcaption></figure>

We hope that Android 20 and iOS 9 help you protect your users. Stay safe, and stay vigilant 🙂


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.talsec.app/appsec-articles/articles/new-release-talsec-android-v20-and-ios-v9-built-to-stop-mobile-fraud-and-reduce-download-size.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
