Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/nsneruno/magisk_detector
- Owner: nsNeruno
- License: apache-2.0
- Created: 2022-05-31T14:19:21.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-18T17:15:46.000Z (over 1 year ago)
- Last Synced: 2023-08-18T18:54:16.236Z (over 1 year ago)
- Topics: android, android-library, c, dart, flutter, flutter-library, flutter-plugin, magisk, ndk, root-detection, root-detection-bypass, security
- Language: C
- Homepage:
- Size: 152 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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.