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.sofile 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/Appinside the extracted IPA file. -
Use the
stringscommand to extract the package names from thelibapp.soorAppbinary 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:'