Mike Szczys · May 30, 2013 at 05:30 pm

Using Internal/Hidden Classes of the Android API

Pssst… over here. Yeah, did you know about the Hidden Android Classes? Shhh… it’s a secret. They let you do stuff you otherwise couldn’t. You can read internal data, like the text message database stored on a phone. You can also gain lower level access to the hardware in order to extend your app’s access to things like the touchscreen input values, or WiFi radio usage. To get your hands on that kind of contraband, you’ll need to do some poking around in the Android SDK, and make a few… changes… to the way your Eclipse ADT plugin works.

This information comes to our attention because XDA Recognized Developer E:V:A bumped his own post out of year-old obscurity, but boy are we glad he did. If you like to do things you’re not supposed to, it’ll be worth your time to read the guide. Head on over to his original thread for full details.

E:V:A’s work boils down the avalanche of information on the subject which was posted by Inazaruk a couple of years ago. The Java classes that are known synonymously as Hidden or Internal Classes are protected from direct use and hidden from being shown in the Java docs (using the @hide directive). Using them is just a matter of hacking the android.jar file and tweaking your IDE setup to stop blocking your path to the forbidden fruit.

One thing I think Inazaruk and E:V:A both missed was a simple explanation of possible applications for the hidden classes. Read more about that in this article.


_________
Want something on the XDA Portal? Send us a tip!

Mike Szczys

szczys is an editor on XDA-Developers, the largest community for Android users. Mike Szczys is a professional musician but spends all his free time working with hobby electronics. As Contributing Editor for Hackaday.com he became interested in Android as some of the early hardware hacks started popping up on the Internet. What followed was a gradually rising addiction to all things Android.
Mario Tomás Serrafero · Mar 27, 2015 at 04:13 pm · 2 comments

Should You Get Wear? Wearer’s Practical Observations

Wear is said to not offer enough for mass adoption, even though its been in the market for over 9 months. I personally have a Gear Live which I purchased 8 months ago, and my experience with it has had its ups and downs throughout my time with it. For the longest time, I was not able to recommend the platform to anyone. Since then, a lot of updates have hit Wear watches, some improving battery life, others changing the...

XDA NEWS
GermainZ · Mar 27, 2015 at 01:15 pm · 2 comments

SlimRoms: Updates on the Horizon

SlimRoms' website has been experiencing technical difficulties for the last month or so, but it's good to know the team is working hard and is still on top of things. The SlimRoms GitHub repos are getting updated with some major changes showing up. Most notably, some projects are getting a new 5.1 branch: lp5.1! A new, revamped and open source website is also in the works, with a look inspired by material design. We also got a tip about an...

XDA NEWS
Emil Kako · Mar 27, 2015 at 12:47 pm · 2 comments

Your Favorite Wireless Charger?

Wireless charging is becoming more and more common as many OEMs are now starting to include this feature in their flagships. There are already dozens of wireless chargers to choose from on the market today, but quality definitely varies. For those of you who charge your devices wirelessly, let us know which charger is your favorite and why.

DISCUSS
Share This