From ac8329c7f279b1e3afb747cff8b15c2fa1821bf1 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 10 Jun 2015 18:00:30 -0400 Subject: [PATCH] create a new pref: "Allow Background Starts" This lets the user disable the new ACTION_START Intent, in case they have more sensitive needs. --- res/values/strings.xml | 2 ++ res/xml/preferences.xml | 5 +++++ src/org/torproject/android/Prefs.java | 5 +++++ src/org/torproject/android/service/StartTorReceiver.java | 6 +++++- 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 87aa35fe..decd8920 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -126,6 +126,8 @@ Entrance Nodes Fingerprints, nicks, countries and addresses for the first hop Enter Entrance Nodes + Allow Background Starts + Let any app tell Orbot to start Tor and related services Proxy All Proxy None diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml index d910fee2..e1e1828a 100644 --- a/res/xml/preferences.xml +++ b/res/xml/preferences.xml @@ -22,6 +22,11 @@ android:summary="@string/pref_use_expanded_notifications" android:enabled="true" android:title="@string/pref_use_expanded_notifications_title"/> +