How to build my own Android SDK
Asked Answered
M

2

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)

Meerkat answered 24/1, 2013 at 1:5 Comment(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.Destinydestitute
Thank you, but after my build i dont find any Android.jar. Donc you know where is this expected location ? {$TOP_ANDROID_BUILD}/out/?Meerkat
E
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

Emporium answered 24/1, 2013 at 14:25 Comment(1)
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 haveCaniff
C
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.

Caniff answered 24/1, 2013 at 1:50 Comment(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.Meerkat
Oh, i misunderstood the question then.Caniff

© 2022 - 2024 — McMap. All rights reserved.