legal_device

Last updated:

0 purchases

legal_device Image
legal_device Images
Add to Cart

Description:

legal device

Legal Device #
A Flutter plugin for detecting the legality of the device(Jailbroken, root, emulator).
Getting Started #
In your flutter project add the dependency:
dependencies:
...
legal_device: ^1.0.5
copied to clipboard
Usage #
Importing package
import 'package:legal_device/legal_device.dart';
copied to clipboard
Using it
Checks whether device JailBroken on iOS/Android?
bool isJailBroken = await legalDevice.isJailBroken;
copied to clipboard
Checks whether device is real or emulator
bool isRealDevice = await legalDevice.isRealDevice;
copied to clipboard
(ANDROID ONLY) Check if application is running on external storage
bool isOnExternalStorage = await legalDevice.isOnExternalStorage;
copied to clipboard
Check if device violates any of the above
bool isLegalDevice = await legalDevice.isLegalDevice;
copied to clipboard
❗Since emulators are usually rooted, you might want to bypass these checks during development. Unless you're keen on constant false alarms ⏰ #

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.