Commit Graph
7081 Commits
Author SHA1 Message Date
Wang HanandJohn Wu 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
SoftasturandJohn Wu a4671b4698 Update Asturian translations
Fixing and updating
2025-01-05 03:15:31 -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
PzqqtandJohn Wu e73ff679ac scripts: flash_script.sh: Avoid overly dangerous code 2024-12-27 16:02:24 -08:00
Wang HanandGitHub 53e401fa2d Perform authentication if needed for AutomaticResponse setting 2024-12-27 16:00:02 -08:00
LoveSyandJohn Wu 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
LoveSyandJohn Wu a6c2ba7c1e Allow kernel to relabel 2024-12-27 12:35:29 -08:00
LoveSyandJohn Wu aae5b466fb Use rust to implement collect/reset overlay context 2024-12-27 12:35:29 -08:00
5ec1cffandJohn Wu 2b7be8b949 init: reset overlay.d files context after sepolicy loaded 2024-12-27 12:35:29 -08:00
5ec1cffandJohn Wu b6511a510d Revert "Allow all domains to access tmpfs files"
This reverts commit da43ac89a0.
2024-12-27 12:35:29 -08:00
Wang HanandJohn Wu 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 231a5d1853 Cleanup test code 2024-12-25 22:26:30 -08:00
topjohnwu 9e2b59060d Drive app migration tests through instrumentation
Make tests less flaky
2024-12-25 22:26:30 -08:00
topjohnwu 08ea937f7c Test su request via instrumentation 2024-12-25 22:26:30 -08:00
topjohnwu 2baedf74d1 Install and test LSPosed through test app 2024-12-25 22:26:30 -08:00
topjohnwu 32faa4ced6 Redesign test APK architecture
The test APK and the main APK share the same process and classloader,
and in the non-hidden case, the test APK's classes take precedence over
the ones in the main APK. This causes issues because the test APK and
main APK share some dependencies, but don't always use the same
version. This is especially problematic for the Kotlin stdlib and
AndroidX dependencies.

The solution here is to rely on R8's obfuscation feature and repackage
all potentially conflicting classes into a separate package in the test
APK. To ensure that the test classes are always using the same classes
as the main APK, we have to directly implement all tests inside the main
APK, making the test APK purely a "test runner with test dependencies".

As a result, the test APK can only be used when built in release mode,
because R8 no longer allow class obfuscation to be enabled when building
for debug versions.
2024-12-25 20:17:57 -08:00
topjohnwu ccdb0b5d13 Add ability to skip certain test variants 2024-12-25 20:11:21 -08:00
topjohnwu 8506b672ad Update CI operating system 2024-12-23 22:52:30 -08:00
topjohnwu ce2e33bb20 Cleanup test scripts 2024-12-23 20:42:54 -08:00
topjohnwu 6707b72260 Fix AVD tests 2024-12-23 20:41:42 -08:00
topjohnwu 5885b8c20d Add new tests for app hiding 2024-12-18 17:22:31 -08:00
topjohnwu 820710c086 Fix incorrect SQLite syntax 2024-12-18 17:22:31 -08:00
topjohnwu 51cf196bf7 Always use root to hide/restore app 2024-12-18 17:22:31 -08:00
Wang HanandJohn Wu dadba44cf9 Update module installer guide about META-INF 2024-12-17 16:36:40 -08:00
topjohnwu 2ce4a5543b Make ndk-build happy when Rust libs are missing 2024-12-13 17:00:40 -08:00
topjohnwu 9112a3a4f5 Introduce instrumentation tests 2024-12-13 12:07:42 -08:00
topjohnwu 24615afda1 Remove usage of ProcessLifecycle 2024-12-13 12:07:42 -08:00
topjohnwu c5778f398b Cleanup imports 2024-12-13 12:07:42 -08:00
topjohnwu 4eb4097b9b Split file processing into its own class 2024-12-13 12:07:42 -08:00
vvb2060andJohn Wu c512496847 install_module: simplify script 2024-12-12 10:08:09 -08:00
vvb2060andJohn Wu 506961a10d flash module: ignore META-INF 2024-12-12 10:07:47 -08:00
topjohnwu 3414415907 Support zip files with unsupported compresssion method 2024-12-12 02:50:19 -08:00
topjohnwu dc2ae7cfd1 Disable CI on master push
Changes should be done through PRs for CI
2024-12-12 02:50:19 -08:00
topjohnwu 2e86d21c29 16k pages only work on Android B on x64 2024-12-09 20:13:27 -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