File tree 4 files changed +20
-1
lines changed
src/main/java/dev/ukanth/ufirewall
4 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ android {
28
28
}
29
29
}
30
30
31
+
31
32
lint {
32
33
abortOnError true
33
34
disable ' MissingTranslation'
Original file line number Diff line number Diff line change @@ -1853,6 +1853,15 @@ private static boolean installBinariesMips() {
1853
1853
return true ;
1854
1854
}
1855
1855
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
+
1856
1865
private static boolean installBinariesArm () {
1857
1866
if (!installBinary (ctx , R .raw .busybox_arm , "busybox" )) return false ;
1858
1867
if (!installBinary (ctx , R .raw .iptables_arm , "iptables" )) return false ;
@@ -1867,6 +1876,8 @@ private static boolean installBinariesForAbi(String abi) {
1867
1876
return installBinariesX86 ();
1868
1877
} else if (abi .startsWith ("mips" )) {
1869
1878
return installBinariesMips ();
1879
+ } else if (abi .startsWith ("arm64" )) {
1880
+ return installBinariesArm64 ();
1870
1881
} else {
1871
1882
return installBinariesArm ();
1872
1883
}
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