Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nsneruno/magisk_detector

Flutter Support for integrating Magisk Detector for Android Application. Based from MagiskDetector.
https://github.com/nsneruno/magisk_detector

android android-library c dart flutter flutter-library flutter-plugin magisk ndk root-detection root-detection-bypass security

Last synced: about 1 month ago
JSON representation

Flutter Support for integrating Magisk Detector for Android Application. Based from MagiskDetector.

Awesome Lists containing this project

README

        

# magisk_detector

Flutter Support for integrating Magisk Detector for Android Application. Based from [MagiskDetector](https://github.com/vvb2060/MagiskDetector/).

## Warning

Currently Magisk has been updated further and the source I referenced to hardly has any updates, neither I have the time to research further for this project. Thank you for the understanding.

## Features

This is a straight adaptation attempt at reproducing the logics from the original creator repository. Allows to perform a check on your Android device if it's currently using Magisk Root Bypassing module.

## Getting started
Add to your project via `pubspec.yaml`
```yaml
magisk_detector:
git:
url: https://github.com/nsNeruno/magisk_detector.git
```

## Usage
### Setup your Project
On your app's `build.gradle` file, add this line under `android` group, where you can see values like `compileSdkVersion`
```gradle
android {
compileSdkVersion 30
// You need to have this version installed on your SDK Manager
ndkVersion '25.0.8775105'
// ...
}
```
Then on your AndroidManifest.xml (under android/app/src/main/), add this inside the tag:
```xml







```

### Adding the Code
You can use it straight away by importing it first.
```dart
import 'package:magisk_detector/magisk_detector.dart';
```
### APIs
```dart
// Future-then pattern
MagiskDetector.instance.detectMagisk().then(
(isMagiskFound) {
/// Do something
},
);
// or the async-await pattern
final isMagiskFound = await MagiskDetector.instance.detectMagisk();
if (isMagiskFound) {
/// Do something
}
```

## Known Issue
This API most likely doesn't work against latest __**DenyList**__ feature of **MagiskHide**.

## Additional information

Further references and tests are required. Feel free to raise an [issue](https://github.com/nsNeruno/magisk_detector/issues).

And big thanks to [vvb2060](https://github.com/vvb2060) for showing the way.