mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-22 20:31:16 +00:00
Revert "Disable write test to work around (ref #1198)"
This reverts commit a9a863ace9
.
This commit is contained in:
parent
815f945bb4
commit
b99d6d47d4
1 changed files with 4 additions and 3 deletions
|
@ -153,11 +153,12 @@ public class Util {
|
|||
}
|
||||
Log.i(TAG, "Failed to write test file '" + touchFile +
|
||||
"', " + error);
|
||||
} else {
|
||||
// Detected we have write permission.
|
||||
Log.i(TAG, "Successfully wrote test file '" + touchFile + "'");
|
||||
return false;
|
||||
}
|
||||
|
||||
// Detected we have write permission.
|
||||
Log.i(TAG, "Successfully wrote test file '" + touchFile + "'");
|
||||
|
||||
// Remove test file.
|
||||
if (runShellCommand("rm \"" + touchFile + "\"\n", useRoot) != 0) {
|
||||
// This is very unlikely to happen, so we have less error handling.
|
||||
|
|
Loading…
Reference in a new issue