From 227cbeeb5b100aa992cd841206e2b53b45390518 Mon Sep 17 00:00:00 2001 From: KOWX712 Date: Tue, 3 Dec 2024 00:58:29 +0800 Subject: [PATCH] Revert "change path" This reverts commit ba2e699ca53ed82ccc2ef4c546649a83da2e6cc2. --- module/common/{default => .default} | 0 module/common/temp/uninstall.sh | 2 +- module/install_func.sh | 2 +- module/uninstall.sh | 2 +- module/webroot/index.js | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename module/common/{default => .default} (100%) diff --git a/module/common/default b/module/common/.default similarity index 100% rename from module/common/default rename to module/common/.default diff --git a/module/common/temp/uninstall.sh b/module/common/temp/uninstall.sh index a8c3af3..35fab9a 100644 --- a/module/common/temp/uninstall.sh +++ b/module/common/temp/uninstall.sh @@ -17,4 +17,4 @@ if [ -d "$TS" ]; then rm -rf "$TS/webroot" fi fi -xxd -r -p "$MODPATH/default" | base64 -d > "$SCRIPT_DIR/keybox.xml" +xxd -r -p "$MODPATH/.default" | base64 -d > "$SCRIPT_DIR/keybox.xml" diff --git a/module/install_func.sh b/module/install_func.sh index 7d50827..ea8dd27 100644 --- a/module/install_func.sh +++ b/module/install_func.sh @@ -7,7 +7,7 @@ initialize() { fi cp "$MODPATH/module.prop" "$COMPATH/temp/module.prop" - cp "$COMPATH/default" "$COMPATH/temp/default" + cp "$COMPATH/.default" "$COMPATH/temp/.default" set_perm $COMPATH/get_extra.sh 0 2000 0755 set_perm $COMPATH/get_WebUI.sh 0 2000 0755 diff --git a/module/uninstall.sh b/module/uninstall.sh index 2d104fc..3333ff2 100644 --- a/module/uninstall.sh +++ b/module/uninstall.sh @@ -16,4 +16,4 @@ if [ -d "$TS" ]; then rm -rf "$TS/webroot" fi fi -xxd -r -p "$MODPATH/common/default" | base64 -d > "$SCRIPT_DIR/keybox.xml" +xxd -r -p "$MODPATH/common/.default" | base64 -d > "$SCRIPT_DIR/keybox.xml" diff --git a/module/webroot/index.js b/module/webroot/index.js index e595cc2..861118d 100644 --- a/module/webroot/index.js +++ b/module/webroot/index.js @@ -390,7 +390,7 @@ async function selectDenylistApps() { // Function to replace aosp kb async function aospkb() { try { - const sourcePath = `${basePath}default`; + const sourcePath = `${basePath}.default`; const destinationPath = "/data/adb/tricky_store/keybox.xml"; await execCommand(`xxd -r -p ${sourcePath} | base64 -d > ${destinationPath}`); console.log("AOSP keybox copied successfully.");