Skip to content
pubscout

android_package_manager

0.7.1, released 3 years ago by an unverified publisher

Access Android's native PackageManager API to fetch installed apps, packages, and permissions.

$ flutter pub add android_package_manager
Source repository

What it does

Provides access to Android's native PackageManager API, allowing developers to fetch information about installed applications, packages, permissions, and app icons. It exposes methods for querying package details and inspecting signing certificates.

AI-written summary of version 0.7.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to list installed applications on an Android device.
  • You need to query package info, permissions, and metadata from Android's native PackageManager.

Skip it when

  • You need a cross-platform solution, as this plugin is exclusively for Android.
  • You only need basic application version or installer info available in generic packages.

Strengths

  • Exposes a broad range of native Android PackageManager methods.
  • Supports fetching application icons, including AdaptiveIconDrawable.
  • Maintains compatibility with recent Android SDK targets.

Weaknesses

  • Android-only plugin; does not work on iOS or other platforms.
  • Requires manual configuration of Android-specific queries and permissions like QUERY_ALL_PACKAGES.
  • Documentation and DartDocs are noted as incomplete in the package to-dos.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
0

Add the required permissions (such as QUERY_ALL_PACKAGES in AndroidManifest.xml) depending on your target Android API level and visibility requirements.

import 'package:android_package_manager/android_package_manager.dart';

final pm = AndroidPackageManager();

Alternatives

Packages that do the same job and could replace android_package_manager.

  • package_info_plus

    If you only need basic information about the current application package rather than querying all installed apps on the device.

  • device_info_plus

    If you need general device and OS information rather than deep PackageManager queries.