topjohnwu
c8caaa98f5
Enable mount for nix
2025-09-09 20:17:09 -07:00
topjohnwu
ef4e230258
Use nix for libc functions
2025-09-08 23:59:29 -07:00
topjohnwu
17082af438
Simplify OsError
2025-09-08 11:25:20 -07:00
topjohnwu
1df5b34175
Stop differentiate Error vs ErrorCxx
2025-09-08 11:25:18 -07:00
topjohnwu
ea5fe7525d
Simplify LibcReturn
2025-09-08 10:55:57 -07:00
topjohnwu
fb0c4ea838
Fallback to userspace copy if splice failed
...
Fix #9032
2025-09-03 16:10:18 -07:00
topjohnwu
bc89c60977
Run cargo fmt
2025-09-02 22:06:08 -07:00
topjohnwu
653730d75e
Make cxx binding generate less code
2025-08-29 01:44:06 -07:00
topjohnwu
484d53ef7e
Update to ONDK r29.2
2025-08-28 16:15:59 -07:00
topjohnwu
2e4fa6864c
Make Utf8CStr a first class citizen in C++ codebase
...
Utf8CStr is in many cases a better string view class than
std::string_view, because it provides "view" access to a string buffer
that is guaranteed to be null terminated. It also has the additional
benefit of being UTF-8 verified and can seemlessly cross FFI boundaries.
We would want to start use more Utf8CStr in our existing C++ codebase.
2025-08-27 22:48:48 -07:00
topjohnwu
3599dcedfb
Make argh directly parse into Utf8CString
2025-08-27 01:26:41 -07:00
topjohnwu
bd2a47ba18
Merge libbase cpp files
2025-08-25 01:31:47 -07:00
topjohnwu
b861671391
Cleanup libbase
2025-08-25 01:31:47 -07:00
topjohnwu
e91fc75d86
Consolidate for_each implementation into Rust
2025-08-25 01:31:47 -07:00
topjohnwu
87b8fe374d
Fix magiskboot cli parsing
2025-08-23 20:31:15 -07:00
topjohnwu
7b706bb0cb
Cleanup and fix compress/decompress command
2025-08-23 20:31:15 -07:00
topjohnwu
c1491b8d2b
Fix LoggedResult implementation error
2025-08-23 15:25:52 -07:00
topjohnwu
fd193c3cae
Simplify ResultExt implementation
...
Also introduce OptionExt
2025-08-22 12:03:47 -07:00
topjohnwu
36d33c7a85
Make log_err directly return LoggedResult
2025-08-22 12:03:47 -07:00
topjohnwu
af51880a81
Introduce CmdArgs for argument parsing in Rust
2025-08-21 12:21:22 -07:00
topjohnwu
cd0eca20b0
Migrate connect.cpp to Rust
2025-08-08 21:06:41 -07:00
topjohnwu
7961be5cfa
Migrate prepare_modules to Rust
2025-08-05 11:24:55 -07:00
vvb2060
ff18cb8e70
su: support drop capabilities
2025-07-03 02:42:08 -07:00
topjohnwu
37a9724a54
Apply clippy fix
2025-07-02 21:20:14 -07:00
topjohnwu
1460317ebd
Cleanup C++ headers
2025-06-16 02:25:38 -07:00
topjohnwu
b36066bbcd
Run clippy fix
2025-06-10 16:34:38 -07:00
Wang Han
0b494ed7df
Avoid throwing error if chmod a symlink
...
It is possible that we want to clone attributes of a regular file to a
symlink. In this case, we don't need to error out if chmod fails. Just
skip it.
2025-06-06 17:08:34 -07:00
topjohnwu
d8cf42af16
Reduce unstable feature usage
2025-05-30 11:11:36 -07:00
topjohnwu
dc0acea47c
Remove C++ I/O streams
2025-05-20 03:26:00 -07:00
topjohnwu
78d1200608
Migrate all compression code to Rust
2025-05-20 03:26:00 -07:00
topjohnwu
527bbc0368
Migrate module mounting to Rust
2025-05-20 03:24:43 -07:00
topjohnwu
4f4b1ff885
Add sepolicy.rule patching tests
2025-05-13 14:08:54 -07:00
topjohnwu
03e034795d
Implement Ord and PartialOrd for Utf8CStr familiy
2025-05-05 11:33:33 -07:00
vvb2060
86da917174
core: fix mkdirs
2025-05-02 16:39:46 -07:00
topjohnwu
d1829308e9
Move more daemon_start code into Rust
2025-04-28 17:22:14 -07:00
topjohnwu
73840f8721
Migrate selinux.cpp to selinux.rs
2025-04-28 17:22:14 -07:00
topjohnwu
c7d1af9805
Stop using PathBuf in package.rs
2025-04-28 17:22:14 -07:00
topjohnwu
4ad26d3dfb
Better path methods
2025-04-28 17:22:14 -07:00
topjohnwu
0c70b7670c
Cleanup dir implementations
2025-04-28 17:22:14 -07:00
topjohnwu
f44d044095
Remove Utf8CStrBuffer
2025-04-28 17:22:14 -07:00
topjohnwu
5c1cb13472
Remove AsUtf8CStr trait
2025-04-28 17:22:14 -07:00
topjohnwu
3327fc668e
Remove FsPath and FsPathMnt trait
...
Directly use Utf8CStr
2025-04-28 17:22:14 -07:00
topjohnwu
610945ac54
Remove open_fd macro
2025-04-28 17:22:14 -07:00
topjohnwu
e02b5f7868
Rename cstr_buf to cstr::buf
2025-04-22 03:21:00 -07:00
topjohnwu
ab2e5d1e7e
Make FsPathBuf a trait and rename to FsPathBuilder
2025-04-22 03:21:00 -07:00
topjohnwu
f3fef7bfe4
Make FsPath a trait
2025-04-22 03:21:00 -07:00
topjohnwu
c34c7838bb
Cleanup cstr implementation
2025-04-22 03:21:00 -07:00
topjohnwu
c8a16b0e0c
Remove unused code
2025-04-16 17:13:03 -07:00
topjohnwu
14f9ed91a1
Remove unused methods
2025-04-15 11:35:31 -07:00
topjohnwu
7a207d4ccf
Only accept UTF-8 directory entries
2025-04-15 10:26:22 -07:00