Beginner

APK repackaging: how mobile game builds get tampered with

APK repackaging is a common Android attack. Someone takes your APK, unpacks it, changes something, signs it with a different key, and shares it outside the official store.

What attackers change

A repackaged build may include changed code, modified assets, new native libraries, unlocked premium features, removed ads, fake license checks, or cheat menus. In worse cases, it may include malware that hurts players and damages your game's reputation.

Why Android APKs are exposed

Android gives players freedom to install apps from outside the Play Store. That is useful for testing and open distribution, but it also means unofficial APKs can spread quickly. Attackers can post modified builds on websites, forums, or file-sharing platforms.

Signatures tell an important story

When a repackaged APK is signed again, the certificate usually changes. Your game can check the expected certificate fingerprint and package name. Your backend can also treat unknown certificates as lower trust.

If you publish through Google Play, Play App Signing helps define what the official store-delivered build should look like.

Install source matters

A build installed from Google Play is different from a build installed from a random website. Install-source checks can help your game know whether it came from an expected store. This is not a perfect signal, but it is useful as one layer.

How to reduce the risk

Use layered checks. Obfuscate code so patching is harder. Check package name, certificate, install source, and app integrity. Validate purchases, rewards, and multiplayer access on your backend. If the build looks suspicious, limit high-risk features and log the signal.

Do

  • Check package name, certificate fingerprint, install source, and app integrity signals.
  • Use obfuscation and tamper checks to make modified builds harder to prepare.
  • Keep valuable rewards, purchases, and multiplayer access behind server validation.

Don't

  • Do not assume the APK from a player's device is the same one you uploaded.
  • Do not trust local premium unlocks without validation.
  • Do not ignore modified builds just because your game is single-player.
FAQ

Frequently asked questions.

Short answers to common questions developers ask after reading this article.