-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
signatures are inconsistent (can't install xapk) #55
Comments
Do you still have the unpatched app installed on your device? If so, then you have to uninstall that first. Android apps always have to be signed and |
Yes, I'm sure that there's no app with the same package name: As I said, if I only install the base apk (run this command: If I install with more any apk file:
I always get the same error: BTW, I'm a full-stack developer. So you can teach me how to fix if you have no free-time Thanks |
Could you share the result of running Another thing you could try is installing the XAPK file through APKPure's XAPK Installer, maybe that will work or at least give you a better error message. |
It said |
I installed and tried all existed XAPK app |
Seems like the |
@hungntv Why did you close the issue? Were you able to resolve it? |
@shroudedcode were you able to resolve the issue? getting following on "keytool -printcert -v -jarfile base.apk"
I am always getting following |
@KrishnaST I was not because I can't reproduce the issue and haven't received any useful information so far. Could you please run |
Reopening this due to #58. |
when i try to run your command on the apk file, keytool says the apk files inside the bundle folder all match |
hey, you asking me to use these commands gave me an idea and it was just windows, something must have been silently failing, i setup ubuntu subsystem and patched it the same way and now it installs, i had to manually install unzip and zip inside ubuntu but its all good now |
Interesting, so that doesn't seem to be the issue... 🤔
That doesn't matter, the framework file is only there for Apktool to function.
Which file are you talking about here? In case you mean the
Huh, interesting. On one hand it doesn't surprise me (Windows is known for causing problems), but I also have no idea what could be going wrong here... The entire time I was assuming the issue was that the bundle APKs were somehow inconsistently signed, but I guess that's not true. Just to make sure we're not going down the wrong path here:
I guess #57 is more relevant than I thought. 😅 |
yep all the apks in bundle all had the same sha1 tag, and yes I didn't have the app installed, I even tried installing on a fresh device
also yes windows is horrible i shouldnt have tried to do it there in the first place :)
"Which file are you talking about here? In case you mean the .xapk/.apks file: This one doesn't have to be signed, it's just a .zip file (you can literally rename and open it) containing the different .apk files of the App Bundle. It's not an APK/JAR file by itself and isn't supposed to be signed."
i was talking about the apk in framework here
|
Mmh, okay. Thanks for confirming!
Hahaha yes, I've thought about just not supporting Windows, but that seems like the lazy way out. I'd prefer if I could actually figure out the cause and maybe implement a fix (or at least have a good explanation for why it doesn't work on Windows), but I still have no clue... If you have any ideas, please share them. 😅 |
@shroudedcode can you give windows equivalent of the "echo *.apk | xargs -P 0 -n 1 keytool -printcert -jarfile | grep SHA1 " I will share u the results. |
@KrishnaST I have no idea what the Windows equivalent would be, but you could just run manually run |
Here are the results. Only hash of base apk is changed while whole apks archive was provided to apk-mitm.
B. After Patching
|
I am going to try applying apk-mitm to individual packages. |
@KrishnaST Thank you so much for providing the logs! I'm not 100% sure yet, but I have a feeling that this has to do with the different |
I tried apk-mitm on individual apks, I got following error on installation
|
This should be fixed in v1.0.3. |
Victim: Zedge
Where to get xapk:
get version armeabi-v7a from https://apkpure.com/vn/zedge%E2%84%A2-wallpapers-ringtones/net.zedge.android/variant/7.8.3-XAPK
I call above downloaded file: zedge.v7a.xapk
Steps:
-- run
apk-mitm zedge.v7a.xapk
, a patched file will be created (its name iszedge.v7a-patched.xapk
)-- rename patched file to
zedge.v7a-patched.xapk.zip
, extract it to folderzedge.v7a-patched.xapk.zip
-- cd to
zedge.v7a-patched.xapk.zip
folder-- install to android device, run
adb install-multiple net.zedge.android.apk config.xxhdpi.apk config.en.apk config.armeabi_v7a.apk
Final log:
adb: failed to finalize session
Failure [INSTALL_FAILED_INVALID_APK: /data/app/vmdl411721873.tmp/config.xxhdpi.apk signatures are inconsistent]
The same error with all files exclude base file
net.zedge.android.apk
How can I fix it?
Thank you
The text was updated successfully, but these errors were encountered: