https://github.com/dev-hwang/flutter_security_checker
This plugin provides the ability to verify rooting and integrity on Android and iOS platforms.
https://github.com/dev-hwang/flutter_security_checker
android flutter ios root-checker security
Last synced: over 1 year ago
JSON representation
This plugin provides the ability to verify rooting and integrity on Android and iOS platforms.
- Host: GitHub
- URL: https://github.com/dev-hwang/flutter_security_checker
- Owner: Dev-hwang
- License: mit
- Created: 2021-05-10T07:08:46.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-12T05:41:28.000Z (about 2 years ago)
- Last Synced: 2024-10-12T05:43:58.299Z (over 1 year ago)
- Topics: android, flutter, ios, root-checker, security
- Language: Objective-C
- Homepage:
- Size: 76.2 KB
- Stars: 8
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
This plugin provides the ability to verify rooting and integrity on Android and iOS platforms.
[](https://pub.dev/packages/flutter_security_checker)
## Features
* Can check whether the device is rooted or jailBroken.
* Can check whether the device on which the app is installed is a physical device.
* Can check that the app is installed through the correct content service (such as Google Play or Apple Store).
## Support version
- Flutter: `3.3.0+`
- Dart: `2.18.0+`
- Android: `5.0+ (minSdkVersion: 21)`
- iOS: `12.0+`
## Getting started
To use this plugin, add `flutter_security_checker` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/). For example:
```yaml
dependencies:
flutter_security_checker: ^3.2.1
```
## How to use
```dart
import 'package:flutter_security_checker/flutter_security_checker.dart';
void _onCheckButtonPressed() async {
// Check whether the device is rooted or jailBroken.
// In Android Emulator or iOS Simulator it always returns true.
final bool isRooted = await FlutterSecurityChecker.isRooted;
// Check whether the device on which the app is installed is a physical device.
final bool isRealDevice = await FlutterSecurityChecker.isRealDevice;
// Check that the app is installed through the correct content service (such as Google Play or Apple Store).
// It is not an app installed through content service or always returns false in debugging mode.
final bool hasCorrectlyInstalled = await FlutterSecurityChecker.hasCorrectlyInstalled;
}
```
**NOTE:** The `isRooted` and `hasCorrectlyInstalled` functions may not work properly in the development environment. In development environment, it is recommended to turn off notifications using the `kReleaseMode` of the `flutter/foundation.dart` package appropriately.
## Support
If you find any bugs or issues while using the plugin, please register an issues on [GitHub](https://github.com/Dev-hwang/flutter_security_checker/issues). You can also contact us at .