Updating Kernel Source in Readme
[GitHub/moto-9609/twrp_device_motorola_troika.git] / README.md
1 # Device Tree for OnePlus 7 Pro (guacamole)
2
3 The OnePlus 7 Pro (codenamed _"guacamole"_) is a flagship smartphone from OnePlus.
4 It was released in May 2019.
5
6
7
8
9 ## Compile
10
11 First download omni-9.0 tree:
12
13 ```
14 repo init --depth=1 -u https://github.com/omnirom/android.git -b android-9.0
15 ```
16 Then add these string to .repo/manifests/remove.xml
17
18 ```
19 <remove-project name="platform/bootable/recovery" />
20 ```
21
22 Then add these projects to .repo/local_manifests/roomservice.xml (If you don't have it, you can add them to .repo/manifest.xml):
23
24 ```xml
25 <project name="mauronofrio/android_device_oneplus_guacamole_TWRP" path="device/oneplus/guacamole" remote="github" revision="android-9.0" />
26 <project name="mauronofrio/android_bootable_recovery" path="bootable/recovery" remote="github" revision="android-9.0" />
27 <project name="android_external_busybox" path="external/busybox" remote="TeamWin" revision="android-9.0" />
28 ```
29
30 Now you can sync your source:
31
32 ```
33 repo sync
34 ```
35
36 To auotomatic make the twrp installer, you need to import this commit in the build path: https://gerrit.omnirom.org/#/c/android_build/+/33182/
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 (This actually i don't know if is always needed)
47
48 Finally execute these:
49
50 ```
51 . build/envsetup.sh
52 export ALLOW_MISSING_DEPENDENCIES=true
53 export LC_ALL=C
54 lunch omni_guacamole-eng
55 mka adbd recoveryimage
56 ```
57
58 To test it:
59
60 ```
61 fastboot boot out/target/product/guacamole/recovery.img
62 ```
63
64 Kernel Source: https://gitlab.com/HolyAngel/op7
65 ## Credits
66 I want to say a big thanks to @twinnfamous