Skip to content

Commit

Permalink
pb: PitchBlack-ify
Browse files Browse the repository at this point in the history
  • Loading branch information
Romeo13card authored and MD Raza committed Jan 4, 2025
1 parent 58fa8dc commit 68d0431
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 20 deletions.
8 changes: 4 additions & 4 deletions AndroidProducts.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
#

PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/twrp_fog.mk
$(LOCAL_DIR)/pb_fog.mk

COMMON_LUNCH_CHOICES := \
twrp_fog-user \
twrp_fog-userdebug \
twrp_fog-eng
pb_fog-user \
pb_fog-userdebug \
pb_fog-eng
46 changes: 34 additions & 12 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,21 @@

DEVICE_PATH := device/xiaomi/fog

# PBRP specific build flags
PB_DISABLE_DEFAULT_DM_VERITY := true

# Architecture
TARGET_ARCH := arm64
TARGET_ARCH_VARIANT := armv8-a
TARGET_CPU_ABI := arm64-v8a
TARGET_CPU_ABI2 :=
TARGET_CPU_VARIANT := cortex-a73
TARGET_CPU_VARIANT := generic

TARGET_2ND_ARCH := arm
TARGET_2ND_ARCH_VARIANT := armv8-a
TARGET_2ND_ARCH_VARIANT := armv7-a-neon
TARGET_2ND_CPU_ABI := armeabi-v7a
TARGET_2ND_CPU_ABI2 := armeabi
TARGET_2ND_CPU_VARIANT := cortex-a73
TARGET_2ND_CPU_VARIANT := cortex-a9

# Assertation
TARGET_OTA_ASSERT_DEVICE := fog,rain,wind
Expand Down Expand Up @@ -47,7 +50,7 @@ BUILD_BROKEN_DUP_RULES := true
BUILD_BROKEN_MISSING_REQUIRED_MODULES := true

# Display
TARGET_SCREEN_DENSITY := 320
TARGET_SCREEN_DENSITY := 300

# Kernel
BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION)
Expand Down Expand Up @@ -131,9 +134,6 @@ TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_USE_F2FS := true
TARGET_USES_MKE2FS := true

# Treble
BOARD_VNDK_VERSION := current

# TWRP specific build flags
TW_THEME := portrait_hdpi
RECOVERY_SDCARD_ON_DATA := true
Expand All @@ -147,16 +147,38 @@ TW_INCLUDE_REPACKTOOLS := true
TW_INPUT_BLACKLIST := "hbtp_vm"
TW_BRIGHTNESS_PATH := "/sys/class/backlight/panel0-backlight/brightness"
TW_DEFAULT_BRIGHTNESS := 1200
TW_MAX_BRIGHTNESS := 2047
TW_Y_OFFSET := 71
TW_H_OFFSET := -71
TW_Y_OFFSET := 91
TW_H_OFFSET := -91
TWRP_INCLUDE_LOGCAT := true
TARGET_USES_LOGD := true
TARGET_USES_MKE2FS := true
TW_NO_SCREEN_BLANK := true
TW_EXCLUDE_APEX := true
TW_FRAMERATE := 60
TW_FORCE_KEYMASTER_VER := true
TW_NO_FLASH_CURRENT_TWRP := true

#Properties
TW_OVERRIDE_SYSTEM_PROPS := \
"ro.build.fingerprint=ro.system.build.fingerprint;ro.build.version.incremental"


# Vibrator
TW_SUPPORT_INPUT_AIDL_HAPTICS := true

RECOVERY_BINARY_SOURCE_FILES += \
$(TARGET_OUT_VENDOR_EXECUTABLES)/hw/vendor.qti.hardware.vibrator.service

RECOVERY_LIBRARY_SOURCE_FILES += \
$(TARGET_OUT_SHARED_LIBRARIES)/libion.so \
$(TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES)/[email protected] \
$(TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES)/[email protected] \
$(TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES)/libdisplayconfig.qti.so \
$(TARGET_OUT_VENDOR_SHARED_LIBRARIES)/vendor.qti.hardware.vibrator.impl.so \
$(TARGET_OUT_VENDOR_SHARED_LIBRARIES)/libqtivibratoreffect.so

ENABLE_VIRTUAL_AB := true

# Treble
BOARD_VNDK_VERSION := current

# UEFI
TARGET_USES_UEFI := true
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
## Device config for TWRP Redmi 10C ( fog )
## Device config for PBRP Redmi 10C ( fog, rain, wind )
4 changes: 2 additions & 2 deletions twrp_fog.mk → pb_fog.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
$(call inherit-product, device/xiaomi/fog/device.mk)

# Inherit some common TWRP stuff.
$(call inherit-product, vendor/twrp/config/common.mk)
$(call inherit-product, vendor/pb/config/common.mk)

# Product Specifics
PRODUCT_NAME := twrp_fog
PRODUCT_NAME := pb_fog
PRODUCT_DEVICE := fog
PRODUCT_BRAND := Redmi
PRODUCT_MODEL := Redmi 10C
Expand Down
Empty file modified recovery/root/system/bin/overrideprops.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion vendorsetup.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Clone kernel tree
git clone --depth=1 https://github.com/alternoegraha/kernel_xiaomi_fog_14 kernel/xiaomi/fog
git clone --depth=1 -b fog-r-oss-staging https://github.com/alternoegraha/fog_kernel_xiaomi_sm6225 kernel/xiaomi/fog

0 comments on commit 68d0431

Please sign in to comment.