blob: 2f27f49d787c9e0e6df2dc6975c6e525435dca58 [file] [log] [blame]
micky38718f07ac2019-06-10 00:40:50 +02001# Copyright (C) 2016 The CyanogenMod Project
2# Copyright (C) 2019 The OmniRom Project
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# This file is the build configuration for a full Android
18# build for grouper hardware. This cleanly combines a set of
19# device-specific aspects (drivers) with a device-agnostic
20# product configuration (apps).
21#
micky38718f07ac2019-06-10 00:40:50 +020022
micky387733b7712020-08-11 04:10:19 +020023# VNDK
micky387981bc002022-06-21 21:57:01 +020024PRODUCT_EXTRA_VNDK_VERSIONS := 30
micky387d0479ba2021-04-15 01:20:37 +020025PRODUCT_TARGET_VNDK_VERSION := 30
Luca Stefani9629b322019-09-12 23:47:56 +020026
micky387a8d96182019-06-11 13:36:14 +020027# Overlays
28DEVICE_PACKAGE_OVERLAYS += \
micky387733b7712020-08-11 04:10:19 +020029 $(LOCAL_PATH)/overlay
micky38718f07ac2019-06-10 00:40:50 +020030
micky387de2761a2022-06-21 16:32:51 +020031PRODUCT_PACKAGES += \
32 FrameworksResDeviceOverlay \
33 FrameworksResVendorOverlay \
micky387ba4b3432022-06-23 11:43:58 +020034 SettingsDeviceOverlay \
micky387de2761a2022-06-21 16:32:51 +020035 SystemUIDeviceOverlay
36
micky387981bc002022-06-21 21:57:01 +020037ifeq ($(ROM_BUILDTYPE),$(filter $(ROM_BUILDTYPE),GAPPS))
38# Android Auto
39PRODUCT_PACKAGES += \
40 AndroidAutoStub
41endif
42
micky38782dbd1a2019-09-17 08:11:02 +020043# Api
micky387733b7712020-08-11 04:10:19 +020044PRODUCT_SHIPPING_API_LEVEL := 29
micky38782dbd1a2019-09-17 08:11:02 +020045
micky38718f07ac2019-06-10 00:40:50 +020046# audio
LuK133769135952018-09-09 17:39:16 +020047PRODUCT_COPY_FILES += \
micky3876e308742020-09-20 02:54:09 +020048 $(LOCAL_PATH)/audio/audio_policy_configuration_ZS670KS.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio/audio_policy_configuration.xml \
49 $(LOCAL_PATH)/audio/audio_policy_configuration_ZS670KS.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio_policy_configuration.xml \
50 $(LOCAL_PATH)/audio/audio_policy_volumes_ZS670KS.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio_policy_volumes_ZS670KS.xml
micky387e5ae8c72019-08-07 20:01:48 +020051
Luca Stefani498b0d72019-08-19 14:32:44 +020052# Camera
53PRODUCT_PACKAGES += \
54 CameraTile
55
micky387c8029542020-08-16 05:36:29 +020056# Input
57PRODUCT_COPY_FILES += \
micky3876e308742020-09-20 02:54:09 +020058 $(LOCAL_PATH)/idc/fts_ts.idc:system/usr/idc/fts_ts.idc \
59 $(LOCAL_PATH)/keychars/fts_ts.kcm:system/usr/keychars/fts_ts.kcm \
60 $(LOCAL_PATH)/keylayout/fts_ts.kl:system/usr/keylayout/fts_ts.kl \
61 $(LOCAL_PATH)/keylayout/Generic_zf7.kl:system/usr/keylayout/Generic_zf7.kl \
62 $(LOCAL_PATH)/keylayout/goodixfp.kl:system/usr/keylayout/goodixfp.kl \
micky387c8029542020-08-16 05:36:29 +020063 $(LOCAL_PATH)/keylayout/i-rocks_Bluetooth_Keyboard.kl:system/usr/keylayout/i-rocks_Bluetooth_Keyboard.kl
64
micky38718f07ac2019-06-10 00:40:50 +020065# Prebuilt
66PRODUCT_COPY_FILES += \
micky3876e308742020-09-20 02:54:09 +020067 $(call find-copy-subdir-files,*,device/asus/zenfone7/prebuilt/system,system) \
68 $(call find-copy-subdir-files,*,device/asus/zenfone7/prebuilt/root,recovery/root)
micky38718f07ac2019-06-10 00:40:50 +020069
micky3874a9d7842019-10-14 20:53:12 +020070PRODUCT_AAPT_CONFIG := normal
micky38718f07ac2019-06-10 00:40:50 +020071PRODUCT_AAPT_PREF_CONFIG := xxhdpi
72
micky3876e308742020-09-20 02:54:09 +020073# Ramdisk
74PRODUCT_COPY_FILES += \
75 $(LOCAL_PATH)/fstab.qcom:$(TARGET_COPY_OUT_RAMDISK)/fstab.qcom
76
Bruno Martinsff55cad2019-09-05 12:17:15 +010077# Soong namespaces
78PRODUCT_SOONG_NAMESPACES += \
79 $(LOCAL_PATH)
80
micky387733b7712020-08-11 04:10:19 +020081# Inherit from asus sm8250-common
82$(call inherit-product, device/asus/sm8250-common/common.mk)
micky3877fec5952019-09-28 10:19:41 +020083
micky387733b7712020-08-11 04:10:19 +020084# Inherit from vendor blobs
micky3876e308742020-09-20 02:54:09 +020085$(call inherit-product, vendor/asus/zenfone7/zenfone7-vendor.mk)