Replies: 5 comments 7 replies
-
Interesting, As on your hex dump just after "APK Sig Block 42PK" there are similar pattern hex bytes 01, 02, [... some block ...] {file-path}. I think this block is ApkSigningBlock. I guess this block holds check sum/digest of the signed files on the archive. Can you reproduce this manually ? Like copy-paste this last hex bytes with hex editor @Kirlif let's have your thoughts here |
Beta Was this translation helpful? Give feedback.
-
This idea was already used in the past when the v1 scheme was sufficient; requiring root and a modified android.jar to bypass signature verification, it was working great and easy to implement. As far as I remember 'APK Sig Block 42' (magic) stands at the end of the signing block just before the central directory. |
Beta Was this translation helpful? Give feedback.
-
The implementation is just started here |
Beta Was this translation helpful? Give feedback.
-
Release with preserve APK Signature Block APKEditor-1.1.9 |
Beta Was this translation helpful? Give feedback.
-
Is it possible the original signature scheme (APK Sig Block 42PK) hidden in the APK can be extracted for later use and put it back in APK again? just to make a modded APK with original signature (Modders usually call it an unsigned APK), in order to be able to login with Google for rooted devices with CorePatch module?
This is how it looks like in hex editor, it's at near the bottom, but I don't understand much how it works in hex
For example with preserving original signature:
The problem with unsigned APK:
When making changes in an APK using ordinary zip utility like Winrar, it removes the (APK Sig Block 42PK) completely, breaking Google login on Android 9 and above because Android 9 expect signature scheme v2, v3, v4 (APK Sig Block 42PK). Android 8 and below ignores it and read signature scheme v1 (RSA, SF and MF files in META-INF). Also signature scheme v1 is getting deprecated, some APK doesn't come with v1 anymore
To install unsigned APK:
Install Xposed and CorePatch https://github.com/LSPosed/CorePatch
Beta Was this translation helpful? Give feedback.
All reactions