One minute
Identifying Packages Used by Flutter Apps
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
-
For android apps, extract or export the
libapp.so
file from the APK file. This file is usually located in thelib/<architecture>/
directory inside the APK file. For iOS, you can find an equivalent binary file in theFrameworks/App.framework/App
inside the extracted IPA file. -
Use the
strings
command to extract the package names from thelibapp.so
orApp
binary file. This command will search for strings that contain the wordpackage:
which is usually followed by the package name.
Android:
strings -a libapp.so | grep 'package:'
iOS:
strings -a App | grep 'package:'