Last active
January 21, 2019 17:42
-
-
Save theel0ja/1823790db6577ed2445a899148900087 to your computer and use it in GitHub Desktop.
WIP do not execute manually!
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
# MANUAL: comment out `AcceptEnv LANG LC_*` from /etc/ssh/sshd_config | |
sudo service sshd restart | |
# MANUAL: relogin | |
sudo nano /etc/apt/sources.list | |
# MANUAL: enable universe repositories on ubuntu 18.04 | |
sudo apt update | |
sudo apt upgrade -y | |
# install stuff | |
sudo apt-get install openjdk-8-jdk -y | |
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc unzip -y | |
# los dependencies | |
sudo apt install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev -y | |
# me | |
sudo apt install ninja-build python | |
# android repo thingy | |
mkdir -p ~/bin | |
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo | |
chmod a+x ~/bin/repo | |
export PATH=~/bin:$PATH | |
export LC_ALL=C | |
# MANUAL: try repo tool | |
repo | |
# config git | |
git config --global user.email "bob@builder.invalid" | |
git config --global user.name "Bob the Builder" | |
# initialize | |
mkdir los | |
cd los | |
# download lineage | |
repo init -u git://github.com/LineageOS/android.git -b lineage-15.1 | |
repo sync --force-sync --no-tags --no-clone-bundle | |
# download device specific | |
cd .repo | |
git clone https://github.com/a3y17lte/manifest.git -b lineage-15.1 local_manifests | |
repo sync --force-sync --no-tags --no-clone-bundle | |
# add wireguard | |
nano local_manifests/manifest.xml | |
# https://forum.xda-developers.com/android/development/wireguard-rom-integration-t3711635 | |
# repo sync --force-sync --no-tags --no-clone-bundle | |
# microg | |
nano local_manifests/manifest.xml | |
# <project name="lineageos4microg/android_prebuilts_prebuiltapks" path="prebuilts/prebuiltapks" remote="github" revision="master" /> | |
repo sync --force-sync --no-tags --no-clone-bundle | |
# build env | |
export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx7G" | |
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx6g" | |
. build/envsetup.sh | |
# build! | |
brunch lineage_a3y17lte-userdebug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very gay. Rather use mine, https://gist.github.com/Thespartann/6f59d28e168a55ba3e6c980c014f35b7