Skip to content

Commit d4432ec

Browse files
committed
build.gradle: set android.dependenciesInfo.includeInApk = false
This was requested by f-droid devs to publish an app. ref https://gitlab.com/fdroid/fdroiddata/-/merge_requests/15858#note_2150822234 - see https://android.izzysoft.de/articles/named/iod-scan-apkchecks#blobs > BLOBs in APK signing blocks > APK signing blocks are where signing details are stored in. > [...] > DEPENDENCY_INFO_BLOCK: This is supposed to be a binary representation of build dependencies inserted by Google itself, or also by Android Studio and IntelliJ IDEA (plus probably also some other development tools), when an APK is being signed. But it is also encrypted using a public key owned by Google, so one cannot really verify what else might have been placed there. This means when found (which is very often) I reach out to the corresponding developers, suggesting them to use apksigner for signing instead, which does not add this block – or to make sure Android Studio resp. IntelliJ IDEA will not include them (see below). Apkverifier includes a short comment in its code, a.o. „The data is compressed, encrypted by a Google Play signing key...“ (source) > So this in essence is a „blob“ without transparency. As it’s encrypted using a Google Play public key, it cannot be decrypted without the corresponding private key – so except for Google, no one can say for sure which other bits might have been added along.
1 parent 7197c1c commit d4432ec

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pythonforandroid/bootstraps/common/build/templates/build.tmpl.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@ android {
129129
additionalParameters "--custom-package","org.electrum.electrum.res","--java","src/main/java"
130130
}
131131

132+
dependenciesInfo {
133+
// Disables dependency metadata when building APKs.
134+
includeInApk = false
135+
// Disables dependency metadata when building Android App Bundles.
136+
includeInBundle = false
137+
}
138+
132139
}
133140

134141
dependencies {

0 commit comments

Comments
 (0)