safe_environment 1.0.0 copy "safe_environment: ^1.0.0" to clipboard
safe_environment: ^1.0.0 copied to clipboard

A plugin fot check the integrity device.

safe_environment #

A plugin to check the integrity of the device.

Features #

  • Check if the device is rooted
  • Check if the device is a real device
  • Check if external storage is available
  • Check if USB debugging is enabled

Installation #

Add this to your package's pubspec.yaml file and then run pub get:

dependencies:
  safe_environment: 
    git: https://github.com/ArZHa03/safe_environment.git

Usage #

Import the package and use the provided methods:

import 'package:safe_environment/safe_environment.dart';
void checkDeviceIntegrity() async {
  bool isRooted = await SafeEnvironment.isRootedDevice;
  bool isReal = await SafeEnvironment.isRealDevice;
  bool hasExternalStorage = await SafeEnvironment.isExternalStorage;
  bool isUsbDebugging = await SafeEnvironment.isUsbDebuggingEnabled;

  print('Is Rooted: $isRooted');
  print('Is Real Device: $isReal');
  print('Has External Storage: $hasExternalStorage');
  print('Is USB Debugging Enabled: $isUsbDebugging');
}

License #

This project is licensed under the MIT License - see the LICENSE file for details.

0
likes
130
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

A plugin fot check the integrity device.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on safe_environment

Packages that implement safe_environment