[bramble-android] add support for 64-bit Tor binaries

This commit is contained in:
Torsten Grote
2019-10-07 09:22:17 -03:00
parent 3a4de3d2cb
commit c247d745df
3 changed files with 11 additions and 5 deletions

View File

@@ -89,9 +89,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;