remove busybox binary
[GitHub/moto-9609/twrp_device_motorola_troika.git] / README.md
CommitLineData
4dcb7d13 1# Device Tree for OnePlus 6T (fajita)
91dcf584 2
4dcb7d13 3The OnePlus 6T (codenamed _"fajita"_) is a flagship smartphone from OnePlus.
4It was released in Novemeber 2018.
5
6| Basic | Spec Sheet |
7| -----------------------:|:------------------------------------------------------------------------------------------------------------------------------ |
8| CPU | Octa-core (4x2.8 GHz Kryo 385 Gold & 4x1.7 GHz Kryo 385 Silver) |
9| Chipset | Qualcomm SDM845 Snapdragon 845 |
10| GPU | Adreno 630 |
11| Memory | 6/8 GB RAM |
12| Shipped Android Version | 9.0 |
13| Storage | 128/256 GB |
14| Battery | Non-removable Li-Po 3710 mAh battery |
15| Display | Optic AMOLED, 1080 x 2340 pixels, 19.5:9 ratio (~403 ppi density) |
16| Camera (Back) | Dual: 16 MP (f/1.7, 27mm, 1/2.6", 1.22µm, gyro-EIS, OIS) + 20 MP (16 MP effective, f/1.7, 1/2.8", 1.0µm), PDAF, dual-LED flash |
17| Camera (Front) | 16 MP (f/2.0, 25mm, 1/3", 1.0µm), gyro-EIS, Auto HDR, 1080p |
18
19Copyright 2018 - The LineageOS Project.
20
21
22
23## Compile
24
481e79e0 25First download omni-9.0 tree:
4dcb7d13 26
27```
481e79e0 28repo init --depth=1 -u https://github.com/omnirom/android.git -b android-9.0
29```
30Then add these string to .repo/manifests/remove.xml
31
32```
33<remove-project name="platform/bootable/recovery" />
4dcb7d13 34```
35
481e79e0 36Then add these projects to .repo/local_manifests/roomservice.xml (If you don't have it, you can add them to .repo/manifest.xml):
4dcb7d13 37
38```xml
481e79e0 39<project name="mauronofrio/android_device_oneplus_fajita" path="device/oneplus/fajita" remote="github" revision="android-9.0" />
40<project name="android_bootable_recovery" path="bootable/recovery" remote="omnirom" revision="android-9.0" />
41<project name="android_external_busybox" path="external/busybox" remote="TeamWin" revision="android-9.0" />
42```
43
44Now you can sync your source:
45
46```
47repo sync
4dcb7d13 48```
49
481e79e0 50If you want to exclude twrp app you need of this commit: https://gerrit.omnirom.org/#/c/android_bootable_recovery/+/27694/
51
812ea97f 52To make wipe system works you need of this commit: https://gerrit.omnirom.org/#/c/android_bootable_recovery/+/32714/
53
f558eb88 54If you want to use the notch theme you need of this commit: https://gerrit.omnirom.org/#/c/android_bootable_recovery/+/32963/
55
481e79e0 56Now you need of this patch to make decryption working: https://gist.github.com/mauronofrio/af29bad34ad87a1a957d193794f0bf5f
57
42e2e80d 58To auotomatic make the twrp installer, you need to import this commit in the build path: https://gerrit.omnirom.org/#/c/android_build/+/33182/
59
481e79e0 60
4dcb7d13 61To make all works you need to modify the buildinfo.sh in build/tools
62echo "ro.build.version.release=$PLATFORM_VERSION"
63echo "ro.build.version.security_patch=$PLATFORM_SECURITY_PATCH"
64to
65echo "ro.build.version.release_orig=$PLATFORM_VERSION"
66echo "ro.build.version.security_patch_orig=$PLATFORM_SECURITY_PATCH"
67
481e79e0 68And you need to increase the PLATFORM_VERSION to 16.1.0 in build/core/version_defaults.mk to override Google's anti-rollback features (This actually i don't know if is always needed)
4dcb7d13 69
4dcb7d13 70Finally execute these:
71
72```
73. build/envsetup.sh
481e79e0 74export ALLOW_MISSING_DEPENDENCIES=true
75export LC_ALL=C
4dcb7d13 76lunch omni_fajita-eng
77mka adbd recoveryimage
78```
79
80To test it:
81
82```
481e79e0 83fastboot boot out/target/product/fajita/recovery.img
4dcb7d13 84```
8129c711 85
86Kernel Source: https://github.com/engstk/op6
4dcb7d13 87## Thanks