- Device Name: Honor 50 SE
- Model: JLH-AN00
- Platform: MediaTek MT6877 (Dimensity 900)
- CPU: 6x Cortex-A55 @ 2.0GHz + 2x Cortex-A76 @ 2.0GHz
- GPU: Mali-G57
- Display: 6.67" FHD+ (2400x1080) 120Hz LCD
- Storage: UFS
- RAM: 8GB
- Battery: 4000mAh
- Basic TWRP support
- Touchscreen support (NT36672)
- Display support (DSI LCD)
- USB debugging (MTP/ADB)
- Backup/restore functionality
- FBE (File-Based Encryption) support
- F2FS filesystem support
Before building, you need to place the following prebuilt files:
prebuilt/
├── kernel # Prebuilt kernel Image.gz-dtb
└── dtb/
└── mt6877-jlh-an00.dtb # Device tree blob
-
Extract from stock boot.img:
- Use
magiskbootor similar tools to extract from stock ROM - Extract kernel and dtb from boot.img
- Use
-
Build from source:
- Use the provided kernel source from Honor
- Compile with
jhlddefconfig
- Android 11+ source tree
- TWRP source tree
- Proper build environment
-
Clone TWRP source:
git clone https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-11 cd platform_manifest_twrp_aosp repo sync -
Copy device tree:
cp -r twrp_jlh_an00 device/honor/jlhs
-
Place prebuilt files:
mkdir -p device/honor/jlhs/prebuilt/dtb # Copy your prebuilt kernel and dtb here -
Build:
source build/envsetup.sh lunch twrp_jlhs-eng mka recoveryimage -
Output:
- Recovery image:
out/target/product/jlhs/recovery.img
- Recovery image:
fastboot flash recovery recovery.img
fastboot reboot recovery- Download SP Flash Tool
- Load scatter file from stock ROM
- Load recovery.img to recovery partition
- Flash
/dev/block/by-name/boot (64MB) - Boot kernel
/dev/block/by-name/recovery (64MB) - Recovery kernel
/dev/block/by-name/dtbo (4MB) - Device tree overlay
/dev/block/by-name/super (8.5GB) - Super partition (dynamic partitions)
/dev/block/by-name/userdata (110GB+) - User data
/dev/block/by-name/metadata (16MB) - Metadata for FBE
/dev/block/by-name/persist (8MB) - Persistent data
/dev/block/by-name/nvdata (32MB) - Calibration data
- SELinux may not be enforcing (set to permissive)
- Some TWRP features may not work properly
- OTA updates may fail
- Decryption may not work for all variants
- Check kernel configuration
- Verify DTB matches device variant
- Check ramdisk files
- Verify touchscreen driver is included
- Check GPIO and interrupt configurations
- Ensure proper DTB bindings
- Check display resolution in BoardConfig.mk
- Verify framebuffer pixel format
- Check DSI configuration
- Ensure proper keymaster version
- Check FBE configuration
- Verify security patch level
This device tree is based on:
- Honor 50 SE (JLH-AN00) kernel source
- MediaTek MT6877 reference design
- Common TWRP MediaTek device trees
- Honor for releasing kernel source
- TWRP Team for recovery implementation
- MediaTek for platform documentation
This device tree is provided as-is for educational purposes. Use at your own risk. No warranty is provided.
For issues and questions:
- Check XDA Developers forum
- Review kernel logs (dmesg)
- Verify partition layout with
cat /proc/partitions
- This is a basic device tree - additional features may require further development
- Bootloader unlocking is required for fastboot flashing
- Always backup your data before flashing recovery
- Stock recovery flashing may cause boot issues if not done correctly