Skip to content

Commit

Permalink
Update verCode
Browse files Browse the repository at this point in the history
  • Loading branch information
HSSkyBoy committed Apr 25, 2024
1 parent 8da482e commit e492e16
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
branch = android10-release
[submodule "core"]
path = core
url = https://github.com/mywalkb/LSPosed_mod.git
url = https://github.com/HSSkyBoy/LSPosed_mod.git
branch = master
[submodule "patch/libs/manifest-editor"]
path = patch/libs/manifest-editor
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ val (coreCommitCount, coreLatestTag) = FileRepositoryBuilder().setGitDir(rootPro

val defaultManagerPackageName by extra("org.lsposed.lspatch")
val apiCode by extra(93)
val verCode by extra(427)
val verCode by extra(428)
val verName by extra("0.6.1")
val coreVerCode by extra(coreCommitCount)
val coreVerName by extra(coreLatestTag)
val androidMinSdkVersion by extra(28)
val androidMinSdkVersion by extra(27)
val androidTargetSdkVersion by extra(34)
val androidCompileSdkVersion by extra(34)
val androidCompileNdkVersion by extra("25.2.9519653")
Expand Down
2 changes: 1 addition & 1 deletion manager/src/main/java/org/lsposed/lspatch/ui/theme/Type.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ val Typography = Typography(
bodyLarge = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Normal,
fontSize = 16.sp,
fontSize = 18.sp,
lineHeight = 24.sp,
letterSpacing = 0.5.sp
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void onServiceDisconnected(ComponentName name) {
if (!success) throw new TimeoutException("Bind service timeout");
} catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException |
InterruptedException | TimeoutException e) {
Toast.makeText(context, "[LSPatch] Unable to connect to Manager", Toast.LENGTH_SHORT).show();
Toast.makeText(context, "[NPatch] Unable to connect to Manager", Toast.LENGTH_SHORT).show();
var r = new RemoteException("Failed to get manager binder");
r.initCause(e);
throw r;
Expand Down
8 changes: 4 additions & 4 deletions patch/src/main/java/org/lsposed/patch/LSPatch.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public void doCommandLine() throws PatchError, IOException {
outputDir.mkdirs();

File outputFile = new File(outputDir, String.format(
Locale.getDefault(), "%s-%d-lspatched.apk",
Locale.getDefault(), "%s-%d-npatched.apk",
FilenameUtils.getBaseName(apkFileName),
LSPConfig.instance.VERSION_CODE)
).getAbsoluteFile();
Expand Down Expand Up @@ -196,7 +196,7 @@ public void patch(File srcApkFile, File outputFile) throws PatchError, IOExcepti
}
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())
Expand Down Expand Up @@ -326,8 +326,8 @@ private byte[] modifyManifestFile(InputStream is, String metadata, int minSdkVer

if (overrideVersionCode)
property.addManifestAttribute(new AttributeItem(NodeValue.Manifest.VERSION_CODE, 1));
if (minSdkVersion < 28)
property.addUsesSdkAttribute(new AttributeItem(NodeValue.UsesSDK.MIN_SDK_VERSION, "28"));
if (minSdkVersion < 27)
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));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ public class Constants {
final static public String ORIGINAL_APK_ASSET_PATH = "assets/lspatch/origin.apk";
final static public String EMBEDDED_MODULES_ASSET_PATH = "assets/lspatch/modules/";

final static public String PATCH_FILE_SUFFIX = "-lspatched.apk";
final static public String PATCH_FILE_SUFFIX = "-npatched.apk";
final static public String PROXY_APP_COMPONENT_FACTORY = "org.lsposed.lspatch.metaloader.LSPAppComponentFactoryStub";
final static public String MANAGER_PACKAGE_NAME = "io.github.duzhaokun123.lspatch";
final static public String MANAGER_PACKAGE_NAME = "org.slposed.lspatch";
final static public int MIN_ROLLING_VERSION_CODE = 348;

final static public int SIGBYPASS_LV_DISABLE = 0;
Expand Down

0 comments on commit e492e16

Please sign in to comment.