3 ms·
I'm pretty sure it used to return true if the user had Goat Simulator installed. Never played the game but I'm assuming there's something to do with teleportati
by hbn 4y ago
I'm pretty sure it used to return true if the user had Goat Simulator installed. Never played the game but I'm assuming there's something to do with teleportation in it.
- exikyut 4y agoYeah, it did O.o 2249 public boolean isUserAGoat() { 2250 if (mContext.getApplicationInfo().targetSdkVersion >= Build.VERSION_CODES.R) { 2251 return false; 2252 } 2253 // Caution: This is NOT @UserHandleAware (because mContext is getApplicationContext and 2254 // can hold a different userId), but for R+ it returns false, so it doesn't matter anyway. 2255 return mContext.getPackageManager() 2256 .isPackageAvailable("com.coffeestainstudios.goatsimulator"); 2257 } https://cs.android.com/android/platform/superproject/+/master:frameworks/base/core/java/android/os/UserManager.java;l=2236-2257 https://cs.android.com/android/platform/superproject/+/maste...