2017-10-29 01:48:53 -04:00
|
|
|
#!/bin/bash
|
2017-11-05 10:58:01 -05:00
|
|
|
#DivestOS: A privacy oriented Android distribution
|
2018-01-19 03:14:25 -05:00
|
|
|
#Copyright (c) 2017-2018 Spot Communications, Inc.
|
2017-11-05 10:58:01 -05:00
|
|
|
#
|
|
|
|
#This program is free software: you can redistribute it and/or modify
|
|
|
|
#it under the terms of the GNU General Public License as published by
|
|
|
|
#the Free Software Foundation, either version 3 of the License, or
|
|
|
|
#(at your option) any later version.
|
|
|
|
#
|
|
|
|
#This program is distributed in the hope that it will be useful,
|
|
|
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
#GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
#You should have received a copy of the GNU General Public License
|
|
|
|
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2017-10-29 01:48:53 -04:00
|
|
|
|
|
|
|
#Sets settings used by all other scripts
|
|
|
|
|
2018-01-16 19:55:07 -05:00
|
|
|
export androidWorkspace="/mnt/Drive-3/";
|
2017-10-30 01:30:10 -04:00
|
|
|
export base=$androidWorkspace"Build/LineageOS-14.1/";
|
2017-10-29 01:48:53 -04:00
|
|
|
|
2017-12-30 05:44:05 -05:00
|
|
|
export SIGNING_KEY_DIR=$androidWorkspace"Signing_Keys";
|
|
|
|
export OTA_PACKAGE_SIGNING_KEY=$SIGNING_KEY_DIR"/releasekey"
|
2017-11-05 14:30:15 -05:00
|
|
|
|
2018-03-13 23:07:41 -04:00
|
|
|
export prebuiltApps=$androidWorkspace"PrebuiltApps/";
|
2017-10-30 01:30:10 -04:00
|
|
|
export patches=$androidWorkspace"Patches/LineageOS-14.1/";
|
2017-12-08 18:59:55 -05:00
|
|
|
export cvePatchesLinux=$androidWorkspace"Patches/Linux/";
|
|
|
|
export cvePatchesAndroid=$androidWorkspace"Patches/Android/";
|
2017-11-28 12:28:55 -05:00
|
|
|
export dosWallpapers=$androidWorkspace"Patches/Wallpapers/";
|
2017-10-29 01:48:53 -04:00
|
|
|
|
2018-04-04 07:52:11 -04:00
|
|
|
export scriptsCommon=$androidWorkspace"Scripts/Common/";
|
2017-10-30 01:30:10 -04:00
|
|
|
export scripts=$androidWorkspace"Scripts/LineageOS-14.1/";
|
|
|
|
export cveScripts=$scripts"CVE_Patchers/";
|
2017-10-29 01:48:53 -04:00
|
|
|
|
2017-10-30 01:30:10 -04:00
|
|
|
export ANDROID_HOME="/home/$USER/Android/Sdk";
|
2017-10-29 01:48:53 -04:00
|
|
|
|
2018-04-23 08:59:18 -04:00
|
|
|
export KBUILD_BUILD_USER="emy";
|
|
|
|
export KBUILD_BUILD_HOST="dosbm";
|
2017-10-29 01:48:53 -04:00
|
|
|
|
2018-04-23 08:43:28 -04:00
|
|
|
export ANDROID_JACK_VM_ARGS="-Xmx6144m -Xms512m -Dfile.encoding=UTF-8 -XX:+TieredCompilation";
|
|
|
|
export JACK_SERVER_VM_ARGUMENTS="${ANDROID_JACK_VM_ARGS}";
|
2017-10-30 01:30:10 -04:00
|
|
|
|
2018-04-23 08:59:18 -04:00
|
|
|
export GRADLE_OPTS="-Xmx2048m";
|
2017-12-09 01:15:16 -05:00
|
|
|
|
2018-04-23 15:41:43 -04:00
|
|
|
export NON_COMMERCIAL_USE_PATCHES=false; #Switch to false to prevent inclusion of non-commercial use patches
|
2018-04-23 08:43:28 -04:00
|
|
|
|
2018-06-02 17:37:21 -04:00
|
|
|
export MICROG_INCLUDED=true; #Switch to false to prevent inclusion of microG
|
|
|
|
|
2018-05-11 06:15:29 -04:00
|
|
|
export MALWARE_SCAN_ENABLED=true; #Set true to perform a fast scan on patchWorkspace() and a through scan on buildAll()
|
|
|
|
export MALWARE_SCAN_SETTING="quick"; #buildAll() scan speed. Options are quick, extra, slow, full
|
2018-05-10 23:45:29 -04:00
|
|
|
|
2018-04-23 08:43:28 -04:00
|
|
|
source $scriptsCommon"/Functions.sh";
|
|
|
|
source $scripts"/Functions.sh";
|
2018-01-20 07:36:08 -05:00
|
|
|
|
2018-04-28 03:16:35 -04:00
|
|
|
export LC_ALL=C;
|
|
|
|
|
2018-04-23 08:59:18 -04:00
|
|
|
unalias cp;
|
|
|
|
unalias mv;
|
|
|
|
unalias rm;
|
|
|
|
unalias ln;
|