Files
device_xiaomi_pipa/device.mk
ChrisCatto 39b36497cc pipa: Disable game default frame rate feature
* This feature was enabled by default on Android 15 and limits the
  refresh rate to 60FPS in some games. Disabling it allows games to use
  any refresh rate without restrictions.

Change-Id: Iecea8c138c48093905318756ff670d4268d6d3b1
Signed-off-by: ChrisCatto <chriscatto@proton.me>
2025-02-08 13:25:22 +03:00

66 lines
1.4 KiB
Makefile

#
# Copyright (C) 2021 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
TARGET_IS_VAB := true
TARGET_IS_TABLET := true
# Inherit from sm8250-common
$(call inherit-product, device/xiaomi/sm8250-common/kona.mk)
# AAPT
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xxxhdpi
# Audio configs
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/audio/,$(TARGET_COPY_OUT_VENDOR)/etc)
# Boot animation
TARGET_SCREEN_HEIGHT := 2880
TARGET_SCREEN_WIDTH := 1800
# Camera
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/camera/camera_cnf.txt:$(TARGET_COPY_OUT_VENDOR)/etc/camera/camera_cnf.txt
PRODUCT_PACKAGES += \
libpiex_shim
# Display
PRODUCT_VENDOR_PROPERTIES += \
debug.graphics.game_default_frame_rate.disabled=1 \
# Overlays
DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay \
$(LOCAL_PATH)/overlay-lineage
# Peripheral Manager
PRODUCT_PACKAGES += \
XiaomiPeripheralManager
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
# Rootdir
PRODUCT_PACKAGES += \
init.device.rc
# Shipping API level
PRODUCT_SHIPPING_API_LEVEL := 30
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)
# WiFi
PRODUCT_PACKAGES += \
TargetWifiOverlay
# Inherit from vendor blobs
$(call inherit-product, vendor/xiaomi/pipa/pipa-vendor.mk)