Skip to content

'snooper_android' is a Flutter platform package for Android which provides concrete implementations for various device info lookups

License

Notifications You must be signed in to change notification settings

morphingcoffee/snooper_android

Repository files navigation

Flutter platform package for Android which provides concrete implementations for various device info lookups.

Overview

By using SnooperAndroid you can retrieve the following information:

  • Simple Device Applications List
  • Detailed Device Applications List
    • App icons
    • Activities
    • Services
    • Application Flags (is system app, is debuggable, etc.)
    • APK Signatures
    • Other Metadata
  • Sensors List
  • (Software & Hardware) Features List

Specs & Constraints

Flutter Android plugin embedding version: V2
Flutter version: >=2.5.0
Dart version: >=2.17.0-27.0.dev <3.0.0
Dart sound null-safety: ✅
Min Android SDK: 21

APIs provided by SnooperAndroid.dart:

Simple Package Info:

List<SimpleAndroidPackageInfo> simplePackages = await SnooperAndroid.simplePackageInfos;

Detailed Package Info:

List<DetailedAndroidPackageInfo> detailedPackages = await SnooperAndroid.detailedPackageInfos;

Sensor Info:

List<SensorInfo> sensors = await SnooperAndroid.sensorInfos;

System Feature:

List<SystemFeature> features = await SnooperAndroid.systemFeatures;

Example App

Available at ./example/lib/

Android Permissions

Adding snooper_android as a dependency to your project will make the app inherit several permissions.

Any of the permissions can be removed by adding the tools namespace and a permission removal tag to your app's AndroidManifest.xml, as so:

<manifest xmlns:tools="http://schemas.android.com/tools">
    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" tools:node="remove" />
</manifest>

Permission list:


QUERY_ALL_PACKAGES:

<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />

Removing QUERY_ALL_PACKAGES will result in all user-installed apps disappearing from the results returned by the SnooperAndroid APIs.


HIGH_SAMPLING_RATE_SENSORS:

<uses-permission android:name="android.permission.HIGH_SAMPLING_RATE_SENSORS" />

Removing HIGH_SAMPLING_RATE_SENSORS will result in SnooperAndroid sensor metadata API to display higher sampling delay values (lesser sampling rates) than otherwise possible to achieve for those sensors.


About

'snooper_android' is a Flutter platform package for Android which provides concrete implementations for various device info lookups

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published