-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[BUG] Recompiling system jars produces strange jars #3507
Comments
hmm thats odd. Thanks for details. I'm watching some updates to upstream smail for newer dex types. Though you are targeting API 29, so probably that. Either way you might have some luck running some tests directly w/ smali to rule out specific Apktool beahvior. |
Going to mark as 3rd-party and await a new release from google/smali. I believe whatever is happening here is over my knowledge. |
smali/baksmali v3.0.5 has been merged and available for testing on this bleeding edge release - https://github.com/iBotPeaches/Apktool/actions/runs/8048426591 |
I have the same issue with an official Samsung firmware for Android 14. I can confirm that this release does not fix the problem (neither the latest 2.9.3 does):
As a result, the rebuilt |
I don't think any release in my memory ever has persisted |
Do you need the official JAR for confirmation? FYI, here's what happens with the device (logcat) if you flash
You can see |
If you can link me to an official jar/something that has proof of the res contents within it - yeah that'll help. I don't yet know if thats a specific Samsung thing or AOSP. |
framework.zip, source:
Related: it'd be good if apktool reported when it ignores/removes some entries from the input APK or JAR. I spent half a day figuring why a rebuilt JAR with no modifications fails until I checked its contents by accident. |
I had the same problem, your reply temporarily fixed it |
Information
apktool -version
) -2.9.3
java --version
) -java 20.0.1 2023-04-18
Steps to Reproduce
lineage-20.0-20240126-nightly-lynx-signed.zip
from here./system/framework/framework.jar
(framework.jar.zip)apktool d -o framework framework.jar
apktool b -api 29 -c -f -o framework2.jar ./framework
framework.jar
is 32.6 MB andframework2.jar
is 17.6 MBunzip -lv framework.jar
,unzip -lv framework2.jar
Note thatframework.jar
contains 57 files, andframework2.jar
contains 54 files (missingres/vendor.mime.types
,res/android.mime.types
,res/debian.mime.types
)..jar
s.Questions to ask before submission
apktool d
,apktool b
without changing anything? YesPossibly related issues
apktool b
generates badhiddenapi_class_data_item
#2918The text was updated successfully, but these errors were encountered: