Skip to content
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

Checksum mismatch #13

Open
Dhina17 opened this issue Nov 20, 2022 · 5 comments
Open

Checksum mismatch #13

Dhina17 opened this issue Nov 20, 2022 · 5 comments
Labels
bug Something isn't working question Further information is requested

Comments

@Dhina17
Copy link
Contributor

Dhina17 commented Nov 20, 2022

I ain't sure how to use this app. I checked the source and tried it like I understood.

I made an sample apk (just shows a text view) and installed in my device.

Then I modified the app source to show some other text. Compiled and pushed to my device storage.

I tried to patch the installed (old app) (target) with the new apk file (input) using the odex patcher app.

I checked the log. I have seen 'dex checksum mismatch. Expected: some value. Actual: some value'.

Is it the right way to use the app?

Does this app replacing the old dex with the new dex ref in the oat/vdex file? Or is it working in some other way?

@giacomoferretti
Copy link
Owner

Hello, sorry for the late response.

I am aware of the poor documentation, as soon as I rewrite the patching logic I will also create a small example of use. I would have some ready but have not committed them yet.

Can you share with me:

  • Device used
  • Android version
  • Odex Patcher version
  • Original APK
  • Patched APK

@giacomoferretti giacomoferretti added bug Something isn't working question Further information is requested labels Jan 18, 2023
@Dhina17
Copy link
Contributor Author

Dhina17 commented Jan 18, 2023

I figured out the issue. It's happening in the multidex apk. While patching the checksum in the oat, we have to ensure that we are patching checksums in the classes{N}.dex in the right order. (ascending). I assumed you don't accept patches since you are rewriting that's why didn't make a PR.

@giacomoferretti
Copy link
Owner

Oh, nice discovery. I thought I had already fixed that. Nevermind.

I accept pull requests because I can't keep up with it as much as I would like to these days, so if you can fix this problem I would be glad, at least it won't happen to other users. Thank you!

@Dhina17
Copy link
Contributor Author

Dhina17 commented Jan 18, 2023

Sure will do.

@Dhina17
Copy link
Contributor Author

Dhina17 commented Jan 18, 2023

Fixed in #14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants