Last updated:
0 purchases
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 ⏰ #
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.