feat: Telegram 双通道抓取、PC 调试台与 Hook 后台转发修复
v2.2.1 更新说明: - 新增 xposed-module(Telegram/微信/SQLite Hook),双 APK + LSPosed 作用域 - HookMessageReceiver 后台直接 DebugForwarder + goAsync,修复 notiMessage 退后台丢消息 - MessageLogStore 日志持久化;AppConfig 调试/上传开关;PC 调试台 debug-server - 健康检查去掉联网限制;通知/Hook 通道增加诊断日志 - 安装脚本 install-full/configure-lsposed/start-debug-server;文档 CHANGELOG + HOOK_GUIDE
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
# Install debug APK to connected Android device via adb
|
||||
# Install debug APKs to connected Android device via adb
|
||||
$ErrorActionPreference = "Stop"
|
||||
$ProjectRoot = Split-Path -Parent $PSScriptRoot
|
||||
$apk = Join-Path $ProjectRoot "app\build\outputs\apk\debug\app-debug.apk"
|
||||
$appApk = Join-Path $ProjectRoot "app\build\outputs\apk\debug\app-debug.apk"
|
||||
$xposedApk = Join-Path $ProjectRoot "xposed-module\build\outputs\apk\debug\xposed-module-debug.apk"
|
||||
|
||||
if (-not (Test-Path $apk)) {
|
||||
Write-Host "APK not found. Run scripts\build-debug.ps1 first." -ForegroundColor Red
|
||||
if (-not (Test-Path $appApk)) {
|
||||
Write-Host "App APK not found. Run scripts\build-debug.ps1 first." -ForegroundColor Red
|
||||
exit 1
|
||||
}
|
||||
|
||||
@@ -16,8 +17,25 @@ if (-not (Test-Path $adb)) {
|
||||
}
|
||||
|
||||
& $adb devices
|
||||
Write-Host "Installing $apk ..."
|
||||
& $adb install -r $apk
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
Write-Host "Install OK." -ForegroundColor Green
|
||||
Write-Host "Installing app: $appApk ..."
|
||||
& $adb shell settings put global verifier_verify_adb_installs 0 2>$null
|
||||
& $adb install -r -t -g $appApk
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Write-Host "Retry install with --bypass-low-target-sdk-block ..."
|
||||
& $adb install -r -t -g --bypass-low-target-sdk-block $appApk
|
||||
}
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
|
||||
if (Test-Path $xposedApk) {
|
||||
Write-Host "Installing xposed module: $xposedApk ..."
|
||||
& $adb install -r -t -g $xposedApk
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
& $adb install -r -t -g --bypass-low-target-sdk-block $xposedApk
|
||||
}
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
} else {
|
||||
Write-Host "Xposed APK not found, skipped." -ForegroundColor Yellow
|
||||
}
|
||||
|
||||
Write-Host "Install OK." -ForegroundColor Green
|
||||
Write-Host "Remember to enable the module in LSPosed and scope Telegram + notiMessage."
|
||||
|
||||
Reference in New Issue
Block a user