Lower minSdkVersion

This commit is contained in:
NkBe 2025-09-03 23:29:00 +08:00
parent 88fae63e30
commit fed6e4afcf
No known key found for this signature in database
GPG Key ID: 75EF144ED8F4D7B8
1 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ public class LSPatch {
}
var entry = (KeyStore.PrivateKeyEntry) keyStore.getEntry(keystoreArgs.get(2), new KeyStore.PasswordProtection(keystoreArgs.get(3).toCharArray()));
new SigningExtension(SigningOptions.builder()
.setMinSdkVersion(28)
.setMinSdkVersion(27)
.setV2SigningEnabled(true)
.setCertificates((X509Certificate[]) entry.getCertificateChain())
.setKey(entry.getPrivateKey())
@ -350,7 +350,7 @@ public class LSPatch {
if (overrideVersionCode)
property.addManifestAttribute(new AttributeItem(NodeValue.Manifest.VERSION_CODE, 1));
if (minSdkVersion < 28)
property.addUsesSdkAttribute(new AttributeItem(NodeValue.UsesSDK.MIN_SDK_VERSION, 28));
property.addUsesSdkAttribute(new AttributeItem(NodeValue.UsesSDK.MIN_SDK_VERSION, 27));
property.addApplicationAttribute(new AttributeItem(NodeValue.Application.DEBUGGABLE, debuggableFlag));
property.addApplicationAttribute(new AttributeItem("appComponentFactory", PROXY_APP_COMPONENT_FACTORY));
property.addMetaData(new ModificationProperty.MetaData("lspatch", metadata));