I'm currently trying to publish my app on huawei appgallery. for in app purchases the package name of the app has to end with ".huawei". so I added a flavor to the build.gradle as they suggested.
flavorDimensions "default"
productFlavors {
google {
dimension "default"
}
huawei {
dimension "default"
applicationIdSuffix ".huawei"
}
}
I was also able to publish my app. but updates are now getting rejected. the message is that there is malware inside.
I first thought it is a problem on their side when creating the apk from the app bundle but then the message also appeared when using apk files. I then installed TotalAV and started scanning the apk files after the build. no matter what I changed the ".huawei" build always had this message. I also tried to remove as many dependencies as possible - no change. the google release apk has no problem! I also added another flavor with some different suffix - this also had the malware. the only difference to the google build is the suffix to the applicationId.
I'm pretty sure this is only a false negative but it would be nice to get rid of this message. any help is appreciated :)