添加 Hook 消息接收与本地调试模式,便于 LSPosed/Telegram 联调。

新增 HookMessageReceiver 与通知服务 Hook 上报链路,支持未登录本地监听;补充 build/install 脚本并忽略 platform-tools 与 xposed 构建产物。
This commit is contained in:
2026-07-02 12:36:08 +08:00
parent f0eebb834e
commit 7c80b7073a
14 changed files with 246 additions and 57 deletions

23
scripts/install-debug.ps1 Normal file
View File

@@ -0,0 +1,23 @@
# Install debug APK 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"
if (-not (Test-Path $apk)) {
Write-Host "APK not found. Run scripts\build-debug.ps1 first." -ForegroundColor Red
exit 1
}
$sdk = "C:\Users\Administrator\AppData\Local\Android\Sdk"
$adb = Join-Path $sdk "platform-tools\adb.exe"
if (-not (Test-Path $adb)) {
Write-Host "adb not found at $adb" -ForegroundColor Red
exit 1
}
& $adb devices
Write-Host "Installing $apk ..."
& $adb install -r $apk
if ($LASTEXITCODE -eq 0) {
Write-Host "Install OK." -ForegroundColor Green
}