Merge branch 'tor64' into 'master'

Add support for 64-bit Tor binaries

Closes #1506

See merge request briar/briar!1161
This commit is contained in:
akwizgran
2019-10-14 16:33:53 +00:00
3 changed files with 13 additions and 5 deletions

View File

@@ -88,9 +88,15 @@ public class AndroidTorPluginFactory implements DuplexPluginFactory {
// Check that we have a Tor binary for this architecture
String architecture = null;
for (String abi : AndroidUtils.getSupportedArchitectures()) {
if (abi.startsWith("x86")) {
if (abi.startsWith("x86_64")) {
architecture = "x86_64";
break;
} else if (abi.startsWith("x86")) {
architecture = "x86";
break;
} else if (abi.startsWith("arm64")) {
architecture = "arm64";
break;
} else if (abi.startsWith("armeabi")) {
architecture = "arm";
break;