Files
syncthing-android/scripts/debug/win/update.cmd
Catfriend1 b22e7125f5 workflow/release: remove packages read permission (#1670)
minor cleanup to match with the other repo
2025-09-26 11:40:14 +02:00

15 lines
382 B
Batchfile

@echo off
setlocal enabledelayedexpansion
::
SET "SCRIPT_PATH=%~dp0"
SET "PROJECT_ROOT=%SCRIPT_PATH%..\..\.."
SET /P PACKAGE_NAME=< "%PROJECT_ROOT%\scripts\debug\package_id.txt"
SET "APK_FULLFN=%PROJECT_ROOT%\app\build\outputs\apk\debug\app-debug.apk"
::
dir "%APK_FULLFN%"
adb install -r "%APK_FULLFN%"
::
adb shell pm grant "%PACKAGE_NAME%" android.permission.CAMERA
::
goto :eof