Making Custom SDK and Integrating Car API/Vehicle Services -Android N(7.1.1)

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Making Custom SDK and Integrating Car API/Vehicle Services -Android N(7.1.1)

Renjith Rajagopal
Hi,
I'm a newbie to Android AOSP.
I was trying to utilize the Car API/Services/HAL provided by Google from Android N version onwards(https://source.android.com/devices/automotive/).
My aim is to develop App that uses this Car API.Android N Standard SDK that was downloaded as a part of Android Studio doesn't include those APIs mentioned in link.
I verified it by try importing packages(import android.car ....)..But  Car package was not listing at all.I tried building a custom SDK

Steps I followed :
1. Downloaded Google AOSP-Android N from git.
2. Verify the existence of those Car services/API are located in /home/symbio/myandroid/packages/services/Car
3. Builded SDK with commands in order :
            1  . build/envsetup.sh
            2. lunch sdk-eng
            3.mm/mma /packages/services/Car
            4.make sdk

But even I couldn't find or do importing those Car services in newly builded SDK.
I'm kind of stuck.Which all makefile Shall I need to change so as to reflect the same ?
Any lead will be highly appreciated. 

Thanks in Advance!!!

--
--
unsubscribe: [hidden email]
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Making Custom SDK and Integrating Car API/Vehicle Services -Android N(7.1.1)

skylap
Hi,

I‘m facing exactly the same problem. Any progress ok this?

Am Montag, 17. Juli 2017 16:41:13 UTC+2 schrieb Renjith Rajagopal:

> Hi,
> I'm a newbie to Android AOSP.
> I was trying to utilize the Car API/Services/HAL provided by Google from Android N version onwards(https://source.android.com/devices/automotive/).
> My aim is to develop App that uses this Car API.Android N Standard SDK that was downloaded as a part of Android Studio doesn't include those APIs mentioned in link.
> I verified it by try importing packages(import android.car ....)..But  Car package was not listing at all.I tried building a custom SDK
>
> Steps I followed :
> 1. Downloaded Google AOSP-Android N from git.
> 2. Verify the existence of those Car services/API are located in /home/symbio/myandroid/packages/services/Car
> 3. Builded SDK with commands in order :
>             1  . build/envsetup.sh
>             2. lunch sdk-eng
>             3.mm/mma /packages/services/Car
>             4.make sdk
>
> But even I couldn't find or do importing those Car services in newly builded SDK.
> I'm kind of stuck.Which all makefile Shall I need to change so as to reflect the same ?
> Any lead will be highly appreciated. 
>
> Thanks in Advance!!!
--
--
unsubscribe: [hidden email]
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Making Custom SDK and Integrating Car API/Vehicle Services -Android N(7.1.1)

cmcclellan
You have to include the following line in your product makefile.

$(call inherit-product, packages/services/Car/car_product/build/car.mk)


This will include all of the default (emulated) services and demo applications.

You'll probably also need to set SELinux to permissive in your BoardConfig.mk in order to get started.

BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive

Then follow the instructions here to add an SELinux domain for the vehicle hardware service.
https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials
Don't forget to modify the file_context.

That should be enough to get going.
I can't remember with 100% certainty, but I believe the car.mk file will copy the service.rc file to the device for you.
If the service isn't starting, make sure it's there.


On Saturday, February 24, 2018 at 1:49:34 PM UTC-5, [hidden email] wrote:
Hi,

I‘m facing exactly the same problem. Any progress ok this?

Am Montag, 17. Juli 2017 16:41:13 UTC+2 schrieb Renjith Rajagopal:

> Hi,
> I'm a newbie to Android AOSP.
> I was trying to utilize the Car API/Services/HAL provided by Google from Android N version onwards(<a href="https://source.android.com/devices/automotive/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://source.android.com/devices/automotive/&#39;;return true;" onclick="this.href=&#39;https://source.android.com/devices/automotive/&#39;;return true;">https://source.android.com/devices/automotive/).
> My aim is to develop App that uses this Car API.Android N Standard SDK that was downloaded as a part of Android Studio doesn't include those APIs mentioned in link.
> I verified it by try importing packages(import android.car ....)..But  Car package was not listing at all.I tried building a custom SDK
>
> Steps I followed :
> 1. Downloaded Google AOSP-Android N from git.
> 2. Verify the existence of those Car services/API are located in /home/symbio/myandroid/packages/services/Car
> 3. Builded SDK with commands in order :
>             1  . build/envsetup.sh
>             2. lunch sdk-eng
>             <a href="http://3.mm/mma" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F3.mm%2Fmma\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE2_OgwVcxpS1R2HsCsgKPXHXQbdw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F3.mm%2Fmma\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE2_OgwVcxpS1R2HsCsgKPXHXQbdw&#39;;return true;">3.mm/mma /packages/services/Car
>             4.make sdk
>
> But even I couldn't find or do importing those Car services in newly builded SDK.
> I'm kind of stuck.Which all makefile Shall I need to change so as to reflect the same ?
> Any lead will be highly appreciated. 
>
> Thanks in Advance!!!

--
--
unsubscribe: [hidden email]
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Making Custom SDK and Integrating Car API/Vehicle Services -Android N(7.1.1)

Eric Williams
I'm having same issue but this answer did not work for creating SDK with Car API added.  Did it work for anyone else?

On Wednesday, February 28, 2018 at 12:09:14 PM UTC-5, [hidden email] wrote:

> You have to include the following line in your product makefile.
>
>
>
>
> $(call inherit-product, packages/services/Car/car_product/build/car.mk)
>
>
>
> This will include all of the default (emulated) services and demo applications.
>
>
> You'll probably also need to set SELinux to permissive in your BoardConfig.mk in order to get started.
>
>
> BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
>
>
>
> Then follow the instructions here to add an SELinux domain for the vehicle hardware service.
> https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials
>
> Don't forget to modify the file_context.
>
>
> That should be enough to get going.
> I can't remember with 100% certainty, but I believe the car.mk file will copy the service.rc file to the device for you.
> If the service isn't starting, make sure it's there.
>
>
> On Saturday, February 24, 2018 at 1:49:34 PM UTC-5, [hidden email] wrote:Hi,
>
>
>
> I‘m facing exactly the same problem. Any progress ok this?
>
>
>
> Am Montag, 17. Juli 2017 16:41:13 UTC+2 schrieb Renjith Rajagopal:
>
> > Hi,
>
> > I'm a newbie to Android AOSP.
>
> > I was trying to utilize the Car API/Services/HAL provided by Google from Android N version onwards(https://source.android.com/devices/automotive/).
>
> > My aim is to develop App that uses this Car API.Android N Standard SDK that was downloaded as a part of Android Studio doesn't include those APIs mentioned in link.
>
> > I verified it by try importing packages(import android.car ....)..But  Car package was not listing at all.I tried building a custom SDK
>
> >
>
> > Steps I followed :
>
> > 1. Downloaded Google AOSP-Android N from git.
>
> > 2. Verify the existence of those Car services/API are located in /home/symbio/myandroid/packages/services/Car
>
> > 3. Builded SDK with commands in order :
>
> >             1  . build/envsetup.sh
>
> >             2. lunch sdk-eng
>
> >             3.mm/mma /packages/services/Car
>
> >             4.make sdk
>
> >
>
> > But even I couldn't find or do importing those Car services in newly builded SDK.
>
> > I'm kind of stuck.Which all makefile Shall I need to change so as to reflect the same ?
>
> > Any lead will be highly appreciated. 
>
> >
>
> > Thanks in Advance!!!


On Wednesday, February 28, 2018 at 12:09:14 PM UTC-5, [hidden email] wrote:

> You have to include the following line in your product makefile.
>
>
>
>
> $(call inherit-product, packages/services/Car/car_product/build/car.mk)
>
>
>
> This will include all of the default (emulated) services and demo applications.
>
>
> You'll probably also need to set SELinux to permissive in your BoardConfig.mk in order to get started.
>
>
> BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
>
>
>
> Then follow the instructions here to add an SELinux domain for the vehicle hardware service.
> https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials
>
> Don't forget to modify the file_context.
>
>
> That should be enough to get going.
> I can't remember with 100% certainty, but I believe the car.mk file will copy the service.rc file to the device for you.
> If the service isn't starting, make sure it's there.
>
>
> On Saturday, February 24, 2018 at 1:49:34 PM UTC-5, [hidden email] wrote:Hi,
>
>
>
> I‘m facing exactly the same problem. Any progress ok this?
>
>
>
> Am Montag, 17. Juli 2017 16:41:13 UTC+2 schrieb Renjith Rajagopal:
>
> > Hi,
>
> > I'm a newbie to Android AOSP.
>
> > I was trying to utilize the Car API/Services/HAL provided by Google from Android N version onwards(https://source.android.com/devices/automotive/).
>
> > My aim is to develop App that uses this Car API.Android N Standard SDK that was downloaded as a part of Android Studio doesn't include those APIs mentioned in link.
>
> > I verified it by try importing packages(import android.car ....)..But  Car package was not listing at all.I tried building a custom SDK
>
> >
>
> > Steps I followed :
>
> > 1. Downloaded Google AOSP-Android N from git.
>
> > 2. Verify the existence of those Car services/API are located in /home/symbio/myandroid/packages/services/Car
>
> > 3. Builded SDK with commands in order :
>
> >             1  . build/envsetup.sh
>
> >             2. lunch sdk-eng
>
> >             3.mm/mma /packages/services/Car
>
> >             4.make sdk
>
> >
>
> > But even I couldn't find or do importing those Car services in newly builded SDK.
>
> > I'm kind of stuck.Which all makefile Shall I need to change so as to reflect the same ?
>
> > Any lead will be highly appreciated. 
>
> >
>
> > Thanks in Advance!!!
--
--
unsubscribe: [hidden email]
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Making Custom SDK and Integrating Car API/Vehicle Services -Android N(7.1.1)

Christopher McClellan
The Car API's aren't part of the SDK, even if you build the SDK yourself.
You can copy the jar from the intermediates directory of the output to your Android Studio project though.

cp out/target/common/obj/JAVA_LIBRARIES/android.support.car_intermediates/classes.jar ~/car-support-lib.jar

On Monday, March 19, 2018 at 1:09:39 PM UTC-4, Eric Williams wrote:
I'm having same issue but this answer did not work for creating SDK with Car API added.  Did it work for anyone else?

On Wednesday, February 28, 2018 at 12:09:14 PM UTC-5, [hidden email] wrote:

> You have to include the following line in your product makefile.
>
>
>
>
> $(call inherit-product, packages/services/Car/car_product/build/<a href="http://car.mk" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;">car.mk)
>
>
>
> This will include all of the default (emulated) services and demo applications.
>
>
> You'll probably also need to set SELinux to permissive in your BoardConfig.mk in order to get started.
>
>
> BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
>
>
>
> Then follow the instructions here to add an SELinux domain for the vehicle hardware service.
> <a href="https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials&#39;;return true;" onclick="this.href=&#39;https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials&#39;;return true;">https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials
>
> Don't forget to modify the file_context.
>
>
> That should be enough to get going.
> I can't remember with 100% certainty, but I believe the <a href="http://car.mk" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;">car.mk file will copy the service.rc file to the device for you.
> If the service isn't starting, make sure it's there.
>
>
> On Saturday, February 24, 2018 at 1:49:34 PM UTC-5, [hidden email] wrote:Hi,
>
>
>
> I‘m facing exactly the same problem. Any progress ok this?
>
>
>
> Am Montag, 17. Juli 2017 16:41:13 UTC+2 schrieb Renjith Rajagopal:
>
> > Hi,
>
> > I'm a newbie to Android AOSP.
>
> > I was trying to utilize the Car API/Services/HAL provided by Google from Android N version onwards(<a href="https://source.android.com/devices/automotive/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://source.android.com/devices/automotive/&#39;;return true;" onclick="this.href=&#39;https://source.android.com/devices/automotive/&#39;;return true;">https://source.android.com/devices/automotive/).
>
> > My aim is to develop App that uses this Car API.Android N Standard SDK that was downloaded as a part of Android Studio doesn't include those APIs mentioned in link.
>
> > I verified it by try importing packages(import android.car ....)..But  Car package was not listing at all.I tried building a custom SDK
>
> >
>
> > Steps I followed :
>
> > 1. Downloaded Google AOSP-Android N from git.
>
> > 2. Verify the existence of those Car services/API are located in /home/symbio/myandroid/packages/services/Car
>
> > 3. Builded SDK with commands in order :
>
> >             1  . build/envsetup.sh
>
> >             2. lunch sdk-eng
>
> >             <a href="http://3.mm/mma" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F3.mm%2Fmma\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE2_OgwVcxpS1R2HsCsgKPXHXQbdw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F3.mm%2Fmma\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE2_OgwVcxpS1R2HsCsgKPXHXQbdw&#39;;return true;">3.mm/mma /packages/services/Car
>
> >             4.make sdk
>
> >
>
> > But even I couldn't find or do importing those Car services in newly builded SDK.
>
> > I'm kind of stuck.Which all makefile Shall I need to change so as to reflect the same ?
>
> > Any lead will be highly appreciated. 
>
> >
>
> > Thanks in Advance!!!



On Wednesday, February 28, 2018 at 12:09:14 PM UTC-5, [hidden email] wrote:

> You have to include the following line in your product makefile.
>
>
>
>
> $(call inherit-product, packages/services/Car/car_product/build/<a href="http://car.mk" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;">car.mk)
>
>
>
> This will include all of the default (emulated) services and demo applications.
>
>
> You'll probably also need to set SELinux to permissive in your BoardConfig.mk in order to get started.
>
>
> BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
>
>
>
> Then follow the instructions here to add an SELinux domain for the vehicle hardware service.
> <a href="https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials&#39;;return true;" onclick="this.href=&#39;https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials&#39;;return true;">https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials
>
> Don't forget to modify the file_context.
>
>
> That should be enough to get going.
> I can't remember with 100% certainty, but I believe the <a href="http://car.mk" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;">car.mk file will copy the service.rc file to the device for you.
> If the service isn't starting, make sure it's there.
>
>
> On Saturday, February 24, 2018 at 1:49:34 PM UTC-5, [hidden email] wrote:Hi,
>
>
>
> I‘m facing exactly the same problem. Any progress ok this?
>
>
>
> Am Montag, 17. Juli 2017 16:41:13 UTC+2 schrieb Renjith Rajagopal:
>
> > Hi,
>
> > I'm a newbie to Android AOSP.
>
> > I was trying to utilize the Car API/Services/HAL provided by Google from Android N version onwards(<a href="https://source.android.com/devices/automotive/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://source.android.com/devices/automotive/&#39;;return true;" onclick="this.href=&#39;https://source.android.com/devices/automotive/&#39;;return true;">https://source.android.com/devices/automotive/).
>
> > My aim is to develop App that uses this Car API.Android N Standard SDK that was downloaded as a part of Android Studio doesn't include those APIs mentioned in link.
>
> > I verified it by try importing packages(import android.car ....)..But  Car package was not listing at all.I tried building a custom SDK
>
> >
>
> > Steps I followed :
>
> > 1. Downloaded Google AOSP-Android N from git.
>
> > 2. Verify the existence of those Car services/API are located in /home/symbio/myandroid/packages/services/Car
>
> > 3. Builded SDK with commands in order :
>
> >             1  . build/envsetup.sh
>
> >             2. lunch sdk-eng
>
> >             <a href="http://3.mm/mma" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F3.mm%2Fmma\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE2_OgwVcxpS1R2HsCsgKPXHXQbdw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F3.mm%2Fmma\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE2_OgwVcxpS1R2HsCsgKPXHXQbdw&#39;;return true;">3.mm/mma /packages/services/Car
>
> >             4.make sdk
>
> >
>
> > But even I couldn't find or do importing those Car services in newly builded SDK.
>
> > I'm kind of stuck.Which all makefile Shall I need to change so as to reflect the same ?
>
> > Any lead will be highly appreciated. 
>
> >
>
> > Thanks in Advance!!!

--
--
unsubscribe: [hidden email]
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Making Custom SDK and Integrating Car API/Vehicle Services -Android N(7.1.1)

Alessio Moscatello
Hello Christopher,
do you know if it is possible to add  car-support-lib.jar directly to the SDK modifying for example the file ./development/build/sdk.atree? 

Maybe adding a line like the one for the main android.jar...

# Main Public API jar
${OUT_DIR}/target/common/obj/PACKAGING/android_jar_intermediates/android.jar                  platforms/${PLATFORM_NAME}/android.jar


BR,
Alessio

Il giorno venerdì 13 aprile 2018 18:15:42 UTC+2, Christopher McClellan ha scritto:
The Car API's aren't part of the SDK, even if you build the SDK yourself.
You can copy the jar from the intermediates directory of the output to your Android Studio project though.

cp out/target/common/obj/JAVA_LIBRARIES/android.support.car_intermediates/classes.jar ~/car-support-lib.jar

On Monday, March 19, 2018 at 1:09:39 PM UTC-4, Eric Williams wrote:
I'm having same issue but this answer did not work for creating SDK with Car API added.  Did it work for anyone else?

On Wednesday, February 28, 2018 at 12:09:14 PM UTC-5, [hidden email] wrote:

> You have to include the following line in your product makefile.
>
>
>
>
> $(call inherit-product, packages/services/Car/car_product/build/<a href="http://car.mk" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;">car.mk)
>
>
>
> This will include all of the default (emulated) services and demo applications.
>
>
> You'll probably also need to set SELinux to permissive in your BoardConfig.mk in order to get started.
>
>
> BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
>
>
>
> Then follow the instructions here to add an SELinux domain for the vehicle hardware service.
> <a href="https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials&#39;;return true;" onclick="this.href=&#39;https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials&#39;;return true;">https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials
>
> Don't forget to modify the file_context.
>
>
> That should be enough to get going.
> I can't remember with 100% certainty, but I believe the <a href="http://car.mk" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;">car.mk file will copy the service.rc file to the device for you.
> If the service isn't starting, make sure it's there.
>
>
> On Saturday, February 24, 2018 at 1:49:34 PM UTC-5, [hidden email] wrote:Hi,
>
>
>
> I‘m facing exactly the same problem. Any progress ok this?
>
>
>
> Am Montag, 17. Juli 2017 16:41:13 UTC+2 schrieb Renjith Rajagopal:
>
> > Hi,
>
> > I'm a newbie to Android AOSP.
>
> > I was trying to utilize the Car API/Services/HAL provided by Google from Android N version onwards(<a href="https://source.android.com/devices/automotive/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://source.android.com/devices/automotive/&#39;;return true;" onclick="this.href=&#39;https://source.android.com/devices/automotive/&#39;;return true;">https://source.android.com/devices/automotive/).
>
> > My aim is to develop App that uses this Car API.Android N Standard SDK that was downloaded as a part of Android Studio doesn't include those APIs mentioned in link.
>
> > I verified it by try importing packages(import android.car ....)..But  Car package was not listing at all.I tried building a custom SDK
>
> >
>
> > Steps I followed :
>
> > 1. Downloaded Google AOSP-Android N from git.
>
> > 2. Verify the existence of those Car services/API are located in /home/symbio/myandroid/packages/services/Car
>
> > 3. Builded SDK with commands in order :
>
> >             1  . build/envsetup.sh
>
> >             2. lunch sdk-eng
>
> >             <a href="http://3.mm/mma" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F3.mm%2Fmma\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE2_OgwVcxpS1R2HsCsgKPXHXQbdw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F3.mm%2Fmma\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE2_OgwVcxpS1R2HsCsgKPXHXQbdw&#39;;return true;">3.mm/mma /packages/services/Car
>
> >             4.make sdk
>
> >
>
> > But even I couldn't find or do importing those Car services in newly builded SDK.
>
> > I'm kind of stuck.Which all makefile Shall I need to change so as to reflect the same ?
>
> > Any lead will be highly appreciated. 
>
> >
>
> > Thanks in Advance!!!



On Wednesday, February 28, 2018 at 12:09:14 PM UTC-5, [hidden email] wrote:

> You have to include the following line in your product makefile.
>
>
>
>
> $(call inherit-product, packages/services/Car/car_product/build/<a href="http://car.mk" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;">car.mk)
>
>
>
> This will include all of the default (emulated) services and demo applications.
>
>
> You'll probably also need to set SELinux to permissive in your BoardConfig.mk in order to get started.
>
>
> BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
>
>
>
> Then follow the instructions here to add an SELinux domain for the vehicle hardware service.
> <a href="https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials&#39;;return true;" onclick="this.href=&#39;https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials&#39;;return true;">https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials
>
> Don't forget to modify the file_context.
>
>
> That should be enough to get going.
> I can't remember with 100% certainty, but I believe the <a href="http://car.mk" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;">car.mk file will copy the service.rc file to the device for you.
> If the service isn't starting, make sure it's there.
>
>
> On Saturday, February 24, 2018 at 1:49:34 PM UTC-5, [hidden email] wrote:Hi,
>
>
>
> I‘m facing exactly the same problem. Any progress ok this?
>
>
>
> Am Montag, 17. Juli 2017 16:41:13 UTC+2 schrieb Renjith Rajagopal:
>
> > Hi,
>
> > I'm a newbie to Android AOSP.
>
> > I was trying to utilize the Car API/Services/HAL provided by Google from Android N version onwards(<a href="https://source.android.com/devices/automotive/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://source.android.com/devices/automotive/&#39;;return true;" onclick="this.href=&#39;https://source.android.com/devices/automotive/&#39;;return true;">https://source.android.com/devices/automotive/).
>
> > My aim is to develop App that uses this Car API.Android N Standard SDK that was downloaded as a part of Android Studio doesn't include those APIs mentioned in link.
>
> > I verified it by try importing packages(import android.car ....)..But  Car package was not listing at all.I tried building a custom SDK
>
> >
>
> > Steps I followed :
>
> > 1. Downloaded Google AOSP-Android N from git.
>
> > 2. Verify the existence of those Car services/API are located in /home/symbio/myandroid/packages/services/Car
>
> > 3. Builded SDK with commands in order :
>
> >             1  . build/envsetup.sh
>
> >             2. lunch sdk-eng
>
> >             <a href="http://3.mm/mma" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F3.mm%2Fmma\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE2_OgwVcxpS1R2HsCsgKPXHXQbdw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F3.mm%2Fmma\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE2_OgwVcxpS1R2HsCsgKPXHXQbdw&#39;;return true;">3.mm/mma /packages/services/Car
>
> >             4.make sdk
>
> >
>
> > But even I couldn't find or do importing those Car services in newly builded SDK.
>
> > I'm kind of stuck.Which all makefile Shall I need to change so as to reflect the same ?
>
> > Any lead will be highly appreciated. 
>
> >
>
> > Thanks in Advance!!!

--
--
unsubscribe: [hidden email]
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Making Custom SDK and Integrating Car API/Vehicle Services -Android N(7.1.1)

Bao Zhu
In reply to this post by Christopher McClellan
Hi Christopher,

car-support-lib.jar is necessary.
However, How about the resource packages something like themes.xml and styles.xml and so on?

Would you please share a manual or guidance for us to integrate car features into android studio SDKs? 

Thanks in advance.
Hope your reply.

Bao

在 2018年4月14日星期六 UTC+8上午12:15:42,Christopher McClellan写道:
The Car API's aren't part of the SDK, even if you build the SDK yourself.
You can copy the jar from the intermediates directory of the output to your Android Studio project though.

cp out/target/common/obj/JAVA_LIBRARIES/android.support.car_intermediates/classes.jar ~/car-support-lib.jar

On Monday, March 19, 2018 at 1:09:39 PM UTC-4, Eric Williams wrote:
I'm having same issue but this answer did not work for creating SDK with Car API added.  Did it work for anyone else?

On Wednesday, February 28, 2018 at 12:09:14 PM UTC-5, [hidden email] wrote:

> You have to include the following line in your product makefile.
>
>
>
>
> $(call inherit-product, packages/services/Car/car_product/build/<a href="http://car.mk" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;">car.mk)
>
>
>
> This will include all of the default (emulated) services and demo applications.
>
>
> You'll probably also need to set SELinux to permissive in your BoardConfig.mk in order to get started.
>
>
> BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
>
>
>
> Then follow the instructions here to add an SELinux domain for the vehicle hardware service.
> <a href="https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials&#39;;return true;" onclick="this.href=&#39;https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials&#39;;return true;">https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials
>
> Don't forget to modify the file_context.
>
>
> That should be enough to get going.
> I can't remember with 100% certainty, but I believe the <a href="http://car.mk" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;">car.mk file will copy the service.rc file to the device for you.
> If the service isn't starting, make sure it's there.
>
>
> On Saturday, February 24, 2018 at 1:49:34 PM UTC-5, [hidden email] wrote:Hi,
>
>
>
> I‘m facing exactly the same problem. Any progress ok this?
>
>
>
> Am Montag, 17. Juli 2017 16:41:13 UTC+2 schrieb Renjith Rajagopal:
>
> > Hi,
>
> > I'm a newbie to Android AOSP.
>
> > I was trying to utilize the Car API/Services/HAL provided by Google from Android N version onwards(<a href="https://source.android.com/devices/automotive/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://source.android.com/devices/automotive/&#39;;return true;" onclick="this.href=&#39;https://source.android.com/devices/automotive/&#39;;return true;">https://source.android.com/devices/automotive/).
>
> > My aim is to develop App that uses this Car API.Android N Standard SDK that was downloaded as a part of Android Studio doesn't include those APIs mentioned in link.
>
> > I verified it by try importing packages(import android.car ....)..But  Car package was not listing at all.I tried building a custom SDK
>
> >
>
> > Steps I followed :
>
> > 1. Downloaded Google AOSP-Android N from git.
>
> > 2. Verify the existence of those Car services/API are located in /home/symbio/myandroid/packages/services/Car
>
> > 3. Builded SDK with commands in order :
>
> >             1  . build/envsetup.sh
>
> >             2. lunch sdk-eng
>
> >             <a href="http://3.mm/mma" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F3.mm%2Fmma\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE2_OgwVcxpS1R2HsCsgKPXHXQbdw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F3.mm%2Fmma\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE2_OgwVcxpS1R2HsCsgKPXHXQbdw&#39;;return true;">3.mm/mma /packages/services/Car
>
> >             4.make sdk
>
> >
>
> > But even I couldn't find or do importing those Car services in newly builded SDK.
>
> > I'm kind of stuck.Which all makefile Shall I need to change so as to reflect the same ?
>
> > Any lead will be highly appreciated. 
>
> >
>
> > Thanks in Advance!!!



On Wednesday, February 28, 2018 at 12:09:14 PM UTC-5, [hidden email] wrote:

> You have to include the following line in your product makefile.
>
>
>
>
> $(call inherit-product, packages/services/Car/car_product/build/<a href="http://car.mk" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;">car.mk)
>
>
>
> This will include all of the default (emulated) services and demo applications.
>
>
> You'll probably also need to set SELinux to permissive in your BoardConfig.mk in order to get started.
>
>
> BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
>
>
>
> Then follow the instructions here to add an SELinux domain for the vehicle hardware service.
> <a href="https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials&#39;;return true;" onclick="this.href=&#39;https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials&#39;;return true;">https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials
>
> Don't forget to modify the file_context.
>
>
> That should be enough to get going.
> I can't remember with 100% certainty, but I believe the <a href="http://car.mk" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;">car.mk file will copy the service.rc file to the device for you.
> If the service isn't starting, make sure it's there.
>
>
> On Saturday, February 24, 2018 at 1:49:34 PM UTC-5, [hidden email] wrote:Hi,
>
>
>
> I‘m facing exactly the same problem. Any progress ok this?
>
>
>
> Am Montag, 17. Juli 2017 16:41:13 UTC+2 schrieb Renjith Rajagopal:
>
> > Hi,
>
> > I'm a newbie to Android AOSP.
>
> > I was trying to utilize the Car API/Services/HAL provided by Google from Android N version onwards(<a href="https://source.android.com/devices/automotive/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://source.android.com/devices/automotive/&#39;;return true;" onclick="this.href=&#39;https://source.android.com/devices/automotive/&#39;;return true;">https://source.android.com/devices/automotive/).
>
> > My aim is to develop App that uses this Car API.Android N Standard SDK that was downloaded as a part of Android Studio doesn't include those APIs mentioned in link.
>
> > I verified it by try importing packages(import android.car ....)..But  Car package was not listing at all.I tried building a custom SDK
>
> >
>
> > Steps I followed :
>
> > 1. Downloaded Google AOSP-Android N from git.
>
> > 2. Verify the existence of those Car services/API are located in /home/symbio/myandroid/packages/services/Car
>
> > 3. Builded SDK with commands in order :
>
> >             1  . build/envsetup.sh
>
> >             2. lunch sdk-eng
>
> >             <a href="http://3.mm/mma" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F3.mm%2Fmma\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE2_OgwVcxpS1R2HsCsgKPXHXQbdw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F3.mm%2Fmma\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE2_OgwVcxpS1R2HsCsgKPXHXQbdw&#39;;return true;">3.mm/mma /packages/services/Car
>
> >             4.make sdk
>
> >
>
> > But even I couldn't find or do importing those Car services in newly builded SDK.
>
> > I'm kind of stuck.Which all makefile Shall I need to change so as to reflect the same ?
>
> > Any lead will be highly appreciated. 
>
> >
>
> > Thanks in Advance!!!

--
--
unsubscribe: [hidden email]
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Making Custom SDK and Integrating Car API/Vehicle Services -Android N(7.1.1)

Sorin Steflea
Hello,

Did you find a solution for this problem?
I am facing the same problem.

Regards,
Sorin

On Thursday, January 3, 2019 at 6:42:56 PM UTC+2, Bao Zhu wrote:
Hi Christopher,

car-support-lib.jar is necessary.
However, How about the resource packages something like themes.xml and styles.xml and so on?

Would you please share a manual or guidance for us to integrate car features into android studio SDKs? 

Thanks in advance.
Hope your reply.

Bao

在 2018年4月14日星期六 UTC+8上午12:15:42,Christopher McClellan写道:
The Car API's aren't part of the SDK, even if you build the SDK yourself.
You can copy the jar from the intermediates directory of the output to your Android Studio project though.

cp out/target/common/obj/JAVA_LIBRARIES/android.support.car_intermediates/classes.jar ~/car-support-lib.jar

On Monday, March 19, 2018 at 1:09:39 PM UTC-4, Eric Williams wrote:
I'm having same issue but this answer did not work for creating SDK with Car API added.  Did it work for anyone else?

On Wednesday, February 28, 2018 at 12:09:14 PM UTC-5, [hidden email] wrote:

> You have to include the following line in your product makefile.
>
>
>
>
> $(call inherit-product, packages/services/Car/car_product/build/<a href="http://car.mk" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;">car.mk)
>
>
>
> This will include all of the default (emulated) services and demo applications.
>
>
> You'll probably also need to set SELinux to permissive in your BoardConfig.mk in order to get started.
>
>
> BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
>
>
>
> Then follow the instructions here to add an SELinux domain for the vehicle hardware service.
> <a href="https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials&#39;;return true;" onclick="this.href=&#39;https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials&#39;;return true;">https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials
>
> Don't forget to modify the file_context.
>
>
> That should be enough to get going.
> I can't remember with 100% certainty, but I believe the <a href="http://car.mk" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;">car.mk file will copy the service.rc file to the device for you.
> If the service isn't starting, make sure it's there.
>
>
> On Saturday, February 24, 2018 at 1:49:34 PM UTC-5, [hidden email] wrote:Hi,
>
>
>
> I‘m facing exactly the same problem. Any progress ok this?
>
>
>
> Am Montag, 17. Juli 2017 16:41:13 UTC+2 schrieb Renjith Rajagopal:
>
> > Hi,
>
> > I'm a newbie to Android AOSP.
>
> > I was trying to utilize the Car API/Services/HAL provided by Google from Android N version onwards(<a href="https://source.android.com/devices/automotive/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://source.android.com/devices/automotive/&#39;;return true;" onclick="this.href=&#39;https://source.android.com/devices/automotive/&#39;;return true;">https://source.android.com/devices/automotive/).
>
> > My aim is to develop App that uses this Car API.Android N Standard SDK that was downloaded as a part of Android Studio doesn't include those APIs mentioned in link.
>
> > I verified it by try importing packages(import android.car ....)..But  Car package was not listing at all.I tried building a custom SDK
>
> >
>
> > Steps I followed :
>
> > 1. Downloaded Google AOSP-Android N from git.
>
> > 2. Verify the existence of those Car services/API are located in /home/symbio/myandroid/packages/services/Car
>
> > 3. Builded SDK with commands in order :
>
> >             1  . build/envsetup.sh
>
> >             2. lunch sdk-eng
>
> >             <a href="http://3.mm/mma" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F3.mm%2Fmma\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE2_OgwVcxpS1R2HsCsgKPXHXQbdw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F3.mm%2Fmma\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE2_OgwVcxpS1R2HsCsgKPXHXQbdw&#39;;return true;">3.mm/mma /packages/services/Car
>
> >             4.make sdk
>
> >
>
> > But even I couldn't find or do importing those Car services in newly builded SDK.
>
> > I'm kind of stuck.Which all makefile Shall I need to change so as to reflect the same ?
>
> > Any lead will be highly appreciated. 
>
> >
>
> > Thanks in Advance!!!



On Wednesday, February 28, 2018 at 12:09:14 PM UTC-5, [hidden email] wrote:

> You have to include the following line in your product makefile.
>
>
>
>
> $(call inherit-product, packages/services/Car/car_product/build/<a href="http://car.mk" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;">car.mk)
>
>
>
> This will include all of the default (emulated) services and demo applications.
>
>
> You'll probably also need to set SELinux to permissive in your BoardConfig.mk in order to get started.
>
>
> BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
>
>
>
> Then follow the instructions here to add an SELinux domain for the vehicle hardware service.
> <a href="https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials&#39;;return true;" onclick="this.href=&#39;https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials&#39;;return true;">https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials
>
> Don't forget to modify the file_context.
>
>
> That should be enough to get going.
> I can't remember with 100% certainty, but I believe the <a href="http://car.mk" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fcar.mk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXMvlNxuJuy_UvwrrwUFZtZDRQ6Q&#39;;return true;">car.mk file will copy the service.rc file to the device for you.
> If the service isn't starting, make sure it's there.
>
>
> On Saturday, February 24, 2018 at 1:49:34 PM UTC-5, [hidden email] wrote:Hi,
>
>
>
> I‘m facing exactly the same problem. Any progress ok this?
>
>
>
> Am Montag, 17. Juli 2017 16:41:13 UTC+2 schrieb Renjith Rajagopal:
>
> > Hi,
>
> > I'm a newbie to Android AOSP.
>
> > I was trying to utilize the Car API/Services/HAL provided by Google from Android N version onwards(<a href="https://source.android.com/devices/automotive/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://source.android.com/devices/automotive/&#39;;return true;" onclick="this.href=&#39;https://source.android.com/devices/automotive/&#39;;return true;">https://source.android.com/devices/automotive/).
>
> > My aim is to develop App that uses this Car API.Android N Standard SDK that was downloaded as a part of Android Studio doesn't include those APIs mentioned in link.
>
> > I verified it by try importing packages(import android.car ....)..But  Car package was not listing at all.I tried building a custom SDK
>
> >
>
> > Steps I followed :
>
> > 1. Downloaded Google AOSP-Android N from git.
>
> > 2. Verify the existence of those Car services/API are located in /home/symbio/myandroid/packages/services/Car
>
> > 3. Builded SDK with commands in order :
>
> >             1  . build/envsetup.sh
>
> >             2. lunch sdk-eng
>
> >             <a href="http://3.mm/mma" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F3.mm%2Fmma\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE2_OgwVcxpS1R2HsCsgKPXHXQbdw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F3.mm%2Fmma\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE2_OgwVcxpS1R2HsCsgKPXHXQbdw&#39;;return true;">3.mm/mma /packages/services/Car
>
> >             4.make sdk
>
> >
>
> > But even I couldn't find or do importing those Car services in newly builded SDK.
>
> > I'm kind of stuck.Which all makefile Shall I need to change so as to reflect the same ?
>
> > Any lead will be highly appreciated. 
>
> >
>
> > Thanks in Advance!!!

--
--
unsubscribe: [hidden email]
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-porting/7f74842c-b8dd-49aa-a632-d59b144582e2%40googlegroups.com.