projects:shamu-lineageos-lineage-15.0
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
projects:shamu-lineageos-lineage-15.0 [2017/11/01 07:06] – Sean Rhone | projects:shamu-lineageos-lineage-15.0 [2017/11/02 08:04] (current) – [Generate Zip] Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Information ====== | ||
+ | * Custom builds of LineageOS for the Nexus 6 | ||
+ | * lineage-15.0 branch | ||
+ | |||
+ | ===== Prerequisites ===== | ||
+ | |||
+ | * [[distros: | ||
+ | |||
+ | ====== xda-developers ====== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | ====== Dependencies ====== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo dnf install java-1.8.0-openjdk-devel ImageMagick-devel patch ncurses-compat-libs schedtool libstdc++.i686 glibc.i686 m4 xz-lzma-compat gcc && sync | ||
+ | |||
+ | ====== Prepare Build Environment ====== | ||
+ | |||
+ | ===== Cleanup ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | cd ~ && sudo rm -Rf ~/' | ||
+ | |||
+ | ===== Install git-repo ===== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | mkdir -p ~/' | ||
+ | |||
+ | ===== Configure Git ===== | ||
+ | |||
+ | nano ~/' | ||
+ | |||
+ | [user] | ||
+ | email = espionage724@x | ||
+ | name = Sean Lynn Rhone | ||
+ | | ||
+ | [color] | ||
+ | ui = auto | ||
+ | |||
+ | ===== Initialize Repo ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | mkdir -p ~/' | ||
+ | |||
+ | ===== Motorola Manifest ===== | ||
+ | |||
+ | * If pulling in fresh sources, do not add this until the sources are backed-up ((that way the backup can be a clean-slate and be used for other non-Moto devices)) | ||
+ | |||
+ | ==== cm-14.1 ==== | ||
+ | |||
+ | mkdir -p ~/' | ||
+ | |||
+ | < | ||
+ | <?xml version=" | ||
+ | < | ||
+ | |||
+ | <!-- Motorola --> | ||
+ | <project path=" | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== lineage-15.0 ==== | ||
+ | |||
+ | * As of 2017/10/29, this is behind the '' | ||
+ | |||
+ | mkdir -p ~/' | ||
+ | |||
+ | < | ||
+ | <?xml version=" | ||
+ | < | ||
+ | |||
+ | <!-- Motorola --> | ||
+ | <project path=" | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== Sources Management ===== | ||
+ | |||
+ | ==== Pull-in and Update Sources ==== | ||
+ | |||
+ | === Network Sync === | ||
+ | |||
+ | * As of 2017/10/29, this downloads 11.3GB for '' | ||
+ | * If pulling fresh sources, this command is good to leave running overnight, and then followed up with a [[# | ||
+ | |||
+ | cd ~/' | ||
+ | |||
+ | === Complete Sync === | ||
+ | |||
+ | * Performs both Network and Local file sync | ||
+ | |||
+ | cd ~/' | ||
+ | |||
+ | ==== Backup Sources ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | cd ~/' | ||
+ | |||
+ | ==== Restore Sources ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | mkdir -p ~/' | ||
+ | |||
+ | ====== Modifications ====== | ||
+ | |||
+ | ===== Allow Signature Spoofing ===== | ||
+ | |||
+ | * This allows **microG Services Core** and **FakeStore** to fake GApps properly | ||
+ | |||
+ | * https:// | ||
+ | * Keep eyes on https:// | ||
+ | |||
+ | wget -O ~/' | ||
+ | |||
+ | ===== Allow Location Providers Outside /system ===== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | * This allows ** microG Services Core** to provide **UnifiedNlp** without having to be installed to ''/ | ||
+ | |||
+ | wget -O ~/' | ||
+ | |||
+ | ===== Remove Deprecated HWUI GCC Flag ===== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | * Removes the deprecated '' | ||
+ | * Only has effect and needed if '' | ||
+ | |||
+ | sed -i ' | ||
+ | |||
+ | ===== Avoid GNSS denials ===== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | echo 'allow hal_gnss_default vndbinder_device: | ||
+ | |||
+ | ===== Tweaks ===== | ||
+ | |||
+ | * If this file doesn' | ||
+ | * Place this at the **top** of the file underneath the copyright ((this ensures the custom '' | ||
+ | |||
+ | nano ~/' | ||
+ | |||
+ | < | ||
+ | # Begin Custom Stuff | ||
+ | |||
+ | # Dalvik/ART Tweaks | ||
+ | PRODUCT_PROPERTY_OVERRIDES += \ | ||
+ | dalvik.vm.image-dex2oat-filter=everything \ | ||
+ | dalvik.vm.dex2oat-filter=everything \ | ||
+ | dalvik.vm.check-dex-sum=false \ | ||
+ | dalvik.vm.checkjni=false \ | ||
+ | dalvik.vm.usejit=true \ | ||
+ | dalvik.vm.dexopt-flags=v=a, | ||
+ | dalvik.vm.dex2oat-swap=false \ | ||
+ | dalvik.vm.dex2oat-threads=4 \ | ||
+ | dalvik.vm.boot-dex2oat-threads=4 \ | ||
+ | dalvik.vm.image-dex2oat-threads=4 \ | ||
+ | dalvik.vm.heaptargetutilization=0.9 \ | ||
+ | dalvik.vm.heapgrowthlimit=288m | ||
+ | |||
+ | # Single-user | ||
+ | PRODUCT_PROPERTY_OVERRIDES += \ | ||
+ | fw.max_users=1 | ||
+ | |||
+ | # HWUI Performance Compiler Options | ||
+ | HWUI_COMPILE_FOR_PERF := true | ||
+ | |||
+ | # Graphics Tweaks | ||
+ | PRODUCT_PROPERTY_OVERRIDES += \ | ||
+ | debug.hwui.renderer=skiagl \ | ||
+ | persist.sys.ui.hw=true | ||
+ | |||
+ | # Native Density | ||
+ | PRODUCT_PROPERTY_OVERRIDES += \ | ||
+ | ro.sf.lcd_density=493 | ||
+ | |||
+ | # Freedom | ||
+ | PRODUCT_PROPERTY_OVERRIDES += \ | ||
+ | persist.sys.hdcp_checking=never | ||
+ | |||
+ | # End Custom Stuff</ | ||
+ | |||
+ | ===== Steven Black' | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | * Includes '' | ||
+ | |||
+ | rm -Rf '/ | ||
+ | |||
+ | ===== Don't Check Device in TWRP ===== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | repopick ' | ||
+ | |||
+ | ====== Build Prep ====== | ||
+ | |||
+ | ===== Cleanup ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | cd ~/' | ||
+ | |||
+ | ===== Set-up Environment ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | |||
+ | cd ~/' | ||
+ | |||
+ | ===== Breakfast! ===== | ||
+ | |||
+ | * Be sure to run [[#tweaks | Tweaks]] after serving '' | ||
+ | |||
+ | cd ~/' | ||
+ | |||
+ | ===== Environment Variables ===== | ||
+ | |||
+ | ==== Disable ccache ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | unset ' | ||
+ | |||
+ | ==== Jack ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | unset ' | ||
+ | |||
+ | ====== Signed Build ====== | ||
+ | |||
+ | ===== Key Management ===== | ||
+ | |||
+ | ==== Generate ==== | ||
+ | |||
+ | * Change the '' | ||
+ | * If a backup exists and is being restored, don't run this | ||
+ | |||
+ | subject='/ | ||
+ | |||
+ | ==== Backup ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | cd ~ && tar -cvzf ~/' | ||
+ | |||
+ | ==== Restore ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | cd ~ && tar -xvzf ~/' | ||
+ | |||
+ | ===== Build ===== | ||
+ | |||
+ | * This takes approximately 1 hour and 25 minutes to complete | ||
+ | * If '' | ||
+ | |||
+ | cd ~/' | ||
+ | |||
+ | ===== Sign Build ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | croot && ~/' | ||
+ | |||
+ | ===== Generate Zip ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | ~/' | ||
+ | |||
+ | ===== Install Zip ===== | ||
+ | |||
+ | * Flash '' | ||
+ | |||
+ | ====== Unsigned Build ====== | ||
+ | |||
+ | ===== Build and Generate Zip ===== | ||
+ | |||
+ | * This takes approximately 1 hour to complete | ||
+ | |||
+ | cd ~/' | ||
+ | |||
+ | ===== Install Zip ===== | ||
+ | |||
+ | * Flash the 400MB+ zip found in '' | ||
+ | |||
+ | ====== Nexus 6 Configuration ====== | ||
+ | |||
+ | * [[devices: | ||
+ | |||
+ | ====== Changelog ====== | ||
+ | |||
+ | ===== Notes ===== | ||
+ | |||
+ | * Unless otherwise specified, all uploaded builds are updated from the source (resync) prior to building | ||
+ | |||
+ | ===== Changelog ===== | ||
+ | |||
+ | * 2017/11/02: Re-enable forced-encryption, | ||
+ | * 2017/11/01: Disable forced-encryption, | ||
+ | * 2017/10/29: Initial build, Dalvik/ART tweaks, disabled multi-user |