change path

This commit is contained in:
KOWX712
2024-12-02 00:24:56 +08:00
parent 785250d748
commit ba2e699ca5
5 changed files with 4 additions and 4 deletions

View File

@@ -17,4 +17,4 @@ if [ -d "$TS" ]; then
rm -rf "$TS/webroot" rm -rf "$TS/webroot"
fi fi
fi fi
xxd -r -p "$MODPATH/.default" | base64 -d > "$SCRIPT_DIR/keybox.xml" xxd -r -p "$MODPATH/default" | base64 -d > "$SCRIPT_DIR/keybox.xml"

View File

@@ -7,7 +7,7 @@ initialize() {
fi fi
cp "$MODPATH/module.prop" "$COMPATH/temp/module.prop" 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_extra.sh 0 2000 0755
set_perm $COMPATH/get_WebUI.sh 0 2000 0755 set_perm $COMPATH/get_WebUI.sh 0 2000 0755

View File

@@ -16,4 +16,4 @@ if [ -d "$TS" ]; then
rm -rf "$TS/webroot" rm -rf "$TS/webroot"
fi fi
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"

View File

@@ -390,7 +390,7 @@ async function selectDenylistApps() {
// Function to replace aosp kb // Function to replace aosp kb
async function aospkb() { async function aospkb() {
try { try {
const sourcePath = `${basePath}.default`; const sourcePath = `${basePath}default`;
const destinationPath = "/data/adb/tricky_store/keybox.xml"; const destinationPath = "/data/adb/tricky_store/keybox.xml";
await execCommand(`xxd -r -p ${sourcePath} | base64 -d > ${destinationPath}`); await execCommand(`xxd -r -p ${sourcePath} | base64 -d > ${destinationPath}`);
console.log("AOSP keybox copied successfully."); console.log("AOSP keybox copied successfully.");