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
Android N built applications fail ResConfig decode #1223
Comments
Apktool only has support up to 52 byte configurations. This shows its higher than that, I haven't seen a standard Google / AOSP application above 52 yet. |
Thanks for the reply - if you want to test the latest Google calendar apk has these issues... As well as other Google apps like youtube |
Yeah these APKs have something new. Must be built using the new upcoming N release tools. Investigating what these new bytes are will prove to be difficult without source or frameworks, so I guess this will become the official report for Android N support. |
I actually hadn't tested this, just trusted the stack trace but I downloaded the apk from the link and ran it without problems.
|
Hi, the later 5.4 release of calendar doesnt have that issue, the previos 5.4 release did. As another example, the latest Google App versions also have that issue http://www.apkmirror.com/apk/google-inc/google-search/google-search-5-12-30-release/ regards |
Thanks, that application did have a problem. The config header is now 56 bytes. I've decoded the application using the above linked PR (#1226) which simply ignores those bytes. This is hack and should not be used at all. We are just throwing away configurations which can lead to duplicate resource errors or more. We need an SDK dump to proceed further with this. |
The additional 4 bytes seem to have no configuration purpose. My guess is alignment padding in order to make access to other portions of the
Fixed here - aa038a6 |
Information
apktool -V2.1
) -Issue: Latest Google apps are compiled with (possibly) the Android N SDK, and decompiling these (even with the Android N framework-res.apk) results in an error regarding config flags.
Result: APKTOOL will drop the related assets (arrays, strings, plurals) from the values-[LanguageISOCode] folders. Only the default language folders are decompiled correctly. Rebuilding the apk thus results in losing all translation values and xmls.
Stacktrace/Logcat
Steps to Reproduce
In this case, apktool d Calendar_5.4-119043132.apk
Frameworks
Used both N and MM frameworks, but result in dropping translation resources
APK
http://www.apkmirror.com/apk/google-inc/calendar/calendar-5-4-119043132-release-release/google-calendar-5-4-119043132-release-android-apk-download/
Questions to ask before submission
apktool d
,apktool b
without changing anything? YesThe text was updated successfully, but these errors were encountered: