2

I'm attempting to write an application which uses a few classes and constants that were added to cyanogenmod and do not exist within the standard andriod api.

My question is, using the android SDK, eclipse and ADT, is it possible to get and build against a cyanogenmod version of the andriod.jar file?

Angelo Genovese
  • 3,398
  • 17
  • 23
  • 1
    Check out [this blog post](http://devmaze.wordpress.com/2011/01/18/using-com-android-internal-part-1-introduction/) to see how to fool ADT and use a modified version of android.jar. – yorkw Aug 10 '12 at 02:05
  • That actually helps quite a bit, the only piece I'm missing now is how to get the actual android.jar from cyanogenmod to use as the "replacement" in that post. Thanks for the help :). – Angelo Genovese Aug 10 '12 at 11:16

1 Answers1

0

In case anyone else ends up in this situation.

Since the andriod.jar file which is used during compilation is basically a set of stubs, I created a separate jar file of my own, with stubbed out versions of the necessary classes & constants, and included that class at compile time for my app (using maven scopes in my case).

Angelo Genovese
  • 3,398
  • 17
  • 23