Update README
[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" />
1f79f9c4 40<project name="mauronofrio/android_bootable_recovery" path="bootable/recovery" remote="github" revision="android-9.0" />
481e79e0 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```
1f79f9c4 49Actually i'm using this bootable/recovery: https://github.com/mauronofrio/android_bootable_recovery
f558eb88 50
481e79e0 51Now you need of this patch to make decryption working: https://gist.github.com/mauronofrio/af29bad34ad87a1a957d193794f0bf5f
52
42e2e80d 53To auotomatic make the twrp installer, you need to import this commit in the build path: https://gerrit.omnirom.org/#/c/android_build/+/33182/
54
481e79e0 55
4dcb7d13 56To make all works you need to modify the buildinfo.sh in build/tools
57echo "ro.build.version.release=$PLATFORM_VERSION"
58echo "ro.build.version.security_patch=$PLATFORM_SECURITY_PATCH"
59to
60echo "ro.build.version.release_orig=$PLATFORM_VERSION"
61echo "ro.build.version.security_patch_orig=$PLATFORM_SECURITY_PATCH"
62
481e79e0 63And 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 64
4dcb7d13 65Finally execute these:
66
67```
68. build/envsetup.sh
481e79e0 69export ALLOW_MISSING_DEPENDENCIES=true
70export LC_ALL=C
4dcb7d13 71lunch omni_fajita-eng
72mka adbd recoveryimage
73```
74
75To test it:
76
77```
481e79e0 78fastboot boot out/target/product/fajita/recovery.img
4dcb7d13 79```
8129c711 80
1f79f9c4 81Kernel Source: https://github.com/pappschlumpf/op6/tree/9.0
82## Credits
83I want to say a big thanks to @twinnfamous