# p30test1 **Repository Path**: cuoxianxu/p30test1 ## Basic Information - **Project Name**: p30test1 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-07-16 - **Last Updated**: 2026-07-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ```markdown # TWRP Device Tree for HVAHW P30 – Unisoc UMS9230 This repository provides the device tree and build instructions for **TWRP (Team Win Recovery Project)** on the **HVAHW P30** smartphone powered by the **Unisoc UMS9230** SoC. > **✅ Status: Fully Functional** > ADB, MTP, FBE decryption, backup/restore, flashing, and touch input are all confirmed working. > A Unisoc‑specific patch for the TWRP source is required (provided in this tree) – see the build instructions below. --- ## Device Specifications | Item | Details | |------|---------| | **Model** | HVAHW P30 | | **SoC / CPU** | Unisoc UMS9230 | | **CPU Architecture** | ARM64‑v8A (Octa‑core) | | **Android Version** | 13 | --- ## About This Tree This tree contains: - Board configuration for TWRP - Partition layout (`fstab`) - Recovery UI settings - Build scripts for the UMS9230 platform **Current Status:** - TWRP builds successfully with the provided patches. - All core recovery features are **fully functional** without any kernel panic or integrity issues. **Working Features:** - ✅ADB (sideload, shell, logcat) - ✅MTP (file transfer between PC and device) - ✅`/data` partition mount and decryption (FBE supported) - ✅Backup / Restore (including system, data, boot, etc.) - ✅Flashing ZIP and IMG files - ✅Touchscreen input - ✅Brightness control --- ## Prerequisites - **OS:** 64‑bit Linux (Ubuntu 18.04+) - **Disk space:** ≥30 GB - **RAM:** ≥4 GB (8+ GB recommended) - **Packages** (install with `sudo apt install ...`): ``` git-core gnupg flex bison gperf zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip openjdk-8-jdk build-essential ``` Enable ccache (optional but recommended): ```bash export USE_CCACHE=1 ccache -M 50G # adjust size as needed ``` --- ## Build Instructions Follow these steps to build TWRP for this device: 1. **Set up the TWRP build environment** (use the **twrp-12.1** branch): ```bash repo init -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-12.1 repo sync ``` 2. **Clone this device tree** into `device/HVAHW/P30`: ```bash git clone https://github.com/rtyutechstudio/android_device-HVAHW-P30-twrp ./device/HVAHW/P30 ``` (Adjust the clone URL to your actual repository if different.) 3. **Apply the Unisoc‑specific TWRP source patch** (required for proper DRM and `/data` decryption on UMS9230): ```bash cd ./device/HVAHW/P30/prebuilt/sourcecode chmod +x patch.sh recovery.sh ./patch.sh ``` This script will: - Backup the original TWRP source files. - Apply necessary modifications to the TWRP codebase to support Unisoc DRM and FBE. - After the build, you will restore the original files with `./recovery.sh` (see step 6). 4. **Set up the build environment** and choose the lunch target: ```bash source ./build/envsetup.sh lunch twrp_P30-eng ``` (Ensure your BoardConfig.mk defines `TARGET_DEVICE` as `P30` or adjust accordingly.) 5. **Build the recovery image**: ```bash mka recoveryimage ``` The output image will be located at `out/target/product/P30/recovery.img`. 6. **After the build completes**, restore the original TWRP source files: ```bash cd ./device/HVAHW/P30/prebuilt/sourcecode ./recovery.sh ``` 7. **Flash the recovery**: ```bash fastboot flash recovery recovery.img ``` Reboot to recovery and enjoy! --- ## Kernel and DRM Notes This device does **not** require a kernel integrity bypass. All kernel checks are already handled by the device tree and the TWRP source patches. The patch script modifies TWRP's DRM‑related components to ensure proper communication with the Unisoc graphics driver, which is essential for FBE decryption and UI rendering. --- ## Credits - TeamWin for TWRP - @rtyutechstudio - The open‑source community - Special thanks to those who contributed to the Unisoc‑specific patches --- ## License This device tree is licensed under the Apache License, Version 2.0. --- **Use this software at your own risk. The authors are not responsible for bricked devices or data loss.** ```