Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ====== rpm/droid-hal-Mi439.spec =======
- # These and other macros are documented in dhd/droid-hal-device.inc
- # Feel free to cleanup this file by removing comments, once you have memorised them ;)
- %define device Mi439
- %define vendor xiaomi
- %define vendor_pretty Xiaomi
- %define device_pretty Redmi 7a
- %define installable_zip 1
- %include rpm/dhd/droid-hal-device.inc
- %define droid_target_aarch64 1
- # IMPORTANT if you want to comment out any macros in your .spec, delete the %
- # sign, otherwise they will remain defined! E.g.:
- #define some_macro "I'll not be defined because I don't have % in front"
- ==========================================
- ====== hybris/droid-configs/rpm/droid-config-Mi439.spec =======
- # These and other macros are documented in ../droid-configs-device/droid-configs.inc
- # Feel free to cleanup this file by removing comments, once you have memorised them ;)
- %define device Mi439
- %define vendor xiaomi
- %define vendor_pretty Xiaomi
- %define device_pretty Redmi 7a
- %define android_version_major 14
- # Community HW adaptations need this
- %define community_adaptation 1
- # Pixel ratio 1.0 was originally jolla phone with 245ppi, and the devices
- # should roughly have their ppi compared to that. Large displays can use
- # bigger ratio if seen fit. Values are with 0.25 increments.
- %define pixel_ratio 1.0
- %include droid-configs-device/droid-configs.inc
- %include patterns/patterns-sailfish-device-adaptation-Mi439.inc
- %include patterns/patterns-sailfish-device-configuration-Mi439.inc
- # IMPORTANT if you want to comment out any macros in your .spec, delete the %
- # sign, otherwise they will remain defined! E.g.:
- #define some_macro "I'll not be defined because I don't have % in front"
- ==========================================
- ====== /home/renard/hadk/device/xiaomi/Mi439/device.mk =======
- # Copyright (C) 2021 The LineageOS Project
- #
- # SPDX-License-Identifier: Apache-2.0
- #
- # Cryptfshw
- TARGET_EXCLUDE_CRYPTFSHW := true
- # Gatekeeper
- TARGET_USES_DEVICE_SPECIFIC_GATEKEEPER := true
- # Keymaster
- TARGET_USES_DEVICE_SPECIFIC_KEYMASTER := true
- # Inherit from mithorium-common
- $(call inherit-product, device/xiaomi/mithorium-common/mithorium.mk)
- $(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
- PRODUCT_ENFORCE_VINTF_MANIFEST := false
- # Overlays
- PRODUCT_PACKAGES += \
- xiaomi_pine_overlay \
- xiaomi_olive_overlay \
- xiaomi_olive_overlay_Aperture \
- xiaomi_olive_overlay_SystemUI
- DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
- # Boot animation
- TARGET_SCREEN_HEIGHT := 1440
- TARGET_SCREEN_WIDTH := 720
- # Dynamic Partitions
- PRODUCT_BUILD_SUPER_PARTITION := false
- PRODUCT_USE_DYNAMIC_PARTITIONS := true
- PRODUCT_RETROFIT_DYNAMIC_PARTITIONS := true
- # Permissions
- PRODUCT_COPY_FILES += \
- frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml \
- frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_olive/android.hardware.fingerprint.xml
- # Audio
- PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/audio/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
- $(LOCAL_PATH)/audio/pine_mixer_paths_sdm439_pm8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/pine_mixer_paths_sdm439_pm8953.xml \
- $(LOCAL_PATH)/audio/olive_mixer_paths_sdm439_pm8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/olive_mixer_paths_sdm439_pm8953.xml
- # Camera
- PRODUCT_PACKAGES += \
- camera.msm8937
- # Dumpstate
- PRODUCT_PACKAGES += \
- libdumpstate_device
- # Filesystem
- PRODUCT_PACKAGES += \
- e2fsck_ramdisk \
- tune2fs_ramdisk \
- resize2fs_ramdisk
- # Enable project quotas and casefolding for emulated storage without sdcardfs
- $(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
- # Use FUSE passthrough
- PRODUCT_PRODUCT_PROPERTIES += \
- persist.sys.fuse.passthrough.enable=true
- # Fingerprint
- PRODUCT_PACKAGES += \
- [email protected]_mi439 \
- # Gatekeeper
- PRODUCT_PACKAGES += \
- # Input
- PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/keylayout/uinput-fpc.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/uinput-fpc.kl \
- $(LOCAL_PATH)/keylayout/uinput-goodix.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/uinput-goodix.kl
- # Keymaster
- PRODUCT_PACKAGES += \
- # Recovery
- PRODUCT_COPY_FILES += \
- vendor/xiaomi/Mi439/proprietary/vendor/bin/hvdcp_opti:$(TARGET_COPY_OUT_RECOVERY)/root/system/bin/hvdcp_opti
- # Rootdir
- PRODUCT_PACKAGES += \
- fstab.qcom_ramdisk \
- init.xiaomi.device.rc \
- init.xiaomi.device.sh
- # Shims
- PRODUCT_PACKAGES += \
- libhidlbase_shim
- # Soong namespaces
- PRODUCT_SOONG_NAMESPACES += \
- $(LOCAL_PATH)
- # Inherit from vendor blobs
- $(call inherit-product, vendor/xiaomi/Mi439/Mi439-vendor.mk)
- ==========================================
Advertisement
Add Comment
Please, Sign In to add comment