tools+csdk: 恢复脱敏后脚本的可运行性——resume_android.ps1 的 adb 改为探测已知安装位置、resume_rev.ps1 对临时分析脚本加存在性守卫、legacy demo 两个 C 程序的日志/快照路径改用 getenv("TEMP") 运行时解析(原硬编码本机路径本就不可移植)
This commit is contained in:
@@ -9,7 +9,15 @@ Write-Host "Gradle: 工程wrapper android\gradlew.bat (JDK 21: C:\Tools\jdk-21)"
|
||||
Write-Host "SDK: $(Test-Path "$env:LOCALAPPDATA\Android\Sdk\platform-tools\adb.exe")"
|
||||
|
||||
Write-Host "=== 2. 设备 ==="
|
||||
adb devices
|
||||
# adb: PATH first, then the known SDK install locations
|
||||
$adb = Get-Command adb -ErrorAction SilentlyContinue
|
||||
if (-not $adb) {
|
||||
foreach ($cand in @("C:\Tools\android-sdk\platform-tools\adb.exe",
|
||||
"$env:LOCALAPPDATA\Android\Sdk\platform-tools\adb.exe")) {
|
||||
if (Test-Path $cand) { $adb = $cand; break }
|
||||
}
|
||||
}
|
||||
if ($adb) { & $adb devices } else { Write-Host "!!! adb 未找到(确认 Android SDK platform-tools 已安装)" }
|
||||
|
||||
Write-Host "=== 3. 构建 ==="
|
||||
Push-Location $andr
|
||||
|
||||
Reference in New Issue
Block a user