新增 HookMessageReceiver 与通知服务 Hook 上报链路,支持未登录本地监听;补充 build/install 脚本并忽略 platform-tools 与 xposed 构建产物。
24 lines
702 B
PowerShell
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
|
|
}
|