This file contains 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
#!/bin/bash | |
# | |
# Build script | |
# | |
# Definitions | |
DEVICE="$1" | |
TIMESTAMP=$(date +"%Y-%m-%d-%S") | |
ROM="" |
This file contains 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
#!/bin/bash | |
# | |
# upload via sftp | |
# | |
# fill out the following definitions | |
DEVICE="$1" | |
ROM="" | |
USER="" |
This file contains 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
#!/bin/bash | |
# | |
# Git clone OpenGapps | |
# | |
git clone [email protected]:opengapps/aosp_build.git -b master vendor/opengapps/build | |
git clone [email protected]:opengapps/all.git -b master vendor/opengapps/sources/all | |
git clone [email protected]:opengapps/arm.git -b master vendor/opengapps/sources/arm | |
git clone [email protected]:opengapps/arm64.git -b master vendor/opengapps/sources/arm64 |
This file contains 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
#!/bin/bash | |
# | |
# A simple build script for InvictrixROM | |
# Written by Michael S Corigliano (Mike Criggs) <[email protected]> | |
# | |
# Usage: ./build.sh <DEVICE> <CLEAN OPTION> | |
# Clean options: rm, clean, clobber, installclean | |
# |
This file contains 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
** FORCE PUSH ** | |
git push --force ssh://[email protected]:29418/vendor_support HEAD:refs/heads/inv-9.0 | |
** REGULAR GERRIT PUSH ** | |
git push ssh://[email protected]:29418/manifest HEAD:refs/for/inv-9.0 | |
** CREATE PROJECT ** | |
ssh -p 29418 [email protected] gerrit create-project kernel_oneplus_msm8996.git | |
** DIRECT PUSH ** |
This file contains 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
#!/bin/bash | |
# | |
# A simple build script for StatiXOS | |
# Written by Michael S Corigliano (Mike Criggs) <[email protected]> | |
# | |
# Usage: ./build.sh <DEVICE> <CLEAN OPTION> <OFFICIAL OPTION> | |
# Clean options: rm, clean, clobber, installclean | |
# Official options: official, nuclear | |
# |
This file contains 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
Allocating group tables: 0/12 done | |
Writing inode tables: 0/12 done | |
Writing superblocks and filesystem accounting information: 0/12 done | |
loaded 987 fs_config entries | |
Created filesystem with 997/1152 inodes and 371014/381862 blocks | |
2020-01-05 11:51:37 - common.py - INFO : Running: "simg2img /home/criggs/android/du/out/target/product/bonito/obj/PACKAGING/target_files_intermediates/du_bonito-target_files-eng.criggs/IMAGES/product.img /home/criggs/android/du/out/target/product/bonito/obj/PACKAGING/target_files_intermediates/du_bonito-target_files-eng.criggs/IMAGES/unsparse_product.img" | |
2020-01-05 11:51:38 - common.py - INFO : error: file_write: write: No space left on device | |
Cannot write output file |
This file contains 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
Workarounds for building Q on 8GB RAM environment: | |
1. At the start of the build: | |
[ 99% 138/139] /mnt/ssd/aosip/out/soong/.bootstrap/bin/soong_build /mnt/ssd/aosip/out/soong/build.ninja | |
This used to take around 30mins, after enabling zram now it takes around 30secs (thanks to @kdrag0n for the zram idea) which is on par with what happens in 16GB RAM building environments | |
sudo apt install zram-config for installing zram-config package | |
sudo nano /etc/fstab and add a # in front of the swap disk if you have one and then reboot | |
After booting cat /proc/swaps to check if zram is enabled or not |
This file contains 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
If you're building Q and getting metalava errors apply: | |
https://github.com/Magma-WIP/build_soong/commit/bcd1bb529132905cf55e72f5a2a6ba19a99f60ac | |
https://github.com/Magma-WIP/build_soong/commit/dc3365fbde3b2a5773e655f690bb073967100795 | |
If build fails even with the commits applied try building SystemUI with -j1 | |
It can also be a good idea to increase swap | |
Command: | |
cd build/soong && git fetch https://github.com/Magma-WIP/build_soong ten-metalava && git cherry-pick bcd1bb529132905cf55e72f5a2a6ba19a99f60ac^..dc3365fbde3b2a5773e655f690bb073967100795 |
This file contains 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
RULES FOR ANDROID BUILDER'S HELP | |
July 23, 2022 | |
THESE RULES ARE NON-NEGOTIABLE. | |
FAILURE TO COMPLY MAY RESULT IN A WARNING BY AN ADMIN (3 WILL BAN YOU) OR AN IMMEDIATE BAN. | |
ALL ADMINS MAY WARN/BAN AT THEIR OWN DISCRETION AS LONG AS THEIR REASONING FALLS WITHIN THE SCOPE OF THESE RULES. | |
A BAN HERE MAY RESULT IN A BAN IN OUR RELATED CHATS (OFF-TOPIC, LINUX KERNEL BRICKERS, BRINGUP/FW, ETC) |