# How do I know if a game has been downloaded from Google Play?

**URL:** <https://forums.unrealengine.com/t/how-do-i-know-if-a-game-has-been-downloaded-from-google-play/487464>\
**Category:** Mobile\
**Tags:** Android-Packaging, unreal-engine, Android, question\
**Created:** [August 15, 2021, 9:27am UTC](https://forums.unrealengine.com/t/how-do-i-know-if-a-game-has-been-downloaded-from-google-play/487464 "2021-08-15T09:27:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CppGod](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CppGod](https://forums.unrealengine.com/u/CppGod)\
**Post date:** [August 15, 2021, 9:27am UTC](https://forums.unrealengine.com/t/how-do-i-know-if-a-game-has-been-downloaded-from-google-play/487464/1 "2021-08-15T09:27:32Z")

</div>

Hello everyone, in order to implement some functions in my game, I need to find out where the game was downloaded from, from the official google play, or from torrent sites with hacked apk, no one knows how to check this?

---

<div class="post-metadata">

**Author:** ![CppGod](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CppGod](https://forums.unrealengine.com/u/CppGod)\
**Post date:** [August 15, 2021, 9:29am UTC](https://forums.unrealengine.com/t/how-do-i-know-if-a-game-has-been-downloaded-from-google-play/487464/2 "2021-08-15T09:29:43Z")

</div>

I found something similar for unity, no one knows how to write it on UE4

```
public static boolean isPackageInstaller(Context appContext) {

String installerPackageName = appContext.getPackageManager().getInstallerPackageName(appContext.getPackageName());

return installerPackageName != null && installerPackageName.equals("com.android.vending");

}
```
