mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-21 23:00:46 -08:00
Update BusyBox
BusyBox is unable to run properly on non-root applications due to seccomp introduced in Android 8.0. The SDK-21 libc.a has system call wrappers that uses the system calls on the whitelist, so binaries compiled with the updated libc can work properly.
This commit is contained in:
8
build.py
8
build.py
@@ -122,10 +122,6 @@ def build_binary(args):
|
|||||||
old_platform = False
|
old_platform = False
|
||||||
flags = base_flags
|
flags = base_flags
|
||||||
|
|
||||||
if 'busybox' in targets:
|
|
||||||
flags += ' B_BB=1'
|
|
||||||
old_platform = True
|
|
||||||
|
|
||||||
if 'b64xz' in targets:
|
if 'b64xz' in targets:
|
||||||
flags += ' B_BXZ=1'
|
flags += ' B_BXZ=1'
|
||||||
old_platform = True
|
old_platform = True
|
||||||
@@ -163,6 +159,10 @@ def build_binary(args):
|
|||||||
flags += ' B_BOOT=1'
|
flags += ' B_BOOT=1'
|
||||||
other = True
|
other = True
|
||||||
|
|
||||||
|
if 'busybox' in targets:
|
||||||
|
flags += ' B_BB=1'
|
||||||
|
other = True
|
||||||
|
|
||||||
if other:
|
if other:
|
||||||
proc = subprocess.run('{} -C native {} -j{}'.format(ndk_build, flags, cpu_count), shell=True)
|
proc = subprocess.run('{} -C native {} -j{}'.format(ndk_build, flags, cpu_count), shell=True)
|
||||||
if proc.returncode != 0:
|
if proc.returncode != 0:
|
||||||
|
|||||||
2
native/jni/external/busybox
vendored
2
native/jni/external/busybox
vendored
Submodule native/jni/external/busybox updated: e074d81e46...47a1fdda34
Reference in New Issue
Block a user