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

Crash after patching telephony-common #36

Open
dep4 opened this issue Apr 21, 2021 · 2 comments
Open

Crash after patching telephony-common #36

dep4 opened this issue Apr 21, 2021 · 2 comments

Comments

@dep4
Copy link

dep4 commented Apr 21, 2021

Hi, thanks for the great tool! Patching services.jar works well, patching telephony-common.jar even in pass-through mode results in a crash. Tried version 1.8.0 as well

Steps to reproduce

  • pass-through patch
java -jar dexpatcher.jar --output classes.dex telephony-common.dex --debug --verbose
DexPatcher version 1.7.0 by Lanchon (https://dexpatcher.github.io/)
info: read 'telephony-common.dex'
debug: read 'telephony-common.dex': 1318 types
debug: read 'telephony-common.dex': dex version '039'
info: write 'classes.dex'
debug: write 'classes.dex': dex version '039'
debug: write 'classes.dex': 1318 types
0 error(s), 0 warning(s)
  • zip classes.dex into telepthony-common.jar
  • push to device
  • reboot
  • crash output attached
    crash.txt
@Lanchon
Copy link
Member

Lanchon commented Apr 21, 2021

interesting...

try unzipping classes.dex and then rezipping.

if that works ok, try a baksmaki/smali roundtrip.

if that works, try another smali roundtrip using the smali version that corresponds to the dexlib2 version used by your chosen dexpatcher-tool version (see its build.gradle file).

thanks,!

@Lanchon
Copy link
Member

Lanchon commented Apr 22, 2021

i caught your JesusFreke/smali#811

@dep4 dep4 changed the title Crash after paching telephony-common Crash after patching telephony-common Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants