flutter_protector 0.4.3
flutter_protector: ^0.4.3 copied to clipboard
A Flutter plugin that provides device and platform-related security features.
flutter_protector (0.4.3) #
A Flutter plugin that provides device and platform-related security features.
Overview #
flutter_protector helps secure your Flutter apps by detecting emulator usage, root/jailbreak status, VPN connections, proxy settings, battery optimization status, and potential sniffing apps.
This plugin is designed to strengthen your app's security layer through device integrity verification and access to system-level settings for additional protection.
🚀 Features #
- Platform Version: Detects platform OS version (Android/iOS).
- Emulator Detection: Identifies if the app is running on an emulator (Android), including:
isEmulatorSuper()infoEmulatorCheckResult()checkTelephonyManager()isBlueStacks()
- Root/Jailbreak Detection: Checks if the device is rooted (Android) or jailbroken (iOS).
- Sniffing App Detection: Detects known network sniffing apps using
checkForSniffingApps(). - VPN Detection:
- Identifies active VPN connections.
- Detects VPN using network interfaces.
- Proxy Detection: Checks if a proxy is set on the device.
- Local IP Address: Retrieves the local IP address.
- Public IP Check: Determines if the device has a public IP.
- Developer Options Detection: Detects if Developer Options are enabled.
- Phone Info Access:
- Retrieve phone number (
phoneNumber()) - Retrieve device ID (
deviceId()) - Get build info (
getBuildInfo())
- Retrieve phone number (
- Screenshot Security: Enable or disable screenshot security to prevent screen capture.
- Battery Optimization:
- Check if battery optimization is enabled
- Request user to disable battery optimization
- Open battery optimization settings
- System Settings Access:
- Open Developer Options
- Open Location Settings
- Open Bluetooth Settings
- Open Data Usage Settings
- Open Security Settings
- Open Accessibility Settings
- Open Display Settings
- Open Sound Settings
- Open VPN Settings
- Web Support: Detects the target platform when running on the web.
📦 Getting Started #
-
Add Dependency:
dependencies: flutter_protector: ^latest_version # Replace with the latest version from pub.dev -
Install Packages:
flutter pub get -
Import Package:
import 'package:flutter_protector/flutter_protector.dart';
📜 Changelog #
0.4.0 - 2025-04-29 #
- Added support for:
- Opening Developer Options
- Opening VPN Settings
- Opening Bluetooth Settings
- Opening Display Settings
- Opening Sound Settings
- Opening Data Usage Settings
- Opening Security Settings
- Opening Accessibility Settings
- Opening Location Settings
- Battery Optimization Status Check
- Requesting to Disable Battery Optimization
- Screenshot Security Toggle
- Added platform delegation methods in
FlutterProtectorclass - Fixed bug on tablet detection
0.3.6 - 2025-04-26 #
- Improved emulator detection.
- Added security detail result checks.
- Fixed issues on Samsung devices (A21, A10, A31, A52, A51).
- Updated native C++ library.
- Released the new package version.
0.3.1 - 2025-02-19 #
- Released package update.
- Enhanced emulator checks.
- Added
checkTelephonyManagerandisBlueStacksmethods.
0.1.2 - 2025-01-20 #
- Released package update.
- Improved example and test files.
- Verified functionality on Samsung, Xiaomi, Huawei, Realme, Motorola devices.
[0.1.2] - 2025-01-18 #
- Released package update.
- Disabled app screenshots for better security.
[0.1.2] - 2025-01-15 #
- Added
isEmulatorSupersupport for Android 6 to Android 15.
0.1.0 - 2025-01-12 #
- Updated OS build data retrieval.
- Added device ID fetching for build info.
- Implemented IMEI and enhanced emulator detection.
- Updated README documentation.
0.0.6 - 2025-01-12 #
- Updated build data OS functionality.
- Fixed emulator detection bugs.
0.0.5 - 2025-01-12 #
- Minor bug fixes and performance improvements.
- Removed web platform support.
0.0.3 - 2025-01-12 #
- Minor bug fixes and optimizations.
0.0.2+2 - 2025-01-12 #
- Added:
- Emulator detection
- Root/Jailbreak detection
- VPN/Proxy detection
- Sniffing apps detection
- Public and local IP check
- Minor bug fixes.
0.0.2 - 2025-01-01 #
- Initial release of the flutter_protector plugin with basic security features.