palestine_trusted_device 0.1.1 palestine_trusted_device: ^0.1.1 copied to clipboard
Check if the device is emulator, rooted, jailbroken, in developer mode and so on.
palestine_trusted_device #
Part of PalestineDevelopers #
Device security checker, isRooted|isJailbroken, isRealDevice, devModeActive or onExternalStorage.
Table Of Contents #
Features #
- Android|IOS security checks:
- isRooted|isJailbroken
- isRealDevice
- isInDevMode
- isOnExternalStorage
Getting started #
To start, import package
import 'package:palestine_trusted_device/palestine_trusted_device.dart';
Usage #
Ensure flutter framework is active
- Add this to the beginning of
main()
// Make Sure Framework Is Ready
WidgetsFlutterBinding.ensureInitialized();
Just as easy as this
PalTrustedDevice.check(
onFail: () {
// Not Secure Env Detected
},
);
Customizing checks available too
PalTrustedDevice.check(
emulator: true,
devMode: false,
onExtStorage: false,
rooted: false,
onFail: () {
// Not Secure Env Detected
},
);
It's possible to await until the check is done
await PalTrustedDevice.check(
onFail: () {
// Not Secure Env Detected
},
);