blob: 153bf45719cf47ba084617d104833f916d0f6a31 [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
micky387a8d96182019-06-11 13:36:14 +020023# Overlays
24DEVICE_PACKAGE_OVERLAYS += \
micky387733b7712020-08-11 04:10:19 +020025 $(LOCAL_PATH)/overlay
micky38718f07ac2019-06-10 00:40:50 +020026
micky387de2761a2022-06-21 16:32:51 +020027PRODUCT_PACKAGES += \
28 FrameworksResDeviceOverlay \
29 FrameworksResVendorOverlay \
micky387ba4b3432022-06-23 11:43:58 +020030 SettingsDeviceOverlay \
micky387de2761a2022-06-21 16:32:51 +020031 SystemUIDeviceOverlay
32
micky387981bc002022-06-21 21:57:01 +020033ifeq ($(ROM_BUILDTYPE),$(filter $(ROM_BUILDTYPE),GAPPS))
34# Android Auto
35PRODUCT_PACKAGES += \
36 AndroidAutoStub
37endif
38
micky38782dbd1a2019-09-17 08:11:02 +020039# Api
micky387733b7712020-08-11 04:10:19 +020040PRODUCT_SHIPPING_API_LEVEL := 29
micky38782dbd1a2019-09-17 08:11:02 +020041
micky38718f07ac2019-06-10 00:40:50 +020042# audio
LuK133769135952018-09-09 17:39:16 +020043PRODUCT_COPY_FILES += \
micky387b9e88d92022-10-27 12:12:50 +020044 $(LOCAL_PATH)/audio/audio_policy_configuration_ZS670KS.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml \
45 $(LOCAL_PATH)/audio/audio_policy_configuration_ZS670KS.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
46 $(LOCAL_PATH)/audio/audio_policy_volumes_ZS670KS.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes_ZS670KS.xml
micky387e5ae8c72019-08-07 20:01:48 +020047
Luca Stefani498b0d72019-08-19 14:32:44 +020048# Camera
49PRODUCT_PACKAGES += \
50 CameraTile
51
micky387c8029542020-08-16 05:36:29 +020052# Input
53PRODUCT_COPY_FILES += \
micky3876e308742020-09-20 02:54:09 +020054 $(LOCAL_PATH)/idc/fts_ts.idc:system/usr/idc/fts_ts.idc \
55 $(LOCAL_PATH)/keychars/fts_ts.kcm:system/usr/keychars/fts_ts.kcm \
56 $(LOCAL_PATH)/keylayout/fts_ts.kl:system/usr/keylayout/fts_ts.kl \
57 $(LOCAL_PATH)/keylayout/Generic_zf7.kl:system/usr/keylayout/Generic_zf7.kl \
58 $(LOCAL_PATH)/keylayout/goodixfp.kl:system/usr/keylayout/goodixfp.kl \
micky387c8029542020-08-16 05:36:29 +020059 $(LOCAL_PATH)/keylayout/i-rocks_Bluetooth_Keyboard.kl:system/usr/keylayout/i-rocks_Bluetooth_Keyboard.kl
60
micky38718f07ac2019-06-10 00:40:50 +020061# Prebuilt
62PRODUCT_COPY_FILES += \
micky3876e308742020-09-20 02:54:09 +020063 $(call find-copy-subdir-files,*,device/asus/zenfone7/prebuilt/system,system) \
micky387b9e88d92022-10-27 12:12:50 +020064 $(call find-copy-subdir-files,*,device/asus/zenfone7/prebuilt/root,recovery/root) \
65 $(call find-copy-subdir-files,*,device/asus/zenfone7/prebuilt/vendor,vendor)
micky38718f07ac2019-06-10 00:40:50 +020066
micky3874a9d7842019-10-14 20:53:12 +020067PRODUCT_AAPT_CONFIG := normal
micky38718f07ac2019-06-10 00:40:50 +020068PRODUCT_AAPT_PREF_CONFIG := xxhdpi
69
micky3876e308742020-09-20 02:54:09 +020070# Ramdisk
71PRODUCT_COPY_FILES += \
72 $(LOCAL_PATH)/fstab.qcom:$(TARGET_COPY_OUT_RAMDISK)/fstab.qcom
73
micky3874e123942022-12-29 10:27:40 +010074# Shims
75PRODUCT_PACKAGES += \
76 libgui_shim
77
Bruno Martinsff55cad2019-09-05 12:17:15 +010078# Soong namespaces
79PRODUCT_SOONG_NAMESPACES += \
80 $(LOCAL_PATH)
81
micky387d8508962022-10-27 16:46:50 +020082# Vibrator
83PRODUCT_PACKAGES += \
84 vendor.qti.hardware.vibrator.service
85
micky387733b7712020-08-11 04:10:19 +020086# Inherit from asus sm8250-common
87$(call inherit-product, device/asus/sm8250-common/common.mk)
micky3877fec5952019-09-28 10:19:41 +020088
micky387733b7712020-08-11 04:10:19 +020089# Inherit from vendor blobs
micky387effa7b72022-06-23 17:34:01 +020090$(call inherit-product, vendor/asus/zenfone7/zenfone7-vendor.mk)