Sometimes it’s useful to determine what Flutter packages are used in a Flutter app. This can be useful for security audits, vulnerability assessments, or just to understand the app better.

Technique

  1. For android apps, extract or export the libapp.so file from the APK file. This file is usually located in the lib/<architecture>/ directory inside the APK file. For iOS, you can find an equivalent binary file in the Frameworks/App.framework/App inside the extracted IPA file.

  2. Use the strings command to extract the package names from the libapp.so or App binary file. This command will search for strings that contain the word package: which is usually followed by the package name.

Android:

strings -a libapp.so | grep 'package:'

iOS:

strings -a App | grep 'package:'