• Hello
Search Results for

    Show / Hide Table of Contents

    08 - Cheat apps on Android (Pro)

    Goal: You will learn how to notice known cheat apps that are installed on the same device as your game.

    This guide needs the Pro version.

    The problem

    A player does not have to edit your app. They can install a cheat app next to it. Such an app, for example GameGuardian, reads and changes the memory of your running game. It works like Cheat Engine on a PC.

    That hurts your game. Coins, health, and scores can be changed from outside, without touching your app file.

    You cannot stop a player from installing such an app. You can notice that it is there.

    The solution

    The Android Device Cheating Detector reads the apps on the device and compares them with a list you write. Every Android app has a package name, an id such as com.company.game. Your list holds the package names of the cheat apps you want to find.

    Only the apps the player installed are checked. System apps are ignored.

    Step 1: Make sure the detector is there

    The predefined Anti-Cheat-Monitor prefab already includes the Android Device Cheating Detector and its monitor. If you use it, you have nothing to do here.

    If you use your own monitor prefab, add the Android Device Cheating Detector prefab to it. Drag it onto the monitor in your prefab so it becomes a child.

    Image 1: The detector prefabs in Assets/GUPS/AntiCheat/Resources/Prefabs/Detectors.

    Step 2: List the apps you do not want

    Open Edit > Project Settings > GuardingPearSoftware > AntiCheat, on the Android tab. Go to Android - Device App - Settings.

    Image 2: The blocked device apps.

    Setting What it does
    Blacklist device apps Turns the check on. Off by default
    Blacklisted apps The package names of the apps you want to find

    The shipped list holds a few examples. com.cheating.app is only a sample name. catch_.me_.if_.you_.can_ is the package name of GameGuardian. Replace the sample and add the package names you care about.

    Note

    The list becomes part of your build. Android only lets an app look for the other apps it names when it is built. If you change the list, build the app again.

    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.

    Step 3: Check again when the player comes back (optional)

    By default the apps are read once, when the game starts. A player can install a cheat app later, while your game waits in the background.

    Select the Android Device Cheating Detector. On the installed apps monitor, turn on Recheck On Resume. The apps are then read again each time the player returns to the game.

    Step 4: Try it

    Open the demo scene Assets/GUPS/AntiCheat/Demos/Demo_Android/Scenes/Title/Title.unity and build it for Android. Play it once without and once with Anti-Cheat. The demo folder has its own ReadMe.

    The result

    If one of the listed apps is installed, the detector reports it and raises the threat score of the Anti-Cheat Monitor. You can then hold back a reward, show a warning, or run a punisher.

    A cheat app on the device is a strong sign, but it is not proof that the player used it in your game. Keep that in mind when you choose a reaction.

    Note

    The predefined monitor prefab has no punisher. A find raises the threat score, but nothing more happens to the player until you react yourself or add a punisher.

    Settings reference: Installed apps monitor and Android device cheating.

    Next steps

    • Protecting an Android build helps if the app file itself was edited.
    • Protecting memory against Cheat Engine protects the values such an app tries to change.
    • Reacting to detected cheating and Punishing cheaters show what to do when a cheat app is found.

    Next guide: 09 - Protecting an iOS build (Pro).

    Back to the Guides overview.

    In This Article
    Back to top GuardingPearSoftware documentation