Skip to content

Commit f2b787b

Browse files
authored
Merge branch 'beta' into code-cleanup
2 parents 5932feb + 4f5f4e5 commit f2b787b

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

app/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ android {
2828
}
2929
}
3030

31+
3132
lint {
3233
abortOnError true
3334
disable 'MissingTranslation'

app/src/main/java/dev/ukanth/ufirewall/Api.java

+11
Original file line numberDiff line numberDiff line change
@@ -1853,6 +1853,15 @@ private static boolean installBinariesMips() {
18531853
return true;
18541854
}
18551855

1856+
private static boolean installBinariesArm64() {
1857+
if (!installBinary(ctx, R.raw.busybox_arm64, "busybox")) return false;
1858+
if (!installBinary(ctx, R.raw.iptables_arm64, "iptables")) return false;
1859+
if (!installBinary(ctx, R.raw.ip6tables_arm64, "ip6tables")) return false;
1860+
if (!installBinary(ctx, R.raw.nflog_arm64, "nflog")) return false;
1861+
//if (!installBinary(ctx, R.raw.run_pie_arm64, "run_pie")) return false;
1862+
return true;
1863+
}
1864+
18561865
private static boolean installBinariesArm() {
18571866
if (!installBinary(ctx, R.raw.busybox_arm, "busybox")) return false;
18581867
if (!installBinary(ctx, R.raw.iptables_arm, "iptables")) return false;
@@ -1867,6 +1876,8 @@ private static boolean installBinariesForAbi(String abi) {
18671876
return installBinariesX86();
18681877
} else if (abi.startsWith("mips")) {
18691878
return installBinariesMips();
1879+
} else if (abi.startsWith("arm64")) {
1880+
return installBinariesArm64();
18701881
} else {
18711882
return installBinariesArm();
18721883
}

external/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
aarch64-linux-android/
12
arm-linux-androideabi/
23
i686-linux-android/
34
mipsel-linux-android/

external/Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,19 @@ ARCH := arm
77
GCCVER := 4.9
88

99
# You should be able to just 'make ARCH=x86' and it should DTRT.
10-
ARCH_LIST := arm x86 mips
10+
ARCH_LIST := arm arm64 x86 mips
1111
APIVER := 21
1212
ifeq ($(ARCH),arm)
1313
TRIPLET := arm-linux-androideabi
1414
TOOLCHAIN := $(TRIPLET)-$(GCCVER)
1515
NDK_ABINAME := armeabi
1616
endif
17+
ifeq ($(ARCH),arm64)
18+
TRIPLET := aarch64-linux-android
19+
TOOLCHAIN := $(TRIPLET)-$(GCCVER)
20+
APIVER := 21
21+
NDK_ABINAME := arm64-v8a
22+
endif
1723
ifeq ($(ARCH),x86)
1824
TRIPLET := i686-linux-android
1925
TOOLCHAIN := x86-$(GCCVER)

0 commit comments

Comments
 (0)