10

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)

Goo
  • 1,318
  • 1
  • 13
  • 31
  • 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. – CommonsWare Jan 24 '13 at 01: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 Jan 24 '13 at 08:06

2 Answers2

15

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

  • 3
    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 – Machinarius Jan 25 '13 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.

Machinarius
  • 3,637
  • 3
  • 30
  • 53
  • 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 Jan 24 '13 at 08:00
  • Oh, i misunderstood the question then. – Machinarius Jan 25 '13 at 13:51