First blog post (woot, woot!).
So, recently, I have been interested in apk (android app) modding. Specifically, Google Apps. Being taught by the finest (Zhuowei Zhang), I quickly caught on and managed to enable internal debugging menus on the Google Play Store (I didn't work on this one), Google Hangouts (I helped a little), Google Play Music (All me), Google Play Books (All me), and Google Play Newsstand (All me). Some were difficult, others easy, and one of them was so easy that I accidentally stumbled upon it. The interesting thing is that most of the Google Apps check for debugging values to be enabled in gservices.db, which is from the package com.google.android.gsf. Using sqlite3 to edit the database, you can add the values required to enable the debugging menus. That's all fine and dandy, but one problem remains: How does one find those values? The answer to this is simple: decompilation. You must decompile the app so that you can see most of it's original code and all of its resources decompiled. To do this, I used apktool. After the app was decompiled, I would just run grep -r debug from the root of the decompiled application source. This can spit out A LOT of info, so I would usually grep that output for other things, like grep -r debug | grep enable or grep -r debug | grep string. This would limit my options to test. With Google Play books, though, I had to grep for "testing" because there were no references to any string with "debug". The debugging values for the apps are as follows (I'll explain why Newsstand doesn't have any in a minute):
Now, to actually get to enabling those Debug settings. You can do this either via an adb shell or through Terminal Emulator. One thing, though, is that you do need root access.
That should enable Google Play Store Debug Settings. Feel free to do that with the other values before rebooting.
Now, on to Newsstand. This one doesn't even require root or any values to be changed. Just open Newsstand, open its Settings Menu, scroll to the bottom where you see the Version Number. Now, tap that Version Number button several times. Ta-da! Debug Settings enabled! It's not much, but it still is cool to have it enabled. (If you're curious, yes that is the one I found by accident) I am in the process of trying to enable Debugging menus on all the apps, but, as Zhuowei has informed me, all of the apps that use Dogfooding (Google Plus, Youtube, Translate, maybe more) check for a value in the BuildConfig, which we could change by just a simple Xposed module. Sorry to cut it short, but I really don't have anything else to say.
Happy hacking!
r3pwn (Greg Willard)