Google Pixel 2 has a Hidden Easter Egg in Active Edge Settings
Google’s latest flagship Pixel smartphones, the Pixel 2 and Pixel 2 XL, initially launched with Android 8.0 Oreo on board but have since received a developer preview of Android 8.1. There’s a lot of subtle changes that we’ve documented in the release, but some changes are more hidden than others. One change we’ve uncovered isn’t what you would really call a feature, but it’s consistent with Google’s habit of adding some hidden humor to Android. In the Active Edge settings screen of the Google Pixel 2 and Pixel 2 XL running Android 8.1 Developer Preview 1, there’s a hidden Easter egg mini game that involves you squeezing your phone to pop bubbles.
For those of you who aren’t familiar, the Pixel 2 smartphones have a feature called Active Edge that lets you squeeze the bottom half of your phone’s sides to either launch Google Assistant or silence incoming calls. You can adjust the squeeze sensitivity in settings (or fine tune it with an ADB command) but apart from that there’s not much in the way of customizing Active Edge, at least officially.
When we started digging into the latest Settings application on the Google Pixel 2 XL running Android 8.1, we discovered a new line related to Active Edge that we thought may be interesting. First, we discovered a new activity in Settings called “AssistGestureBubbleActivity.”
<activity android:enabled="true" android:exported="false" android:hardwareAccelerated="true" android:name="com.google.android.settings.gestures.assist.bubble.AssistGestureBubbleActivity" android:resizeableActivity="false" android:screenOrientation="portrait" android:theme="@android:style/Theme.Material"/>
Next, we discovered a corresponding layout file for this activity:
<?xml version="1.0" encoding="utf-8"?>[[!!]]<FrameLayout n1:layout_width="fill_parent" n1:layout_height="fill_parent"[[!!]]xmlns:n1="http://schemas.android.com/apk/res/android">[[!!]]<ImageView n1:id="@id/game_view" n1:layout_width="fill_parent" n1:layout_height="fill_parent" />[[!!]]<ImageView n1:id="@id/play_view" n1:layout_width="fill_parent" n1:layout_height="fill_parent" />[[!!]]<TextView n1:textColor="#ffffffff" n1:gravity="end" n1:layout_gravity="top" n1:id="@id/current_score" n1:padding="12.0dip" n1:layout_width="fill_parent" n1:layout_height="wrap_content" />[[!!]]</FrameLayout>
The keywords “game_view” and “play_view” hinted at this being an easter egg of some sort. Since the activity is defined as “unexported” that means it can’t be run from the command line without root, nor can it be seen from an activity launcher.
But with help from XDA Recognized Contributor Quinny899, we found out how to access this hidden easter egg. He discovered the following code:
Basically, this code is listening for repeated taps on the squeeze sensitivity setting under Active Edge settings. If the user doesn’t have easter eggs disabled (via a managed profile), then the phone will launch a hidden mini game where you squeeze your phone to pop bubbles on screen.
The above video was taken by XDA Junior Member InFlames03 on their Pixel 2 XL running Android 8.1 Oreo. If you’re wondering how their settings app is dark, that’s because they’re running the rootless Substratum theme engine with their own dark theme called Sai’s Oreo Theme (which can you find out how to install here.)
I personally think the Easter egg is a bit underwhelming. Quinny899 described it as an “engineering test recycled into a game.” To be fair, not every Easter egg can stack up to Android Marshmallow’s FlappyDroid, but it’s not like you’ll be playing this game for more than a few seconds anyways.