4dcb7d13 |
1 | # Device Tree for OnePlus 6T (fajita) |
91dcf584 |
2 | |
4dcb7d13 |
3 | The OnePlus 6T (codenamed _"fajita"_) is a flagship smartphone from OnePlus. |
4 | It 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 | |
19 | Copyright 2018 - The LineageOS Project. |
20 | |
21 | |
22 | |
23 | ## Compile |
24 | |
25 | First checkout minimal twrp with omnirom tree: |
26 | |
27 | ``` |
28 | repo init -u git://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git -b twrp-8.1 |
29 | repo sync |
30 | ``` |
31 | |
32 | Then add these projects to .repo/manifest.xml: |
33 | |
34 | ```xml |
35 | <project path="device/oneplus/fajita" name="mauronofrio/android_device_oneplus_fajita" remote="github" revision="android-8.1" /> |
36 | ``` |
37 | |
38 | To make all works you need to modify the buildinfo.sh in build/tools |
39 | echo "ro.build.version.release=$PLATFORM_VERSION" |
40 | echo "ro.build.version.security_patch=$PLATFORM_SECURITY_PATCH" |
41 | to |
42 | echo "ro.build.version.release_orig=$PLATFORM_VERSION" |
43 | echo "ro.build.version.security_patch_orig=$PLATFORM_SECURITY_PATCH" |
44 | |
45 | And you need to increase the PLATFORM_VERSION to 16.1.0 in build/core/version_defaults.mk to override Google's anti-rollback features |
46 | |
47 | ``` |
48 | |
49 | Finally execute these: |
50 | |
51 | ``` |
52 | . build/envsetup.sh |
53 | export ALLOW_MISSING_DEPENDENCIES=true # Only if you use minimal twrp tree. |
54 | lunch omni_fajita-eng |
55 | mka adbd recoveryimage |
56 | ``` |
57 | |
58 | To test it: |
59 | |
60 | ``` |
61 | fastboot boot out/target/product/enchilada/recovery.img |
62 | ``` |
63 | ## Thanks |
64 | ``` |