- 04 Nov, 2021 1 commit
-
-
LoveSy authored
`operator==` of string_view will create a tmp `string_view`. It's an UB if the `const char *` is a nullptr. `fdt_get_name` however will return a nullptr.
-
- 03 Nov, 2021 2 commits
- 02 Nov, 2021 6 commits
- 31 Oct, 2021 8 commits
-
-
topjohnwu authored
It might not be null terminated
-
topjohnwu authored
-
Nullptr authored
Make Api functions inline to avoid duplicate symbols when including api.hpp in multiple cpps
-
osm0sis authored
- stars aren't pounds, let's just call it a title bar :P
-
osm0sis authored
- expand utility of the basic module setup (zip without customize.sh) by setting more default perms, since really it couldn't do any simple binary files additions correctly withonly 0755 0644 - ensure CON stays local
-
topjohnwu authored
Close #4796
-
Chris Renshaw authored
Samsung Galaxy A21S and Galaxy M12, probably others, are hdr_v2 boot.img with 2SI judging by the ramdisk contents, but the dtb contains an extra cmdline with skip_initramfs present, even though this shouldn't exist on 2SI and the kernel apparently doesn't even contain a skip_initramfs function I can't find examples of other devices where skip_initramfs is present in the dtb other than these so patch it out like we do the kernel Co-authored-by:
topjohnwu <topjohnwu@gmail.com>
-
Chris Renshaw authored
Custom ROM bring-ups of legacy Sony devices contain the following: /init (symlink to /bin/init_sony) /init.real (the "real" Android init) /bin/init_sony (this was /sbin/init_sony on Android <11) Kernel loads the ramdisk and starts /init -> /bin/init_sony /bin/init_sony does low-level device setup (see: https://github.com/LineageOS/android_device_sony_common/blob/lineage-18.1/init/init_main.cpp) /bin/init_sony unlinks /init and renames /init.real to /init /bin/init_sony starts /init Since init_sony needs to run first magiskinit needs to replace init.real instead, so add workarounds based on detection of init.real to boot patcher and uninstaller Thanks @115ek and @bleckdeth Fixes #3636 Co-authored-by:
topjohnwu <topjohnwu@gmail.com>
-
- 29 Oct, 2021 9 commits
-
-
topjohnwu authored
-
残页 authored
Fix topjohnwu#4810 > [ 2.927463] [1: init: 1] magiskinit: Replace [/system/etc/selinux/plat_sepolicy.cil] -> [xxx] [ 2.936801] [1: init: 1] magiskinit: write failed with 14: Bad address Since topjohnwu#4596, magisk fails to patch `/init`, xwrite() fails with EFAULT, break the original `/init` file and make the device unbootable. Reverting this commit for legacy rootfs devices fixes the problem. I think this is a Samsung kernel magic since currently I can't reproduce this on other devices or find something special in the log currently we have.
-
残页 authored
Fix #4319 Some devices store init.rc into the new path but still have the legacy /init.rc file
-
vvb2060 authored
-
vvb2060 authored
-
残页 authored
-
vvb2060 authored
prevent cross mount namespace
-
topjohnwu authored
-
- 28 Oct, 2021 1 commit
-
-
topjohnwu authored
-
- 27 Oct, 2021 5 commits
- 26 Oct, 2021 4 commits
- 24 Oct, 2021 4 commits
-
-
topjohnwu authored
-
Arbri çoçka authored
-
0purple authored
-
Ilya Kushnir authored
-