eqs -> genevn

This commit is contained in:
moto 2023-09-03 08:36:21 -04:00
parent 267fc144d5
commit f80daedec9
305 changed files with 1496 additions and 166 deletions

View file

@ -7,6 +7,6 @@
LOCAL_PATH := $(call my-dir) LOCAL_PATH := $(call my-dir)
ifeq ($(TARGET_DEVICE),eqs) ifeq ($(TARGET_DEVICE),genevn)
include $(call all-subdir-makefiles,$(LOCAL_PATH)) include $(call all-subdir-makefiles,$(LOCAL_PATH))
endif endif

View file

@ -6,9 +6,9 @@
# #
PRODUCT_MAKEFILES := \ PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/twrp_eqs.mk $(LOCAL_DIR)/twrp_genevn.mk
COMMON_LUNCH_CHOICES := \ COMMON_LUNCH_CHOICES := \
twrp_eqs-user \ twrp_genevn-user \
twrp_eqs-userdebug \ twrp_genevn-userdebug \
twrp_eqs-eng twrp_genevn-eng

View file

@ -5,7 +5,12 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
DEVICE_PATH := device/motorola/eqs DEVICE_PATH := device/motorola/genevn
DEVICE_PREBUILT_PATH := device/motorola/genevn/prebuilt
BUILD_BROKEN_DUP_RULES := true
BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true
BUILD_BROKEN_MISSING_REQUIRED_MODULES := true
# For building with minimal manifest # For building with minimal manifest
ALLOW_MISSING_DEPENDENCIES := true ALLOW_MISSING_DEPENDENCIES := true
@ -30,7 +35,7 @@ AB_OTA_PARTITIONS += \
TARGET_ARCH := arm64 TARGET_ARCH := arm64
TARGET_ARCH_VARIANT := armv8-2a-dotprod TARGET_ARCH_VARIANT := armv8-2a-dotprod
TARGET_CPU_ABI := arm64-v8a TARGET_CPU_ABI := arm64-v8a
TARGET_CPU_ABI2 := TARGET_CPU_ABI2 :=
TARGET_CPU_VARIANT := generic TARGET_CPU_VARIANT := generic
TARGET_CPU_VARIANT_RUNTIME := kryo300 TARGET_CPU_VARIANT_RUNTIME := kryo300
@ -49,19 +54,35 @@ TARGET_USES_REMOTEPROC := true
# Display # Display
TARGET_SCREEN_DENSITY := 400 TARGET_SCREEN_DENSITY := 400
# Init
#TARGET_INIT_VENDOR_LIB := //$(DEVICE_PATH):libinit_eqs
#TARGET_RECOVERY_DEVICE_MODULES := libinit_eqs
# Kernel # Kernel
TARGET_PREBUILT_KERNEL := $(DEVICE_PATH)/prebuilt/kernel BOARD_BOOT_HEADER_VERSION := 4
BOARD_KERNEL_IMAGE_NAME := kernel
BOARD_BOOTIMG_HEADER_VERSION := 4
BOARD_KERNEL_BASE := 0x00000000 BOARD_KERNEL_BASE := 0x00000000
BOARD_KERNEL_CMDLINE += printk.devkmsg=on firmware_class.path=/data/vendor/param/firmware
BOARD_BOOTCONFIG += \
androidboot.hardware=qcom \
androidboot.memcg=1 \
androidboot.usbcontroller=a600000.dwc3
BOARD_KERNEL_IMAGE_NAME := Image
BOARD_KERNEL_PAGESIZE := 4096 BOARD_KERNEL_PAGESIZE := 4096
BOARD_KERNEL_SEPARATED_DTBO := true
BOARD_MKBOOTIMG_ARGS += --dtb $(DEVICE_PREBUILT_PATH)/dtb.img
BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION)
BOARD_INCLUDE_DTB_IN_BOOTIMG := true
TARGET_KERNEL_ARCH := arm64
TARGET_KERNEL_HEADER_ARCH := arm64
BOARD_RAMDISK_USE_LZ4 := true BOARD_RAMDISK_USE_LZ4 := true
TARGET_PREBUILT_KERNEL := $(DEVICE_PREBUILT_PATH)/kernel
TARGET_PREBUILT_DTB := $(DEVICE_PREBUILT_PATH)/dtb.img
# Copy DTB
PRODUCT_COPY_FILES += \
$(TARGET_PREBUILT_DTB):dtb.img
TARGET_FORCE_PREBUILT_KERNEL := true
BOARD_USES_FULL_RECOVERY_IMAGE := true
BOARD_EXCLUDE_KERNEL_FROM_RECOVERY_IMAGE := true BOARD_EXCLUDE_KERNEL_FROM_RECOVERY_IMAGE := true
BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOTIMG_HEADER_VERSION) BOARD_USES_GENERIC_KERNEL_IMAGE := true
# Partitions # Partitions
BOARD_FLASH_BLOCK_SIZE := 262144 # (BOARD_KERNEL_PAGESIZE * 64) BOARD_FLASH_BLOCK_SIZE := 262144 # (BOARD_KERNEL_PAGESIZE * 64)
@ -80,9 +101,9 @@ BOARD_USES_METADATA_PARTITION := true
TARGET_COPY_OUT_VENDOR := vendor TARGET_COPY_OUT_VENDOR := vendor
# Platform # Platform
TARGET_BOARD_PLATFORM := taro TARGET_BOARD_PLATFORM := parrot
TARGET_BOOTLOADER_BOARD_NAME := taro TARGET_BOOTLOADER_BOARD_NAME := parrot
QCOM_BOARD_PLATFORMS += taro QCOM_BOARD_PLATFORMS += parrot
# Properties # Properties
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop
@ -136,7 +157,6 @@ TW_INCLUDE_LIBRESETPROP := true
TW_INCLUDE_NTFS_3G := true TW_INCLUDE_NTFS_3G := true
TW_BACKUP_EXCLUSIONS := /data/fonts TW_BACKUP_EXCLUSIONS := /data/fonts
TW_NO_SCREEN_BLANK := true TW_NO_SCREEN_BLANK := true
TW_BRIGHTNESS_PATH := "/sys/class/backlight/panel0-backlight/brightness"
TW_MAX_BRIGHTNESS := 3515 TW_MAX_BRIGHTNESS := 3515
TW_DEFAULT_BRIGHTNESS := 1024 TW_DEFAULT_BRIGHTNESS := 1024
TW_FRAMERATE := 60 TW_FRAMERATE := 60

View file

@ -1,24 +1,24 @@
Device configuration for Edge 30 Ultra / Edge X30 Pro (codenamed "eqs") Device configuration for Moto G Stylus 5G (2023) (codenamed "genevn")
========================================= =========================================
The Motorola Edge 30 Ultra / Edge X30 Pro (codenamed _"eqs"_) is a flagship smartphone from Motorola mobility announced in December 2021. The Motorola Moto G Stylus 5G (2023) (codenamed _"genevn"_) is a mid-range smartphone from Motorola Mobility announced in May 2023.
## Device specifications ## Device specifications
Basic | Spec Sheet Basic | Spec Sheet
-------:|:------------------------- -------:|:-------------------------
SoC | Qualcomm SM8475 Snapdragon 8+ Gen 1 (4 nm) SoC | Qualcomm SM6450 Snapdragon 6 Gen 1 (4 nm)
CPU | Octa-core (1x3.19 GHz Cortex-X2 & 3x2.75 GHz Cortex-A710 & 4x1.8GHz Cortex-A510) CPU | Octa-core (4x2.20 GHz Cortex-A78 & 4x1.8GHz Cortex-A55)
GPU | Adreno 730 GPU | Adreno 710
Memory | 8/12 GB RAM (LPDDR5) Memory | 6 GB RAM (LPDDR4X)
Shipped Android Version | 12.0, My UX 3.0 (Global) / MY UI 3.0 (China) Shipped Android Version | 13.0, My UX 3.0 (Global)
Storage | 128/256/512 GB (UFS 3.1) Storage | 128 GB | 256 GB (UFS 3.1)
Battery | Non-removable Li-Po 4610 mAh battery Battery | Non-removable Li-Po 5000 mAh battery
Display | 2400 x 1080 pixels, 6.67 inches (~403 ppi density) Display | LTPS, 120 Hz, 2400 x 1080 pixels, 6.67 inches (~403 ppi density)
Camera | 200MP (Main) + 50MP (Ultra-wide) + 12MP (Telephoto) + 60MP (Selfie) Camera | 50MP (Wide) + 8MP (Ultra-wide) + 16MP (Selfie)
## Device picture ## Device picture
![Motorola Edge 30 Ultra / Edge X30 Pro](https://fdn2.gsmarena.com/vv/pics/motorola/motorola-edge-30-ultra-3.jpg) ![Motorola Moto G Stylus 5G (2023)](https://fdn2.gsmarena.com/vv/pics/motorola/motorola-moto-g-stylus-5g-2023-1.jpg)
# Status # Status
Current state of features: Current state of features:
@ -47,7 +47,7 @@ Current state of features:
```bash ```bash
export ALLOW_MISSING_DEPENDENCIES=true export ALLOW_MISSING_DEPENDENCIES=true
source build/envsetup.sh source build/envsetup.sh
lunch twrp_eqs-eng lunch twrp_genevn-eng
mka recoveryimage -j$(nproc --all) mka recoveryimage -j$(nproc --all)
``` ```

View file

@ -1,19 +0,0 @@
//
// Copyright (C) 2022 Team Win Recovery Project
//
// SPDX-License-Identifier: Apache-2.0
//
cc_library_static {
name: "libinit_eqs",
recovery_available: true,
srcs: ["init_eqs.cpp"],
whole_static_libs: ["libbase"],
include_dirs: [
"system/core/init",
"system/libbase/include"
],
shared_libs: [
"libbase",
],
}

View file

@ -1,84 +0,0 @@
//
// Copyright (C) 2022 Team Win Recovery Project
//
// SPDX-License-Identifier: Apache-2.0
//
#define _REALLY_INCLUDE_SYS__SYSTEM_PROPERTIES_H_
#include <sys/_system_properties.h>
#include <sys/resource.h>
#include <android-base/properties.h>
#include <android-base/logging.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include "property_service.h"
#include "vendor_init.h"
using android::base::GetProperty;
void property_override(const std::string& name, const std::string& value)
{
size_t valuelen = value.size();
prop_info* pi = (prop_info*) __system_property_find(name.c_str());
if (pi != nullptr) {
__system_property_update(pi, value.c_str(), valuelen);
}
else {
int rc = __system_property_add(name.c_str(), name.size(), value.c_str(), valuelen);
if (rc < 0) {
LOG(ERROR) << "property_set(\"" << name << "\", \"" << value << "\") failed: "
<< "__system_property_add failed";
}
}
}
void load_device_properties(const std::string& description, const std::string& fingerprint, const std::string& device, const std::string& model) {
property_override("ro.build.description", description);
property_override("ro.build.fingerprint", fingerprint);
property_override("ro.build.product", device);
property_override("ro.product.build.fingerprint", fingerprint);
property_override("ro.product.device", device);
property_override("ro.product.name", device);
property_override("ro.product.model", model);
property_override("ro.product.odm.build.fingerprint", fingerprint);
property_override("ro.product.odm.device", device);
property_override("ro.product.odm.name", device);
property_override("ro.product.odm.model", model);
property_override("ro.product.odm_dlkm.build.fingerprint", fingerprint);
property_override("ro.product.odm_dlkm.device", device);
property_override("ro.product.odm_dlkm.name", device);
property_override("ro.product.odm_dlkm.model", model);
property_override("ro.product.system.build.fingerprint", fingerprint);
property_override("ro.product.system.device", device);
property_override("ro.product.system.name", device);
property_override("ro.product.system.model", model);
property_override("ro.product.vendor.build.fingerprint", fingerprint);
property_override("ro.product.vendor.device", device);
property_override("ro.product.vendor.name", device);
property_override("ro.product.vendor.model", model);
property_override("ro.product.vendor_dlkm.build.fingerprint", fingerprint);
property_override("ro.product.vendor_dlkm.device", device);
property_override("ro.product.vendor_dlkm.name", device);
property_override("ro.product.vendor_dlkm.model", model);
property_override("ro.product.product.build.fingerprint", fingerprint);
property_override("ro.product.product.device", device);
property_override("ro.product.product.name", device);
property_override("ro.product.product.model", model);
property_override("ro.product.system_ext.build.fingerprint", fingerprint);
property_override("ro.product.system_ext.device", device);
property_override("ro.product.system_ext.name", device);
property_override("ro.product.system_ext.model", model);
}
void vendor_load_properties() {
const std::string sku = GetProperty("ro.boot.hardware.sku", "");
if (sku == "XT2201-1") {
load_device_properties("eqs-user 12 S3SHS32.12-42-11-5 bf0951", "motorola/eqs/eqs:12/S3SHS32.12-42-11-5/bf0951:user/release-keys", "eqs", "Motorola Edge 30 Pro");
}
}

BIN
prebuilt/dtb.img Normal file

Binary file not shown.

Binary file not shown.

View file

@ -77,13 +77,11 @@ on boot
service set_permissive /system/bin/set_permissive.sh service set_permissive /system/bin/set_permissive.sh
user root user root
group root group root
disabled
oneshot oneshot
seclabel u:r:recovery:s0 seclabel u:r:recovery:s0
service runatboot /system/bin/runatboot.sh service runatboot /system/bin/runatboot.sh
user root user root
group root group root
disabled
oneshot oneshot
seclabel u:r:recovery:s0 seclabel u:r:recovery:s0

View file

@ -1,27 +1,15 @@
#!/system/bin/sh #!/system/bin/sh
mount /vendor_dlkm
mount /vendor
modprobe -d /vendor/lib/modules /vendor/lib/modules/nova_0flash_mmi.ko
sleep 1
echo 1 > /sys/class/touchscreen/primary/forcereflash
echo novatek_ts-csot-NT36672C-2302240D-605b-genevn.bin > /sys/class/touchscreen/primary/doreflash
echo 0 > /sys/class/touchscreen/primary/forcereflash
is_fastboot=$(getprop init.svc.fastbootd) is_fastboot=$(getprop init.svc.fastbootd)
if [ "$is_fastboot" != "running" ]; then if [ "$is_fastboot" != "running" ]; then
mount /vendor_dlkm echo "Fastboot is running"
insmod /vendor_dlkm/lib/modules/msm_drm.ko
insmod /vendor_dlkm/lib/modules/mmi_annotate.ko
insmod /vendor_dlkm/lib/modules/mmi_info.ko
insmod /vendor_dlkm/lib/modules/mmi_relay.ko
insmod /vendor_dlkm/lib/modules/mmi_charger.ko
insmod /vendor_dlkm/lib/modules/mmi_sys_temp.ko
insmod /vendor_dlkm/lib/modules/sensors_class.ko
insmod /vendor_dlkm/lib/modules/touchscreen_mmi.ko
insmod /vendor_dlkm/lib/modules/stmicro_mmi.ko
insmod /vendor_dlkm/lib/modules/goodix_brl_mmi.ko
insmod /vendor_dlkm/lib/modules/sx937x_sar.ko
insmod /vendor_dlkm/lib/modules/bm_adsp_ulog.ko
insmod /vendor_dlkm/lib/modules/qti_glink_charger.ko
insmod /vendor_dlkm/lib/modules/qpnp_adaptive_charge.ko
insmod /vendor_dlkm/lib/modules/q6_pdr_dlkm.ko
insmod /vendor_dlkm/lib/modules/q6_notifier_dlkm.ko
insmod /vendor_dlkm/lib/modules/snd_event_dlkm.ko
insmod /vendor_dlkm/lib/modules/gpr_dlkm.ko
insmod /vendor_dlkm/lib/modules/spf_core_dlkm.ko
insmod /vendor_dlkm/lib/modules/adsp_loader_dlkm.ko
fi fi
mkdir /firmware mkdir /firmware

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/arm_smmu.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/bam_dma.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/bcl_pmic5.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/bcl_soc.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/boot_stats.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/bt_fm_slim.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/btpower.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/bwmon.ko vendored Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/cdsprm.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/cfg80211.ko vendored Executable file

Binary file not shown.

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/clk-dummy.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/clk-qcom.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/clk-rpmh.ko vendored Executable file

Binary file not shown.

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/cmd-db.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/cnss2.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/cnss_nl.ko vendored Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/cnss_utils.ko vendored Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/coresight.ko vendored Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/cqhci.ko vendored Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/dcc_v2.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/dcvs_fp.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/ddr_cdev.ko vendored Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/dwc3-msm.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/ehset.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/eud.ko vendored Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/gcc-parrot.ko vendored Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/gh_arm_drv.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/gh_ctrl.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/gh_dbl.ko vendored Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/gh_msgq.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/gh_rm_drv.ko vendored Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/glink_pkt.ko vendored Executable file

Binary file not shown.

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/gpi.ko vendored Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/hvc_gunyah.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/hwkm.ko vendored Executable file

Binary file not shown.

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/i2c-dev.ko vendored Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/icc-debug.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/icc-rpmh.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/icc-test.ko vendored Executable file

Binary file not shown.

BIN
recovery/root/vendor/lib/modules/icnss2.ko vendored Executable file

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show more