Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This can be run as a script, but I DO NOT recommend it.
- # Make sure you have ran breakfast natrium. Be careful, the kernel is on the wronk branch. You'll have to fix that.
- # You must extract blobs EXACTLY IN THIS ORDER:
- # Marlin (Pixel XL) Official AOSP Android 8.1
- # Natrium Official MIUI Android 7.0
- # Natrium Unofficial LOS 15.1 Android 8.1
- # Natrium Unofficial LOS 15.0 Android 8.0
- # Camera patches
- repopick 194500 -P device/xiaomi/msm8996-common/
- repopick 194502 -P device/xiaomi/msm8996-common/
- repopick 194501 -P device/xiaomi/msm8996-common/
- # The last one will break something, so fix this file and commit
- cd device/xiaomi/msm8996-common/
- nano msm8996.mk
- git add .
- git commit
- cd ../../..
- # Add camera hal setting in boardconfig
- nano device/xiaomi/natrium/BoardConfig.mk
- # Apply various fixes
- cd device/xiaomi/msm8996-common/
- curl https://gist.githubusercontent.com/luk1337/fd5b9fd2b1d086233e3477b93dfd0d1e/raw/099699b386a0fce0565a04e98ba9934e80842214/- | patch -p1
- cd ../../../hardware/qcom/media
- curl https://gist.githubusercontent.com/luk1337/6a3ebb57e41618fa12a11c1bbbb44562/raw/4f0a64c600e0b3911ca5524578cdb3ea085596bb/- | patch -p1
- cd ../display
- curl https://gist.githubusercontent.com/luk1337/a25df18a66afa696178e0da6e3ab9404/raw/76e992f13e68145f03e9fd86532b45d9399f6ab4/- | patch -p1
- cd ../../..
- # Update ril-caf branch
- # Add these 3 lines:
- # <remove-project name="LineageOS/android_hardware_ril" path="hardware/ril-caf" />
- # <project groups="pdk" name="LineageOS/android_hardware_ril" path="hardware/ril" />
- # <project groups="pdk" name="LineageOS/android_hardware_ril" path="hardware/ril-caf" revision="staging/lineage-15.1-caf" />
- nano .repo/local_manifests/roomservice.xml
- # Use AOSP Media HAL
- repopick 198744
- # O bringup patch
- repopick 198745
- # ntfs-3g: Include sysmacros header
- repopick 198028
- # sepolicy: use create_socket_perms_no_ioctl to avoid neverallows
- repopick 198743
- # Disable clang
- repopick 198029
- # Edit file to add <add-resource> tags and commit
- nano device/xiaomi/natrium/overlay-lineage/frameworks/base/core/res/res/values/config.xml
- cd device/xiaomi/natrium/overlay-lineage/
- git add frameworks/base/core/res/res/values/config.xml
- cd ..
- git commit
- cd ../../..
- # And finally, make sure you allow missing dependencies when you build:
- ALLOW_MISSING_DEPENDENCIES=true brunch natrium
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement