-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround cleanupIntervalS timer not firing: Force cleanup on startup (
- Loading branch information
1 parent
f02d7db
commit 56630b5
Showing
3 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@echo off | ||
cls | ||
SET SCRIPT_PATH=%~dps0 | ||
cd /d "%SCRIPT_PATH%" | ||
REM | ||
REM Script Consts. | ||
REM | ||
REM SET PACKAGE_NAME=com.github.catfriend1.syncthingandroid | ||
SET PACKAGE_NAME=com.github.catfriend1.syncthingandroid.debug | ||
REM | ||
:loopMe | ||
cls | ||
adb shell "su root cat /data/data/%PACKAGE_NAME%/files/config.xml" > "%SCRIPT_PATH%config.xml" | ||
IF EXIST "%SCRIPT_PATH%config.xml" TYPE "%SCRIPT_PATH%config.xml" | findstr /c:"<folder id=" /c:"<cleanupIntervalS>" | findstr /v /c:"<folder id=""""" | ..\psreplace ".*label=" "" | ..\psreplace "path=.*" "" | ||
echo. | ||
pause | ||
echo. | ||
echo ========================================================== | ||
echo. | ||
goto :loopMe |