Skip to content

Latest commit

 

History

History
219 lines (154 loc) · 7.08 KB

huaweip10.org

File metadata and controls

219 lines (154 loc) · 7.08 KB

Huawei P10 Notes, information for custom ROM dev

This file contains my notes researching the posibilities to produce a “fresh” custom ROM for the Huawei P10 device.

Huawei P10 Specs

Announced
2017, February
Models
VTR-L29, VTR-AL00, VTR-TL00, VTR-L09
System chip
HiSilicon Kirin 960
Processor
Octa-core, 2400 MHz, ARM Cortex-A73 and ARM Cortex-A53, 64-bit
  • 4x Cortex-A73@2.4 GHz + 4x Cortex-A53@1.8 GHz
GPU
Mali-G71 MP8
Memory
LPDDR4
  • Internal: 32GB 4GB RAM, 64GB 4GB RAM eMMC 5.1, UFS 2.0, or UFS 2.1
  • Card slot: microSDXC (uses shared SIM slot)
Modem
LTE Cat 12/13 600 Mbit/s or 150 Mbit/s
Coprocessor
i6 sensing coprocessor
ISP
Improved dual 14-bit ISP 1000 Mp/s with standalone digital signal processor (DSP)
Audio
Hi6403
Video
4K video decoder@H.265
Voice
Yueyin 2.0, including HD voice+, Voice over LTE (VoLTE), and Voice over WiFi (VoWiFi)
Security
inSE 1.0
Camera
Dual 12 MP, f/2.2, 28mm (wide), PDAF, Laser AF, OIS 20 MP B/W, f/1.8, 27mm (wide), 1/2.7”
  • Features: Leica optics, dual-LED dual-tone flash, HDR, panorama
  • Video: 4K@30fps, 1080p@60fps
Communicaiton
  • WLAN: Wi-Fi 802.11 a/b/g/n/ac, dual-band, DLNA, Wi-Fi Direct
  • Bluetooth: 4.2, A2DP, LE, aptX
  • Positioning: GPS, GLONASS, BDS, GALILEO
  • NFC: Yes
Display
IPS-NEO LCD
  • Size: 5.1 inches, 71.7 cm2 (~71.2% screen-to-body ratio)
  • Resolution: 1080 x 1920 pixels, 16:9 ratio (~432 ppi density)
OS
Android (9.0 Pie, 8.0 Oreo, 7.0 Nougat), Huawei Emotion UI

The Cortex-A73 is also found in a wide range of mid-range chipsets such as the Samsung Exynos 7885, MediaTek Helio P series, and other HiSilicon Kirin models.

Similar phones

With the same system chip:

  • Huawei Honor 8 Pro
  • Huawei Honor 9
  • Huawei Honor V9
  • Huawei Mate 9
  • Huawei Mate 9 Porsche Design
  • Huawei Mate 9 Pro
  • Huawei P10
  • Huawei P10 Plus

But not the same gpu:

  • Huawei nova 2s - Mali T830 MP2

ROM/OS Versions

GSI

Devices upgraded to Android 9 from an earlier version might or might not support GSIs.

Check support, downloads, how to install: https://developer.android.com/topic/generic-system-image

Check

Treble fully supported!

[vendor]
additional.namespaces = system,vndk

namespace.default.isolated = true
namespace.default.visible = true

cpu abi: arm64-v8a

Current kernel:

Linux localhost 4.9.148 #1 SMP PREEMPT Wed Jun 23 13:51:51 CST 2021 aarch64

Workplan

Check treble compatibility

Unlock Bootloader on device

  • brute force method isn’t working on my device, continue with potatonv test point method
  • PotatoNV worked

Get stock firmware for recovery

get vendor update for actual device software version
extract vendor images from update
  • extracted img files from vendor update package

Find, develop a good working TWRP (or other recovery)

generate device tree

Choose custom rom candidates

Check old AOSP?, LineageOS? versions for support
  • OpenKirin was closed source :(
    • but found some repos on github :)
  • seeing some old (LineageOS based) repos on github
  • fresh kernel announcement on XDA
  • LineageOS 16 was Android 9 based

Random notes

Using windows

  • moving the WSL2 Linux image from the default location (c: drive)
    • export into tar, shutdown, unregister, import tar on new loc
  • on WSL2 use the ext4 filesystem, not the mounted drives (/mnt/*)
  • Linux file system access from Windwos: \wsl$

Links

Telegram

TWRP

OpenKirin project telegram chanels

Unlock

Rooting

Firmware

Hardware

hikey kernel
https://cs.android.com/android/platform/superproject/main/+/main:device/linaro/

Apps, software

Interesting github repos

Recovery, TWRP

Custom rom install

Other