mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-09-22 22:25:18 -04:00
2fc7a6d2842e8fbb46285b9bc46a1c707a435c0b
Update wait_for_boot to monitor the background emulator process and fail immediately if it crashes, avoiding indefinite blocking on adb wait-for-device. Implement timeout handling directly in the polling loop without relying on subshell timeout wrappers. In run_main, capture emulator stdout/stderr to a temporary log and dump its contents on failure for easier debugging. Temporarily disable tracing within wait_for_boot during polling to keep test logs clean while preserving the caller's shell tracing state. Assisted-by: Gemini 3.7 Flash
This is not an officially supported Google product
Introduction
Magisk is a suite of open source software for customizing Android, supporting devices higher than Android 6.0.
Some highlight features:
- MagiskSU: Provide root access for applications
- Magisk Modules: Modify read-only partitions by installing modules
- MagiskBoot: The most complete tool for unpacking and repacking Android boot images
- Zygisk: Run code in every Android applications' processes
Downloads
Github is the only source where you can get official Magisk information and downloads.
Useful Links
Bug Reports
Only bug reports from Debug builds will be accepted.
For installation issues, upload both boot image and install logs.
For Magisk issues, upload boot logcat or dmesg.
For Magisk app crashes, record and upload the logcat when the crash occurs.
Translation Contributions
Default string resources for the Magisk app and its stub APK are located here:
app/core/src/main/res/values/strings.xmlapp/stub-res/src/main/res/values/strings.xml
Translate each and place them in the respective locations ([module]/src/main/res/values-[lang]/strings.xml).
License
Magisk, including all git submodules are free software:
you can redistribute it and/or modify it under the terms of the
GNU General Public License as published by the Free Software Foundation,
either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Languages
Kotlin
44.6%
Rust
27.8%
C++
15.9%
Java
6.1%
Shell
3.2%
Other
2.4%
