Android - Device Cheating - Detector (Pro)
A player can install a cheat app next to your game, for example a memory editor like GameGuardian. You cannot stop the install. You can notice the app and react.
This detector needs the Pro version.
Walkthrough: Cheat apps on Android.
What it does
AndroidDeviceCheatingDetector (namespace GUPS.AntiCheat.Detector.Android) listens to the AndroidInstalledApplicationMonitor. The monitor looks for apps from a list you write. If one of them is installed, the detector reports it.
Do you need to add it?
No, if you use the predefined Anti-Cheat-Monitor prefab. It already includes this detector and its monitor.
If you use your own monitor prefab, drag the Android Device Cheating Detector prefab onto the monitor so it becomes a child. The prefab holds the detector and the monitor together.

The detector prefabs in Assets/GUPS/AntiCheat/Resources/Prefabs/Detectors.
Note
The AndroidInstalledApplicationMonitor must be on the same GameObject as the detector.
You still have to turn the check on. See Blocked apps below.
Settings

The AndroidDeviceCheatingDetector settings.
- Is Active (
isActive, bool, default true): Turns the detector on or off. - Threat Rating (
threatRating, default 400): How much one find adds to the threat score. An installed cheat app shows intent, but it may not have been used against your game. So the rating is lower than for a changed app or changed memory. - On Cheating Detection Event (
OnCheatingDetectionEvent): Methods to call on every find.
Blocked apps
Open Edit > Project Settings > GuardingPearSoftware > AntiCheat and select the Android tab. Go to Android - Device App - Settings.

Blocked device apps.
- Blacklist device apps (off by default): Turns the check on.
- Blacklisted apps: The package names you do not want next to your game. A package name is the id of an app, such as
com.company.game.
The shipped list already holds some known cheat apps, for example catch_.me_.if_.you_.can_, the package name of GameGuardian. com.cheating.app is only a sample name. Replace it with the names you care about.
Note
Verify development builds is off by default. While it is off, this check skips the Unity Editor and development builds. Turn it on while you test.
What it reports
On a find, the detector sends an AndroidCheatingDetectionStatus:
public struct AndroidCheatingDetectionStatus : IAndroidCheatingDetectionStatus
{
// The kind of cheat. Here: ECheatType.UntrustedApplication.
public ECheatType CheatType { get; }
// How likely this find is a false alarm, from 0 to 1.
public float PossibilityOfFalsePositive { get; }
// How much this find adds to the threat score.
public uint ThreatRating { get; }
// For this detector: DEVICE_INSTALLED_APPS.
public EAndroidCheatingType AndroidCheatingType { get; }
// True if the monitor could not read the installed apps.
public bool MonitorFailedToRetrieveData { get; }
// The blocked package names that were found.
public IReadOnlyList<String> Applications { get; }
}
Good to know
- The flag stays.
PossibleCheatingDetectedstays true after the first find. - A failed read is also reported. If the monitor could not read the apps, the detector still sends a find. The chance of a false alarm is then
0.75, not0.01, so it adds much less to the score.Applicationsis empty in that case. - When it checks. The apps are read when the game starts. Turn on Recheck On Resume on the monitor to read them again when the player comes back to the game.
- One find is not the end. With the default settings, one find reaches the soft punishers. A second find can reach a hard one.
Platforms and requirements
Android only.
- Android 4.4 (API level 19) or newer. Unity's Minimum API Level decides which devices can install the app.
- The plugin
com.gups.anticheat. It ships with the package inAssets/GUPS/AntiCheat/Plugins/Android/.
React to a find
Every find is added to the threat score of the Anti-Cheat Monitor. The predefined monitor prefab has no punisher. So nothing more happens to the player until you react yourself or add a punisher.
In the Inspector. Add a method to On Cheating Detection Event. It runs on every find.

Inspector callbacks on a detector.
In code. Ask the detector:
var detector = AntiCheatMonitor.Instance.GetDetector<AndroidDeviceCheatingDetector>();
if (detector != null && detector.PossibleCheatingDetected)
{
// A blocked app is installed.
}
Or listen, so your code runs at the moment of the find. Subscribe returns an IDisposable. Dispose it when you want to stop.
using System;
using GUPS.AntiCheat;
using GUPS.AntiCheat.Core.Detector;
using GUPS.AntiCheat.Detector.Android;
using UnityEngine;
public class AndroidDeviceDetectionLogger : MonoBehaviour, IObserver<IDetectorStatus>
{
private void Start()
{
var detector = AntiCheatMonitor.Instance.GetDetector<AndroidDeviceCheatingDetector>();
detector.Subscribe(this);
}
public void OnNext(IDetectorStatus status)
{
if (status is AndroidCheatingDetectionStatus android && android.Applications != null)
{
Debug.LogWarning($"Cheat apps found: {string.Join(", ", android.Applications)}");
}
}
public void OnError(Exception error) { }
public void OnCompleted() { }
}
Back to the Detector overview.