native_device_kit 0.0.3
native_device_kit: ^0.0.3 copied to clipboard
High-performance Flutter plugin for deep native access to hardware, system resources, and connectivity. Features advanced camera diagnostics, BLE scanning, NFC, USB monitoring, and security checks.
Native Device Kit #
Enterprise-Grade Hardware & System Bridge for Flutter
Native Device Kit is a high-performance Flutter plugin that provides deep native access to device hardware, system resources, and connectivity layers on Android and iOS. It is designed as a single unified hardware bridge, enabling advanced diagnostics, sensor streaming, security checks, and peripheral communication through a clean Dart API.
Built for enterprise, fintech, healthcare, IoT, diagnostics, kiosk, and industrial-grade applications.
Overview #
Flutter abstracts away many low-level hardware and system capabilities. Native Device Kit removes this limitation by exposing rich native APIs using Kotlin and Swift, delivered through a consistent and strongly-typed Dart interface.
This plugin enables:
- Professional-grade camera diagnostics
- Advanced connectivity scanning
- Real-time system resource monitoring
- Motion sensor streaming
- Hardware security and integrity checks
All inside a single unified SDK.
Key Capabilities #
1. Advanced Camera & Optics Diagnostics #
This module provides deep introspection into device camera hardware, going far beyond standard Flutter camera plugins.
-
Physical Lens Discovery Detects every available physical sensor:
- Front
- Rear
- Ultra-wide
- Telephoto
-
Optical Specifications Retrieves:
- Aperture (f-stop)
- ISO sensitivity range (min / max)
- Maximum supported digital zoom
-
Resolution Mapping Discovers all native JPEG output resolutions supported by each sensor (for example: 4000×3000, 1920×1080, etc.)
-
Auto-Focus Capability Detection Identifies whether each lens supports:
- Hardware autofocus
- Fixed-focus optics
-
System Flashlight Control Native torch toggle with cross-platform parity
2. Intelligent Connectivity #
Provides deep system-level connectivity access and diagnostics.
-
Bluetooth Low Energy (BLE)
- Aggressive scanning mode
- Raw advertisement packet decoding
- Detection of device names that standard plugins often miss
-
NFC
- NDEF tag reading
- Physical serial number extraction
- Real-time tag detection
-
USB Monitoring
- Real-time USB hotplug event tracking
- Device connect / disconnect notifications
3. Security & Integrity Checks #
Designed for security-sensitive applications.
- Root detection (Android)
- Jailbreak detection (iOS)
- Emulator detection (Goldfish, Ranchu, QEMU, etc.)
- Virtualized hardware detection
4. Deep System Resource Monitoring #
High-precision reporting for device health, diagnostics, and monitoring dashboards.
-
Storage Metrics
- Total disk
- Used disk
- Free disk (all reported in bytes for precision)
-
Memory Reporting
- Physical RAM capacity
-
Battery Module
- Precise battery percentage
- Charging / discharging state
-
Connectivity State
- WiFi
- Cellular
- Offline detection
5. Motion & Hardware Sensors #
-
Accelerometer Streaming
- High-frequency real-time X, Y, Z axis updates
- Hardware-register-level sampling for motion-aware applications
Ideal for:
- Fitness tracking
- Motion analysis
- IoT controllers
- Industrial automation
Architecture #
Flutter Application
↓
NativeDeviceKit (Unified Dart API)
↓
Platform Channels
↓
Android (Kotlin) → Camera2, Bluetooth, NFC, USB, Sensors, System APIs
iOS (Swift) → AVFoundation, CoreBluetooth, CoreNFC, Sensors, System APIs
This layered design ensures:
- Native-level performance
- Minimal Flutter overhead
- Platform-specific optimizations
- Scalable feature expansion
Installation #
Add dependency in pubspec.yaml:
dependencies:
native_device_kit: ^0.0.1
Then run:
flutter pub get
Basic Usage #
import 'package:native_device_kit/native_device_kit.dart';
final kit = NativeDeviceKit.instance;
Example Usage #
Camera Hardware Diagnostics #
final cameras = await kit.camera.getLensDiagnostics();
for (final lens in cameras) {
print("Lens: ${lens['id']}");
print("Aperture: ${lens['aperture']}");
print("ISO Range: ${lens['minISO']} - ${lens['maxISO']}");
print("Max Zoom: ${lens['maxZoom']}");
}
Bluetooth Aggressive Scan #
await kit.bluetooth.scan();
kit.bluetooth.eventStream.listen((event) {
print("BLE Device Found: $event");
});
NFC Tag Reading #
kit.nfc.eventStream.listen((event) {
print("NFC Tag: $event");
});
await kit.nfc.readTag();
System Resource Monitoring #
final storage = await kit.system.getStorageInfo();
final ram = await kit.system.getMemoryInfo();
final battery = await kit.system.getBatteryInfo();
print("Disk: ${storage['availableBytes']} bytes free");
print("RAM: ${ram['totalMemory']} bytes");
print("Battery: ${battery['level']}%");
Security Checks #
bool rooted = await kit.security.isRooted();
bool emulator = await kit.security.isEmulator();
print("Rooted: $rooted");
print("Emulator: $emulator");
Motion Sensor Streaming #
kit.sensors.accelerometerStream.listen((event) {
print("X: ${event['x']}, Y: ${event['y']}, Z: ${event['z']}");
});
Example Application #
A fully functional diagnostic dashboard is included, featuring:
- Collapsible hardware inspection tiles
- Real-time sensor graphs
- Live connectivity monitors
- System resource dashboards
Designed to provide a professional diagnostic storefront experience.
Platform Support #
| Platform | Minimum Version |
|---|---|
| Android | API 23+ (6.0) |
| iOS | 12.0+ |
Ideal Use Cases #
- Hardware diagnostic tools
- IoT controller dashboards
- Device monitoring systems
- Fintech device validation
- Healthcare equipment monitoring
- Industrial automation
- Kiosk systems
License #
MIT License © 2026 Designed for high-performance Flutter hardware integration.