diff options
author | 2021-11-03 10:39:39 -0400 | |
---|---|---|
committer | 2021-11-03 10:46:15 -0400 | |
commit | 8eab869bfebf007e334f4c710f5a92ca19efa5df (patch) | |
tree | b2f19dff29988002b91873c71a32b3591692b686 /java/rro.go | |
parent | 4a3a8e7469b61b45f832caaddf3f1297e30b10de (diff) |
Add ability to set --rotation-min-sdk-version for signapk via Android.bp files.
(vs via Android.mk files, done earlier in http://ag/16094391)
Bug: 197787352
Test: Added unit tests.
Change-Id: I3ccd2f2134b069fb4c4a90fe384c23c1814c2ba2
Diffstat (limited to 'java/rro.go')
-rw-r--r-- | java/rro.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/java/rro.go b/java/rro.go index 0b4d0916a..1ab7751fd 100644 --- a/java/rro.go +++ b/java/rro.go @@ -51,6 +51,9 @@ type RuntimeResourceOverlayProperties struct { // Name of the signing certificate lineage file. Lineage *string + // For overriding the --rotation-min-sdk-version property of apksig + RotationMinSdkVersion *string + // optional theme name. If specified, the overlay package will be applied // only when the ro.boot.vendor.overlay.theme system property is set to the same value. Theme *string @@ -149,7 +152,10 @@ func (r *RuntimeResourceOverlay) GenerateAndroidBuildActions(ctx android.ModuleC if lineage := String(r.properties.Lineage); lineage != "" { lineageFile = android.PathForModuleSrc(ctx, lineage) } - SignAppPackage(ctx, signed, r.aapt.exportPackage, certificates, nil, lineageFile) + + rotationMinSdkVersion := String(r.properties.RotationMinSdkVersion) + + SignAppPackage(ctx, signed, r.aapt.exportPackage, certificates, nil, lineageFile, rotationMinSdkVersion) r.certificate = certificates[0] r.outputFile = signed |