22884e173a
Implement reboot in Rust
2025-04-28 17:22:14 -07:00
d1829308e9
Move more daemon_start code into Rust
2025-04-28 17:22:14 -07:00
73840f8721
Migrate selinux.cpp to selinux.rs
2025-04-28 17:22:14 -07:00
c7d1af9805
Stop using PathBuf in package.rs
2025-04-28 17:22:14 -07:00
4ad26d3dfb
Better path methods
2025-04-28 17:22:14 -07:00
0c70b7670c
Cleanup dir implementations
2025-04-28 17:22:14 -07:00
f44d044095
Remove Utf8CStrBuffer
2025-04-28 17:22:14 -07:00
5c1cb13472
Remove AsUtf8CStr trait
2025-04-28 17:22:14 -07:00
3327fc668e
Remove FsPath and FsPathMnt trait
...
Directly use Utf8CStr
2025-04-28 17:22:14 -07:00
610945ac54
Remove open_fd macro
2025-04-28 17:22:14 -07:00
6ba1685ade
Fix some seopt log
2025-04-22 03:25:21 -07:00
e02b5f7868
Rename cstr_buf to cstr::buf
2025-04-22 03:21:00 -07:00
ab2e5d1e7e
Make FsPathBuf a trait and rename to FsPathBuilder
2025-04-22 03:21:00 -07:00
f3fef7bfe4
Make FsPath a trait
2025-04-22 03:21:00 -07:00
c34c7838bb
Cleanup cstr implementation
2025-04-22 03:21:00 -07:00
c8a16b0e0c
Remove unused code
2025-04-16 17:13:03 -07:00
14f9ed91a1
Remove unused methods
2025-04-15 11:35:31 -07:00
7a207d4ccf
Only accept UTF-8 directory entries
2025-04-15 10:26:22 -07:00
92a42d901f
Move most implementation into Directory
2025-04-15 10:26:22 -07:00
084d89fcce
Create Utf8CStrBuffer type
2025-04-15 10:26:22 -07:00
55b036c071
Introduce BorrowedDirectory
2025-04-15 10:26:22 -07:00
30e79310ab
Make pointers NonNull after error check
2025-04-15 00:18:48 -07:00
f063fa5054
Cleanup xwrap implementation
2025-04-15 00:18:48 -07:00
7bd901273c
Provide richer error messages
...
Make sure most syscall/libc calls results are mapped to OsResult
that can produce more detailed error messages.
2025-04-15 00:18:48 -07:00
cb08504fe5
Update cargo dependencies
2025-04-11 14:48:16 -07:00
c0a1fb77be
Code cleanup
2025-04-11 14:48:01 -07:00
4864c1112a
no pty for -c by default, and add -i to force pty
2025-04-11 13:21:10 -07:00
9ddeab034b
Fix wrong tty pump
...
See #1463
2025-04-11 13:21:10 -07:00
c4847ed288
Move pts to rust, and avoid using thread
2025-04-11 13:21:10 -07:00
b8f1523fb2
Minor code reorg
...
[skip ci]
2025-04-08 17:20:22 -07:00
9c7d359093
Optimize and format imports
...
[skip ci]
2025-04-08 09:57:09 -07:00
eb54bc1fd7
Cleanup unused code
2025-04-08 02:33:52 -07:00
d4a0286e13
Migrate magiskinit selinux.cpp to Rust
2025-04-08 02:33:52 -07:00
1523ed9f78
Always go through rustup proxies
2025-04-01 10:01:35 -07:00
2aba7247a9
Skip stub APK install on emulator
...
Reduce test flakiness
2025-03-26 13:15:12 -07:00
c2ece62e4c
native: delete global 16k option
...
NDK 28 enable 16 KiB page size compatibility option by default, delete the global option to restore 4k alignment for 32-bit arch.
2025-03-26 13:15:12 -07:00
50af14f2a3
Move all MagiskInit entrypoints into init.rs
2025-03-24 17:26:03 -07:00
e0a356b319
Introduce mount helper methods
2025-03-24 17:26:03 -07:00
c09a792958
Reorganize magiskinit code
2025-03-24 17:26:03 -07:00
0bbfe7f44d
Fix 2SI on legacy SAR devices
2025-03-24 17:26:03 -07:00
a396abf565
Minor changes
...
[skip ci]
2025-03-22 01:16:51 -07:00
52ef1d1cb2
Simplify matching selinux context of child zygote ( #8845 )
2025-03-11 01:27:15 -07:00
f14e3a89cc
Enable optimize_for_size for Rust std ( #8844 )
2025-03-10 15:50:43 -07:00
95d3eac2e0
Cleanup xwrap functions
2025-03-09 01:10:41 -08:00
12a0870bc9
Replace bzip2 with bz2-rs
2025-03-08 14:37:17 -08:00
6ff82c4e86
Introduce FsPathFollow
...
Make sure all operations of FsPath do not follow symlinks, and provide
a way to explicitly switch over to a set of operations that DO follow
symlinks by FsPath::follow_link.
2025-03-07 15:51:51 -08:00
c64de35375
Move magiskpolicy cli to argh
2025-03-07 14:29:30 -08:00
bd0e954fea
Replace zlib with zlib-rs
2025-03-07 11:40:02 -08:00
675471a49e
Upgrade argh to stable release
2025-03-07 02:38:36 -08:00
c90e73ccec
Migration to Edition 2024
2025-03-07 02:35:25 -08:00