android_package_manager 0.5.2 android_package_manager: ^0.5.2 copied to clipboard
Provides access to Android's native PackageManager API to fetch various information, such as installed applications, packages, permissions, etc.
android_package_manager #
Provides access to Android's native PackageManager API to fetch various information, such as installed applications, packages, permissions, etc.
About this Package #
This plugin is purposed for Android use only. Allowing easier access to most commonly used methods of Android's PackageManager API. Adapted a few methods from existing package package_manager which seems not to be maintained recently.
Getting Started #
Importing:
import package:android_package_manager/android_package_manager.dart;
Singleton access example:
final pm = AndroidPackageManager();
Available Methods #
Please see official documentation of PackageManager API.
Disclaimer: I have been trying to adapt most of the available methods. Done with some simple instrumentation tests.
Tested methods can be found at
'example/integration_test/android_package_manager_test.dart'
Example Flutter app demonstrates the getInstalledApplications method.
TO-DOs #
- Proper documentation
- DartDocs
- Adjusting some methods to be Android Tiramisu compatible (deprecating some methods)
- Documenting bitmask values
- Separating interfaces into a separate package (maybe)
Issues #
Feel free to file issues or any suggestions here