summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Shafran2019-07-29 20:16:22 -0500
committerPraneeth Bajjuri2019-08-21 15:10:15 -0500
commit171d713efe25e1cf31f123e09ab15a6534635f7a (patch)
tree906c99c8a9440ffb32d0d1dd1e90eb6d96e34cef
parentae2a71cccda76a89cd3a6b3f4d2c15621df0e259 (diff)
downloaddevice-ti-j721e-171d713efe25e1cf31f123e09ab15a6534635f7a.tar.gz
device-ti-j721e-171d713efe25e1cf31f123e09ab15a6534635f7a.tar.xz
device-ti-j721e-171d713efe25e1cf31f123e09ab15a6534635f7a.zip
j721e: Enable Android Automotive w/ New Lunch Target
All changes made to baseline enable full Android Automotive in-vehicle infotainment (IVI) system, presenting an updated boot animation and user interface on J721E platform(s). Car mode is enabled by default and the UI is locked in car mode when using lunch combo j721e_auto-userdebug. https://source.android.com/devices/automotive https://developer.android.com/training/cars Separated the content necessary for Android Auto from baseline tablet interface. Result is two lunch combos: 1) j721e 2) j721e_auto (Each with three build variants: eng, user, userdebug) Signed-off-by: Josh Shafran <j-shafran@ti.com> Tested-by: Vishal Mahaveer <vishalm@ti.com>
-rw-r--r--AndroidProducts.mk4
-rw-r--r--BoardConfig.mk7
-rw-r--r--auto/device.mk29
-rw-r--r--auto/j721e.mk27
-rw-r--r--auto/manifest.xml11
5 files changed, 78 insertions, 0 deletions
diff --git a/AndroidProducts.mk b/AndroidProducts.mk
index 8b45e6f..bfb2b09 100644
--- a/AndroidProducts.mk
+++ b/AndroidProducts.mk
@@ -16,8 +16,12 @@
16 16
17PRODUCT_MAKEFILES := \ 17PRODUCT_MAKEFILES := \
18 j721e:$(LOCAL_DIR)/j721e.mk \ 18 j721e:$(LOCAL_DIR)/j721e.mk \
19 j721e_auto:$(LOCAL_DIR)/auto/j721e.mk \
19 20
20COMMON_LUNCH_CHOICES := \ 21COMMON_LUNCH_CHOICES := \
21 j721e-eng \ 22 j721e-eng \
22 j721e-user \ 23 j721e-user \
23 j721e-userdebug \ 24 j721e-userdebug \
25 j721e_auto-eng \
26 j721e_auto-user \
27 j721e_auto-userdebug \
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 95529fa..78e2d33 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -63,6 +63,13 @@ TARGET_COPY_OUT_VENDOR := vendor
63BOARD_SEPOLICY_DIRS += \ 63BOARD_SEPOLICY_DIRS += \
64 device/ti/j721e/sepolicy 64 device/ti/j721e/sepolicy
65 65
66ifeq ($(TARGET_PRODUCT), j721e_auto)
67BOARD_SEPOLICY_DIRS += \
68 packages/services/Car/car_product/sepolicy
69
70DEVICE_MANIFEST_FILE += device/ti/j721e/auto/manifest.xml
71endif
72
66BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true 73BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
67 74
68BOARD_ALL_MODULES := $(shell find $(KERNELDIR) -type f -iname '*.ko') 75BOARD_ALL_MODULES := $(shell find $(KERNELDIR) -type f -iname '*.ko')
diff --git a/auto/device.mk b/auto/device.mk
new file mode 100644
index 0000000..51b7e04
--- /dev/null
+++ b/auto/device.mk
@@ -0,0 +1,29 @@
1#
2# Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17#Automotive
18PRODUCT_PACKAGES += \
19 android.hardware.automotive.vehicle@2.0-service \
20
21PRODUCT_COPY_FILES += \
22 frameworks/native/data/etc/android.hardware.type.automotive.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.type.automotive.xml \
23 frameworks/native/data/etc/android.hardware.screen.landscape.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.screen.landscape.xml \
24
25PRODUCT_PROPERTY_OVERRIDES += \
26 android.car.drawer.unlimited=true \
27 android.car.hvac.demo=true \
28 com.android.car.radio.demo=true \
29 com.android.car.radio.demo.dual=true \
diff --git a/auto/j721e.mk b/auto/j721e.mk
new file mode 100644
index 0000000..0f305f7
--- /dev/null
+++ b/auto/j721e.mk
@@ -0,0 +1,27 @@
1#
2# Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17$(call inherit-product, device/ti/j721e/device-common.mk)
18$(call inherit-product, device/ti/j721e/auto/device.mk)
19$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
20$(call inherit-product, packages/services/Car/car_product/build/car.mk)
21
22PRODUCT_NAME := j721e_auto
23PRODUCT_DEVICE := j721e
24PRODUCT_BRAND := TI
25PRODUCT_MODEL := AOSP Auto on J721e EVM
26PRODUCT_MANUFACTURER := Texas Instruments Inc
27
diff --git a/auto/manifest.xml b/auto/manifest.xml
new file mode 100644
index 0000000..660b03d
--- /dev/null
+++ b/auto/manifest.xml
@@ -0,0 +1,11 @@
1<manifest version="1.0" type="device">
2 <hal format="hidl">
3 <name>android.hardware.automotive.vehicle</name>
4 <transport>hwbinder</transport>
5 <version>2.0</version>
6 <interface>
7 <name>IVehicle</name>
8 <instance>default</instance>
9 </interface>
10 </hal>
11</manifest>