blob: 55ebc4677a12988c11db66afb3689a3acde11c13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "[x] Incorrect arguments!"
echo " Using: $0 <BASE_DIR> <TMP_DIR>"
exit 1
fi
BASE_DIR=$1
TMP_DIR=$2
SCRIPT_DIR=$(dirname "$(realpath "${BASH_SOURCE[0]}")")
cp -L "$TMP_DIR/res/configs/preferred-apps/preferred-apps-driedlamu.xml" "${BASE_DIR}"/product_a/etc/preferred-apps
./utils/scripts/add_to_fs.sh product_a "preferred-apps-driedlamu.xml" etc/preferred-apps 1
cp -L -r "$TMP_DIR/res/configs/sysconfig/app.lawnchair-hiddenapi-package-whitelist.xml" "${BASE_DIR}/product_a/etc/sysconfig"
./utils/scripts/add_to_fs.sh product_a app.lawnchair-hiddenapi-package-whitelist.xml etc/sysconfig
"${SCRIPT_DIR}"/modify_configs.sh "$BASE_DIR"
"${SCRIPT_DIR}"/remove_configs.sh "$BASE_DIR"
|