Closed GoogleCodeExporter closed 9 years ago
Yep. This is a big problem.
Missed support for this in upgrade to Lollipop. We have no support for 3 letter
lang codes.
https://android-review.googlesource.com/#/c/82116/
https://android-review.googlesource.com/#/c/82117/
Started working on a patch.
Original comment by connor.tumbleson
on 17 Feb 2015 at 4:03
Thank you so much
You are an awesome dev
Original comment by laura.al...@gmail.com
on 17 Feb 2015 at 5:27
Need to add to unit-tests
en-rUS
en-sLatn-rUS
en-vPOSIX
r = 'region prefix'
s = 'script prefix'
v = 'variant prefix'
Original comment by connor.tumbleson
on 17 Feb 2015 at 5:40
https://github.com/iBotPeaches/Apktool/pull/100
WIP
Original comment by connor.tumbleson
on 17 Feb 2015 at 11:22
link dump
https://code.google.com/p/android/issues/detail?id=106574#c7
https://android-review.googlesource.com/#/c/82116/1/libs/androidfw/ResourceTypes
.cpp
https://github.com/android/platform_frameworks_base/commit/91447d88f2bdf9c2bf8d1
a53570efef6172fba74
https://android-review.googlesource.com/#/c/82116/1/include/androidfw/ResourceTy
pes.h
Original comment by connor.tumbleson
on 18 Feb 2015 at 3:05
This has been fixed as of: https://github.com/iBotPeaches/Apktool/pull/100
Since this was a BIG change to underlying code. I've made a snapshot build
below. You may use and test the change before the next public release.
Original comment by connor.tumbleson
on 25 Feb 2015 at 11:03
Attachments:
Thanks
All working perfectly fine now
Original comment by laura.al...@gmail.com
on 1 Mar 2015 at 3:29
Hi there! I encountered the same issue. And on updating the old
apktool_2.0.0rc4.jar with apktool-2.0.0-f8d153-SNAPSHOT-small.jar, now I'm not
able to decompile the apk at all. I see the below error:
I: Using Apktool 2.0.0-f8d153-SNAPSHOT on xxhdpi_normal_1_nondebug.apk
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Could not decode
arsc file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:52)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:621)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:73)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:65)
at brut.androlib.Androlib.getResTable(Androlib.java:63)
at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:209)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:92)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
Caused by: java.io.IOException: Expected: 0x00000008, got: 0x00000000
at brut.util.ExtDataInput.skipCheckShort(ExtDataInput.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:237)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:200)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:188)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:156)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:113)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
... 8 more
Original comment by keerthy....@gmail.com
on 11 Mar 2015 at 6:25
Not sure. Check how many bytes are in the ResConfig header or upload the apk.
Original comment by connor.tumbleson
on 11 Mar 2015 at 6:31
[deleted comment]
Can you please tell me how I can check on the ResConfig header?
Original comment by keerthy....@gmail.com
on 11 Mar 2015 at 6:42
Guess I figured why. When I decompiled the apk it did not add the all framework
ids in android.yml. So it was freaking out. After adding the ids in
android.yml, it worked just fine. Thank you for the tool! :)
Original comment by keerthy....@gmail.com
on 11 Mar 2015 at 7:06
Original issue reported on code.google.com by
laura.al...@gmail.com
on 17 Feb 2015 at 1:35Attachments: