derrenardl

Untitled

Sep 26th, 2025
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.01 KB | None | 0 0
  1. ====== rpm/droid-hal-Mi439.spec =======
  2.  
  3. # These and other macros are documented in dhd/droid-hal-device.inc
  4. # Feel free to cleanup this file by removing comments, once you have memorised them ;)
  5.  
  6. %define device Mi439
  7. %define vendor xiaomi
  8.  
  9. %define vendor_pretty Xiaomi
  10. %define device_pretty Redmi 7a
  11.  
  12. %define installable_zip 1
  13.  
  14. %include rpm/dhd/droid-hal-device.inc
  15.  
  16. %define droid_target_aarch64 1
  17.  
  18. # IMPORTANT if you want to comment out any macros in your .spec, delete the %
  19. # sign, otherwise they will remain defined! E.g.:
  20. #define some_macro "I'll not be defined because I don't have % in front"
  21.  
  22. ==========================================
  23.  
  24.  
  25.  
  26. ====== hybris/droid-configs/rpm/droid-config-Mi439.spec =======
  27. # These and other macros are documented in ../droid-configs-device/droid-configs.inc
  28. # Feel free to cleanup this file by removing comments, once you have memorised them ;)
  29.  
  30. %define device Mi439
  31. %define vendor xiaomi
  32.  
  33. %define vendor_pretty Xiaomi
  34. %define device_pretty Redmi 7a
  35.  
  36. %define android_version_major 14
  37.  
  38. # Community HW adaptations need this
  39. %define community_adaptation 1
  40.  
  41. # Pixel ratio 1.0 was originally jolla phone with 245ppi, and the devices
  42. # should roughly have their ppi compared to that. Large displays can use
  43. # bigger ratio if seen fit. Values are with 0.25 increments.
  44. %define pixel_ratio 1.0
  45.  
  46. %include droid-configs-device/droid-configs.inc
  47. %include patterns/patterns-sailfish-device-adaptation-Mi439.inc
  48. %include patterns/patterns-sailfish-device-configuration-Mi439.inc
  49.  
  50. # IMPORTANT if you want to comment out any macros in your .spec, delete the %
  51. # sign, otherwise they will remain defined! E.g.:
  52. #define some_macro "I'll not be defined because I don't have % in front"
  53. ==========================================
  54.  
  55. ====== /home/renard/hadk/device/xiaomi/Mi439/device.mk =======
  56.  
  57. # Copyright (C) 2021 The LineageOS Project
  58. #
  59. # SPDX-License-Identifier: Apache-2.0
  60. #
  61.  
  62. # Cryptfshw
  63. TARGET_EXCLUDE_CRYPTFSHW := true
  64.  
  65. # Gatekeeper
  66. TARGET_USES_DEVICE_SPECIFIC_GATEKEEPER := true
  67.  
  68. # Keymaster
  69. TARGET_USES_DEVICE_SPECIFIC_KEYMASTER := true
  70.  
  71. # Inherit from mithorium-common
  72. $(call inherit-product, device/xiaomi/mithorium-common/mithorium.mk)
  73. $(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
  74.  
  75. PRODUCT_ENFORCE_VINTF_MANIFEST := false
  76.  
  77. # Overlays
  78. PRODUCT_PACKAGES += \
  79. xiaomi_pine_overlay \
  80. xiaomi_olive_overlay \
  81. xiaomi_olive_overlay_Aperture \
  82. xiaomi_olive_overlay_SystemUI
  83.  
  84. DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
  85.  
  86. # Boot animation
  87. TARGET_SCREEN_HEIGHT := 1440
  88. TARGET_SCREEN_WIDTH := 720
  89.  
  90. # Dynamic Partitions
  91. PRODUCT_BUILD_SUPER_PARTITION := false
  92. PRODUCT_USE_DYNAMIC_PARTITIONS := true
  93. PRODUCT_RETROFIT_DYNAMIC_PARTITIONS := true
  94.  
  95. # Permissions
  96. PRODUCT_COPY_FILES += \
  97. frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml \
  98. frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_olive/android.hardware.fingerprint.xml
  99.  
  100. # Audio
  101. PRODUCT_COPY_FILES += \
  102. $(LOCAL_PATH)/audio/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
  103. $(LOCAL_PATH)/audio/pine_mixer_paths_sdm439_pm8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/pine_mixer_paths_sdm439_pm8953.xml \
  104. $(LOCAL_PATH)/audio/olive_mixer_paths_sdm439_pm8953.xml:$(TARGET_COPY_OUT_VENDOR)/etc/olive_mixer_paths_sdm439_pm8953.xml
  105.  
  106. # Camera
  107. PRODUCT_PACKAGES += \
  108. camera.msm8937
  109.  
  110. # Dumpstate
  111. PRODUCT_PACKAGES += \
  112. libdumpstate_device
  113.  
  114. # Filesystem
  115. PRODUCT_PACKAGES += \
  116. e2fsck_ramdisk \
  117. tune2fs_ramdisk \
  118. resize2fs_ramdisk
  119.  
  120. # Enable project quotas and casefolding for emulated storage without sdcardfs
  121. $(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
  122.  
  123. # Use FUSE passthrough
  124. PRODUCT_PRODUCT_PROPERTIES += \
  125. persist.sys.fuse.passthrough.enable=true
  126.  
  127. # Fingerprint
  128. PRODUCT_PACKAGES += \
  129.  
  130. # Gatekeeper
  131. PRODUCT_PACKAGES += \
  132.  
  133. # Input
  134. PRODUCT_COPY_FILES += \
  135. $(LOCAL_PATH)/keylayout/uinput-fpc.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/uinput-fpc.kl \
  136. $(LOCAL_PATH)/keylayout/uinput-goodix.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/uinput-goodix.kl
  137.  
  138. # Keymaster
  139. PRODUCT_PACKAGES += \
  140.  
  141. # Recovery
  142. PRODUCT_COPY_FILES += \
  143. vendor/xiaomi/Mi439/proprietary/vendor/bin/hvdcp_opti:$(TARGET_COPY_OUT_RECOVERY)/root/system/bin/hvdcp_opti
  144.  
  145. # Rootdir
  146. PRODUCT_PACKAGES += \
  147. fstab.qcom_ramdisk \
  148. init.xiaomi.device.rc \
  149. init.xiaomi.device.sh
  150.  
  151. # Shims
  152. PRODUCT_PACKAGES += \
  153. libhidlbase_shim
  154.  
  155. # Soong namespaces
  156. PRODUCT_SOONG_NAMESPACES += \
  157. $(LOCAL_PATH)
  158.  
  159. # Inherit from vendor blobs
  160. $(call inherit-product, vendor/xiaomi/Mi439/Mi439-vendor.mk)
  161. ==========================================
Advertisement
Add Comment
Please, Sign In to add comment