|
21 | 21 | #START OF USER CONFIGURABLE OPTIONS
|
22 | 22 | #
|
23 | 23 | #General
|
24 |
| -export DOS_WORKSPACE_ROOT="/mnt/dos/"; #XXX: THIS MUST BE CORRECT TO BUILD! |
| 24 | +export DOS_WORKSPACE_ROOT="${DOS_WORKSPACE_ROOT:-/mnt/dos/}"; #XXX: THIS MUST BE CORRECT TO BUILD! |
25 | 25 | #export DOS_BUILDS=$DOS_WORKSPACE_ROOT"Builds/";
|
26 |
| -export DOS_BUILDS="/mnt/Storage-1/DivestOS/Builds/"; #XXX: THIS MUST BE CORRECT TO BUILD! |
27 |
| -export DOS_SIGNING_KEYS="$DOS_WORKSPACE_ROOT/Signing_Keys/4096pro"; |
28 |
| -export DOS_SIGNING_GPG="$DOS_WORKSPACE_ROOT/Signing_Keys/gnupg"; |
| 26 | +export DOS_BUILDS="${DOS_BUILDS:-/mnt/Storage-1/DivestOS/Builds/}"; #XXX: THIS MUST BE CORRECT TO BUILD! |
| 27 | +export DOS_SIGNING_KEYS="${DOS_SIGNING_KEYS:-$DOS_WORKSPACE_ROOT/Signing_Keys/4096pro}"; |
| 28 | +export DOS_SIGNING_GPG="${DOS_SIGNING_GPG:-$DOS_WORKSPACE_ROOT/Signing_Keys/gnupg}"; |
29 | 29 | #export USE_CCACHE=1;
|
30 | 30 | #export CCACHE_DIR="";
|
31 |
| -export CCACHE_COMPRESS=1; |
32 |
| -export CCACHE_COMPRESSLEVEL=1; |
| 31 | +export CCACHE_COMPRESS="${CCACHE_COMPRESS:-1}"; |
| 32 | +export CCACHE_COMPRESSLEVEL="${CCACHE_COMPRESSLEVEL:-1}"; |
33 | 33 | #export DOS_BINARY_PATCHER="";
|
34 |
| -export DOS_MALWARE_SCAN_ENABLED=false; #Set true to perform a fast scan on patchWorkspace() and a through scan on buildAll() |
35 |
| -export DOS_MALWARE_SCAN_SETTING="quick"; #buildAll() scan speed. Options: quick, extra, slow, full |
36 |
| -export DOS_REFRESH_PATCHES=true; #Set true to refresh branch-specific patches on apply |
| 34 | +export DOS_MALWARE_SCAN_ENABLED="${DOS_MALWARE_SCAN_ENABLED:-false}"; #Set true to perform a fast scan on patchWorkspace() and a through scan on buildAll() |
| 35 | +export DOS_MALWARE_SCAN_SETTING="${DOS_MALWARE_SCAN_SETTING:-quick}"; #buildAll() scan speed. Options: quick, extra, slow, full |
| 36 | +export DOS_REFRESH_PATCHES="${DOS_REFRESH_PATCHES:-true}"; #Set true to refresh branch-specific patches on apply |
37 | 37 |
|
38 | 38 | #Deblobber
|
39 |
| -export DOS_DEBLOBBER_REMOVE_ACCESSORIES=true; #Set false to allow use of external accessories that depend on blobs |
40 |
| -export DOS_DEBLOBBER_REMOVE_ATFWD=true; #Set true to remove basic ATFWD blobs |
41 |
| -export DOS_DEBLOBBER_REMOVE_AUDIOFX=true; #Set true to remove AudioFX |
42 |
| -export DOS_DEBLOBBER_REMOVE_APTX=false; #Set true to remove aptX Bluetooth codec |
43 |
| -export DOS_DEBLOBBER_REMOVE_CNE=true; #Set true to remove all CNE blobs #XXX: Breaks Wi-Fi calling |
44 |
| -export DOS_DEBLOBBER_REMOVE_DPM=true; #Set true to remove all DPM blobs #XXX: Maybe breaks multi-sim and carrier aggregation (LTE+) |
45 |
| -export DOS_DEBLOBBER_REMOVE_DPP=false; #Set true to remove all Display Post Processing blobs #XXX: Breaks boot on select devices |
46 |
| -export DOS_DEBLOBBER_REMOVE_FACE=false; #Set true to remove all face unlock blobs |
47 |
| -export DOS_DEBLOBBER_REMOVE_FP=false; #Set true to remove all fingerprint reader blobs |
48 |
| -export DOS_DEBLOBBER_REMOVE_EUICC=true; #Set true to remove all Google eUICC blobs |
49 |
| -export DOS_DEBLOBBER_REMOVE_EUICC_FULL=false; #Set true to remove all hardware eUICC blobs |
50 |
| -export DOS_DEBLOBBER_REMOVE_IMS=false; #Set true to remove all IMS blobs #XXX: Carriers are phasing out 3G, making IMS mandatory for calls |
51 |
| -export DOS_DEBLOBBER_REMOVE_IPA=false; #Set true to remove all IPA blobs |
52 |
| -export DOS_DEBLOBBER_REMOVE_IR=false; #Set true to remove all IR blobs |
53 |
| -export DOS_DEBLOBBER_REMOVE_RCS=true; #Set true to remove all RCS blobs |
| 39 | +export DOS_DEBLOBBER_REMOVE_ACCESSORIES="${DOS_DEBLOBBER_REMOVE_ACCESSORIES:-true}"; #Set false to allow use of external accessories that depend on blobs |
| 40 | +export DOS_DEBLOBBER_REMOVE_ATFWD="${DOS_DEBLOBBER_REMOVE_ATFWD:-true}"; #Set true to remove basic ATFWD blobs |
| 41 | +export DOS_DEBLOBBER_REMOVE_AUDIOFX="${DOS_DEBLOBBER_REMOVE_AUDIOFX:-true}"; #Set true to remove AudioFX |
| 42 | +export DOS_DEBLOBBER_REMOVE_APTX="${DOS_DEBLOBBER_REMOVE_APTX:-false}"; #Set true to remove aptX Bluetooth codec |
| 43 | +export DOS_DEBLOBBER_REMOVE_CNE="${DOS_DEBLOBBER_REMOVE_CNE:-true}"; #Set true to remove all CNE blobs #XXX: Breaks Wi-Fi calling |
| 44 | +export DOS_DEBLOBBER_REMOVE_DPM="${DOS_DEBLOBBER_REMOVE_DPM:-true}"; #Set true to remove all DPM blobs #XXX: Maybe breaks multi-sim and carrier aggregation (LTE+) |
| 45 | +export DOS_DEBLOBBER_REMOVE_DPP="${DOS_DEBLOBBER_REMOVE_DPP:-false}"; #Set true to remove all Display Post Processing blobs #XXX: Breaks boot on select devices |
| 46 | +export DOS_DEBLOBBER_REMOVE_FACE="${DOS_DEBLOBBER_REMOVE_FACE:-false}"; #Set true to remove all face unlock blobs |
| 47 | +export DOS_DEBLOBBER_REMOVE_FP="${DOS_DEBLOBBER_REMOVE_FP:-false}"; #Set true to remove all fingerprint reader blobs |
| 48 | +export DOS_DEBLOBBER_REMOVE_EUICC="${DOS_DEBLOBBER_REMOVE_EUICC:-true}"; #Set true to remove all Google eUICC blobs |
| 49 | +export DOS_DEBLOBBER_REMOVE_EUICC_FULL="${DOS_DEBLOBBER_REMOVE_EUICC_FULL:-false}"; #Set true to remove all hardware eUICC blobs |
| 50 | +export DOS_DEBLOBBER_REMOVE_IMS="${DOS_DEBLOBBER_REMOVE_IMS:-false}"; #Set true to remove all IMS blobs #XXX: Carriers are phasing out 3G, making IMS mandatory for calls |
| 51 | +export DOS_DEBLOBBER_REMOVE_IPA="${DOS_DEBLOBBER_REMOVE_IPA:-false}"; #Set true to remove all IPA blobs |
| 52 | +export DOS_DEBLOBBER_REMOVE_IR="${DOS_DEBLOBBER_REMOVE_IR:-false}"; #Set true to remove all IR blobs |
| 53 | +export DOS_DEBLOBBER_REMOVE_RCS="${DOS_DEBLOBBER_REMOVE_RCS:-true}"; #Set true to remove all RCS blobs |
54 | 54 |
|
55 | 55 | #Features
|
56 |
| -export DOS_HOSTS_BLOCKING=true; #Set false to prevent inclusion of a HOSTS file |
57 |
| -export DOS_HOSTS_BLOCKING_LIST="https://divested.dev/hosts-wildcards"; #Must be in the format "127.0.0.1 bad.domain.tld" |
58 |
| -export DOS_SENSORS_PERM=false; #Set true to provide a per-app sensors permission for 14.1/15.1 #XXX: can break things like camera |
59 |
| -export DOS_USE_KSM=false; #Set true to use KSM for increased memory efficiency at the cost of easier side-channel attacks and increased CPU usage #XXX: testing only |
| 56 | +export DOS_HOSTS_BLOCKING="${DOS_HOSTS_BLOCKING:-true}"; #Set false to prevent inclusion of a HOSTS file |
| 57 | +export DOS_HOSTS_BLOCKING_LIST="${DOS_HOSTS_BLOCKING_LIST:-https://divested.dev/hosts-wildcards}"; #Must be in the format "127.0.0.1 bad.domain.tld" |
| 58 | +export DOS_SENSORS_PERM="${DOS_SENSORS_PERM:-false}"; #Set true to provide a per-app sensors permission for 14.1/15.1 #XXX: can break things like camera |
| 59 | +export DOS_USE_KSM="${DOS_USE_KSM:-false}"; #Set true to use KSM for increased memory efficiency at the cost of easier side-channel attacks and increased CPU usage #XXX: testing only |
60 | 60 |
|
61 | 61 | #Servers
|
62 |
| -export DOS_DEFAULT_DNS_PRESET="Quad9"; #Sets default DNS. Options: See changeDefaultDNS() in Scripts/Common/Functions.sh |
63 |
| -export DOS_GPS_NTP_SERVER="2.android.pool.ntp.org"; #Options: Any NTP pool |
64 |
| -export DOS_GPS_SUPL_HOST="supl.google.com"; #Options: Any *valid* SUPL server |
| 62 | +export DOS_DEFAULT_DNS_PRESET="${DOS_DEFAULT_DNS_PRESET:-Quad9}"; #Sets default DNS. Options: See changeDefaultDNS() in Scripts/Common/Functions.sh |
| 63 | +export DOS_GPS_NTP_SERVER="${DOS_GPS_NTP_SERVER:-2.android.pool.ntp.org}"; #Options: Any NTP pool |
| 64 | +export DOS_GPS_SUPL_HOST="${DOS_GPS_SUPL_HOST:-supl.google.com}"; #Options: Any *valid* SUPL server |
65 | 65 |
|
66 | 66 | #Release Processing
|
67 |
| -export DOS_MALWARE_SCAN_BEFORE_SIGN=false; #Scan device files for malware before signing |
68 |
| -export DOS_GENERATE_DELTAS=false; #Creates deltas from existing target_files in $DOS_BUILDS |
69 |
| -export DOS_AUTO_ARCHIVE_BUILDS=true; #Copies files to $DOS_BUILDS after signing |
70 |
| -export DOS_REMOVE_AFTER=true; #Removes device OUT directory after complete to reclaim space. Requires AUTO_ARCHIVE_BUILDS=true |
71 |
| -export DOS_REMOVE_AFTER_FULL=false; #Removes the entire OUT directory |
72 |
| -export DOS_GPG_SIGNING=true; |
73 |
| -export DOS_GPG_SIGNING_KEY="B8744D67F9F1E14E145DFD8E7F627E920F316994"; |
| 67 | +export DOS_MALWARE_SCAN_BEFORE_SIGN="${DOS_MALWARE_SCAN_BEFORE_SIGN:-false}"; #Scan device files for malware before signing |
| 68 | +export DOS_GENERATE_DELTAS="${DOS_GENERATE_DELTAS:-false}"; #Creates deltas from existing target_files in $DOS_BUILDS |
| 69 | +export DOS_AUTO_ARCHIVE_BUILDS="${DOS_AUTO_ARCHIVE_BUILDS:-true}"; #Copies files to $DOS_BUILDS after signing |
| 70 | +export DOS_REMOVE_AFTER="${DOS_REMOVE_AFTER:-true}"; #Removes device OUT directory after complete to reclaim space. Requires AUTO_ARCHIVE_BUILDS=true |
| 71 | +export DOS_REMOVE_AFTER_FULL="${DOS_REMOVE_AFTER_FULL:-false}"; #Removes the entire OUT directory |
| 72 | +export DOS_GPG_SIGNING="${DOS_GPG_SIGNING:-true}"; |
| 73 | +export DOS_GPG_SIGNING_KEY="${DOS_GPG_SIGNING_KEY:-B8744D67F9F1E14E145DFD8E7F627E920F316994}"; |
74 | 74 |
|
75 | 75 | #Branding
|
76 |
| -export DOS_BRANDING_ORG="Divested Computing Group"; |
77 |
| -export DOS_BRANDING_NAME="DivestOS"; |
78 |
| -export DOS_BRANDING_EMAIL= "[email protected]"; |
79 |
| -export DOS_BRANDING_ZIP_PREFIX="divested"; |
80 |
| -export DOS_BRANDING_BOOTANIMATION_FONT="Fira-Sans-Heavy"; #Options: $ convert -list font |
81 |
| -export DOS_BRANDING_BOOTANIMATION_STYLE="plasma"; #Options: gradient, plasma |
| 76 | +export DOS_BRANDING_ORG="${DOS_BRANDING_ORG:-Divested Computing Group}"; |
| 77 | +export DOS_BRANDING_NAME="${DOS_BRANDING_NAME:-DivestOS}"; |
| 78 | +export DOS_BRANDING_EMAIL="${DOS_BRANDING_EMAIL:-support@divestos.org}"; |
| 79 | +export DOS_BRANDING_ZIP_PREFIX="${DOS_BRANDING_ZIP_PREFIX:-divested}"; |
| 80 | +export DOS_BRANDING_BOOTANIMATION_FONT="${DOS_BRANDING_BOOTANIMATION_FONT:-Fira-Sans-Heavy}"; #Options: $ convert -list font |
| 81 | +export DOS_BRANDING_BOOTANIMATION_STYLE="${DOS_BRANDING_BOOTANIMATION_STYLE:-plasma}"; #Options: gradient, plasma |
82 | 82 | #export DOS_BRANDING_BOOTANIMATION_COLOR="#FF5722-#FF8A65"; #gradient
|
83 |
| -export DOS_BRANDING_BOOTANIMATION_COLOR="#FF5722-#03A9F4"; #plasma |
84 |
| -export DOS_BRANDING_LINK_ABOUT="https://divestos.org/pages/about"; |
85 |
| -export DOS_BRANDING_LINK_NEWS="https://divestos.org/pages/news"; |
86 |
| -export DOS_BRANDING_LINK_PRIVACY="https://divestos.org/pages/privacy_policy"; |
| 83 | +export DOS_BRANDING_BOOTANIMATION_COLOR="${DOS_BRANDING_BOOTANIMATION_COLOR:-#FF5722-#03A9F4}"; #plasma |
| 84 | +export DOS_BRANDING_LINK_ABOUT="${DOS_BRANDING_LINK_ABOUT:-https://divestos.org/pages/about}"; |
| 85 | +export DOS_BRANDING_LINK_NEWS="${DOS_BRANDING_LINK_NEWS:-https://divestos.org/pages/news}"; |
| 86 | +export DOS_BRANDING_LINK_PRIVACY="${DOS_BRANDING_LINK_PRIVACY:-https://divestos.org/pages/privacy_policy}"; |
87 | 87 |
|
88 | 88 | #OTAs
|
89 |
| -export DOS_OTA_SERVER_PRIMARY="https://divestos.org/updater.php"; |
90 |
| -export DOS_OTA_SERVER_EXTENDED=true; #Enable to provide multiple choices as set below |
91 |
| -export DOS_OTA_SERVER_SECONDARY="https://divestos.eeyo.re/updater.php"; |
92 |
| -export DOS_OTA_SERVER_SECONDARY_NAME="Cloudflare"; |
93 |
| -export DOS_OTA_SERVER_ONION_PRIMARY="http://divestoseb5nncsydt7zzf5hrfg44md4bxqjs5ifcv4t7gt7u6ohjyyd.onion/updater.php"; |
94 |
| -export DOS_OTA_SERVER_ONION_SECONDARY="http://2ceyag7ppvhliszes2v25n5lmpwhzqrc7sv72apqka6hwggfi42y2uid.onion/updater.php"; |
95 |
| -export DOS_OTA_SERVER_ONION_DOMAIN_PRIMARY="divestoseb5nncsydt7zzf5hrfg44md4bxqjs5ifcv4t7gt7u6ohjyyd.onion"; #Used for network security config |
96 |
| -export DOS_OTA_SERVER_ONION_DOMAIN_SECONDARY="2ceyag7ppvhliszes2v25n5lmpwhzqrc7sv72apqka6hwggfi42y2uid.onion"; |
| 89 | +export DOS_OTA_SERVER_PRIMARY="${DOS_OTA_SERVER_PRIMARY:-https://divestos.org/updater.php}"; |
| 90 | +export DOS_OTA_SERVER_EXTENDED="${DOS_OTA_SERVER_EXTENDED:-true}"; #Enable to provide multiple choices as set below |
| 91 | +export DOS_OTA_SERVER_SECONDARY="${DOS_OTA_SERVER_SECONDARY:-https://divestos.eeyo.re/updater.php}"; |
| 92 | +export DOS_OTA_SERVER_SECONDARY_NAME="${DOS_OTA_SERVER_SECONDARY_NAME:-Cloudflare}"; |
| 93 | +export DOS_OTA_SERVER_ONION_PRIMARY="${DOS_OTA_SERVER_ONION_PRIMARY:-http://divestoseb5nncsydt7zzf5hrfg44md4bxqjs5ifcv4t7gt7u6ohjyyd.onion/updater.php}"; |
| 94 | +export DOS_OTA_SERVER_ONION_SECONDARY="${DOS_OTA_SERVER_ONION_SECONDARY:-http://2ceyag7ppvhliszes2v25n5lmpwhzqrc7sv72apqka6hwggfi42y2uid.onion/updater.php}"; |
| 95 | +export DOS_OTA_SERVER_ONION_DOMAIN_PRIMARY="${DOS_OTA_SERVER_ONION_DOMAIN_PRIMARY:-divestoseb5nncsydt7zzf5hrfg44md4bxqjs5ifcv4t7gt7u6ohjyyd.onion}"; #Used for network security config |
| 96 | +export DOS_OTA_SERVER_ONION_DOMAIN_SECONDARY="${DOS_OTA_SERVER_ONION_DOMAIN_SECONDARY:-2ceyag7ppvhliszes2v25n5lmpwhzqrc7sv72apqka6hwggfi42y2uid.onion}"; |
97 | 97 |
|
98 | 98 | #Theme
|
99 |
| -export DOS_THEME_50="FFCA28"; #Amber 400 |
100 |
| -export DOS_THEME_100="FFC107"; #Amber 500 |
101 |
| -export DOS_THEME_200="FFA726"; #Orange 400 |
102 |
| -export DOS_THEME_300="FF9800"; #Orange 500 |
103 |
| -export DOS_THEME_500="FF5722"; #Deep Orange 500 |
104 |
| -export DOS_THEME_700="E64A19"; #Deep Orange 700 |
| 99 | +export DOS_THEME_50="${DOS_THEME_50:-FFCA28}"; #Amber 400 |
| 100 | +export DOS_THEME_100="${DOS_THEME_100:-FFC107}"; #Amber 500 |
| 101 | +export DOS_THEME_200="${DOS_THEME_200:-FFA726}"; #Orange 400 |
| 102 | +export DOS_THEME_300="${DOS_THEME_300:-FF9800}"; #Orange 500 |
| 103 | +export DOS_THEME_500="${DOS_THEME_500:-FF5722}"; #Deep Orange 500 |
| 104 | +export DOS_THEME_700="${DOS_THEME_700:-E64A19}"; #Deep Orange 700 |
105 | 105 | #
|
106 | 106 | #END OF USER CONFIGURABLE OPTIONS
|
107 | 107 | #
|
|
0 commit comments