Last active
April 29, 2018 18:07
-
-
Save revant/1ded8590ffb5ac314892dd8d1d8bd243 to your computer and use it in GitHub Desktop.
Environment Setup for building Lineage OS
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
source ~/android/venv/bin/activate | |
export LC_TIME=C | |
export LC_ALL=C | |
export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx5G" | |
export USE_CCACHE=1 | |
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m" | |
export _JAVA_OPTIONS="-Xmx5g" |
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
# Generate Keys | |
subject='/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com' | |
mkdir ~/.android-certs | |
for x in releasekey platform shared media; do \ | |
./development/tools/make_key ~/.android-certs/$x "$subject"; \ | |
done | |
# Signing Target Files | |
croot | |
./build/tools/releasetools/sign_target_files_apks -o -d ~/.android-certs \ | |
out/dist/*-target_files-*.zip \ | |
signed-target_files.zip | |
# mka otatools or generating the install package fails | |
mka -j4 otatools | |
# Generating the install package | |
./build/tools/releasetools/ota_from_target_files -k ~/.android-certs/releasekey \ | |
--block --backup=true \ | |
signed-target_files.zip \ | |
signed-ota_update.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment