mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 04:18:53 +01:00
add the ability for briar-android to get the current country.
- this will be useful later for e.g. auto-disabling Tor
This commit is contained in:
@@ -44,6 +44,7 @@ import org.briarproject.util.StringUtils;
|
||||
|
||||
import socks.Socks5Proxy;
|
||||
import socks.SocksSocket;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
@@ -275,6 +276,7 @@ class TorPlugin implements DuplexPlugin, EventHandler {
|
||||
out.close();
|
||||
}
|
||||
|
||||
@SuppressLint("NewApi")
|
||||
private boolean setExecutable(File f) {
|
||||
if(Build.VERSION.SDK_INT >= 9) {
|
||||
return f.setExecutable(true, true);
|
||||
|
||||
Reference in New Issue
Block a user