fix: 支持明文网络请求,增强安装脚本自动卸载冲突签名,优化设置页AI配置响应

This commit is contained in:
shen
2026-09-15 21:30:56 +08:00
parent 6fcffc968f
commit 4f22e974af
3 changed files with 19 additions and 12 deletions
+6 -2
View File
@@ -23,9 +23,13 @@ if [ ! -f "$APK_PATH" ]; then
fi
echo "🚀 正在安装 APK 到手机..."
adb install -r "$APK_PATH"
if ! adb install -r "$APK_PATH"; then
echo "⚠️ 覆盖安装失败(签名不一致或版本冲突),正在卸载旧版本并重新安装..."
adb uninstall com.shen.kouyu_english || true
adb install -r "$APK_PATH"
fi
echo "▶️ 正在手机上启动 口英语 App..."
echo "▶️ 正在手机上启动 口英语 App..."
adb shell monkey -p com.shen.kouyu_english -c android.intent.category.LAUNCHER 1 > /dev/null 2>&1 || true
echo "✅ 安装并启动成功!"