1 # Device Tree for OnePlus 7 Pro (guacamole)
3 The OnePlus 7 Pro (codenamed _"guacamole"_) is a flagship smartphone from OnePlus.
4 It was released in May 2019.
11 First download omni-9.0 tree:
14 repo init --depth=1 -u https://github.com/omnirom/android.git -b android-9.0
16 Then add these string to .repo/manifests/remove.xml
19 <remove-project name="platform/bootable/recovery" />
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):
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" />
30 Now you can sync your source:
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/
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"
43 echo "ro.build.version.release_orig=$PLATFORM_VERSION"
44 echo "ro.build.version.security_patch_orig=$PLATFORM_SECURITY_PATCH"
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)
48 Finally execute these:
52 export ALLOW_MISSING_DEPENDENCIES=true
54 lunch omni_guacamole-eng
55 mka adbd recoveryimage
61 fastboot boot out/target/product/guacamole/recovery.img
64 Kernel Source: https://gitlab.com/HolyAngel/op7
66 I want to say a big thanks to @twinnfamous