mirror of
https://github.com/Catfriend1/syncthing-android.git
synced 2025-11-05 13:29:46 +08:00
15 lines
382 B
Batchfile
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
|