Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. Building AOSP with Gapps built in-line:
  2.  
  3. 1. Sync AOSP
  4.  
  5. 2. Edit manifest to include:
  6. <remote name="opengapps" fetch="https://github.com/opengapps/" />
  7.  
  8. <project path="vendor/google/build" name="aosp_build" revision="master" remote="opengapps" />
  9. <project path="vendor/opengapps/sources/all" name="all" clone-depth="1" revision="master" remote="opengapps" />
  10.  
  11. <!-- arm64 depends on arm -->
  12. <project path="vendor/opengapps/sources/arm" name="arm" clone-depth="1" revision="master" remote="opengapps" />
  13. <project path="vendor/opengapps/sources/arm64" name="arm64" clone-depth="1" revision="master" remote="opengapps" />
  14.  
  15. <project path="vendor/opengapps/sources/x86" name="x86" clone-depth="1" revision="master" remote="opengapps" />
  16. <project path="vendor/opengapps/sources/x86_64" name="x86_64" clone-depth="1" revision="master" remote="opengapps" />
  17.  
  18. 3. Then re-sync
  19.  
  20. 4. Edit device.mk
  21. https://github.com/patch-Adams/android_device_moto_shamu/commit/e51dd0107dc3eb27b6181f39d1fc08fa05e7e400
  22. Note: you may have to play with the gapps package size that is in line 23
  23.  
  24. 5. Edit aosp_"device name".mk
  25. Comment out this line:
  26. PRODUCT_RESTRICT_VENDOR_FILES := true
  27.  
  28. 6. I don't like stock recovery to build. When you flash you either have to remove it from the /out dir or you'll lose TWRP
  29. https://github.com/patch-Adams/android_device_moto_shamu/commit/1971779634d7a985461335df2bda2a39fa53b104
  30.  
  31. Then build! AOSP rarely breaks so you get a lot fewer build breaks than with other roms :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement