
JTRUJILLO PEREZ124780 (Community Member) asked a question.
Hello Veracode Community,
We are currently building a pipeline integration for a project in flutter and verified in Azure Devops using Pipeline Scan, when we are doing the build both the IPA (IOS) and APK (Android) file using Flutter and Dart, to use Pipeline Scan it is necessary to build the files in DEBUG mode, the problem is that the APK (Android) is generating a file of more than 400 MB which is a problem when using Pipeline Scan as it has a maximum limit of 200 MB.
We have validated the option of using Policy Scan instead of Pipeline Scan but this will generate Azure Pipeline execution times of more than 1 hour, so this option is not viable.
Is there any way to use Pipeline Scan for APK(Android) files somehow to avoid this 200+ MB size limit?
We have also noticed, that when using the Policy Scan on Android and IOS the vulnerabilities found are the same, is this the case or can there be different vulnerabilities for IOS and Android, given that it is a Flutter and Dart project?
Thanks in advance,
Juan Diego
.png)
Hello,
I would recommend you contact our technical support team. Here's how you can log a case:
1. Navigate to the upper right corner of any page in the Community, and click on your user avatar.
2. Select Contact Support from the drop-down menu.Open a case with Support, and the engineer would assist you with the steps.
Regards,
Pranita
Veracode Inc.
Hi Community,
I was able to solve the problem, in case of Flutter and Android, what happens is that the APK generated inside contains the lib folder, where you find native libraries (since Android is cross-platform), these libraries are the ones that make the APK very heavy, therefore, to run the Pipeline scan is necessary to extract all the elements of the APK in an external folder except for the lib folder of the APK and compress this new folder in a zip file.
Something like this:
Unzip except lib folder => unzip app-debug.apk -x "lib/*" -d android_lib/
Compress file => zip -r android_lib.zip ./android_lib
Using the android_lib.zip file the pipeline scan works correctly, since the weight of the file is less than 200 MB.