I have a build variant which we are using internally for testing only and that is shared internally with the team over google drive or email. However, from the last one month, google is flagging this apk as virus which isn't allowing me to share the apk via email or drive. I tried removing all the third party dependencies and everything which I think can be the reason but it is still showing as infected in Virustotal.com.
I have shared all the related details below. https://www.virustotal.com/gui/file/f2c517c0fee77863a12a25fae05bff43daccb7b209446339d9cdabee24937458?nocache=1
compileSdkVersion 33
buildToolsVersion "30.0.3"
defaultConfig {
applicationId ""
minSdkVersion 26
targetSdkVersion 32
versionCode 21
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
packagingOptions {
resources.excludes.add("META-INF/*")
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
debug {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
androidExtensions {
experimental = true
}
lintOptions {
abortOnError false
}
dataBinding {
enabled = true
}
applicationVariants.all { variant ->
variant.outputs.all {
def flavor = ""
if (variant.name == "stagingDebug") {
flavor = "SS"
} else {
flavor = "SS"
}
def versionName = variant.versionName
outputFileName = "${flavor}-${versionName}.apk"
}
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31"
// SUPPORT
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'androidx.core:core-ktx:1.8.0'
// RecyclerView
implementation 'androidx.recyclerview:recyclerview:1.2.1'
// CardView
implementation 'androidx.cardview:cardview:1.0.0'
// ConstraintLayout
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
//Material
implementation 'com.google.android.material:material:1.5.0-alpha02'
// Scalable dimensions
implementation 'com.intuit.sdp:sdp-android:1.0.6'
implementation 'com.intuit.ssp:ssp-android:1.0.6'
//print receipt
// implementation files('libs/icod_3.1.7.jar')
// implementation files('libs/posprinterconnectandsendsdk.jar')
// implementation files('libs/scan_pro.jar')
// annotationProcessor 'androidx.room:room-compiler:2.4.2'
// LifeCycle Extensions : LiveData
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.2.0'
// LifeCycle Extensions : ViewModel
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1'
// LifeCycle Extensions : Lifecycle Scope
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.2.0'
// Activity Kotlin Extension
implementation 'androidx.activity:activity-ktx:1.1.0'
// Retrofit
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.6.2'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
testImplementation 'com.squareup.okhttp3:mockwebserver:4.5.0'
// Dagger Hilt
implementation 'com.google.dagger:dagger:2.39.1'
annotationProcessor "com.google.dagger:dagger-compiler:2.39.1"
kapt 'com.google.dagger:dagger-compiler:2.39.1'
implementation 'com.google.dagger:hilt-android:2.37'
kapt 'com.google.dagger:hilt-android-compiler:2.37'
kapt 'androidx.hilt:hilt-compiler:1.0.0'
// Coroutines
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.7"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.7"
// Glide
implementation 'com.github.bumptech.glide:glide:4.11.0'
// kapt 'com.github.bumptech.glide:compiler:4.14.2'
// implementation 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
// implementation 'com.squareup.okhttp3:okhttp-urlconnection:3.4.1'
//tabSyncMenu
// implementation 'io.github.ahmad-hamwi:tabsync:1.0.1'
//stripe
//implementation "com.stripe:stripeterminal:2.9.0"
//firebase
implementation platform('com.google.firebase:firebase-bom:30.1.0')
implementation 'com.google.firebase:firebase-crashlytics-ktx'
implementation 'com.google.firebase:firebase-analytics:21.1.1'
//Layout to bitmap
// implementation 'id.zelory:cekrek:1.0.0'
// implementation 'com.hbb20:ccp:2.5.0'
//for allergen filters
implementation 'com.google.android:flexbox:1.1.0'
//websocket
// implementation 'tech.gusavila92:java-android-websocket-client:1.2.2'
// implementation("com.piesocket:channels-sdk:1.0.5")
}```
Let me know if any other details are required.
There are many steps that I took which seem to have resolved the issue. I am writing them below for others to use.
I hope this helps anyone else who faces any such issue.