mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-06 15:30:46 -05:00
Remove stub embedding from native and scripts
Remove stub.apk and stub.xz extraction, compression, ramdisk embedding, and daemon auto-installation from native components (magiskinit, magiskd, scripting), installation scripts, MagiskInstaller, and build.py. Assisted-by: Gemini 4 Argon
This commit is contained in:
@@ -233,7 +233,6 @@ static void recreate_sbin(const char *mirror, bool use_bind_mount) {
|
||||
|
||||
static void extract_files(bool sbin) {
|
||||
const char *magisk_xz = sbin ? "/sbin/magisk.xz" : "magisk.xz";
|
||||
const char *stub_xz = sbin ? "/sbin/stub.xz" : "stub.xz";
|
||||
const char *init_ld_xz = sbin ? "/sbin/init-ld.xz" : "init-ld.xz";
|
||||
|
||||
if (access(magisk_xz, F_OK) == 0) {
|
||||
@@ -243,13 +242,6 @@ static void extract_files(bool sbin) {
|
||||
unxz(fd, magisk);
|
||||
close(fd);
|
||||
}
|
||||
if (access(stub_xz, F_OK) == 0) {
|
||||
mmap_data stub(stub_xz);
|
||||
unlink(stub_xz);
|
||||
int fd = xopen("stub.apk", O_WRONLY | O_CREAT, 0);
|
||||
unxz(fd, stub);
|
||||
close(fd);
|
||||
}
|
||||
if (access(init_ld_xz, F_OK) == 0) {
|
||||
mmap_data init_ld(init_ld_xz);
|
||||
unlink(init_ld_xz);
|
||||
|
||||
Reference in New Issue
Block a user