Giter Site home page Giter Site logo

abdelrahmanbonna / security_plus Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 330 KB

Flutter Plugin to handle all security needs

License: The Unlicense

Kotlin 12.63% Ruby 3.27% Swift 5.27% Objective-C 0.06% Dart 11.85% CMake 28.25% C++ 34.83% C 2.07% HTML 1.77%
development-mode emulator external-storage flutter jailbreak root

security_plus's Introduction

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:

dependencies:
   security_plus: ^2.0.0

use:

// 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 for creating flutter_root_jailbreak which was the inspiration for this plugin. Also thanks for MazenEmara for contributing to this project and being part of the team.

security_plus's People

Contributors

abdelrahmanbonna avatar dependabot[bot] avatar mazenemara avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

security_plus's Issues

does not have android.permission.ACCESS_COARSE_LOCATION or android.permission.ACCESS_FINE_LOCATION.

A bug has been found while trying to build android on windows machine:

E/MethodChannel#security_plus( 3677): Failed to handle method call
E/MethodChannel#security_plus( 3677): java.lang.SecurityException: uid 10190 does not have android.permission.ACCESS_COARSE_LOCATION or android.permission.ACCESS_FINE_LOCATION.
E/MethodChannel#security_plus( 3677): 	at android.os.Parcel.createExceptionOrNull(Parcel.java:3057)
E/MethodChannel#security_plus( 3677): 	at android.os.Parcel.createException(Parcel.java:3041)
E/MethodChannel#security_plus( 3677): 	at android.os.Parcel.readException(Parcel.java:3024)
E/MethodChannel#security_plus( 3677): 	at android.os.Parcel.readException(Parcel.java:2966)
E/MethodChannel#security_plus( 3677): 	at android.location.ILocationManager$Stub$Proxy.getLastLocation(ILocationManager.java:1272)
E/MethodChannel#security_plus( 3677): 	at android.location.LocationManager.getLastKnownLocation(LocationManager.java:903)
E/MethodChannel#security_plus( 3677): 	at android.location.LocationManager.getLastKnownLocation(LocationManager.java:870)
E/MethodChannel#security_plus( 3677): 	at com.absolutions.security_plus.SecurityPlusPlugin.isMockLocationEnabled(SecurityPlusPlugin.kt:149)
E/MethodChannel#security_plus( 3677): 	at com.absolutions.security_plus.SecurityPlusPlugin.onMethodCall(SecurityPlusPlugin.kt:45)
E/MethodChannel#security_plus( 3677): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267)
E/MethodChannel#security_plus( 3677): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292)
E/MethodChannel#security_plus( 3677): 	at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319)
E/MethodChannel#security_plus( 3677): 	at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/MethodChannel#security_plus( 3677): 	at android.os.Handler.handleCallback(Handler.java:958)
E/MethodChannel#security_plus( 3677): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/MethodChannel#security_plus( 3677): 	at android.os.Looper.loopOnce(Looper.java:205)
E/MethodChannel#security_plus( 3677): 	at android.os.Looper.loop(Looper.java:294)
E/MethodChannel#security_plus( 3677): 	at android.app.ActivityThread.main(ActivityThread.java:8177)
E/MethodChannel#security_plus( 3677): 	at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#security_plus( 3677): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
E/MethodChannel#security_plus( 3677): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
E/MethodChannel#security_plus( 3677): Caused by: android.os.RemoteException: Remote stack trace:
E/MethodChannel#security_plus( 3677): 	at com.android.server.location.LocationPermissions.enforceLocationPermission(LocationPermissions.java:119)
E/MethodChannel#security_plus( 3677): 	at com.android.server.location.LocationManagerService.getLastLocation(LocationManagerService.java:961)
E/MethodChannel#security_plus( 3677): 	at android.location.ILocationManager$Stub.onTransact(ILocationManager.java:561)
E/MethodChannel#security_plus( 3677): 	at android.os.Binder.execTransactInternal(Binder.java:1339)
E/MethodChannel#security_plus( 3677): 	at android.os.Binder.execTransact(Binder.java:1275)
E/MethodChannel#security_plus( 3677): 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.