mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
8348d6e39cfd2654863a4b179fb1a89f2f636f88
Remove reliance on /proc/self/fd symlink resolution across base and core components: - Add top-level pre_order_walk and post_order_walk that track entry paths via an internal buffer, and unify Directory walk methods to support path-tracking and pathless traversals without extra overhead. - Add DirEntry::get_stat using fstatat(AT_SYMLINK_NOFOLLOW) directly on directory file descriptors. - Update Directory::copy_into and link_into to operate directly on file descriptors with fd_get_attr/fd_set_attr, passing paths only for symlink attribute updates. - Refactor find_apk_path and restore_tmpcon to use pre_order_walk, and update get_app_no_list to use DirEntry::get_stat. - Remove DirEntry::resolve_path, Directory::path_at, Directory::resolve_path, and fd_path. - Replace remaining consumers of xrealpath and canonical_path (in su and magiskinit) with standard realpath or partition matching, allowing removal of Utf8CStr::realpath and its C FFI exports. Assisted-by: Gemini 3.8 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
43.7%
Rust
31.2%
C++
17.5%
Shell
3.8%
Python
2.4%
Other
1.3%
