-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c710888
Showing
676 changed files
with
68,654 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Set the default behavior, in case people don't have core.autocrlf set. | ||
* text eol=lf | ||
|
||
# Explicitly declare text files you want to always be normalized and converted | ||
# to native line endings on checkout. | ||
# *.c text | ||
# *.h text | ||
|
||
# Declare files that will always have CRLF line endings on checkout. | ||
*.cmd text eol=crlf | ||
*.bat text eol=crlf | ||
|
||
# Denote all files that are truly binary and should not be modified. | ||
tools/** binary | ||
*.jar binary | ||
*.exe binary | ||
*.apk binary | ||
*.png binary | ||
*.jpg binary | ||
*.ttf binary | ||
|
||
# Help GitHub detect languages | ||
native/jni/external/** linguist-vendored | ||
native/jni/systemproperties/** linguist-language=C++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: "" | ||
labels: "" | ||
assignees: "" | ||
--- | ||
|
||
<!-- | ||
## READ BEFORE OPENING ISSUES | ||
All bug reports require you to **USE DEBUG BUILDS**. Please include the version name and version code in the bug report. | ||
If you experience a bootloop, attach a `dmesg` (kernel logs) when the device refuse to boot. This may very likely require a custom kernel on some devices as `last_kmsg` or `pstore ramoops` are usually not enabled by default. In addition, please also upload the result of `cat /proc/mounts` when your device is working correctly **WITHOUT MAGISK**. | ||
If you experience issues during installation, in recovery, upload the recovery logs, or in Magisk, upload the install logs. Please also upload the `boot.img` or `recovery.img` that you are using for patching. | ||
If you experience a crash of Magisk app, dump the full `logcat` **when the crash happens**. | ||
If you experience other issues related to Magisk, upload `magisk.log`, and preferably also include a boot `logcat` (start dumping `logcat` when the device boots up) | ||
**DO NOT** open issues regarding root detection. | ||
**DO NOT** ask for instructions. | ||
**DO NOT** report issues if you have any modules installed. | ||
Without following the rules above, your issue will be closed without explanation. | ||
--> | ||
|
||
Device: | ||
Android version: | ||
Magisk version name: | ||
Magisk version code: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: XDA Community Support | ||
url: https://forum.xda-developers.com/f/magisk.5903/ | ||
about: Please ask and answer questions here. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
name: Magisk Build | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
paths: | ||
- "app/**" | ||
- "native/**" | ||
- "stub/**" | ||
- "buildSrc/**" | ||
- "build.py" | ||
- "gradle.properties" | ||
- ".github/workflows/build.yml" | ||
pull_request: | ||
branches: [master] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: "recursive" | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: "temurin" | ||
java-version: "17" | ||
|
||
- name: Set up Python 3 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Set up sccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
variant: sccache | ||
key: ${{ runner.os }}-${{ github.sha }} | ||
restore-keys: ${{ runner.os }} | ||
max-size: 10000M | ||
|
||
- name: Cache Gradle dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
!~/.gradle/caches/build-cache-* | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} | ||
restore-keys: ${{ runner.os }}-gradle- | ||
|
||
- name: Cache build cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches/build-cache-* | ||
key: ${{ runner.os }}-build-cache-${{ github.sha }} | ||
restore-keys: ${{ runner.os }}-build-cache- | ||
|
||
- name: Set up NDK | ||
run: python build.py -v ndk | ||
|
||
- name: Build release | ||
run: | | ||
python build.py -vr all | ||
- name: Build debug | ||
run: | | ||
python build.py -v all | ||
- name: Stop gradle daemon | ||
run: ./gradlew --stop | ||
|
||
# Only upload artifacts built on Linux | ||
- name: Upload build artifact | ||
if: runner.os == 'Linux' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ github.sha }} | ||
path: out | ||
|
||
- name: Upload mapping and native debug symbols | ||
if: runner.os == 'Linux' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ github.sha }}-symbols | ||
path: app/build/outputs | ||
|
||
test: | ||
name: Test on ${{ matrix.api }} | ||
runs-on: macos-latest | ||
needs: build | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
api: [23, 26, 28, 29, 34] | ||
|
||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: "temurin" | ||
java-version: "17" | ||
|
||
- name: Set up Python 3 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Download build artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: ${{ github.sha }} | ||
path: out | ||
|
||
- name: AVD test | ||
run: | | ||
brew install coreutils | ||
scripts/avd_test.sh ${{ matrix.api }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
out | ||
*.zip | ||
*.jks | ||
*.apk | ||
/config.prop | ||
/update.sh | ||
/dict.txt | ||
|
||
# Built binaries | ||
native/out | ||
|
||
# Android Studio / Gradle | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea | ||
/build | ||
/captures |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[submodule "selinux"] | ||
path = native/src/external/selinux | ||
url = https://github.com/topjohnwu/selinux.git | ||
[submodule "busybox"] | ||
path = native/src/external/busybox | ||
url = https://github.com/topjohnwu/ndk-busybox.git | ||
[submodule "dtc"] | ||
path = native/src/external/dtc | ||
url = https://github.com/dgibson/dtc.git | ||
[submodule "lz4"] | ||
path = native/src/external/lz4 | ||
url = https://github.com/lz4/lz4.git | ||
[submodule "bzip2"] | ||
path = native/src/external/bzip2 | ||
url = https://github.com/nemequ/bzip2.git | ||
[submodule "xz"] | ||
path = native/src/external/xz | ||
url = https://github.com/xz-mirror/xz.git | ||
[submodule "nanopb"] | ||
path = native/src/external/nanopb | ||
url = https://github.com/nanopb/nanopb.git | ||
[submodule "pcre"] | ||
path = native/src/external/pcre | ||
url = https://android.googlesource.com/platform/external/pcre | ||
[submodule "libcxx"] | ||
path = native/src/external/libcxx | ||
url = https://github.com/topjohnwu/libcxx.git | ||
[submodule "zlib"] | ||
path = native/src/external/zlib | ||
url = https://android.googlesource.com/platform/external/zlib | ||
[submodule "parallel-hashmap"] | ||
path = native/src/external/parallel-hashmap | ||
url = https://github.com/greg7mdp/parallel-hashmap.git | ||
[submodule "zopfli"] | ||
path = native/src/external/zopfli | ||
url = https://github.com/google/zopfli.git | ||
[submodule "cxx-rs"] | ||
path = native/src/external/cxx-rs | ||
url = https://github.com/topjohnwu/cxx.git | ||
[submodule "lsplt"] | ||
path = native/src/external/lsplt | ||
url = https://github.com/LSPosed/LSPlt.git | ||
[submodule "system_properties"] | ||
path = native/src/external/system_properties | ||
url = https://github.com/topjohnwu/system_properties.git | ||
[submodule "termux-elf-cleaner"] | ||
path = tools/termux-elf-cleaner | ||
url = https://github.com/termux/termux-elf-cleaner.git |
Oops, something went wrong.