iBotPeaches / Apktool

A tool for reverse engineering Android apk files
https://apktool.org/
Apache License 2.0
19.75k stars 3.56k forks source link

[BUG] dex version changed after compilation. #3641

Open secretmyth opened 1 month ago

secretmyth commented 1 month ago

Information

  1. Apktool Version (apktool_2.10.0_20240708) -
  2. Operating System (Windows 11 x64) -
  3. APK From? (Duolingo) -
  4. Java Version (Java 8 Update 411) -

Steps to Reproduce

  1. Just decompile and then recompile, dex version changed from v39 original to v40.
  2. This will break compatibility with all devices with android 10 or lower. App will install, but FC on startup.

Frameworks

If this APK is from an OEM ROM (Samsung, HTC, LG). Please attach framework files (.apks that live in /system/framework or /system/priv-app) NO

APK

https://play.google.com/store/apps/details?id=com.duolingo https://www.apkmirror.com/apk/duolingo/duolingo-duolingo/duolingo-duolingo-5-159-4-release/

Questions to ask before submission

  1. Have you tried apktool d, apktool b without changing anything? YES
  2. If you are trying to install a modified apk, did you resign it? YES
  3. Are you using the latest apktool version? YES
iBotPeaches commented 1 month ago

Apktool doesn't have much control over this - it must be occurring from upstream smali. Theres been some changes lately related to this exact thing, but for API29-ish. Have a look at these and see if you need to submit something upstream