Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abdelrahmanbonna/security_plus
Flutter Plugin to handle all security needs
https://github.com/abdelrahmanbonna/security_plus
development-mode emulator external-storage flutter jailbreak root
Last synced: about 4 hours ago
JSON representation
Flutter Plugin to handle all security needs
- Host: GitHub
- URL: https://github.com/abdelrahmanbonna/security_plus
- Owner: abdelrahmanbonna
- License: unlicense
- Created: 2023-06-22T19:28:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-28T14:41:42.000Z (11 days ago)
- Last Synced: 2024-10-28T17:26:48.387Z (11 days ago)
- Topics: development-mode, emulator, external-storage, flutter, jailbreak, root
- Language: C++
- Homepage:
- Size: 326 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# security_plus
This is a Dart/Flutter plugin to know if the device security has been breached or not. For example it will let you know if the user rooted his device or not.
Please Note: [isRooted] and [isJailBroken] are both async functions which returns a boolean use them wisely.
## install:
```YAML
dependencies:
security_plus: ^2.0.2
```
### Android
1. Add the following to your AndroidManifest.xml file:
```XML
```
### IOS
1. Add the following to your Info.plist file:
```XML
NSLocationWhenInUseUsageDescription
This app needs access to location when open.
```## use:
```dart
// You could use [isRooted] to check if the android device is rooted or not
SecurityPlus.isRooted// You could use [isJailBroken] to check if the IOS device is jail broken or not
SecurityPlus.isJailBroken// You could use [isOnExternalStorage] to check if the Android device is running your app on external storage or not
SecurityPlus.isOnExternalStorage// You could use [isEmulator] to check if the Android device is Emulator or not
SecurityPlus.isEmulator// You could use [isDevelopmentModeEnable] to check if the Android device is in Development mode or not
SecurityPlus.isDevelopmentModeEnable// You could use [isMockLocationEnabled] to check if the Android device is using a mock location method or not
SecurityPlus.isMockLocationEnabled
```## Future Work
- Adding SSL pinning (DIO)
- Adding SSL pinning (HTTP)
- Adding Mobile data detection## Credits
Thanks to [abu](https://github.com/abu0306) for creating flutter_root_jailbreak which was the inspiration for this plugin. Also thanks for [MazenEmara](https://github.com/MazenEmara) for contributing to this project and being part of the team.