Android Builds of OpenJDK Mobile project now available
Bob Vandette
bob.vandette at oracle.com
Fri Feb 19 13:19:34 UTC 2016
> On Feb 18, 2016, at 6:00 PM, Ali Ebrahimi <ali.ebrahimi1781 at gmail.com> wrote:
>
> Hi,
>
>
> On Thu, Feb 18, 2016 at 9:58 PM, Bob Vandette <bob.vandette at oracle.com <mailto:bob.vandette at oracle.com>> wrote:
> Ali,
>
> I decided to take a slightly different approach to supporting NDK r10e.
>
> My last patch did add support for this version of the NDK but forced the Java runtime
> to only support API level 21 and higher. This means we would only be able to run
> on devices with Android 5 and newer.
>
> If you look at the Android Dashboard, there are still a lot of devices that are supporting
> API level 19.
>
> http://developer.android.com/about/dashboards/index.html <http://developer.android.com/about/dashboards/index.html>
>
> I think it’s best that we set API level 19 as our minimum supported API level for now.
>
> This means that we can still use NDK r10e but you need to specify —platform=android-19
> when generating the standalone toolchain.
>
> Taking this approach also reduces the number of changes required in the mobile/dev
> forest to only 2 files.
>
> Here’s the webrev:
>
> http://cr.openjdk.java.net/~bobv/8150074/webrev.01/ <http://cr.openjdk.java.net/~bobv/8150074/webrev.01/>
>
> I’ll push this change and update the build instructions.
> My main concern with this patch is that build shouldn't break with android-21 toolchain.
It doesn’t break android-21 since the sources in the current repo do not support it.
I’ll push this change for android-19 which is a subset of changes required for android-21.
Keep in mind that if you build with android-21, you won’t be able to run the Java binaries
on any Android 4 based device.
>
> If will try solve this if you want.
If you want to research #ifdefs that we can use to allow building on API 21 while preserving
the ability to build with older APIs, please do then we can apply conditional changes to the other
files from my previous changeset.
Bob.
>
> --
>
> Best Regards,
> Ali Ebrahimi
More information about the mobile-dev
mailing list