forked from ianmacd/Magisk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
23 changed files
with
613 additions
and
454 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 |
---|---|---|
|
@@ -13,7 +13,9 @@ | |
2. Set configurations in `config.prop`. A sample file `config.prop.sample` is provided as an example. | ||
3. Run `build.py` with argument `-h` to see the built-in help message. The `-h` option also works for each supported actions, e.g. `./build.py binary -h` | ||
4. By default, `build.py` build binaries and Magisk Manager in debug mode. If you want to build Magisk Manager in release mode (via the `--release` flag), you need a Java Keystore file `release-key.jks` to sign Magisk Manager's APK. For more information, check out [Google's Official Documentation](https://developer.android.com/studio/publish/app-signing.html#signing-manually). | ||
5. The SafetyNet extension pack requires the full Magisk Manager as a `compileOnly` dependency. Build the **release** APK, convert it back to Java `.class` files (I use [dex2jar](https://github.com/pxb1988/dex2jar)), and place the converted JAR under `snet/libs` before compiling. | ||
|
||
## Documentation | ||
[Link to Documentation](docs/README.MD) | ||
|
||
## License | ||
|
||
|
@@ -31,44 +33,3 @@ 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/>. | ||
``` | ||
|
||
## Credits | ||
|
||
**MagiskManager** (`app`) | ||
|
||
* Copyright 2016-2018, John Wu (@topjohnwu) | ||
* All contributors and translators on Github | ||
|
||
**MagiskSU** (`native/jni/su`) | ||
|
||
* Copyright 2016-2018, John Wu (@topjohnwu) | ||
* Copyright 2015, Pierre-Hugues Husson ([email protected]) | ||
* Copyright 2013, Koushik Dutta (@koush) | ||
* Copyright 2010, Adam Shanks (@ChainsDD) | ||
* Copyright 2008, Zinx Verituse (@zinxv) | ||
|
||
**MagiskPolicy** (`native/jni/magiskpolicy`) | ||
|
||
* Copyright 2016-2018, John Wu (@topjohnwu) | ||
* Copyright 2015, Pierre-Hugues Husson ([email protected]) | ||
* Copyright 2015, Joshua Brindle (@joshua_brindle) | ||
|
||
**MagiskHide** (`native/jni/magiskhide`) | ||
|
||
* Copyright 2016-2018, John Wu (@topjohnwu) | ||
* Copyright 2016, Pierre-Hugues Husson ([email protected]) | ||
|
||
**resetprop** (`native/jni/resetprop`) | ||
|
||
* Copyright 2016-2018 John Wu (@topjohnwu) | ||
* Copyright 2016 nkk71 ([email protected]) | ||
|
||
**External Dependencies** (`native/jni/external`) | ||
|
||
* Makefile for busybox, generated by [ndk-busybox-kitchen](https://github.com/topjohnwu/ndk-busybox-kitchen) | ||
* Each dependencies has its own license/copyright information in each subdirectory. | ||
All of them are either GPL or GPL compatible. | ||
|
||
**Others Not Mentioned** | ||
|
||
* Copyright 2016-2018, John Wu (@topjohnwu) |
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
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
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
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
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
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
33 changes: 33 additions & 0 deletions
33
app/src/full/java/com/topjohnwu/magisk/components/EnvFixDialog.java
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,33 @@ | ||
package com.topjohnwu.magisk.components; | ||
|
||
import android.app.Activity; | ||
import android.content.Context; | ||
import android.net.Uri; | ||
import android.support.annotation.NonNull; | ||
|
||
import com.topjohnwu.magisk.MagiskManager; | ||
import com.topjohnwu.magisk.R; | ||
import com.topjohnwu.magisk.asyncs.InstallMagisk; | ||
import com.topjohnwu.magisk.receivers.DownloadReceiver; | ||
import com.topjohnwu.magisk.utils.Utils; | ||
|
||
public class EnvFixDialog extends CustomAlertDialog { | ||
|
||
public EnvFixDialog(@NonNull Activity activity) { | ||
super(activity); | ||
MagiskManager mm = Utils.getMagiskManager(activity); | ||
String filename = Utils.fmt("Magisk-v%s(%d).zip", | ||
mm.remoteMagiskVersionString, mm.remoteMagiskVersionCode); | ||
setTitle(R.string.env_fix_title); | ||
setMessage(R.string.env_fix_msg); | ||
setCancelable(true); | ||
setPositiveButton(R.string.yes, (d, i) -> Utils.dlAndReceive(activity, | ||
new DownloadReceiver() { | ||
@Override | ||
public void onDownloadDone(Context context, Uri uri) { | ||
new InstallMagisk(activity, uri).exec(); | ||
} | ||
}, mm.magiskLink, filename)); | ||
setNegativeButton(R.string.no_thanks, null); | ||
} | ||
} |
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
Oops, something went wrong.