Created
July 6, 2015 08:59
-
-
Save safaorhan/c1b8c0cdfe44ac44adb5 to your computer and use it in GitHub Desktop.
isUserAGoat()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Used to determine whether the user making this call is subject to | |
| * teleportations. | |
| * | |
| * <p>As of {@link android.os.Build.VERSION_CODES#LOLLIPOP}, this method can | |
| * now automatically identify goats using advanced goat recognition technology.</p> | |
| * | |
| * @return Returns true if the user making this call is a goat. | |
| */ | |
| public boolean isUserAGoat() { | |
| return mContext.getPackageManager() | |
| .isPackageAvailable("com.coffeestainstudios.goatsimulator"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Clipped from https://github.com/android/platform_frameworks_base/blob/master/core/java/android/os/UserManager.java