JesusFreke / smali

smali/baksmali
6.3k stars 1.07k forks source link

[Feature Request] Could we support dex v41? #882

Open wangchaohui opened 10 months ago

wangchaohui commented 10 months ago

The following cl turns on the dex v41.

"Enable dex container (DEX v41) for the whole system" https://android-review.git.corp.google.com/c/platform/build/soong/+/2853426

auermich93 commented 10 months ago

@wangchaohui I think the best chance to get this integrated is to open this feature request on the issue tracker of the new smali repository: https://github.com/google/smali/issues.

qyzhaojinxi commented 8 months ago

I found some apks even have v54. recompiling the apk will success if I change the smali nothing. but recompiling the apk will fail if I change the samli anything.

The maximum allowed register in this context is list of registers is v15

I don't know why. How can I ingore the smali error when recompile the apk.

auermich93 commented 8 months ago

@qyzhaojinxi You mix here things up. We are talking here about the dex version 41 and not about (local) registers that are labeled v0 to vN. The problem you have btw is that you use an instruction in combination with a register that is out of range, e.g., the regular invoke instruction can only address v0 to v15 as operands.