Files
notiMessage/scripts/install-debug.ps1
Mars 7c80b7073a 添加 Hook 消息接收与本地调试模式,便于 LSPosed/Telegram 联调。
新增 HookMessageReceiver 与通知服务 Hook 上报链路,支持未登录本地监听;补充 build/install 脚本并忽略 platform-tools 与 xposed 构建产物。
2026-07-02 12:36:08 +08:00

24 lines
702 B
PowerShell

# 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
}