Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Android N built applications fail ResConfig decode #1223
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.
Steps to Reproduce
Used both N and MM frameworks, but result in dropping translation resources
Questions to ask before submission
changed the title from
Invalid config flags detected error on latest Google Applications
Android N built applications fail ResConfig decode
Apr 13, 2016
I actually hadn't tested this, just trusted the stack trace but I downloaded the apk from the link and ran it without problems.
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
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.
referenced this issue
May 9, 2016
This was referenced
Jul 21, 2016
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