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

2019-11-01 Thread 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, 
>>> [email protected] 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, [email protected] 
>>> 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, 
>>> [email protected] 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 

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

2019-01-03 Thread Bao Zhu
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, 
>> [email protected] 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, [email protected] 
>> 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, 
>> [email protected] 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, [email protected] 
>> wrote:Hi, 
>> > 
>> > 
>> > 
>> > I‘m facing exactly the same problem. Any progress ok this? 
>> > 
>> > 
>> > 
>> > Am Montag, 17. Juli 2017 16:41:13 UTC+2 schrieb 

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

2018-07-03 Thread a . m . mm . work
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, 
>> [email protected] 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, [email protected] 
>> 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, 
>> [email protected] 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, [email protected] 
>> wrote:Hi, 
>> > 
>> > 
>> > 
>> > 

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

2018-04-13 Thread 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, 
> [email protected] 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, [email protected] 
> 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, 
> [email protected] 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, [email protected] 
> 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 

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

2018-03-19 Thread 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, 
[email protected] 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, [email protected] 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, 
[email protected] 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, [email protected] 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 

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

2018-02-28 Thread 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, [email protected] 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: [email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.


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

2018-02-24 Thread 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: [email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.