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.
Mario Tomás Serrafero · Apr 18, 2015 at 10:00 am · 4 comments

Open War for Open Android: Antitrust for Cyanogen?

Android and openness is something we talk about all the time, but the recent developments in the industry point towards inherent flaws with this very premise. Be it from bloggers, political institutions or corporations, Android is seemingly not open enough. The “War on Openness” is ironically becoming an open war, where many players are increasing their stakes and scope to try and land a bigger hold - or at the very least, restrict Google’s - on what is the world’s...

XDA NEWS
Emil Kako · Apr 17, 2015 at 01:22 pm · 3 comments

What Do You Do with All of Your Old Photos?

Smartphone cameras have advanced so tremendously over the past few years that they have almost completely replaced point and shoot digital cameras for the most of us. Furthermore, since our smartphones are always with us, the majority of us end up taking tons of photos throughout the lifespan of our devices. But what happens to all the old photos you take? Do you store them on an external hard-drive or keep them backed up to an online cloud service like Flickr? Let us know what your favorite way of storing old photos is and why.

DISCUSS
Faiz Malkani · Apr 17, 2015 at 01:04 pm · 1 comment

Diving into the April 2015 Material Design Update

Before the release of Android 5.0 Lollipop, the Holo Design guidelines served as the official reference for Android design, right from IceCream Sandwich to KitKat. However, updates to the guidelines were few and far between, leading to a lack of synchronization between Android design and current UI/UX trends. Google seems to have learned from their mistake the last time around, and earlier this week, a significant update was released for the Material Design guidelines, marking the second revision in less...

XDA NEWS
Share This