Skip to content

Commit

Permalink
Time to rebrand
Browse files Browse the repository at this point in the history
* spes to fog
* Import {kernel|dtb|dtbo} from fog 12 MIUI V13.0.2.0.SGEMIXM release-keys
* Import blobs from fog 12 MIUI V13.0.2.0.SGEMIXM release-keys
  • Loading branch information
boedhack99 committed Oct 15, 2022
1 parent ff1a0db commit cb0ec5f
Show file tree
Hide file tree
Showing 16 changed files with 47 additions and 92 deletions.
2 changes: 1 addition & 1 deletion Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

LOCAL_PATH := $(call my-dir)

ifeq ($(TARGET_DEVICE),spes)
ifeq ($(TARGET_DEVICE),fog)

include $(call all-makefiles-under,$(LOCAL_PATH))

Expand Down
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_spes.mk
$(LOCAL_DIR)/twrp_fog.mk

COMMON_LUNCH_CHOICES := \
twrp_spes-user \
twrp_spes-userdebug \
twrp_spes-eng
twrp_fog-user \
twrp_fog-userdebug \
twrp_fog-eng
8 changes: 4 additions & 4 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# SPDX-License-Identifier: Apache-2.0
#

DEVICE_PATH := device/xiaomi/spes
DEVICE_PATH := device/xiaomi/fog

# APEX
DEXPREOPT_GENERATE_APEX_IMAGE := true
Expand All @@ -23,7 +23,7 @@ TARGET_2ND_CPU_ABI2 := armeabi
TARGET_2ND_CPU_VARIANT := generic

# Assertation
TARGET_OTA_ASSERT_DEVICE := spes,spesn
TARGET_OTA_ASSERT_DEVICE := fog,rain,wind

# A/B
AB_OTA_UPDATER := true
Expand Down Expand Up @@ -95,8 +95,8 @@ BOARD_KERNEL_CMDLINE += swiotlb=2048
TARGET_FORCE_PREBUILT_KERNEL := true
TARGET_KERNEL_ARCH := arm64
TARGET_KERNEL_CONFIG := vendor/bengal_defconfig
TARGET_KERNEL_HEADERS := kernel/xiaomi/spes
TARGET_KERNEL_SOURCE := kernel/xiaomi/spes
TARGET_KERNEL_HEADERS := kernel/xiaomi/fog
TARGET_KERNEL_SOURCE := kernel/xiaomi/fog

# Metadata
BOARD_BUILD_SYSTEM_ROOT_IMAGE := false
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# device_xiaomi_spes-TWRP
## Device config for TWRP Redmi 10C ( fog )
2 changes: 1 addition & 1 deletion bootctrl/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ cc_library_shared {
name: "[email protected]",
stem: "[email protected]",
defaults: ["[email protected]_defaults"],
static_libs: ["libgptutils.spes"],
static_libs: ["libgptutils.fog"],
}
2 changes: 1 addition & 1 deletion gpt-utils/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


cc_library {
name: "libgptutils.spes",
name: "libgptutils.fog",
vendor: true,
recovery_available: true,
shared_libs: [
Expand Down
Binary file modified prebuilt/dtb.img
Binary file not shown.
Binary file modified prebuilt/dtbo.img
Binary file not shown.
Binary file modified prebuilt/kernel
Binary file not shown.
Binary file modified recovery/root/system/bin/qseecomd
Binary file not shown.
42 changes: 21 additions & 21 deletions recovery/root/system/bin/variant-script.sh
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
#!/system/bin/sh
# This script is needed to automatically set device props.

load_spes()
load_fog()
{
resetprop "ro.product.model" "2201117TG"
resetprop "ro.product.vendor.model" "2201117TG"
resetprop "ro.product.name" "spes"
resetprop "ro.build.product" "spes"
resetprop "ro.product.device" "spes"
resetprop "ro.product.system.device" "spes"
resetprop "ro.product.vendor.device" "spes"
resetprop "ro.vendor.product.device" "spes"
resetprop "ro.product.model" "220333QAG"
resetprop "ro.product.vendor.model" "220333QAG"
resetprop "ro.product.name" "fog"
resetprop "ro.build.product" "fog"
resetprop "ro.product.device" "fog"
resetprop "ro.product.system.device" "fog"
resetprop "ro.product.vendor.device" "fog"
resetprop "ro.vendor.product.device" "fog"
}

load_spesn()
load_rain()
{
resetprop "ro.product.model" "2201117TY"
resetprop "ro.product.vendor.model" "2201117TY"
resetprop "ro.product.name" "spesn"
resetprop "ro.build.product" "spesn"
resetprop "ro.product.device" "spesn"
resetprop "ro.product.system.device" "spesn"
resetprop "ro.product.vendor.device" "spesn"
resetprop "ro.vendor.product.device" "spesn"
resetprop "ro.product.model" "220333QNY"
resetprop "ro.product.vendor.model" "220333QNY"
resetprop "ro.product.name" "rain"
resetprop "ro.build.product" "rain"
resetprop "ro.product.device" "rain"
resetprop "ro.product.system.device" "rain"
resetprop "ro.product.vendor.device" "rain"
resetprop "ro.vendor.product.device" "rain"
}

variant=$(getprop ro.boot.hwc)
echo $variant

case $variant in
"GLOBAL")
load_spes
load_fog
;;
"EUROPE")
load_spesn
load_rain
;;
*)
load_spes
load_fog
;;
esac

Expand Down
57 changes: 6 additions & 51 deletions recovery/root/vendor/etc/vintf/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,6 @@
</interface>
<fqname>@1.0::IGatekeeper/default</fqname>
</hal>
<hal format="hidl">
<name>android.hardware.ir</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IConsumerIr</name>
<instance>default</instance>
</interface>
<fqname>@1.0::IConsumerIr/default</fqname>
</hal>
<hal format="hidl">
<name>android.hardware.keymaster</name>
<transport>hwbinder</transport>
Expand Down Expand Up @@ -186,16 +176,6 @@
</interface>
<fqname>@1.0::IOffloadControl/default</fqname>
</hal>
<hal format="hidl">
<name>com.dsi.ant</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IAnt</name>
<instance>default</instance>
</interface>
<fqname>@1.0::IAnt/default</fqname>
</hal>
<hal format="hidl">
<name>com.fingerprints.extension</name>
<transport>hwbinder</transport>
Expand Down Expand Up @@ -246,21 +226,6 @@
</interface>
<fqname>@2.3::IUceService/com.qualcomm.qti.uceservice</fqname>
</hal>
<hal format="hidl">
<name>vendor.goodix.hardware.biometrics.fingerprint</name>
<transport>hwbinder</transport>
<version>2.1</version>
<interface>
<name>IGoodixFingerprintDaemon</name>
<instance>default</instance>
</interface>
<interface>
<name>IGoodixFingerprintDaemonExt</name>
<instance>default</instance>
</interface>
<fqname>@2.1::IGoodixFingerprintDaemon/default</fqname>
<fqname>@2.1::IGoodixFingerprintDaemonExt/default</fqname>
</hal>
<hal format="hidl">
<name>vendor.qti.data.factory</name>
<transport>hwbinder</transport>
Expand Down Expand Up @@ -682,34 +647,24 @@
<fqname>@1.0::IQspmhal/default</fqname>
</hal>
<hal format="hidl">
<name>vendor.xiaomi.hardware.displayfeature</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IDisplayFeature</name>
<instance>default</instance>
</interface>
<fqname>@1.0::IDisplayFeature/default</fqname>
</hal>
<hal format="hidl">
<name>vendor.xiaomi.hardware.fingerprintextension</name>
<name>vendor.silead.hardware.fingerprintext</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IXiaomiFingerprint</name>
<name>ISileadFingerprint</name>
<instance>default</instance>
</interface>
<fqname>@1.0::IXiaomiFingerprint/default</fqname>
<fqname>@1.0::ISileadFingerprint/default</fqname>
</hal>
<hal format="hidl">
<name>vendor.xiaomi.hw.touchfeature</name>
<name>vendor.xiaomi.hardware.displayfeature</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>ITouchFeature</name>
<name>IDisplayFeature</name>
<instance>default</instance>
</interface>
<fqname>@1.0::ITouchFeature/default</fqname>
<fqname>@1.0::IDisplayFeature/default</fqname>
</hal>
<sepolicy>
<version>30.0</version>
Expand Down
Binary file added recovery/root/vendor/lib64/[email protected]
Binary file not shown.
4 changes: 2 additions & 2 deletions system.prop
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ro.display.series=Redmi Note 11
ro.product.board=spes
ro.display.series=Redmi 10C
ro.product.board=fog
ro.board.platform=bengal
sys.usb.controller=4e00000.dwc3
sys.usb.rndis.func.name=rndis_bam
Expand Down
2 changes: 1 addition & 1 deletion twrp.dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"remote": "github",
"repository": "boedhack99/kernel_xiaomi_spes",
"target_path": "kernel/xiaomi/spes",
"target_path": "kernel/xiaomi/fog",
"revision": "12"
}
]
10 changes: 5 additions & 5 deletions twrp_spes.mk → twrp_fog.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)

# Inherit from spes/spesn device
$(call inherit-product, device/xiaomi/spes/device.mk)
# Inherit from fog device
$(call inherit-product, device/xiaomi/fog/device.mk)

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

# Product Specifics
PRODUCT_NAME := twrp_spes
PRODUCT_DEVICE := spes
PRODUCT_NAME := twrp_fog
PRODUCT_DEVICE := fog
PRODUCT_BRAND := Redmi
PRODUCT_MODEL := Redmi Note 11
PRODUCT_MODEL := Redmi 10C
PRODUCT_MANUFACTURER := Xiaomi

PRODUCT_GMS_CLIENTID_BASE := android-xiaomi

0 comments on commit cb0ec5f

Please sign in to comment.