Files
syncthing-android/scripts/debug/win/restart.cmd
2025-08-22 18:55:39 +02:00

12 lines
333 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"
::
adb shell am force-stop "%PACKAGE_NAME%"
adb shell am start -n "%PACKAGE_NAME%/com.nutomic.syncthingandroid.activities.FirstStartActivity"
::
goto :eof