topjohnwu
049db49dc8
Use preprocessor for 64bit detection
2025-01-11 00:15:10 +08:00
Wang Han
7c1d2ec61e
zygisk: Let client send arch info
2025-01-11 00:15:10 +08:00
topjohnwu
a1b2830c06
Address clippy warnings
2025-01-11 00:11:48 +08:00
topjohnwu
82d1d19267
Migrate uid_granted_root to Rust
2025-01-11 00:11:48 +08:00
topjohnwu
4d4195c02d
Migrate prune_su_access to Rust
2025-01-11 00:11:48 +08:00
topjohnwu
5637a258fc
Migrate package detection to Rust
2025-01-11 00:11:48 +08:00
topjohnwu
ee6810f417
Rewrite magisk logging implementation
2025-01-11 00:11:48 +08:00
topjohnwu
7098248c64
Add more functionality into Rust
2025-01-11 00:11:48 +08:00
topjohnwu
0d31d356ef
Use SQLite's internal time function
2025-01-05 05:04:04 -08:00
topjohnwu
b782e7dcb7
Fetch policy table from Rust
2025-01-05 05:04:04 -08:00
topjohnwu
7edd8be169
Minor changes
2025-01-04 02:24:08 -08:00
topjohnwu
24650eefe4
Bind SQLite to Rust
2025-01-04 02:24:08 -08:00
topjohnwu
8e1a44e7eb
Use argument binding for query
2025-01-04 02:24:08 -08:00
topjohnwu
2722875190
Use better C++ SQL APIs
2025-01-04 02:24:08 -08:00
topjohnwu
3ca6d06f69
Cleanup database code
2025-01-04 02:24:08 -08:00
topjohnwu
10e47248de
Use finer grain sqlite3 APIs
2025-01-04 02:24:08 -08:00
LoveSy
d2768357da
Support systemlessly deleting files or folders
...
After we refactor the magic mount and always mount folder as tmpfs,
we can easily support deleting files or folders now. We recognize
dummy devices with major number 0 and minor number 0 as an indicator
for removing files and folders. This indicator is borrowed from
overlayfs.
2024-12-27 15:57:54 -08:00
LoveSy
a6c2ba7c1e
Allow kernel to relabel
2024-12-27 12:35:29 -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
5ec1cff
b6511a510d
Revert "Allow all domains to access tmpfs files"
...
This reverts commit da43ac89a07c7b13b4cf4ae1539c95363ecd1f9f.
2024-12-27 12:35:29 -08:00
Wang Han
704541aef2
Use /metadata/watchdog as preinit dir if exists
...
Since Android 15, all domains are allowed to search /metadata so preinit
dir will be exposed. Use /metadata/watchdog when /metadata is chosen as
preinit device, and the dir is available (since Android 11).
2024-12-27 10:35:05 -08:00
topjohnwu
005560a4c5
Always rescan manager APK when database is updated
2024-12-26 12:18:38 -08:00
topjohnwu
5885b8c20d
Add new tests for app hiding
2024-12-18 17:22:31 -08:00
topjohnwu
2ce4a5543b
Make ndk-build happy when Rust libs are missing
2024-12-13 17:00:40 -08:00
vvb2060
c512496847
install_module: simplify script
2024-12-12 10:08:09 -08:00
topjohnwu
2654382c43
Address clippy warnings
2024-12-09 18:26:39 -08:00
topjohnwu
9e26b73813
Update rust dependencies
2024-12-09 18:26:39 -08:00
topjohnwu
10cd13bf80
Update ONDK r28.1
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
vvb2060
849b284da5
core: insert symlink magisk_node
2024-12-06 02:19:32 -08:00
topjohnwu
09c7ac754b
Simplify MagiskD Rust/C++ FFI
2024-12-03 15:51:17 -08:00
topjohnwu
805da67c23
Update cxx-rs
2024-12-03 14:16:14 -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
topjohnwu
da43ac89a0
Allow all domains to access tmpfs files
...
Fix #8457
2024-11-30 23:21:33 -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 b38fd1ca5f15ed22858c7737879c38d360e78eac.
2024-11-30 23:03:29 -08:00
vvb2060
7dbb973db5
daemon: some samsung devices using incorrect mediatek-res path
2024-11-04 11:09:53 -08:00
topjohnwu
7188de1205
Support unaligned boot image file
...
Fix #7733
2024-10-06 03:01:08 -07:00
topjohnwu
8086b5933c
Update crt0
...
Fix #8424
2024-10-02 16:37:07 -07:00
残页
5b29fefc65
Replace LOGE with LOGW so the process don't abort
...
Co-authored-by: 南宫雪珊 <vvb2060@gmail.com>
2024-09-25 11:59:58 -07:00
残页
16a168535d
Check sepolicy database version in add_xperm_rule
...
Fix #8344
2024-09-25 11:59:58 -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
niels
0d9ee89e7f
magiskboot: cleanup bootconfig and vendor ramdisk dir
2024-09-14 23:08:22 -07:00
Wang Han
53d7cbc11b
Clarify magiskboot requirements for repacking img
2024-09-08 01:13:46 -07:00
vvb2060
b38fd1ca5f
init: support 2SI devices with skip_initramfs
2024-09-03 16:33:57 -07:00
vvb2060
f723ef153b
zygisk_node: skip magisk32 if 64bit zygote only
2024-08-22 11:58:29 -07:00
topjohnwu
7cf56b4406
Simplify ramdisk test
2024-08-21 16:46:37 -07:00
LoveSy
55e78a7b1a
BYD XDJA container support
2024-08-19 17:50:16 -07:00