desword / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
1 stars 0 forks source link

SemcGenericUxpRes.apk from Xperia Z 4.3 does not decompile #578

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. apktool if framework-res.apk
2. apktool d SemcGenericUxpRes.apk or apktool if SemcGenericUxpRes.apk

What is the expected output? What do you see instead?

Testing the SemcGenericUxpRes.apk from 4.2 works well, but the one from 4.3 
gives following error:

I: Using Apktool 2.0.0-Beta8 on SemcGenericUxpRes.apk
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple types: 
<empty>
        at brut.androlib.res.data.ResPackage.addType(ResPackage.java:172)
        at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:131)
        at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:109)
        at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)
        at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
        at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:603)
        at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:74)
        at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:66)
        at brut.androlib.Androlib.getResTable(Androlib.java:49)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:93)
        at brut.apktool.Main.cmdDecode(Main.java:169)
        at brut.apktool.Main.main(Main.java:85)

What version of the product are you using? On what operating system?

Windows 7 x64, Java 7, compiled newest apktool from your github, but it also 
fails for 2.0.0-Beta7 and 1.5.2

Please provide any additional information below.

Can't attach framework-res.apk, because it's to big, but you can reproduce 
error without it.

Thanks for your help ;-)

Original issue reported on code.google.com by makko....@gmail.com on 23 Dec 2013 at 10:12

Attachments:

GoogleCodeExporter commented 9 years ago
Attachment failed -.-

Original comment by makko....@gmail.com on 23 Dec 2013 at 10:13

Attachments:

GoogleCodeExporter commented 9 years ago
Same issue with SemcGenericUxpRes.apk for ZL 4.3

Original comment by R...@eboyer.net on 27 Dec 2013 at 12:07

GoogleCodeExporter commented 9 years ago
    type 7 configCount=0 entryCount=0
    type 9 configCount=0 entryCount=0

Has two types with 0 ResSpecs in it. Never seen this before. Can easily skip if 
"<empty>" need to do some more research why this happens though, before I make 
this change.

Original comment by connor.tumbleson on 3 Jan 2014 at 10:42

GoogleCodeExporter commented 9 years ago
I think I've fixed this, but I don't have all the frameworks from this ROM.

Can you upload all the apk's in /system/framework/*.apk ?

I need to test my fix.

Original comment by connor.tumbleson on 3 Jan 2014 at 10:49

GoogleCodeExporter commented 9 years ago
http://pastebin.com/r0ymmXKN

I believe this will fix, but not sure yet. Attaching patch file before I forget.

Original comment by connor.tumbleson on 4 Jan 2014 at 11:21

GoogleCodeExporter commented 9 years ago
Hey,

I have uploaded framework-res.apk und SemcGenericUxpRes.apk again from this 
rom. Should be eniugh for you to test the fix. 
http://www.sendspace.com/file/rm6gbv

And something really interesting: It seems like Sony has fixed the bug in newer 
firmware versions. Look at the SemcGenericUxpRes.apk from the 4.3 update for 
Xperia Z1: Should be the same SemcGenericUxpRes.apk like the one from Z, but 
this one decompiles fine. I've attached these files also for diff. 
http://www.sendspace.com/file/cw2uot

Will test your fix later.

Thanks for help ;-)

Original comment by makko....@gmail.com on 5 Jan 2014 at 9:40

GoogleCodeExporter commented 9 years ago
Really nice, your fix seems to work ...

I: Using Apktool 2.0.0-Beta8 on SemcGenericUxpRes.apk
I: Loading resource table...
W: Multiple types detected! <empty> ignored!
I: Loading resource table...
W: Multiple types detected! <empty> ignored!
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Marco\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling...
I: Copying assets and libs...
I: Copying unknown files/dir...
I: Copying original files...

Original comment by makko....@gmail.com on 5 Jan 2014 at 4:45

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/android-apktool/source/detail?r=559a3024ccd0bc4655b86bd
c36364718209fb724&name=wip-2.0

Fixed checked-in.

Original comment by connor.tumbleson on 6 Jan 2014 at 12:41

GoogleCodeExporter commented 9 years ago
which apktool version has this issue fixed? I am facing the same problem. 
Someone please give me a link to download the working apktool

Original comment by vshl.khe...@gmail.com on 11 Jan 2014 at 6:17

GoogleCodeExporter commented 9 years ago
status:fixed!!!?
anyone plz help how to fix!!!?
tnx

Original comment by silverbi...@gmail.com on 24 Jan 2014 at 3:38

GoogleCodeExporter commented 9 years ago
plz release apktool version fixed Issue 578 :'(
i don't know fix this problem

Original comment by 123kong...@gmail.com on 27 Jan 2014 at 8:05

GoogleCodeExporter commented 9 years ago
Please stop responding to this bug. All project members receive an email for 
every comment. The fix was checked in. Feel free to build it from source. The 
next beta / release-candidate of apktool 2.x will have this fix.

Original comment by connor.tumbleson on 27 Jan 2014 at 4:17

GoogleCodeExporter commented 9 years ago
Sorry for that, I thought you have already made it 

Original comment by vshl.khe...@gmail.com on 27 Jan 2014 at 5:49

GoogleCodeExporter commented 9 years ago
Hi connor.

Not to be pushy but do you have an eta for the next release? There are a ton of 
Sony users that would appreciate it. I would compile it myself if I had the 
slightest idea. Donation waiting.  

Original comment by drno5...@gmail.com on 2 Feb 2014 at 11:53