# # Copyright (C) 2018 CarbonROM # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # This file sets variables that control the way modules are built # thorughout the system. It should not be used to conditionally # disable makefiles (the proper mechanism to control what gets # included in a build is to use PRODUCT_PACKAGES in a product # definition file). # # Inherit the fusion-common definitions $(call inherit-product, device/xiaomi/sdm660-common/platform.mk) # setup dalvik vm configs #$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk) # setup HWUI configs #$(call inherit-product, frameworks/native/build/phone-xxhdpi-3072-hwui-memory.mk) DEVICE_PATH := device/xiaomi/clover # Overlays DEVICE_PACKAGE_OVERLAYS += \ $(DEVICE_PATH)/overlay # These are the hardware-specific features PRODUCT_COPY_FILES += \ frameworks/native/data/etc/tablet_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/tablet_core_hardware.xml # Permissions PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.camera.autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.autofocus.xml # Audio PRODUCT_COPY_FILES += \ $(DEVICE_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ $(DEVICE_PATH)/audio/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \ $(DEVICE_PATH)/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \ $(DEVICE_PATH)/audio/audio_platform_info_extcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_extcodec.xml \ $(DEVICE_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ $(DEVICE_PATH)/audio/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \ $(DEVICE_PATH)/audio/graphite_ipc_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/graphite_ipc_platform_info.xml \ $(DEVICE_PATH)/audio/listen_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/listen_platform_info.xml \ $(DEVICE_PATH)/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \ $(DEVICE_PATH)/audio/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \ $(DEVICE_PATH)/audio/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml # Init PRODUCT_PACKAGES += \ libinit_clover # Sensors PRODUCT_COPY_FILES += \ $(DEVICE_PATH)/sensors/sensor_def_qcomdev.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/sensor_def_qcomdev.conf # IRSC PRODUCT_COPY_FILES += \ $(DEVICE_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config # Keylayouts PRODUCT_COPY_FILES += \ $(DEVICE_PATH)/keylayout/uinput-fpc.kl:system/usr/keylayout/uinput-fpc.kl # Lights PRODUCT_PACKAGES += \ android.hardware.light@2.0-service.xiaomi_clover # Media PRODUCT_COPY_FILES += \ $(DEVICE_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ $(DEVICE_PATH)/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \ $(DEVICE_PATH)/media/media_profiles.xml:system/etc/media_profiles.xml \ $(DEVICE_PATH)/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \ $(DEVICE_PATH)/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml \ $(DEVICE_PATH)/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml # Prebuilt kernel PRODUCT_COPY_FILES += \ $(DEVICE_PATH)/prebuilt/Image.gz-dtb:kernel # Prebuilt modules PRODUCT_COPY_FILES += \ $(DEVICE_PATH)/prebuilt/exfat.ko:system/lib/modules/exfat.ko \ $(DEVICE_PATH)/prebuilt/qca_cld3_wlan.ko:system/lib/modules/qca_cld3_wlan.ko # Ramdisk PRODUCT_PACKAGES += \ init.class_main.sh \ init.mdm.sh \ init.qcom.class_core.sh \ init.qcom.coex.sh \ init.qcom.crashdata.sh \ init.qcom.early_boot.sh \ init.qcom.efs.sync.sh \ init.qcom.post_boot.sh \ init.qcom.sdio.sh \ init.qcom.sensors.sh \ init.qcom.sh \ init.qcom.syspart_fixup.sh \ init.qcom.usb.sh \ init.qcom.wifi.sh \ init.qti.fm.sh \ init.qti.ims.sh \ init.qti.qseecomd.sh PRODUCT_PACKAGES += \ init.msm.usb.configfs.rc \ init.qcom.factory.rc \ init.qcom.rc \ init.qcom.usb.rc \ init.target.rc \ ueventd.qcom.rc # Screen density PRODUCT_AAPT_CONFIG := large PRODUCT_AAPT_PREF_CONFIG := xhdpi # Boot animation TARGET_SCREEN_HEIGHT := 1920 TARGET_SCREEN_WIDTH := 1200 # Include Vendor files $(call inherit-product, vendor/xiaomi/clover/clover-vendor.mk) # Set those variables here to overwrite the inherited values. PRODUCT_NAME := aosp_clover PRODUCT_DEVICE := clover PRODUCT_MODEL := Mi PAD 4 (AOSP) PRODUCT_BRAND := Xiaomi PRODUCT_MANUFACTURER := Xiaomi