Add logs & Remove original v1 signature files correctly
This commit is contained in:
parent
ecf6c9d5ea
commit
58b6677ece
|
|
@ -240,11 +240,13 @@ public class LSPApplication extends ApplicationServiceClient {
|
|||
PackageInfo packageInfo = PackageInfo.CREATOR.createFromParcel(out);
|
||||
if (packageInfo.packageName.equals(context.getApplicationInfo().packageName)) {
|
||||
if (packageInfo.signatures != null && packageInfo.signatures.length > 0) {
|
||||
XLog.d(TAG, "replace signature info [0]");
|
||||
packageInfo.signatures[0] = new Signature(originalSignature);
|
||||
}
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
||||
if (packageInfo.signingInfo != null) {
|
||||
XLog.d(TAG, "replace signature info [1]");
|
||||
Signature[] signaturesArray = packageInfo.signingInfo.getApkContentsSigners();
|
||||
if (signaturesArray != null && signaturesArray.length > 0) {
|
||||
signaturesArray[0] = new Signature(originalSignature);
|
||||
|
|
|
|||
2
core
2
core
|
|
@ -1 +1 @@
|
|||
Subproject commit 8c96190a8ebfa45bcf08f98b0bb374d35e0c00d6
|
||||
Subproject commit 415f8e03c849cff89c66d258879e079587349418
|
||||
|
|
@ -323,8 +323,7 @@ public class LSPatch {
|
|||
if (name.startsWith("classes") && name.endsWith(".dex")) continue;
|
||||
if (dstZFile.get(name) != null) continue;
|
||||
if (name.equals("AndroidManifest.xml")) continue;
|
||||
if (name.startsWith("META-INF/CERT")) continue;
|
||||
if (name.equals("META-INF/MANIFEST.MF")) continue;
|
||||
if (name.startsWith("META-INF") && (name.endsWith(".SF") || name.endsWith(".MF") || name.endsWith(".RSA"))) continue;
|
||||
srcZFile.addFileLink(name, name);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue