summaryrefslogtreecommitdiff
path: root/java/androidmk.go
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2024-12-08 18:22:45 +0000
committer Spandan Das <spandandas@google.com> 2024-12-08 18:30:28 +0000
commitaf8a3f5eaf70b817e43ab8e0a4908a7a5025c85f (patch)
tree9e63a31897406478b9a67a37e54836d4b203a627 /java/androidmk.go
parentd2505873e521984f6d4732d4acd9f87fe338d159 (diff)
Bugfix for LOCAL_CERTIFICATE of AutogeneratedRuntimeResourceOverlay
LOCAL_CERTIFICATE of these modules are currently set to `PRESIGNED`, since soong generates the build rules to sign the apk. However, this is an incorrect interpretation of `PRESIGNED`. This keyword means that the apk was signed with a release key, and not dev keys. Since Soong signs the autogenerated rros with dev keys, drop `PRESIGNED` from `LOCAL_CERTIFICATE` and replace it with the dev key string. Test: verified that `LOCAL_CERTIFICATE` of `Settings__aosp_cf_x86_64_phone__auto_generated_rro_vendor` in the autogenerated Android.mk is no longer PRESIGNED. Bug: 375277835 Change-Id: I024f88f9ee887323e93df8338af5f8b089025b93
Diffstat (limited to 'java/androidmk.go')
-rw-r--r--java/androidmk.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/androidmk.go b/java/androidmk.go
index b6bab5332..039e847a7 100644
--- a/java/androidmk.go
+++ b/java/androidmk.go
@@ -408,7 +408,7 @@ func (a *AutogenRuntimeResourceOverlay) AndroidMkEntries() []android.AndroidMkEn
Include: "$(BUILD_SYSTEM)/soong_app_prebuilt.mk",
ExtraEntries: []android.AndroidMkExtraEntriesFunc{
func(ctx android.AndroidMkExtraEntriesContext, entries *android.AndroidMkEntries) {
- entries.SetString("LOCAL_CERTIFICATE", "PRESIGNED") // The apk will be signed by soong
+ entries.SetString("LOCAL_CERTIFICATE", a.certificate.AndroidMkString())
},
},
}}