From 4c0d7ada8fa332b12f5a5a5bba454b60ebbe6984 Mon Sep 17 00:00:00 2001 From: Nathan Freitas Date: Thu, 17 Apr 2014 10:15:15 -0400 Subject: [PATCH] check for evil samsung proxy app that blocks 9050 --- src/org/torproject/android/Orbot.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/org/torproject/android/Orbot.java b/src/org/torproject/android/Orbot.java index 43a797dd..5e68e926 100644 --- a/src/org/torproject/android/Orbot.java +++ b/src/org/torproject/android/Orbot.java @@ -98,6 +98,8 @@ public class Orbot extends ActionBarActivity implements TorConstants, OnLongClic mTorService = new Intent(this, TorService.class); getApplication().getApplicationContext().startService(mTorService); + + appConflictChecker (); } @@ -278,6 +280,22 @@ public class Orbot extends ActionBarActivity implements TorConstants, OnLongClic } + private void appConflictChecker () + { + + String[] badApps = {"com.sec.msc.nts.android.proxy"}; + + for (String badApp : badApps) + { + if (appInstalledOrNot(badApp)) + { + showAlert(getString(R.string.title_error),"Please uninstall or disable this app if you are having problems with Orbot: " + badApp,true); + break; + } + } + } + + private void showAbout ()