mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-26 06:11:19 +00:00
Insert missing version 0.3.1 version bump into history.
This commit is contained in:
commit
bee6270737
1 changed files with 4 additions and 6 deletions
|
@ -6,7 +6,6 @@ import android.app.Service;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.os.AsyncTask;
|
import android.os.AsyncTask;
|
||||||
import android.os.Environment;
|
|
||||||
import android.os.IBinder;
|
import android.os.IBinder;
|
||||||
import android.support.v4.app.NotificationCompat;
|
import android.support.v4.app.NotificationCompat;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
@ -125,10 +124,9 @@ public class SyncthingService extends Service {
|
||||||
try {
|
try {
|
||||||
Process p = Runtime.getRuntime().exec("sh");
|
Process p = Runtime.getRuntime().exec("sh");
|
||||||
dos = new DataOutputStream(p.getOutputStream());
|
dos = new DataOutputStream(p.getOutputStream());
|
||||||
// Set home directory to sdcard (so the "create repo" hint makes sense)
|
// Set home directory to data folder for syncthing to use.
|
||||||
dos.writeBytes("HOME=" +
|
dos.writeBytes("HOME=" + getApplicationInfo().dataDir + "\n");
|
||||||
Environment.getExternalStorageDirectory().toString() + "\n");
|
// Call syncthing with -home (as it would otherwise use "~/.config/syncthing/".
|
||||||
// Set syncthing config folder to app data folder.
|
|
||||||
dos.writeBytes(getApplicationInfo().dataDir + "/" + BINARY_NAME + " " +
|
dos.writeBytes(getApplicationInfo().dataDir + "/" + BINARY_NAME + " " +
|
||||||
"-home " + getApplicationInfo().dataDir + "\n");
|
"-home " + getApplicationInfo().dataDir + "\n");
|
||||||
dos.writeBytes("exit\n");
|
dos.writeBytes("exit\n");
|
||||||
|
@ -137,7 +135,7 @@ public class SyncthingService extends Service {
|
||||||
ret = p.waitFor();
|
ret = p.waitFor();
|
||||||
|
|
||||||
// Write syncthing binary output to log.
|
// Write syncthing binary output to log.
|
||||||
// NOTE: This is only done on shutdown, not in real time.
|
// NOTE: This is only done on shutdown, not live.
|
||||||
isr = new InputStreamReader(p.getInputStream());
|
isr = new InputStreamReader(p.getInputStream());
|
||||||
BufferedReader stdout = new BufferedReader(isr);
|
BufferedReader stdout = new BufferedReader(isr);
|
||||||
String line;
|
String line;
|
||||||
|
|
Loading…
Reference in a new issue