/
vendorsetup.sh
29 lines (23 loc) · 909 Bytes
/
vendorsetup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
echo "Extra vendor detected"
# Fetch latest bormite webview apks
/usr/bin/python3 vendor/extra/scripts/latestbromite.py
# Update custom hosts including my changes
if [ -d "external/hosts/extensions/unconv/" ]; then
echo "Merging personal changes to hosts file"
/usr/bin/python3 external/hosts/updateHostsFile.py -n -m -s
echo "Replacing duplicates domains with wildcards in hosts file"
/usr/bin/python3 vendor/extra/scripts/wildcardhosts.py external/hosts/hosts_unconv vendor/extra/adaway/
# Build my custom Ad-block file
export INPUT_ADBLOCK_FILE=vendor/extra/adaway/hosts_unconv_w
fi
# Don't bother,get the zip ready without haste
export USER_BUILD_NO_CHANGELOG=1
echo "Changelog will be skipped"
function cherrypicker() {
T=$(gettop)
$T/vendor/extra/scripts/cherrypicker.py $@
}
function logspammers() {
T=$(gettop)
$T/vendor/extra/scripts/logspammers.py $@
}