Re: [android-building] Add prebuilt jar to system image - android 9.0

2019-05-14 Thread 'Colin Cross' via Android Building
You can probably use something like: java_import { name: "mylibrary-jar", jars: ["mylibrary.jar"], } java_library { name: "mylibrary", static_libs: ["mylibrary-jar"], installable: true, } On Mon, May 13, 2019 at 6:36 PM Vinayak Soni wrote: > Classes. > > On Tuesday, May 7,

Re: [android-building] Add prebuilt jar to system image - android 9.0

2019-05-13 Thread Vinayak Soni
Classes. On Tuesday, May 7, 2019 at 1:22:15 PM UTC-7, Colin Cross wrote: > > What is in the jar, class files or dex files? > > On Tue, May 7, 2019 at 12:42 PM Vinayak Soni > wrote: > >> Hi Colin, >> >> How to write an Android.bp for a prebuilt jar that needs to be added to >> PRODUCT_BOOT_JARS?

Re: [android-building] Add prebuilt jar to system image - android 9.0

2019-05-07 Thread 'Colin Cross' via Android Building
What is in the jar, class files or dex files? On Tue, May 7, 2019 at 12:42 PM Vinayak Soni wrote: > Hi Colin, > > How to write an Android.bp for a prebuilt jar that needs to be added to > PRODUCT_BOOT_JARS? > > Thanks, > Vinayak > > On Monday, March 18, 2019 at 3:36:17 PM UTC-7, Colin Cross wrot

Re: [android-building] Add prebuilt jar to system image - android 9.0

2019-05-07 Thread Vinayak Soni
Hi Colin, How to write an Android.bp for a prebuilt jar that needs to be added to PRODUCT_BOOT_JARS? Thanks, Vinayak On Monday, March 18, 2019 at 3:36:17 PM UTC-7, Colin Cross wrote: > > The basics on Android.bp files are documented at > https://android.googlesource.com/platform/build/soong/+/

Re: [android-building] Add prebuilt jar to system image - android 9.0

2019-03-18 Thread Colin Cross
The basics on Android.bp files are documented at https://android.googlesource.com/platform/build/soong/+/master/README.md, and the documentation on the module types and their properties is at https://ci.android.com/builds/latest/branches/aosp-build-tools/targets/linux/view/soong_build.html . On Mo

Re: [android-building] Add prebuilt jar to system image - android 9.0

2019-03-18 Thread KarenL
I actually have everything in vendor and I'd prefer to keep it there. I'm not sure how to include whats in vendor in framework.jar. This is the structure of the stuff I have in vendor that I would like to include. vendor/xxx/lib -> the prebuilt jars are here vendor/xxx/src/com/aaa/bbb/ccc => the

Re: [android-building] Add prebuilt jar to system image - android 9.0

2019-03-18 Thread Colin Cross
All of that is up to you. All Android.bp files found in the tree are parsed, so you can create a directory anywhere (maybe under vendor/ so you can minimize changes to AOSP files). Put the prebuilt jars in that directory too. static_libs takes a list of module names. android.hardware.radio-V1.0

Re: [android-building] Add prebuilt jar to system image - android 9.0

2019-03-18 Thread KarenL
What directory should my prebuilt jars go into? Where are the pother static_libs, like android.hardware.radio-V1.0-java, picked up from? Where do I add this new Android.bp with the below content? All I want to add to framework.jar are 2 prebuilt jars and 2 source files. Do I need to create a new

Re: [android-building] Add prebuilt jar to system image - android 9.0

2019-03-18 Thread Colin Cross
You need to use java_import modules to create a module for the jars. Something like: java_import { name: "my_prebuilt_jars", jars: [ "my_prebuilt_jar1.jar", "my_prebuilt_jar2.jar", ], } Then you can add to static_libs: "my_prebuilt_jars" On Mon, Mar 18, 2019 a

[android-building] Add prebuilt jar to system image - android 9.0

2019-03-18 Thread KarenL
Hi I would like to add a couple of prebuilt jars and some source files to the Android 9 aosp image that I"m building. With lower versions of Android I've added these easily to frameworks.jar. This was straight forward to do when framework.jar was built using a make file. Its a lot less clear ho