Decompile errors "framework-res" ICS leak. - Thunderbolt Q&A, Help & Troubleshooting

I was trying to decompile the leaked ICS framework-res.apk using xda tools.
HTC Thunderbolt xdaAutoTool Version:4.0.3 Used apktool_1.4.1 and tried 1.4.2 , 1.4.3, 1.4.5 and 1.4.10
I get the following errors:
-----------------------------------------------------
[*] framework-res.apk
-----------------------------------------------------
Decompiling framework-res.apk...
I: Loading resource table...
W: Config flags size > 32. Exceeding bytes: -2FFE000000000000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR0
W: Config flags size > 32. Exceeding bytes: 0000D00200000000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR1
W: Config flags size > 32. Exceeding bytes: 0004000000000000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR2
W: Config flags size > 32. Exceeding bytes: 0005000000000000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR3
W: Config flags size > 32. Exceeding bytes: 0000000001000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR4
W: Config flags size > 32. Exceeding bytes: 0000000002000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR5
W: Config flags size > 32. Exceeding bytes: 0000000004000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR6
W: Config flags size > 32. Exceeding bytes: 0000000005000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR7
W: Config flags size > 32. Exceeding bytes: 0000000001000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR8
W: Config flags size > 32. Exceeding bytes: 0000000002000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR9
W: Config flags size > 32. Exceeding bytes: 0000000004000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR10
W: Config flags size > 32. Exceeding bytes: 0000000005000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR11
W: Config flags size > 32. Exceeding bytes: 0000000001000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR12
W: Config flags size > 32. Exceeding bytes: 0000000002000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR13
W: Config flags size > 32. Exceeding bytes: 0000000004000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR14
W: Config flags size > 32. Exceeding bytes: 0000000005000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR15
W: Config flags size > 32. Exceeding bytes: 5802000000000000.
W: Invalid config flags detected. Dropping resources: layout-v13-ERR16
W: Config flags size > 32. Exceeding bytes: 6801000000000000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR17
W: Config flags size > 32. Exceeding bytes: -BFF000000000000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR18
W: Config flags size > 32. Exceeding bytes: 5802000000000000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR19
W: Config flags size > 32. Exceeding bytes: -2FFE000000000000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR20
W: Config flags size > 32. Exceeding bytes: 0000D00200000000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR21
W: Config flags size > 32. Exceeding bytes: -1FFF000000000000.
W: Invalid config flags detected. Dropping resources: bool-v13-ERR22
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Done!
Can anyone help? Please
I like to thank everyone in advance for any help with this problem.
Electric0215

electric0215 said:
I was trying to decompile the leaked ICS framework-res.apk using xda tools.
HTC Thunderbolt xdaAutoTool Version:4.0.3 Used apktool_1.4.1 and tried 1.4.2 , 1.4.3, 1.4.5 and 1.4.10
I get the following errors:
-----------------------------------------------------
[*] framework-res.apk
-----------------------------------------------------
Decompiling framework-res.apk...
I: Loading resource table...
W: Config flags size > 32. Exceeding bytes: -2FFE000000000000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR0
W: Config flags size > 32. Exceeding bytes: 0000D00200000000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR1
W: Config flags size > 32. Exceeding bytes: 0004000000000000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR2
W: Config flags size > 32. Exceeding bytes: 0005000000000000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR3
W: Config flags size > 32. Exceeding bytes: 0000000001000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR4
W: Config flags size > 32. Exceeding bytes: 0000000002000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR5
W: Config flags size > 32. Exceeding bytes: 0000000004000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR6
W: Config flags size > 32. Exceeding bytes: 0000000005000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR7
W: Config flags size > 32. Exceeding bytes: 0000000001000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR8
W: Config flags size > 32. Exceeding bytes: 0000000002000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR9
W: Config flags size > 32. Exceeding bytes: 0000000004000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR10
W: Config flags size > 32. Exceeding bytes: 0000000005000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR11
W: Config flags size > 32. Exceeding bytes: 0000000001000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR12
W: Config flags size > 32. Exceeding bytes: 0000000002000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR13
W: Config flags size > 32. Exceeding bytes: 0000000004000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR14
W: Config flags size > 32. Exceeding bytes: 0000000005000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR15
W: Config flags size > 32. Exceeding bytes: 5802000000000000.
W: Invalid config flags detected. Dropping resources: layout-v13-ERR16
W: Config flags size > 32. Exceeding bytes: 6801000000000000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR17
W: Config flags size > 32. Exceeding bytes: -BFF000000000000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR18
W: Config flags size > 32. Exceeding bytes: 5802000000000000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR19
W: Config flags size > 32. Exceeding bytes: -2FFE000000000000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR20
W: Config flags size > 32. Exceeding bytes: 0000D00200000000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR21
W: Config flags size > 32. Exceeding bytes: -1FFF000000000000.
W: Invalid config flags detected. Dropping resources: bool-v13-ERR22
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Done!
Can anyone help? Please
I like to thank everyone in advance for any help with this problem.
Electric0215
Click to expand...
Click to collapse
Have you tried Apktool v1.4.9.aed20bd? Also make sure to run "apktool if framework-res.apk"

Thanks Trter10
trter10 said:
Have you tried Apktool v1.4.9.aed20bd? Also make sure to run "apktool if framework-res.apk"
Click to expand...
Click to collapse
I ran apktool in command prompt and was able to Keep-Broken_Res. I did use V1.4.9...Thanks
It seems that there are two View Language folders that are broken.
Now I just need to resolve these and compile framework and also com.htc.resource.
Thanks for leading me in the right direction.
electric0215

the config flag crap is standard is most ics/sense ics files...it doesnt affect anything
you may need to make changes to several files in /values (anims.xml and so on) to get the framework-res to build however

Try using this I'm not sure if it will work for ics but it worked for gb http://db.tt/A5ig7Cjb
Sent from my ADR6400 using xda premium

I've had pretty good luck with just opening the zip BetterZIP (Mac) but not extracting it. Take the files out you want to modify and then drag them back in then save it.

enzonix said:
I've had pretty good luck with just opening the zip BetterZIP (Mac) but not extracting it. Take the files out you want to modify and then drag them back in then save it.
Click to expand...
Click to collapse
I use Mac also. Just dual boot using a virtual machine. I prefer vmware fusion
Sent from my Liquid ICS HTC Thunderbolt

jonah1234 said:
I use Mac also. Just dual boot using a virtual machine. I prefer vmware fusion
Sent from my Liquid ICS HTC Thunderbolt
Click to expand...
Click to collapse
I used to do the whole VM thing and I hit a road block that I just haven't had time to look into. For some reason on this new Mac Pro it won't let me install XP with Fusion, it's the same with Boot Camp too. Could just be this Mac as I've done this before. 7 works but I prefer XP, IF I HAVE to use Windows.

enzonix said:
I used to do the whole VM thing and I hit a road block that I just haven't had time to look into. For some reason on this new Mac Pro it won't let me install XP with Fusion, it's the same with Boot Camp too. Could just be this Mac as I've done this before. 7 works but I prefer XP, IF I HAVE to use Windows.
Click to expand...
Click to collapse
I prefer windows 7 I don't like Mac it limits u from a lot
Sent from my Liquid ICS HTC Thunderbolt

jonah1234 said:
I prefer windows 7 I don't like Mac it limits u from a lot
Sent from my Liquid ICS HTC Thunderbolt
Click to expand...
Click to collapse
lol I don't want this to start to snowball so I'll say this... They're all tools, they each have their own uses. Both are often good at the same tasks it just takes a user that knows how to use the tool properly.

enzonix said:
lol I don't want this to start to snowball so I'll say this... They're all tools, they each have their own uses. Both are often good at the same tasks it just takes a user that knows how to use the tool properly.
Click to expand...
Click to collapse
Ok agreed. Back on topic has anyone been able to decompile framework-res apk on liquid ics because i was gonna start working on a theme for that tonight.
Sent from my Liquid ICS HTC Thunderbolt

jonah1234 said:
Ok agreed. Back on topic has anyone been able to decompile framework-res apk on liquid ics because i was gonna start working on a theme for that tonight.
Sent from my Liquid ICS HTC Thunderbolt
Click to expand...
Click to collapse
I'm no dev but have done some playing around that APK and depending on what you're trying to do you shouldn't need to decompile it. If you're messing around with images and maybe the XML files then you should be able to just open (not extract) it with a good ZIP application (keeping a backup first). Then edit the files and save them into the APK

Related

[Q] Decompiling ICS 4.0 APK

Hey all im having some trouble decompiling ICS APKS im using apk tool and i loaded the new framework res apk which gives me flags and decompiling also gives me flags if you guys could take a look and help me out where im going wrong id be greatly appreciated
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\DK>apktool if "C:\Users\DK\Desktop\ICS\framework-res.apk" ICS
W: Config flags size > 32. Exceeding bytes: -2FFE0000.
W: Invalid config flags detected: dimen-v13-ERR0
W: Config flags size > 32. Exceeding bytes: 0000D002.
W: Invalid config flags detected: dimen-v13-ERR1
W: Config flags size > 32. Exceeding bytes: 00040000.
W: Invalid config flags detected: dimen-v13-ERR2
W: Config flags size > 32. Exceeding bytes: 00050000.
W: Invalid config flags detected: dimen-v13-ERR3
W: Config flags size > 32. Exceeding bytes: 58020000.
W: Invalid config flags detected: layout-v13-ERR4
W: Config flags size > 32. Exceeding bytes: 68010000.
W: Invalid config flags detected: integer-v13-ERR5
W: Config flags size > 32. Exceeding bytes: -BFF0000.
W: Invalid config flags detected: integer-v13-ERR6
W: Config flags size > 32. Exceeding bytes: 58020000.
W: Invalid config flags detected: integer-v13-ERR7
W: Config flags size > 32. Exceeding bytes: -2FFE0000.
W: Invalid config flags detected: integer-v13-ERR8
W: Config flags size > 32. Exceeding bytes: 0000D002.
W: Invalid config flags detected: integer-v13-ERR9
W: Config flags size > 32. Exceeding bytes: -1FFF0000.
W: Invalid config flags detected: bool-v13-ERR10
I: Framework installed to: C:\Users\DK\apktool\framework\1-ICS.apk
C:\Users\DK>apktool d -f "C:\Users\DK\Desktop\ICS\framework-res.apk" "C:\U
sers\DK\Desktop\ICS\framework-res"
I: Loading resource table...
W: Config flags size > 32. Exceeding bytes: -2FFE0000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR0
W: Config flags size > 32. Exceeding bytes: 0000D002.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR1
W: Config flags size > 32. Exceeding bytes: 00040000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR2
W: Config flags size > 32. Exceeding bytes: 00050000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR3
W: Config flags size > 32. Exceeding bytes: 58020000.
W: Invalid config flags detected. Dropping resources: layout-v13-ERR4
W: Config flags size > 32. Exceeding bytes: 68010000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR5
W: Config flags size > 32. Exceeding bytes: -BFF0000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR6
W: Config flags size > 32. Exceeding bytes: 58020000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR7
W: Config flags size > 32. Exceeding bytes: -2FFE0000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR8
W: Config flags size > 32. Exceeding bytes: 0000D002.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR9
W: Config flags size > 32. Exceeding bytes: -1FFF0000.
W: Invalid config flags detected. Dropping resources: bool-v13-ERR10
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\Users\DK>apktool b "C:\Users\DK\Desktop\ICS\framework-res" A:\framework
-res.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
C:\Users\DK>
Me too... I want to change the minimum version required on a few apps.
Via My HTC Evo 3D On The Now Network From Sprint.
*BUMP* Can anybody help here or get a Decker here that can help with this. I don't know most of them.
Sent from my PG86100 using Tapatalk
#bump #
Sent from my PG86100 using XDA App
I swear you need the source to update the tools. They were able to do honeycomb by reverse engineering.
Sent from my Nexus S 4G
I see by reading the post that installing the framework is the problem. Did you buy chance try the honeycomb tool?
Any luck with this yet?
EDIT: I fixed my problem by using apktool version 1.4.2 was using 1.4.1
kylesum said:
Any luck with this yet?
EDIT: I fixed my problem by using apktool version 1.4.2 was using 1.4.1
Click to expand...
Click to collapse
Same here, used this. Now it works
http://forum.xda-developers.com/showpost.php?p=19839303&postcount=25

Linux/Mac ApkTool for Jellybean/ICS?

Does anyone have the correct ApkTool for ICS and Jellybean for Linux/Mac?
I can't compile using the one from the website as I get compiling errors
Evostance said:
Does anyone have the correct ApkTool for ICS and Jellybean for Linux/Mac?
I can't compile using the one from the website as I get compiling errors
Click to expand...
Click to collapse
You probably have the wrong version of aapt. I can compile jb with no issues at all.
Sent from my Galaxy Nexus using xda premium
tristan202 said:
You probably have the wrong version of aapt. I can compile jb with no issues at all.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Can you send me the aapt please
tristan202 said:
You probably have the wrong version of aapt. I can compile jb with no issues at all.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Please bro, can you share your aapt? I have the same problem and with JB I can't decompile my apk...I've try 6 version of aapt and do not work :banghead:
Thank's in advanced
Inviato dal mio Nexus S con Tapatalk 2
Just download the latest sdk.
Sent from my Galaxy Nexus using xda premium
So I got it to compile fine, now it doesn't decompile
W: Config flags size > 32. Exceeding bytes: 00009001.
W: Invalid config flags detected. Dropping resources: layout-v13-ERR0
W: Config flags size > 32. Exceeding bytes: -BFF0000.
W: Invalid config flags detected. Dropping resources: animator-v13-ERR1
W: Config flags size > 32. Exceeding bytes: 68010000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR2
W: Config flags size > 32. Exceeding bytes: -43FE0000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR3
W: Config flags size > 32. Exceeding bytes: 00005401.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR4
W: Config flags size > 32. Exceeding bytes: 0000AE01.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR5
W: Config flags size > 32. Exceeding bytes: 58020000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR6
W: Config flags size > 32. Exceeding bytes: -2FFE0000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR7
W: Config flags size > 32. Exceeding bytes: -7BFD0000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR8
I: Loaded.
I: Loading resource table from file: /Users/greg/apktool/framework/1.apk
W: Config flags size > 32. Exceeding bytes: 0000D002.
W: Invalid config flags detected: dimen-v13-ERR9
W: Config flags size > 32. Exceeding bytes: -3FFD0000.
W: Invalid config flags detected: dimen-v13-ERR10
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x0bf1dc80
I: Loading resource table from file: /Users/greg/apktool/framework/1.apk
W: Config flags size > 32. Exceeding bytes: 0000D002.
W: Invalid config flags detected: dimen-v13-ERR11
W: Config flags size > 32. Exceeding bytes: -3FFD0000.
W: Invalid config flags detected: dimen-v13-ERR12
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionName, value=0x00000024
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write(Writer.java:140)
at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSerializer.java:38)
at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:673)
at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSerializerDelegate.java:106)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Click to expand...
Click to collapse
tristan202 said:
Just download the latest sdk.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
It's the first I've try (api16).
Inviato dal mio Nexus S con Tapatalk 2

Apk Recompile Error

When I decompile framework-res.apk I get this error
Code:
c:\root\apktool>apktool d framework-res.apk
I: Loading resource table...
W: Config flags size > 32. Exceeding bytes: -2FFE0000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR0
W: Config flags size > 32. Exceeding bytes: 0000D002.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR1
W: Config flags size > 32. Exceeding bytes: 00040000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR2
W: Config flags size > 32. Exceeding bytes: 00050000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR3
W: Config flags size > 32. Exceeding bytes: 58020000.
W: Invalid config flags detected. Dropping resources: layout-v13-ERR
W: Config flags size > 32. Exceeding bytes: 68010000.
W: Invalid config flags detected. Dropping resources: integer-v13-ER
W: Config flags size > 32. Exceeding bytes: -BFF0000.
W: Invalid config flags detected. Dropping resources: integer-v13-ER
W: Config flags size > 32. Exceeding bytes: 58020000.
W: Invalid config flags detected. Dropping resources: integer-v13-ER
W: Config flags size > 32. Exceeding bytes: -2FFE0000.
W: Invalid config flags detected. Dropping resources: integer-v13-ER
W: Config flags size > 32. Exceeding bytes: 0000D002.
W: Invalid config flags detected. Dropping resources: integer-v13-ER
W: Config flags size > 32. Exceeding bytes: -1FFF0000.
W: Invalid config flags detected. Dropping resources: bool-v13-ERR10
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
When I recompile I a get a similar error. Any help would be very helpful.

[Q] impossible to decompile the htc.resources.apk of the dna?!

Does anyone figured out how to decompile the com.htc.resources.apk for the htc dna? I used apktool but it won't install the resources.apk in its folder...it gives back errors like :
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xhdpi-ERR41
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xhdpi-ERR42
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xhdpi-ERR43
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-480dpi-ERR44
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-480dpi-ERR45
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-480dpi-ERR46
santacruzdz said:
Does anyone figured out how to decompile the com.htc.resources.apk for the htc dna? I used apktool but it won't install the resources.apk in its folder...it gives back errors like :
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xhdpi-ERR41
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xhdpi-ERR42
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xhdpi-ERR43
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-480dpi-ERR44
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-480dpi-ERR45
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-480dpi-ERR46
Click to expand...
Click to collapse
Did you install the framework-res.apk and systemui.apk first?
Sent from my Team 420 themed HTC Droid DNA
It worked it just won't recompile in that same build folder ... You have to replace the individual pieces ..
Unzip the apk and decompile it so you have two folders ..
If you decompile and edit XML then just go into the decompiled folder edit what you need then recompile .. once you have done that just replace the resources.asrc from inside the build folder of the decompiled apk and move it inside the unzipped folder and rezip it/ name it apk instead of zip and your changes will be in there
Same goes for images ... Decompile and make whatever changes then recompile and replace only the images inside the drawable xxdpi folder and rezip/rename
If this is hard to follow ... Sorry I'm typing all from memory on my phone at work ...
Sent from my HTC6435LVW using xda app-developers app
gitku said:
It worked it just won't recompile in that same build folder ... You have to replace the individual pieces ..
Unzip the apk and decompile it so you have two folders ..
If you decompile and edit XML then just go into the decompiled folder edit what you need then recompile .. once you have done that just replace the resources.asrc from inside the build folder of the decompiled apk and move it inside the unzipped folder and rezip it/ name it apk instead of zip and your changes will be in there
Same goes for images ... Decompile and make whatever changes then recompile and replace only the images inside the drawable xxdpi folder and rezip/rename
If this is hard to follow ... Sorry I'm typing all from memory on my phone at work ...
Sent from my HTC6435LVW using xda app-developers app
Click to expand...
Click to collapse
I dont really understand how can I decompile an unzipped apk?? I usually use apk manager which has apktool, could you please provide me a clear step by step procedure, that would be helpful, thank you!!
You'll have 2 folders ... Decompile using apk tool and just overlook the errors ... Also unzip the original apk (for example you would have a folder named "SystemUI" [this is the decompiled folder] and another named "SystemUI.apk_files" [using Linux this is what the extracted or unzipped folder would be named] the difference is that the unzipped folder isn't decoded so you can't edit XML and editing the .9.PNG images is more of a pain .. then edit inside the decompiled and drag your changes over to the unzipped one and rezip/rename it. Apktool will not rebuild entirely correctly so you have to do it this way .. its the only way I have been successful anyways. If this isn't clear enough I'll throw you some screen shots in a few hours.
Sent from my HTC6435LVW using xda app-developers app
gitku said:
You'll have 2 folders ... Decompile using apk tool and just overlook the errors ... Also unzip the original apk (for example you would have a folder named "SystemUI" [this is the decompiled folder] and another named "SystemUI.apk_files" [using Linux this is what the extracted or unzipped folder would be named] the difference is that the unzipped folder isn't decoded so you can't edit XML and editing the .9.PNG images is more of a pain .. then edit inside the decompiled and drag your changes over to the unzipped one and rezip/rename it. Apktool will not rebuild entirely correctly so you have to do it this way .. its the only way I have been successful anyways. If this isn't clear enough I'll throw you some screen shots in a few hours.
Sent from my HTC6435LVW using xda app-developers app
Click to expand...
Click to collapse
Yes I would definitely lie some screenshots please! My problem is that apktool doesn't "install" the com.htc.ressources.apk so it won't decompile it! I get a empty folder..
I have another question, which verion of apktool are you using?
To install resources.
Apktool if com.htc.resources.apk
Same for framework-res.apk
Sent from my HTC6435LVW using xda premium
jonah1234 said:
Did you install the framework-res.apk and systemui.apk first?
Sent from my Team 420 themed HTC Droid DNA
Click to expand...
Click to collapse
Yes I installed framework-res and framework-htc.apk and SystemUI.apk...but impossible to install com.htc.resources.apk! please help!
santacruzdz said:
Yes I installed framework-res and framework-htc.apk and SystemUI.apk...but impossible to install com.htc.resources.apk! please help!
Click to expand...
Click to collapse
those errors are common when installing the frameworks...what does the entire error say? usually it has all the flag stuff but still says installed afterwards
I misunderstood ... Are you using Windows or Linux? If Linux I'll send you the version of apk tool I got half working .. I've heard apkmulti tool works on windows but it didn't for me
Sent from my HTC6435LVW using xda app-developers app
gitku said:
I misunderstood ... Are you using Windows or Linux? If Linux I'll send you the version of apk tool I got half working .. I've heard apkmulti tool works on windows but it didn't for me
Sent from my HTC6435LVW using xda app-developers app
Click to expand...
Click to collapse
I use windows, apktool works fine with all other apk's..only com.htc.resources.apk...
nitsuj17 said:
those errors are common when installing the frameworks...what does the entire error say? usually it has all the flag stuff but still says installed afterwards
Click to expand...
Click to collapse
This the log :
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) Client VM (build 23.5-b02, mixed mode, sharing)
Impossible de trouver C:\Users\santa_cruzdz\Desktop\ANDROID\Decompile-Recompile\Decompile-Recompile\APK Manager 5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/signedcom.htc.resources.apk
Impossible de trouver C:\Users\santa_cruzdz\Desktop\ANDROID\Decompile-Recompile\Decompile-Recompile\APK Manager 5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedcom.htc.resources.apk
I: Loading resource table...
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR0
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR1
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR2
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR3
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-xhdpi-ERR4
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-xhdpi-ERR5
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-xhdpi-ERR6
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected. Dropping resources: dimen-xhdpi-ERR7
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-xxhdpi-ERR8
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-xxhdpi-ERR9
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-xxhdpi-ERR10
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-hdpi-ERR11
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-hdpi-ERR12
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-hdpi-ERR13
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xhdpi-ERR14
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xhdpi-ERR15
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xhdpi-ERR16
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xxhdpi-ERR17
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xxhdpi-ERR18
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xxhdpi-ERR19
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-hdpi-ERR20
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-hdpi-ERR21
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-hdpi-ERR22
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xhdpi-ERR23
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xhdpi-ERR24
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xhdpi-ERR25
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xxhdpi-ERR26
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xxhdpi-ERR27
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xxhdpi-ERR28
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR29
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR30
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR31
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xhdpi-ERR32
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xhdpi-ERR33
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xhdpi-ERR34
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xxhdpi-ERR35
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xxhdpi-ERR36
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xxhdpi-ERR37
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR38
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR39
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR40
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xhdpi-ERR41
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xhdpi-ERR42
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xhdpi-ERR43
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xxhdpi-ERR44
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xxhdpi-ERR45
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xxhdpi-ERR46
Exception in thread "main" java.lang.NullPointerException
at brut.androlib.res.decoder.ARSCDecoder.addMissingResSpecs(ARSCDecoder.java:321)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:134)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:106)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:390)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:56)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:48)
at brut.androlib.Androlib.getResTable(Androlib.java:48)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:166)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:131)
at brut.apktool.Main.main(Main.java:68)
Code:
[/HIDE]
I get an empty folder when decompiling...
santacruzdz said:
This the log :
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) Client VM (build 23.5-b02, mixed mode, sharing)
Impossible de trouver C:\Users\santa_cruzdz\Desktop\ANDROID\Decompile-Recompile\Decompile-Recompile\APK Manager 5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/signedcom.htc.resources.apk
Impossible de trouver C:\Users\santa_cruzdz\Desktop\ANDROID\Decompile-Recompile\Decompile-Recompile\APK Manager 5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedcom.htc.resources.apk
I: Loading resource table...
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR0
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR1
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR2
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR3
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-xhdpi-ERR4
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-xhdpi-ERR5
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-xhdpi-ERR6
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected. Dropping resources: dimen-xhdpi-ERR7
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-xxhdpi-ERR8
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-xxhdpi-ERR9
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-xxhdpi-ERR10
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-hdpi-ERR11
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-hdpi-ERR12
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-hdpi-ERR13
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xhdpi-ERR14
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xhdpi-ERR15
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xhdpi-ERR16
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xxhdpi-ERR17
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xxhdpi-ERR18
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xxhdpi-ERR19
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-hdpi-ERR20
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-hdpi-ERR21
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-hdpi-ERR22
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xhdpi-ERR23
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xhdpi-ERR24
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xhdpi-ERR25
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xxhdpi-ERR26
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xxhdpi-ERR27
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xxhdpi-ERR28
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR29
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR30
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR31
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xhdpi-ERR32
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xhdpi-ERR33
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xhdpi-ERR34
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xxhdpi-ERR35
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xxhdpi-ERR36
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xxhdpi-ERR37
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR38
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR39
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR40
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xhdpi-ERR41
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xhdpi-ERR42
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xhdpi-ERR43
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xxhdpi-ERR44
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xxhdpi-ERR45
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xxhdpi-ERR46
Exception in thread "main" java.lang.NullPointerException
at brut.androlib.res.decoder.ARSCDecoder.addMissingResSpecs(ARSCDecoder.java:321)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:134)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:106)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:390)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:56)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:48)
at brut.androlib.Androlib.getResTable(Androlib.java:48)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:166)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:131)
at brut.apktool.Main.main(Main.java:68)
Code:
[/HIDE]
I get an empty folder when decompiling...[/QUOTE]
Your using a script program. Apkmanager isn't the way to go. Just use apktool from a command line
Sent from my EVO using xda premium
Click to expand...
Click to collapse
fernando sor said:
Your using a script program. Apkmanager isn't the way to go. Just use apktool from a command line
Sent from my EVO using xda premium
Click to expand...
Click to collapse
I did and I get the same error, I open a command line in the folder of apktool to install the htc.resources and it gives back the same errors, I'm desperate...please help????
Here is the log with only apktool :
C:\Users\santa_cruzdz\Desktop\other>apktool if com.htc.resources.apk
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-hdpi-ERR0
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-hdpi-ERR1
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-hdpi-ERR2
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-hdpi-ERR3
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-xhdpi-ERR4
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-xhdpi-ERR5
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-xhdpi-ERR6
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-xhdpi-ERR7
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-xxhdpi-ERR8
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-xxhdpi-ERR9
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-xxhdpi-ERR10
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ja-hdpi-ERR11
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ja-hdpi-ERR12
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ja-hdpi-ERR13
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ja-xhdpi-ERR14
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ja-xhdpi-ERR15
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ja-xhdpi-ERR16
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ja-xxhdpi-ERR17
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ja-xxhdpi-ERR18
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ja-xxhdpi-ERR19
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ko-hdpi-ERR20
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ko-hdpi-ERR21
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ko-hdpi-ERR22
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ko-xhdpi-ERR23
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ko-xhdpi-ERR24
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ko-xhdpi-ERR25
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ko-xxhdpi-ERR26
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ko-xxhdpi-ERR27
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ko-xxhdpi-ERR28
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR29
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR30
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR31
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-xhdpi-ERR32
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-xhdpi-ERR33
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-xhdpi-ERR34
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-xxhdpi-ERR35
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-xxhdpi-ERR36
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-xxhdpi-ERR37
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR38
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR39
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR40
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-xhdpi-ERR41
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-xhdpi-ERR42
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-xhdpi-ERR43
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-xxhdpi-ERR44
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-xxhdpi-ERR45
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-xxhdpi-ERR46
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: integer-hdpi-ERR47
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: integer-hdpi-ERR48
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: integer-hdpi-ERR49
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: integer-hdpi-ERR50
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: integer-xhdpi-ERR51
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: integer-xhdpi-ERR52
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: integer-xhdpi-ERR53
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: integer-xhdpi-ERR54
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: integer-xxhdpi-ERR55
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: integer-xxhdpi-ERR56
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: integer-xxhdpi-ERR57
I: Framework installed to: C:\Users\santa_cruzdz\apktool\framework\2.apk
C:\Users\santa_cruzdz\Desktop\other>
santacruzdz said:
I did and I get the same error, I open a command line in the folder of apktool to install the htc.resources and it gives back the same errors, I'm desperate...please help????
Here is the log with only apktool :
C:\Users\santa_cruzdz\Desktop\other>apktool if com.htc.resources.apk
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-hdpi-ERR0
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-hdpi-ERR1
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-hdpi-ERR2
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-hdpi-ERR3
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-xhdpi-ERR4
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-xhdpi-ERR5
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-xhdpi-ERR6
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: dimen-xhdpi-ERR7
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-xxhdpi-ERR8
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-xxhdpi-ERR9
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-xxhdpi-ERR10
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ja-hdpi-ERR11
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ja-hdpi-ERR12
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ja-hdpi-ERR13
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ja-xhdpi-ERR14
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ja-xhdpi-ERR15
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ja-xhdpi-ERR16
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ja-xxhdpi-ERR17
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ja-xxhdpi-ERR18
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ja-xxhdpi-ERR19
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ko-hdpi-ERR20
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ko-hdpi-ERR21
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ko-hdpi-ERR22
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ko-xhdpi-ERR23
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ko-xhdpi-ERR24
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ko-xhdpi-ERR25
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-ko-xxhdpi-ERR26
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-ko-xxhdpi-ERR27
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-ko-xxhdpi-ERR28
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR29
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR30
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR31
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-xhdpi-ERR32
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-xhdpi-ERR33
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-xhdpi-ERR34
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-xxhdpi-ERR35
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-xxhdpi-ERR36
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-xxhdpi-ERR37
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR38
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR39
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR40
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-xhdpi-ERR41
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-xhdpi-ERR42
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-xhdpi-ERR43
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-xxhdpi-ERR44
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-xxhdpi-ERR45
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-xxhdpi-ERR46
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: integer-hdpi-ERR47
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: integer-hdpi-ERR48
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: integer-hdpi-ERR49
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: integer-hdpi-ERR50
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: integer-xhdpi-ERR51
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: integer-xhdpi-ERR52
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: integer-xhdpi-ERR53
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected: integer-xhdpi-ERR54
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: integer-xxhdpi-ERR55
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: integer-xxhdpi-ERR56
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: integer-xxhdpi-ERR57
I: Framework installed to: C:\Users\santa_cruzdz\apktool\framework\2.apk
C:\Users\santa_cruzdz\Desktop\other>
Click to expand...
Click to collapse
Look at the very bottom line . It did install. Config flag errors have been present since at least sense 3.5.
Look in users\Santa_ cruzdz\apktool
You will see a 2.apk in there. That's com.HTC.resources file
Sent from my EVO using xda premium
fernando sor said:
Look at the very bottom line . It did install. Config flag errors have been present since at least sense 3.5.
Look in users\Santa_ cruzdz\apktool
You will see a 2.apk in there. That's com.HTC.resources file
Sent from my EVO using xda premium
Click to expand...
Click to collapse
Yes you are right I found it thank you! Now that I try to decompile the same com.resources.apk doing the following code "apktool d com.htc.resources.apk" I get a folder inside the apktool folder when I click on it it is empty any idea please??
Here is the log while decompiling...
C:\Users\santa_cruzdz\Desktop\other>apktool d com.htc.resources.apk
I: Loading resource table...
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR0
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR1
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR2
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR3
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-xhdpi-ERR4
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-xhdpi-ERR5
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-xhdpi-ERR6
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected. Dropping resources: dimen-xhdpi-ERR7
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-xxhdpi-ERR8
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-xxhdpi-ERR9
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-xxhdpi-ERR10
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-hdpi-ERR11
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-hdpi-ERR12
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-hdpi-ERR13
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xhdpi-ERR14
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xhdpi-ERR15
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xhdpi-ERR16
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xxhdpi-ERR17
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xxhdpi-ERR18
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xxhdpi-ERR19
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-hdpi-ERR20
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-hdpi-ERR21
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-hdpi-ERR22
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xhdpi-ERR23
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xhdpi-ERR24
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xhdpi-ERR25
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xxhdpi-ERR26
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xxhdpi-ERR27
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xxhdpi-ERR28
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR29
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR30
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR31
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xhdpi-ERR32
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xhdpi-ERR33
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xhdpi-ERR34
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xxhdpi-ERR35
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xxhdpi-ERR36
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xxhdpi-ERR37
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR38
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR39
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR40
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xhdpi-ERR41
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xhdpi-ERR42
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xhdpi-ERR43
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xxhdpi-ERR44
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xxhdpi-ERR45
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xxhdpi-ERR46
Exception in thread "main" java.lang.NullPointerException
at brut.androlib.res.decoder.ARSCDecoder.addMissingResSpecs(ARSCDecoder.
java:315)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:133)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
5)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibRes
ources.java:386)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.jav
a:56)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.jav
a:48)
at brut.androlib.Androlib.getResTable(Androlib.java:49)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:166)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
C:\Users\santa_cruzdz\Desktop\other>
santacruzdz said:
Yes you are right I found it thank you! Now that I try to decompile the same com.resources.apk doing the following code "apktool d com.htc.resources.apk" I get a folder inside the apktool folder when I click on it it is empty any idea please??
Here is the log while decompiling...
C:\Users\santa_cruzdz\Desktop\other>apktool d com.htc.resources.apk
I: Loading resource table...
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR0
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR1
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR2
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR3
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-xhdpi-ERR4
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-xhdpi-ERR5
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-xhdpi-ERR6
W: Config flags size > 36. Exceeding bytes: 0x6000000.
W: Invalid config flags detected. Dropping resources: dimen-xhdpi-ERR7
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-xxhdpi-ERR8
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-xxhdpi-ERR9
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-xxhdpi-ERR10
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-hdpi-ERR11
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-hdpi-ERR12
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-hdpi-ERR13
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xhdpi-ERR14
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xhdpi-ERR15
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xhdpi-ERR16
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xxhdpi-ERR17
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xxhdpi-ERR18
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ja-xxhdpi-ERR19
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-hdpi-ERR20
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-hdpi-ERR21
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-hdpi-ERR22
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xhdpi-ERR23
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xhdpi-ERR24
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xhdpi-ERR25
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xxhdpi-ERR26
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xxhdpi-ERR27
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-ko-xxhdpi-ERR28
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR29
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR30
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR31
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xhdpi-ERR32
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xhdpi-ERR33
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xhdpi-ERR34
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xxhdpi-ERR35
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xxhdpi-ERR36
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-xxhdpi-ERR37
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR38
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR39
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR40
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xhdpi-ERR41
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xhdpi-ERR42
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xhdpi-ERR43
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xxhdpi-ERR44
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xxhdpi-ERR45
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-xxhdpi-ERR46
Exception in thread "main" java.lang.NullPointerException
at brut.androlib.res.decoder.ARSCDecoder.addMissingResSpecs(ARSCDecoder.
java:315)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:133)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
5)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibRes
ources.java:386)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.jav
a:56)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.jav
a:48)
at brut.androlib.Androlib.getResTable(Androlib.java:49)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:166)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
C:\Users\santa_cruzdz\Desktop\other>
Click to expand...
Click to collapse
Yeah I thought it was possible to decompile because we can decompile jb HTC.resources on the evo lte but it looks like the xxdpi dimens can't be decompiled until aapt is updated
Sent from my HTC6435LVW using xda premium
---------- Post added at 12:40 PM ---------- Previous post was at 12:38 PM ----------
You can hex it though. That's an alternative
Sent from my HTC6435LVW using xda premium
fernando sor said:
Yeah I thought it was possible to decompile because we can decompile jb HTC.resources on the evo lte but it looks like the xxdpi dimens can't be decompiled until aapt is updated
Sent from my HTC6435LVW using xda premium
---------- Post added at 12:40 PM ---------- Previous post was at 12:38 PM ----------
You can hex it though. That's an alternative
Sent from my HTC6435LVW using xda premium
Click to expand...
Click to collapse
Well thank you for your help anyway..I guess I have to wait and hope that it comes soon..I don't think I can use the hex..a little too complicated for me!
santacruzdz said:
Well thank you for your help anyway..I guess I have to wait and hope that it comes soon..I don't think I can use the hex..a little too complicated for me!
Click to expand...
Click to collapse
it is confusing the first time you use a hex editer but the trade off is that there is no decompiling/recompiling.
all cpu/logic unit processors, process computer instructions in binary which is a base two number system. So all high level languages (java,c++, etc) use a compiler to translate the instructions into binary.
when i say hex thats slang for using a hexadecimal program to modify the code. hexadecimal is a base 16 number system. 0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f. the cool thing with base 16 is you can express large numbers in other systems with just two digits. in decimal ff=255. in binary ff= 11111111.
im sure you have seen in xml rgb color code. r=red, b=blue, g=green. add alpha to that and you have an 8 digit color code. example ff000000 is black. the first two digits here being ff. this applies the transparency. ff has 0 transparency. the next six digits 000000 have zero light value so ff000000 is black. Take away the ff and add 00 and 00000000 is completely transparent.
so if you were to take your resources.arsc and place it in hxd, a free hex editing program you could easily find all color codes that are stored in res /values/colors.
the very important thing to remember is in hxd the code is displayed backwards. so stock android green ff00ff00 would read 00ff00ff.
i would decompile 4.1 sense 4+ com.htc.resources from the evo lte or one x and use that as a guide. the values/color xml will be identical to the dnas. then search for those color values.
easy? no. but none of this stuff is easy. jump in.
fernando sor;35737nur said:
it is confusing the first time you use a hex editer but the trade off is that there is no decompiling/recompiling.
all cpu/logic unit processors, process computer instructions in binary which is a base two number system. So all high level languages (java,c++, etc) use a compiler to translate the instructions into binary.
when i say hex thats slang for using a hexadecimal program to modify the code. hexadecimal is a base 16 number system. 0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f. the cool thing with base 16 is you can express large numbers in other systems with just two digits. in decimal ff=255. in binary ff= 11111111.
im sure you have seen in xml rgb color code. r=red, b=blue, g=green. add alpha to that and you have an 8 digit color code. example ff000000 is black. the first two digits here being ff. this applies the transparency. ff has 0 transparency. the next six digits 000000 have zero light value so ff000000 is black. Take away the ff and add 00 and 00000000 is completely transparent.
so if you were to take your resources.arsc and place it in hxd, a free hex editing program you could easily find all color codes that are stored in res /values/colors.
the very important thing to remember is in hxd the code is displayed backwards. so stock android green ff00ff00 would read 00ff00ff.
i would decompile 4.1 sense 4+ com.htc.resources from the evo lte or one x and use that as a guide. the values/color xml will be identical to the dnas. then search for those color values.
easy? no. but none of this stuff is easy. jump in.
Click to expand...
Click to collapse
Wow..this is not easy! but as you say..I have nothing to loose, the difficult part for I think will be to find the color values in the hex programi already played with colors and I know some color codes but not in hex..so think you for your support..and I will jump in thousands thanks that you took time to answer my questions.

APK tool weird errors

Im getting this error when trying to decompile apks from the latest AOKP nightly. So i tried to install this nightlies framework and get the same error
C:\Users\Sean\Desktop\New folder>apktool if framework-res.apk
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-nodpi-v8-ERR0
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-v8-ERR1
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-xhdpi-v8-ERR2
I: Framework installed to: C:\Users\Sean\apktool\framework\1.apk
C:\Users\Sean\Desktop\New folder>
ive never seen this before. What is causing it?

Categories

Resources