GithubHelp home page GithubHelp logo

thanhit93 / trust_fall Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sagarsuri/trust_fall

0.0 1.0 1.0 171 KB

A Flutter plugin for detecting the trust fall of the device(Jailbroken, root, emulator and mock location detection).

Home Page: https://pub.dartlang.org/packages/trust_fall

License: MIT License

Java 47.18% Ruby 9.27% Objective-C 7.55% Dart 36.00%

trust_fall's Introduction

trust_fall

A Flutter plugin for detecting the trust fall of the device(Jailbroken, root, emulator and mock location detection).

Uses RootBeer for Android root detection and DTTJailbreakDetection for iOS jailbreak detection. Inspired by jail-monkey and this blog article

Getting Started

In your flutter project add the dependency:

dependencies:
  ...
  trust_fall: ^1.0.4

Usage

Importing package

import 'package:trust_fall/trust_fall.dart';

Using it

Checks whether device JailBroken on iOS/Android?

bool isJailBroken = await TrustFall.isJailBroken;

Checks whether device is real or emulator

bool isRealDevice = await TrustFall.isRealDevice;

Can this device mock location - no need to root!

bool canMockLocation = await TrustFall.canMockLocation;

(ANDROID ONLY) Check if application is running on external storage

bool isOnExternalStorage = await TrustFall.isOnExternalStorage;

Check if device violates any of the above

bool isTrustFall = await TrustFall.isTrustFall;

Note:

Mock location detection

  • Android - Location permission needs to be granted in app in order to detect mock location properly
  • iOS - For now we are checking if device is Jail Broken or if it's not real device. There is no strong detection of mock location in iOS (Open the PR if you have better way for mock location detection in iOS)

❗Since emulators are usually rooted, you might want to bypass these checks during development. Unless you're keen on constant false alarms ⏰

trust_fall's People

Contributors

anish-adm avatar anish-appx avatar thanhit93 avatar

Watchers

James Cloos avatar

Forkers

benew-software

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.