How to access device apps from flutter

1,835

Solution 1

At this time there no official library available to retrieve the packages installed in the device. You can check the unofficial plugin, package manager plugin in pub.dev.

Some of the limitations are ..

  • This is not the official plugin.
  • Supports only Android platform
  • Minimum supported Android version is 22.

But you can give it a try if those constraints are fine for you.

Sample usage

import 'package:flutter_package_manager/flutter_package_manager.dart';

Future<List> getInstalledPackages() async {
  List packages = await FlutterPackageManager.getInstalledPackages();
  return packages;
}

Solution 2

You can try a package named device_apps.

It is a plugin to list installed applications on an Android device (⚠️ iOS is not supported).

Check this

You can get

  • App Version
  • App name
  • Apk File Path
  • Data Directory
  • Installation date and time

Note : Though it was better then other packages , I found that it takes a lot of time (10-15sec) to intract with the Android system.

Share:
1,835
Achintha Isuru
Author by

Achintha Isuru

Beginner programmer with a thirst for new technologies, who also create flyers and posters, play football and do volunteering projects as hobbies.

Updated on December 19, 2022

Comments

  • Achintha Isuru
    Achintha Isuru over 1 year

    Is there any way to access the details of apps installed in the device and access its privacy permission details (ex: how much access the GMAIL have in our device?) from the flutter app?

  • Achintha Isuru
    Achintha Isuru about 4 years
    Thank you for the answer! I will try this package!