11

I work on my own android device which has many new APIs (but @hide decorated). My goal is to provide an android sdk to develop on it and use these new APIs.

So my questions is : How to build my own android sdk with these new APIs ?

If the @hide decorated is a problem, i can remove them (I don't have to respect the CDD)

2
  • I was under the impression that an SDK came out of a lunch build, but I am certainly no expert at that low of a level. Commented Jan 24, 2013 at 1:19
  • Thank you, but after my build i dont find any Android.jar. Donc you know where is this expected location ? {$TOP_ANDROID_BUILD}/out/?
    – Goo
    Commented Jan 24, 2013 at 8:06

2 Answers 2

16

You can use this command

make -j8 PRODUCT-sdk-sdk showcommands dist

here, you can a discussion about it : https://groups.google.com/forum/?fromgroups=#!topic/android-building/Y0xduZPWtUs

1
  • 4
    Quick note: -j8 refers to the amount of threads make will use when building, you will want it to be -jX where X is the number of logical processors you have Commented Jan 25, 2013 at 13:52
14

I think the concept of SDK is being misunderstood here.

If you want to release a set of code (API) on top of the Android SDK (Utilities, math libraries, what have you?) just mark your project as a library (Project properties -> Android -> Tick "Is Library") so other Android projects can link to it easily.

Upload the project somewhere like Github and spread the link so others can use it.

2
  • Maybe my question is not clear, but i wont a library with additionnal code. I have my own device with New APIs to access at some material functions, so i want build my Sdk (Android.jar & co) from my modified Android source code.
    – Goo
    Commented Jan 24, 2013 at 8:00
  • Oh, i misunderstood the question then. Commented Jan 25, 2013 at 13:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.