DEVICE_COMMON := device/amazon/mt8127-common VENDOR_COMMON := vendor/amazon/mt8127-common # Device overlay DEVICE_PACKAGE_OVERLAYS += $(DEVICE_COMMON)/overlay # Install init.d scripts PRODUCT_COPY_FILES += \ $(DEVICE_COMMON)/configs/99exfat-support:system/etc/init.d/99exfat-support \ $(DEVICE_COMMON)/configs/99nvram:system/etc/init.d/99nvram $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) # Device uses high-density artwork where available PRODUCT_AAPT_CONFIG := normal mdpi PRODUCT_AAPT_PREF_CONFIG := mdpi # Permissions PRODUCT_COPY_FILES += \ frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \ frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \ frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \ frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \ frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \ frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.compass.xml \ frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \ frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \ frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \ frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \ frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml # Ramdisk PRODUCT_COPY_FILES += \ $(call find-copy-subdir-files,*,$(DEVICE_COMMON)/rootdir,root) # Config files PRODUCT_COPY_FILES += \ frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:system/etc/media_codecs_google_video_le.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \ $(DEVICE_COMMON)/media/media_codecs_performance.xml:system/etc/media_codecs_performance.xml \ $(DEVICE_COMMON)/media/media_codecs_mediatek_video.xml:system/etc/media_codecs_mediatek_video.xml \ $(DEVICE_COMMON)/media/media_codecs.xml:system/etc/media_codecs.xml \ $(DEVICE_COMMON)/media/media_profiles.xml:system/etc/media_profiles.xml \ $(DEVICE_COMMON)/media/mtk_omx_core.cfg:system/etc/mtk_omx_core.cfg # WiFi nvram PRODUCT_COPY_FILES += \ $(DEVICE_COMMON)/nvram/WIFI:system/etc/nvram/WIFI \ $(DEVICE_COMMON)/nvram/WIFI_CUSTOM:system/etc/nvram/WIFI_CUSTOM # ABI fixes for old binaries PRODUCT_PACKAGES += \ libshim_libbinder \ libshim_liblog \ libshim_libwvm \ libshim_libcamera \ libshim_skia \ libshim_gui # Audio PRODUCT_PACKAGES += \ audio.a2dp.default \ audio.r_submix.default \ audio.usb.default \ audio_policy.stub \ libalsautils \ libaudio-resampler \ libtinyalsa \ libtinycompress \ libtinyxml # Bluetooth PRODUCT_PACKAGES += \ bluetooth.default # Lights PRODUCT_PACKAGES += \ lights.mt8127 # Graphics PRODUCT_PACKAGES += \ libion # Power PRODUCT_PACKAGES += \ power.default # network PRODUCT_PACKAGES += \ netd # IPv6 tethering PRODUCT_PACKAGES += \ ebtables \ ethertypes # Wifi PRODUCT_PACKAGES += \ lib_driver_cmd_mt66xx \ libwifi-hal-mt66xx \ wifi_hal \ libwpa_client \ hostapd \ wpa_supplicant WITH_EXFAT := true PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0 # call dalvik heap config $(call inherit-product, frameworks/native/build/tablet-7in-hdpi-1024-dalvik-heap.mk) # call hwui memory config $(call inherit-product-if-exists, frameworks/native/build/phone-xxhdpi-2048-hwui-memory.mk) # Get non-open-source specific aspects $(call inherit-product-if-exists, $(VENDOR_COMMON)/mt8127-common-vendor.mk)