Last active
February 6, 2019 13:26
-
-
Save z2z/0668fff6eaf15bf80d7c5201d5582266 to your computer and use it in GitHub Desktop.
Android Building commands & snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #https://stackoverflow.com/a/50295802/663172 | |
| repo init --depth=1 -u https://github.com/username/some_manifest.git -b pie --reference=/path/to/the/mirror/ | |
| repo sync -f --force-sync --no-clone-bundle --no-tags -j$(nproc --all) | |
| #Beryllium | |
| git clone --depth 1 https://github.com/ArrowOS-Devices/android_device_xiaomi_beryllium device/xiaomi/beryllium | |
| git clone --depth 1 https://github.com/ArrowOS-Devices/android_device_xiaomi_sdm845-common device/xiaomi/sdm845-common | |
| git clone --depth 1 https://github.com/ArrowOS-Devices/android_vendor_xiaomi_sdm845 device/vendor/xiaomi/sdm845 | |
| #notworking git clone --depth 1 https://github.com/ArrowOS-Devices/android_kernel_xiaomi_sdm845 kernel/xiaomi/sdm845 | |
| git clone --depth 1 https://github.com/TheScarastic/android_kernel_xiaomi_sdm845 kernel/xiaomi/sdm845 | |
| git clone --depth 1 https://github.com/AOSiP-Devices/device_xiaomi_beryllium -b pie device/xiaomi/beryllium | |
| git clone --depth 1 https://github.com/AOSiP-Devices/device_xiaomi_sdm845-common -b pie device/xiaomi/sdm845-common | |
| git clone --depth 1 https://github.com/AOSiP-Devices/kernel_xiaomi_sdm845 -b pie kernel/xiaomi/sdm845 | |
| git clone --depth 1 https://github.com/AOSiP-Devices/proprietary_vendor_xiaomi -b pie vendor/xiaomi | |
| git clone --depth 1 https://github.com/LineageOS/android_packages_resources_devicesettings -b lineage-16.0 packages/resources/devicesettings | |
| mka dark 2>&1 | tee log.txt | |
| make -j$( nproc --all ) 2>&1 1>stdout.log | tee stderr.log | |
| make 2>&1 1>stdout.log | tee stderr.log | |
| # Yes, warnings/errors go to stderr. Or (in bash) make 2>&1 1>stdout.log | tee stderr.log - you'll get both logged, only stderr will be displayed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment