File tree 3 files changed +19
-1
lines changed
app/src/main/java/dev/ukanth/ufirewall
3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -1859,6 +1859,15 @@ private static boolean installBinariesMips() {
1859
1859
return true ;
1860
1860
}
1861
1861
1862
+ private static boolean installBinariesArm64 () {
1863
+ if (!installBinary (ctx , R .raw .busybox_arm64 , "busybox" )) return false ;
1864
+ if (!installBinary (ctx , R .raw .iptables_arm64 , "iptables" )) return false ;
1865
+ if (!installBinary (ctx , R .raw .ip6tables_arm64 , "ip6tables" )) return false ;
1866
+ if (!installBinary (ctx , R .raw .nflog_arm64 , "nflog" )) return false ;
1867
+ //if (!installBinary(ctx, R.raw.run_pie_arm64, "run_pie")) return false;
1868
+ return true ;
1869
+ }
1870
+
1862
1871
private static boolean installBinariesArm () {
1863
1872
if (!installBinary (ctx , R .raw .busybox_arm , "busybox" )) return false ;
1864
1873
if (!installBinary (ctx , R .raw .iptables_arm , "iptables" )) return false ;
@@ -1873,6 +1882,8 @@ private static boolean installBinariesForAbi(String abi) {
1873
1882
return installBinariesX86 ();
1874
1883
} else if (abi .startsWith ("mips" )) {
1875
1884
return installBinariesMips ();
1885
+ } else if (abi .startsWith ("arm64" )) {
1886
+ return installBinariesArm64 ();
1876
1887
} else {
1877
1888
return installBinariesArm ();
1878
1889
}
Original file line number Diff line number Diff line change
1
+ aarch64-linux-android /
1
2
arm-linux-androideabi /
2
3
i686-linux-android /
3
4
mipsel-linux-android /
Original file line number Diff line number Diff line change @@ -7,13 +7,19 @@ ARCH := arm
7
7
GCCVER := 4.9
8
8
9
9
# 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
11
11
APIVER := 21
12
12
ifeq ($(ARCH ) ,arm)
13
13
TRIPLET := arm-linux-androideabi
14
14
TOOLCHAIN := $(TRIPLET ) -$(GCCVER )
15
15
NDK_ABINAME := armeabi
16
16
endif
17
+ ifeq ($(ARCH ) ,arm64)
18
+ TRIPLET := aarch64-linux-android
19
+ TOOLCHAIN := $(TRIPLET ) -$(GCCVER )
20
+ APIVER := 21
21
+ NDK_ABINAME := arm64-v8a
22
+ endif
17
23
ifeq ($(ARCH ) ,x86)
18
24
TRIPLET := i686-linux-android
19
25
TOOLCHAIN := x86-$(GCCVER )
You can’t perform that action at this time.
0 commit comments