topjohnwu
3c7c46307a
Partially cleanup MagiskInit code
2025-02-15 18:27:45 -08:00
LoveSy
9a74e19117
Add log_ok() for log().ok()
2025-02-14 14:24:13 -08:00
LoveSy
b1e17706a4
Format code
2025-02-14 14:24:13 -08:00
LoveSy
caad129d69
Move MagiskInit::patch_sepolicy to rust
2025-02-14 14:24:13 -08:00
LoveSy
da58571ce5
Remove redundant rust export
2025-02-14 14:24:13 -08:00
LoveSy
2aa7f1c094
Move MagiskInit::check_two_stage to rust
2025-02-14 14:24:13 -08:00
LoveSy
823e31a91b
Use linker to link vfprintf as tiny_vfprintf
2025-02-14 14:24:13 -08:00
LoveSy
fb926ae302
Move MagiskInit::redirect_second_stage to rust
2025-02-14 14:24:13 -08:00
LoveSy
e0489eeffd
Move MagiskInit::first_stage to rust
2025-02-14 14:24:13 -08:00
LoveSy
dc9d5a4cac
Move MagiskInit::second_stage to rust
2025-02-14 14:24:13 -08:00
LoveSy
143743d0b0
Refactor init.cpp to init.rs
2025-02-14 14:24:13 -08:00
LoveSy
563f0d5ad5
Move BootConfig::print to rust
2025-02-14 14:24:13 -08:00
LoveSy
c99f4a591b
Move MagiskInit::exec_init to rust
2025-02-14 14:24:13 -08:00
LoveSy
449204e380
Move MagiskInit::prepare_data to rust
2025-02-14 14:24:13 -08:00
LoveSy
a85c4c6528
Move MagiskInit::MagiskInit to rust
2025-02-14 14:24:13 -08:00
LoveSy
d203a6fff6
Move MagiskInit to rust
2025-02-14 14:24:13 -08:00
LoveSy
6c612d66d7
Move BootConfig to rust
2025-02-14 14:24:13 -08:00
topjohnwu
b7ca73f431
Remove an additional unique_ptr indirection
2025-02-05 14:18:16 +08:00
LoveSy
3981c9665e
Replace rust inner functions to try blocks
2025-02-02 22:09:55 +08:00
topjohnwu
ee6810f417
Rewrite magisk logging implementation
2025-01-11 00:11:48 +08:00
LoveSy
aae5b466fb
Use rust to implement collect/reset overlay context
2024-12-27 12:35:29 -08:00
5ec1cff
2b7be8b949
init: reset overlay.d files context after sepolicy loaded
2024-12-27 12:35:29 -08:00
topjohnwu
2654382c43
Address clippy warnings
2024-12-09 18:26:39 -08:00
vvb2060
4fb539c110
core: use a new tmpfs as worker
2024-12-06 02:19:43 -08:00
topjohnwu
3c6889505b
Stop using polymorphism in magiskinit
2024-12-03 02:18:22 -08:00
topjohnwu
c8e9ce7627
Cleanup mount code in magiskinit
2024-12-03 02:18:22 -08:00
vvb2060
830fc758b9
init: Use apex dir to determine whether 2SI
2024-11-30 23:03:29 -08:00
vvb2060
0f3cfef278
Revert "init: support 2SI devices with skip_initramfs"
...
This reverts commit b38fd1ca5f .
2024-11-30 23:03:29 -08:00
topjohnwu
8086b5933c
Update crt0
...
Fix #8424
2024-10-02 16:37:07 -07:00
Wang Han
7af273e047
Don't append "start logd" in post-fs-data
...
This was first done in b13eb3f because magiskd was started in
post-fs stage that time. Among all android versions, logd was all
started before post-fs-data.
2024-09-16 00:30:36 -07:00
vvb2060
b38fd1ca5f
init: support 2SI devices with skip_initramfs
2024-09-03 16:33:57 -07:00
LoveSy
55e78a7b1a
BYD XDJA container support
2024-08-19 17:50:16 -07:00
LoveSy
e9e2ecf2dd
load partition_map only once
2024-08-15 10:10:18 -07:00
LoveSy
9a9e617c35
Use find_if
2024-08-15 10:10:18 -07:00
LoveSy
3a0becc783
Use parse_impl for partition_map
2024-08-15 10:10:18 -07:00
ChsBuffer
1f974cb220
Use androidboot.partition_map as a fallback for matching partition names in the preinit finding.
2024-08-15 10:10:18 -07:00
LoveSy
1db80228e8
Move worker mount to magiskinit
2024-08-15 02:39:51 -07:00
LoveSy
838e1e254d
Move devpts mount to magiskinit
2024-08-15 02:39:51 -07:00
topjohnwu
606d076251
Build debug with thin lto
2024-07-31 17:00:01 -07:00
topjohnwu
33aebb5976
Stop embedding executables
2024-07-24 22:49:48 -07:00
LoveSy
f488e9df8f
Fix sepolicy rule path
2024-07-24 19:02:12 -07:00
vvb2060
2282365cf8
clean code
2024-07-23 02:02:56 -07:00
LoveSy
4dc1c59040
add missing xz_dec_end
2024-04-29 22:22:47 -07:00
topjohnwu
e6af5ed460
Address Rust warnings
2024-04-26 16:28:46 -07:00
topjohnwu
fb5ee86615
Install one single ABI in ramdisk
2024-03-31 22:01:22 -07:00
topjohnwu
21ed095601
Update crt0
2024-03-25 16:11:02 -07:00
vvb2060
10069215f4
Rename dir name
2024-03-19 23:21:41 -07:00
canyie
825c6c4316
Reverse format template argument order
2024-03-06 01:39:16 -08:00
canyie
f00408c793
Fix zygote restart monitor
2024-03-06 01:39:16 -08:00
LoveSy
b6c24a3a8a
No more sony init.real tricks
...
Co-authored-by: canyie <a1364259@163.com >
Co-authored-by: vvb2060 <vvb2060@gmail.com >
2024-02-29 23:40:00 -08:00