egzthunder1 · Dec 21, 2012 at 12:00 am

Silly Goat, You Can’t Use Android!

It seems that Google has a few “funny” coders in their coding team. At this point, you are all likely familiar with the good ol’ fashioned Easter Egg normally hidden in every Android version since Gingerbread. Essentially, tapping frantically on the build number on an AOSP-based ROM normally displays an image related to the version in question. Another a tad more recent includes the fact that developer options are not easily accessible either in 4.2 as they are hidden in a similar manner and are unlocked by tapping 7 times on the build number. With the release of the Nexus 4, some coders over at Slashdot found yet another bit of funny code in Android’s API sources, which prevents goats from using your device.

We are not certain whether this is an intended security feature or not, but unless you want to have a goat calling their mountain cousins, resulting in long distance charges, this is a fantastic feature. In all seriousness,  when snooping around the code, Ovidiu Lactu came across a very unique piece of code, which apparently gets called when the device is in use. The isUserAGoat method included in one of 4.2’s API seems to allow the phone to prevent you from using it if it determines that you are indeed one of these somewhat friendly farm animals. Moreover, the method can apparently determine whether or not the user is subject to teleportation. According to another user’s comment on Slashdot, Chromium seems to have a similar “joke” as it does have a method that allows you to see the number of teleported goats with its task manager.

Some people see this as a very serious flaw in the code, and criticize this as a childish move by the software giant. All we have to say to people complaining is that if it bothers you so much that coders at Google have the time to do this and add placebo pieces of code that serve absolutely no purpose other than to amuse people capable of finding them, then you should get out more. Put your phone/tablet/laptop down, and enjoy some sunshine. Google knows perfectly well that the ones capable of finding these bits are hobbyists for the most part, and can definitely appreciate some humor while digging through thousands upon thousands of lines of code.

All in all, well played Google…. well played.

I was looking at the new APIs introduced in Android 4.2. While looking at the UserManager class I came across the following method:

public boolean isUserAGoat ()

Used to determine whether the user making this call is subject to teleportations.

Returns whether the user making this call is a goat.

How and when should this be used?

You can find the original article here.

Want something published in the Portal? Contact any News Writer.

[Thanks jerdog for the tip]
_________
Want something on the XDA Portal? Send us a tip!

egzthunder1

egzthunder1 is an editor on XDA-Developers, the largest community for Android users. I have been an active member of xda-developers since 2005 and have gone through various roles in my time here. I am Former Portal Administrator, and currently part of the administrator team while maintaining my writer status for the portal. In real life, I am a Chemical Engineer turned Realtor in the Miami area. View egzthunder1's posts and articles here.
Emil Kako · May 25, 2015 at 12:32 pm · 4 comments

Which IM Client on Android is best?

With so many different messengers to choose from, it can be tough to find the best one for you and your friends to use. Hangouts, Whatsapp, Telegram and more are all battling it out for the number one spot. Let us know which IM client you think is best on Android and why.

DISCUSS
Jimmy McGee · May 25, 2015 at 12:00 pm · 2 comments

Android Factory Reset Security Flaw and More – XDA TV

Nvidia is releasing a 500Gb SHIELD TV Pro! That and much more news is covered by Jordan when he reviews all the important stories from this weekend. Included in this weekend's news is the announcement of an Android factory reset security flaw and be sure to check out the article talking about the Nexus Player getting TWRP. That's not all that's covered in today's video! Jordan covered the LG G4 First Impressions and Unboxing video from TK released this weekend...

XDA NEWS
Mathew Brack · May 25, 2015 at 06:00 am · 7 comments

Android M Code Name: Macadamia Nut Cookie

While the official name for the latest iteration of Android has yet to be revealed, the code name used internally by Google has been seen to be Macadamia Nut Cookie (MNC). This will almost certainly not be the final name for the release with rumors so far leaning towards milkshake, much like Key Lime Pie became Kit Kat and Lemon Meringue Pie became Lollipop. The acronym MNC has now also started to appear in several locations in AOSP, just look out...

XDA NEWS
Share This