From f433a5e6556c93386c5e018285efe038c83afa8f Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 10 Jun 2015 14:46:05 -0400 Subject: [PATCH] expose start action via a BroadcastReceiver that any app can send to This allows any app to broadcast an Intent to Orbot in order to make Orbot start in the background. closes #3117 https://dev.guardianproject.info/issues/3117 --- AndroidManifest.xml | 10 +++++++++- .../torproject/android/OrbotMainActivity.java | 10 +++++----- .../android/service/OnBootReceiver.java | 4 ++-- .../android/service/StartTorReceiver.java | 20 +++++++++++++++++++ .../android/service/TorService.java | 2 +- .../android/service/TorServiceConstants.java | 2 +- 6 files changed, 38 insertions(+), 10 deletions(-) create mode 100644 src/org/torproject/android/service/StartTorReceiver.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 603ac703..23f5e4e5 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -87,7 +87,15 @@ android:permission="org.torproject.android.MANAGE_TOR" android:stopWithTask="false" > - + + + + + + +