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.
Mathew Brack · Mar 26, 2015 at 06:07 pm · 2 comments

HTC M9 Roundup: Availability and Prices

The HTC One M9, Available in both 'Gold on Silver' and 'Metal Gray' colors will be available for sale in stores across the US on April 10th, however most carriers are starting preorders tomorrow on March 27th. No matter which network you order yours from you will be covered by HTC's new Uh-Oh service. Throughout the day today we have seen just as many announcements from carriers regarding pre-order information and prices for Samsung's new flagships the Galaxy S6 and S6 Edge. If...

XDA NEWS
Mario Tomás Serrafero · Mar 26, 2015 at 05:15 pm · 1 comment

OnePlus Late March AMAA Roundup

OnePlus is one of those companies that appear one day and next thing you know, they are all over the internet. Their original OnePlus One phone was a major success in the mobile space due to its low price yet remarkable specifications - the ultimate goal of the company and their “Never Settle” slogan. We love talking about “the little OEM that could”, not necessarily because they are good or bad, but because their business and marketing strategies are very...

XDA NEWS
Chris Gilliam · Mar 26, 2015 at 04:12 pm · 1 comment

Galaxy S6 Pricing & Availability Roundup

The Samsung Galaxy S6 and S6 Edge will be available for sale across the big four US carriers on April 10th, but most pre-orders start tomorrow, March 27th. Which network is the right choice for your new phone? That's a question whose answer received a new wrinkle today as announcements about pricing and bundled perks landed from all angles. Here's the rundown of Samsung offerings as we know them, but it's worth mentioning that HTC's newsroom was just as busy rattling off...

XDA NEWS
Share This