Luca Carlon
Luca Carlon

Reputation: 9986

Modifying and recompiling the Android SDK

I know that some methods and some classes that are implemented in Android are not exported to the Android public SDK. I've been able to create an application that uses some of these functions by compiling my application placing it inside the Android tree. Would it be possible to export these functions to the Android SDK by recompiling it from the sources? How can this be done? Can I include custom classes and functions in the Android SDK as well (supposing of course I create a new SDK and a new firmware)? Thanks!

Upvotes: 6

Views: 4045

Answers (2)

Luca Carlon
Luca Carlon

Reputation: 9986

I didn't try it, but this should be the answer to my question: https://android.googlesource.com/platform/sdk/+/master/docs/howto_build_SDK.txt.

Upvotes: 4

Cheryl Simon
Cheryl Simon

Reputation: 46844

It is possible to download the SDK and make changes to it.

If you are releasing a public app, you should not use any non-public API's as there are no guarantees they will be available on all phones, or in future versions of OS.

Upvotes: 1

Related Questions