5,606,650 Members 36,430 Now Online
XDA Developers Android and Mobile Development Forum

[tutorial] ***apktool for sense 4.0 apks 5/12/12***

Tip us?
 
scrosler
Old
#21  
scrosler's Avatar
Recognized Developer
Thanks Meter 47364
Posts: 21,908
Join Date: Feb 2007
Location: Fargo

 
DONATE TO ME
Thanks Fern!

Just got my One X on Friday so I can finally start playing around!
 
fernando sor
Old
(Last edited by fernando sor; 14th May 2012 at 02:08 AM.)
#22  
fernando sor's Avatar
Recognized Themer - OP
Thanks Meter 4828
Posts: 9,230
Join Date: Sep 2010
Location: north of the wall
Quote:
Originally Posted by scrosler View Post
Thanks Fern!

Just got my One X on Friday so I can finally start playing around!
Let me know if you have any issues. I heard that phones com.htc.resources people were still struggling with it to decompile

Sent from my ADR6425LVW using xda premium
Bad seed Customs Founder



 
magicalan
Old
#23  
magicalan's Avatar
Senior Member
Thanks Meter 76
Posts: 2,433
Join Date: Jan 2008
Hi , i was not able to recompile i followed the instructions and got an error



help :/
am barely trying to learn how to change the taskbar on my phone
 
Jmrwbilly
Old
#24  
Jmrwbilly's Avatar
Senior Member
Thanks Meter 126
Posts: 224
Join Date: Nov 2011
Location: 'Cuse NY!!
All I do.. use 2 versions of apktool, one to decompile the other to compile. Can't remember what versions I use for which operation though.. would need to look

Sent from my ADR6425LVW using Tapatalk 2
 
zozor
Old
#25  
zozor's Avatar
Senior Member
Thanks Meter 35
Posts: 655
Join Date: Jun 2011
Location: Wuhan
Hi fernando , Thanks for the apktool
I get this error when I try to install the resources with this apktool
Code:
C:\Users\Near\Downloads\apktool>apktool if com.htc.resources.apk sourceTest
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-hdpi-ERR0
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-hdpi-ERR1
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-hdpi-ERR2
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-hdpi-ERR3
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR4
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR5
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR6
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR7
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR8
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR9
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR10
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR11
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: integer-hdpi-ERR12
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: integer-hdpi-ERR13
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: integer-hdpi-ERR14
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: integer-hdpi-ERR15
I: Framework installed to: C:\Users\Near\apktool\framework\2-sourceTest.apk

C:\Users\Near\Downloads\apktool>
Is it normal? When I decompile the systemUI with it, I get the same error ,but the apk decompile successfully , then in the public.xml I get some id with apktool.dummy that give me a pain to identify with element is invoke in the smali.
Any idea or workaround?
Incredible
Xclip- S-Off
Newt's Pyramids- Rom
OC kernel
<=> China Telecom Gb Rooted Rom
 
fernando sor
Old
#26  
fernando sor's Avatar
Recognized Themer - OP
Thanks Meter 4828
Posts: 9,230
Join Date: Sep 2010
Location: north of the wall
Quote:
Originally Posted by zozor View Post
Hi fernando , Thanks for the apktool
I get this error when I try to install the resources with this apktool
Code:
C:\Users\Near\Downloads\apktool>apktool if com.htc.resources.apk sourceTest
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-hdpi-ERR0
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-hdpi-ERR1
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-hdpi-ERR2
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-hdpi-ERR3
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR4
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR5
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR6
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR7
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR8
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR9
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR10
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR11
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: integer-hdpi-ERR12
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: integer-hdpi-ERR13
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: integer-hdpi-ERR14
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: integer-hdpi-ERR15
I: Framework installed to: C:\Users\Near\apktool\framework\2-sourceTest.apk

C:\Users\Near\Downloads\apktool>
Is it normal? When I decompile the systemUI with it, I get the same error ,but the apk decompile successfully , then in the public.xml I get some id with apktool.dummy that give me a pain to identify with element is invoke in the smali.
Any idea or workaround?
yes thats normal
Bad seed Customs Founder



 
cflo360
Old
#27  
Senior Member
Thanks Meter 56
Posts: 210
Join Date: Feb 2012
Location: Houston

 
DONATE TO ME
Please use my apktool.jar if might fix most of your problems apktool.jar
@cflo360 ~ Twitter
----------------------------
~Roms~
DownTownRom - Released
------------------------
~HTC Devices~
S-OFF HTC Rezound
S-OFF Mytouch 4g
--------------------------
 
RomsWell
Old
#28  
RomsWell's Avatar
Senior Member
Thanks Meter 864
Posts: 1,393
Join Date: Jul 2011
Location: Venice
Use 3.21 i think it is to decompile. And then use the latest version to recompile. Then jus do the normal asec and res swap in the orig apk to keep orig signature.
And make sure your dependencys are setup like normal too.

Sent from my ADR6425LVW using xda premium

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes