#
# Copyright (C) 2024 The Android Open Source Project
# Copyright (C) 2024 SebaUbuntu's TWRP device tree generator
#
# SPDX-License-Identifier: Apache-2.0
#
Component | Real Specs |
---|---|
CPU | MTK6735 (ARM-A53, 1.3GHz clock, 4 cores)1 |
GPU | Mali-T7202 |
eMMC | Samsung Q316BB, 14.68GB Usable (15.02GB Real) 3 |
RAM | 1.5GB (1.3GB Usable) 4 |
Camera(s) | 2 |
Back Camera | GC2385 GalaxyCore? 2MP, 1/5 Inch, CMOS5 |
Front Camera | GC0339/OV6930?, <1MP. 1/10 Inch, Unknown5 |
Android Version | Android 76 |
Screen | JD9365DA-H3 800x1280 TFT LCD (16.7M Colors)5 |
Compiled using TWRP Minimal branch twrp-7.1
built using WSL2 (Ubuntu), used 10GB of space
installed with Arch Linux VM, used mtkclient 1.63-2
"original" recovery.img
and boot.img
sourced with:
sudo mtk r recovery,boot recovery.img,boot.img
- Create python2 env (for lunch compatibility) and install dependencies
$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ ln -s /usr/bin/python2 ~/bin/python
sudo apt update && sudo apt full-upgrade
sudo apt install git ccache automake lzop bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 g++-multilib python-networkx libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev squashfs-tools pngcrush schedtool dpkg-dev liblz4-tool make optipng openjdk-8-jdk repo
- Init the
twrp-7.1
branch
$ mkdir twrp
$ cd twrp
$ repo init --depth=1 -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git -b twrp-7.1
$ repo sync
- Clone the device tree
$ mkdir device && mkdir device/alps && mkdir device/alps/K1006R9
$ cd device/alps/K1006R9
$ git clone https://github.com/clanec15/Android_Device_ALPS_Pro-14.git
$ mv Android_Device_ALPS_Pro-14/* .
$ rm -rf Android_Device_Alps_Pro-14/
$ cd .. && cd .. && cd ..
- Compile
$ . build/envsetup.sh
$ lunch omni_K1006R9-eng
$ mka recoveryimage
(Output image will be on twrp/out/target/product/K1006R9
)
4.- Flash (Using mtkclient on Linux)
sudo mtk w recovery ~/location/of/recovery.img
Device tree generated with twrpdtgen
Footnotes
-
Sourced via
cat /proc/cpuinfo
↩ -
Sourced via
cat /sys/class/block/mmcblk0/device/name
and link ↩ -
Suspected use of Flash/RAM combo chip KMQ310016M-B419(16GB Flash + 1.5GB RAM LPDDR3) 5 ↩
-
Sourced via hidden app
com.zte.engineer
(Won't and cannot distribute) ↩ ↩2 ↩3 ↩4 -
Sourced via
getprop ro.build.version.release
and confirmed with SDK Version (24)getprop ro.build.version.sdk
↩