mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-01 16:51:16 +00:00
Move debug scripts to /debug_scripts, Add "adb_pull_syncthing_log.cmd"
This commit is contained in:
parent
05c124f049
commit
86a7f78b74
4 changed files with 23 additions and 0 deletions
23
debug_scripts/adb_pull_syncthing_log.cmd
Normal file
23
debug_scripts/adb_pull_syncthing_log.cmd
Normal file
|
@ -0,0 +1,23 @@
|
|||
@echo off
|
||||
cls
|
||||
SET SCRIPT_PATH=%~dps0
|
||||
cd /d "%SCRIPT_PATH%"
|
||||
REM
|
||||
REM Script Consts.
|
||||
REM SET INTERNAL_STORAGE_MOUNT_POINT=/storage/emulated/0
|
||||
SET INTERNAL_STORAGE_MOUNT_POINT=/storage/sdcard0
|
||||
REM
|
||||
REM SET PACKAGE_NAME=com.github.catfriend1.syncthingandroid
|
||||
SET PACKAGE_NAME=com.github.catfriend1.syncthingandroid.debug
|
||||
REM
|
||||
echo [INFO] Pulling "syncthing.log" from connected Android device ...
|
||||
SET LOG_DATETIMESTAMP=%DATE:~-4%-%DATE:~-7,-5%-%DATE:~-10,-8%_%time:~-11,2%-%time:~-8,2%-%time:~-5,2%
|
||||
SET LOCAL_FILE="%SCRIPT_PATH%%LOG_DATETIMESTAMP%_syncthing.log"
|
||||
SET REMOTE_FILE="%INTERNAL_STORAGE_MOUNT_POINT%/Android/data/%PACKAGE_NAME%/files/syncthing.log"
|
||||
adb pull %REMOTE_FILE% %LOCAL_FILE%
|
||||
REM
|
||||
REM End of Script.
|
||||
timeout 3
|
||||
goto :eof
|
||||
|
||||
|
Loading…
Reference in a new issue