#!/system/bin/sh
if [ $(id -u) != 0 ]; then echo "请使用root权限执行本脚本！"; exit 1; fi; clear; mkdir -p "/data/local/tmp/document" || { echo "error请联系开发者（Contact the developer）"; exit 1; }; CURRENT_DIR="$(cd "$(dirname "$0")" && pwd)"; TARGET_DIR="/data/local/tmp/document"; if [ ! -f "$CURRENT_DIR/A64" ] && [ ! -d "$CURRENT_DIR/A64" ]; then echo "error请联系开发者（Contact the developer）"; exit 1; fi; if [ ! -f "$CURRENT_DIR/Auxiliary" ]; then echo "error请联系开发者（Contact the developer）"; exit 1; fi; if [ ! -f "$CURRENT_DIR/libzqzz.so" ]; then echo "error请联系开发者（Contact the developer）"; exit 1; fi; rm -f "$TARGET_DIR/A64" 2>/dev/null || true; rm -f "$TARGET_DIR/Auxiliary" 2>/dev/null || true; rm -f "$TARGET_DIR/libzqzz.so" 2>/dev/null || true; rm -rf "$TARGET_DIR/A64" 2>/dev/null || true; cp "$CURRENT_DIR/A64" "$TARGET_DIR/" 2>/dev/null || cp -r "$CURRENT_DIR/A64" "$TARGET_DIR/" 2>/dev/null || echo "error请联系开发者（Contact the developer）"; cp "$CURRENT_DIR/Auxiliary" "$TARGET_DIR/" 2>/dev/null || echo "error请联系开发者（Contact the developer）"; cp "$CURRENT_DIR/libzqzz.so" "$TARGET_DIR/" 2>/dev/null || echo "error请联系开发者（Contact the developer）"; chmod 755 "$TARGET_DIR/Auxiliary" 2>/dev/null || echo "error请联系开发者（Contact the developer）"; chmod 755 "$TARGET_DIR/A64" 2>/dev/null || echo "error请联系开发者（Contact the developer）"; chmod 755 "$TARGET_DIR/libzqzz.so" 2>/dev/null || echo "error请联系开发者（Contact the developer）"; chmod -R 755 "$TARGET_DIR/A64" 2>/dev/null || echo "error请联系开发者（Contact the developer）"; cd "$TARGET_DIR" && "./Auxiliary"
