Advertisement
Guest User

How to build LOS15.1 for natrium

a guest
Dec 18th, 2017
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.33 KB | None | 0 0
  1. # This can be run as a script, but I DO NOT recommend it.
  2.  
  3. # Make sure you have ran breakfast natrium. Be careful, the kernel is on the wronk branch. You'll have to fix that.
  4.  
  5. # You must extract blobs EXACTLY IN THIS ORDER:
  6. # Marlin (Pixel XL) Official AOSP Android 8.1
  7. # Natrium Official MIUI Android 7.0
  8. # Natrium Unofficial LOS 15.1 Android 8.1
  9. # Natrium Unofficial LOS 15.0 Android 8.0
  10.  
  11. # Camera patches
  12. repopick 194500 -P device/xiaomi/msm8996-common/
  13. repopick 194502 -P device/xiaomi/msm8996-common/
  14. repopick 194501 -P device/xiaomi/msm8996-common/
  15.  
  16. # The last one will break something, so fix this file and commit
  17. cd device/xiaomi/msm8996-common/
  18. nano msm8996.mk
  19. git add .
  20. git commit
  21. cd ../../..
  22.  
  23. # Add camera hal setting in boardconfig
  24. nano device/xiaomi/natrium/BoardConfig.mk
  25.  
  26. # Apply various fixes
  27. cd device/xiaomi/msm8996-common/
  28. curl https://gist.githubusercontent.com/luk1337/fd5b9fd2b1d086233e3477b93dfd0d1e/raw/099699b386a0fce0565a04e98ba9934e80842214/- | patch -p1
  29. cd ../../../hardware/qcom/media
  30. curl https://gist.githubusercontent.com/luk1337/6a3ebb57e41618fa12a11c1bbbb44562/raw/4f0a64c600e0b3911ca5524578cdb3ea085596bb/- | patch -p1
  31. cd ../display
  32. curl https://gist.githubusercontent.com/luk1337/a25df18a66afa696178e0da6e3ab9404/raw/76e992f13e68145f03e9fd86532b45d9399f6ab4/- | patch -p1
  33. cd ../../..
  34.  
  35. # Update ril-caf branch
  36. # Add these 3 lines:
  37. # <remove-project name="LineageOS/android_hardware_ril" path="hardware/ril-caf" />
  38. # <project groups="pdk" name="LineageOS/android_hardware_ril" path="hardware/ril" />
  39. # <project groups="pdk" name="LineageOS/android_hardware_ril" path="hardware/ril-caf" revision="staging/lineage-15.1-caf" />
  40. nano .repo/local_manifests/roomservice.xml
  41.  
  42. # Use AOSP Media HAL
  43. repopick 198744
  44. # O bringup patch
  45. repopick 198745
  46. # ntfs-3g: Include sysmacros header
  47. repopick 198028
  48. # sepolicy: use create_socket_perms_no_ioctl to avoid neverallows
  49. repopick 198743
  50. # Disable clang
  51. repopick 198029
  52.  
  53. # Edit file to add <add-resource> tags and commit
  54. nano device/xiaomi/natrium/overlay-lineage/frameworks/base/core/res/res/values/config.xml
  55. cd device/xiaomi/natrium/overlay-lineage/
  56. git add frameworks/base/core/res/res/values/config.xml
  57. cd ..
  58. git commit
  59. cd ../../..
  60.  
  61. # And finally, make sure you allow missing dependencies when you build:
  62. ALLOW_MISSING_DEPENDENCIES=true brunch natrium
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement