91dcf584 |
1 | # Device Tree for OnePlus 6 (enchilada) |
2 | |
3 | The OnePlus 6 (codenamed _"enchilada"_) is a flagship smartphone from OnePlus. |
4 | It was released in May 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 | 8.1 | |
13 | | Storage | 64/128/256 GB | |
14 | | Battery | Non-removable Li-Po 3300 mAh battery | |
15 | | Display | Optic AMOLED, 1080 x 2280 pixels, 19:9 ratio (~402 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 | ![OnePlus 6](https://cdn2.gsmarena.com/vv/pics/oneplus/oneplus-6-5.jpg "OnePlus 6") |
22 | |
23 | |
24 | ## Compile |
25 | |
26 | First checkout minimal twrp with omnirom tree: |
27 | |
28 | ``` |
29 | repo init -u git://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git -b twrp-8.1 |
30 | repo sync |
31 | ``` |
32 | |
33 | Then add these projects to .repo/manifest.xml: |
34 | |
35 | ```xml |
36 | <project path="device/oneplus/enchilada" name="mauronofrio/android_device_oneplus_enchilada" remote="github" revision="android-8.1" /> |
37 | ``` |
38 | |
39 | To make all works you need to modify the buildinfo.sh in build/tools |
40 | echo "ro.build.version.release=$PLATFORM_VERSION" |
41 | echo "ro.build.version.security_patch=$PLATFORM_SECURITY_PATCH" |
42 | to |
43 | echo "ro.build.version.release_orig=$PLATFORM_VERSION" |
44 | echo "ro.build.version.security_patch_orig=$PLATFORM_SECURITY_PATCH" |
45 | |
46 | 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 |
47 | |
48 | ``` |
49 | |
50 | Finally execute these: |
51 | |
52 | ``` |
53 | . build/envsetup.sh |
54 | export ALLOW_MISSING_DEPENDENCIES=true # Only if you use minimal twrp tree. |
55 | lunch omni_enchilada-eng |
56 | mka adbd recoveryimage |
57 | ``` |
58 | |
59 | To test it: |
60 | |
61 | ``` |
62 | fastboot boot out/target/product/enchilada/recovery.img |
63 | ``` |
64 | ## Thanks |
65 | ``` |
66 | - @engstk to make TWRP works on PIE |
67 | - @joemossjr16 for some tips |
68 | - @Dees-Troy for some tips |
69 | - @wuxianlin for initial bring up |
70 | |