Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
droidxpert
Old
#21  
Senior Member
Thanks Meter 27
Posts: 200
Join Date: Jan 2012
Location: calicut
sir i was decompiling nemus launcher but it shows error

decoding values xml
exeption in thread "main"........blah..blah
what could be the reason for this
on MCalaw's awesome CM9
 
cowsquad
Old
#22  
cowsquad's Avatar
Senior Member
Thanks Meter 198
Posts: 881
Join Date: Aug 2009
Location: Portland, Oregon

 
DONATE TO ME
Quote:
Originally Posted by droidxpert View Post
sir i was decompiling nemus launcher but it shows error

decoding values xml
exeption in thread "main"........blah..blah
what could be the reason for this
What version of the apktool are you using. What steps are you following?

Sent from my Galaxy Nexus using Tapatalk 2
 
droidxpert
Old
#23  
Senior Member
Thanks Meter 27
Posts: 200
Join Date: Jan 2012
Location: calicut
Quote:
Originally Posted by cowsquad View Post
What version of the apktool are you using. What steps are you following?

Sent from my Galaxy Nexus using Tapatalk 2
i am using version 3.2...and i copied the apk and i decompiled as i am doing usually
on MCalaw's awesome CM9
 
retareq
Old
#24  
retareq's Avatar
Senior Member
Thanks Meter 38
Posts: 360
Join Date: Oct 2011
Location: Toronto

 
DONATE TO ME
Thanks hyztname! I was using apkmultitool and apk manager and all that for so long I did not know such a straight forward way existed. I was having trouble recently with a certain apk that would not decompile properly and I tried your way with the regular apktool and bam!

Cheers!
 
masChmagic
Old
#25  
Junior Member
Thanks Meter 0
Posts: 25
Join Date: Jul 2007
Hi
Thanks for your tutorial.

I followed it to recompile android htc live wallpapers apk, signed it, and reinstalled it into the device /system and it seemed to work.

Now I am trying to decompile dockmode.apk from the /system folder, and fix some stuff. I notice in the main AndroidManifest.xml file that they spelled HTCBuletoothconfirm wrong, it was supposed to be HTCBluetoothconfirm maybe?

I am also trying to remove the default live wallpaper from dock mode (right now it is com.htc.WeatherLiveWallpaper and I want to change it to the one I'm using now.

But when I try to build the apk, I get the following error:

Code:
c:\Users\asus\Desktop\apktool>apktool b DockMode
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: c:\Users\asus\Desktop\apktool\DockMode\res/values-w1dp
invalid resource directory name: c:\Users\asus\Desktop\apktool\DockMode\res/values-w2dp
invalid resource directory name: c:\Users\asus\Desktop\apktool\DockMode\res/values-w3dp
I notice that the directory separator \ is switched to / and I have no idea why. Because of this I can't rebuild the apk.

Any suggestions what I should do? Do I need to go into each smali file and change everything?

Thanks
 
pa.pn2
Old
#26  
pa.pn2's Avatar
Senior Member
Thanks Meter 374
Posts: 2,380
Join Date: Jul 2010
Location: Düsseldorf
hi,
need help please
i used apktool 1.4.3 to decompile the framework-res.apk from a rom
that worked without probs
i changed a style.xml in res/value

i used ics apktool for compiling but it wont work
first line says always could not find ressource, but it was the right path where the decompiled folder was in..
after that i get a lot of errors aswell...

Samsung Galaxy Nexus 16gb
Rom-Carbon nightlies
Kernel-Morfics Trinity
Radio-XXLJ1

LG Nexus 4 16gb
Rom-Carbon nightlies
Kernel-latest franco
Radio-.33


My Dropbox for Wallpaper,Docks, Icons and more:
http://db.tt/RTuSn4E
http://papn2.deviantart.com/gallery/
My actual ProgressiveSet
https://soundcloud.com/pa-pn2/progressionsession


Click Thanks if I helped you!!
 
v6ser
Old
#27  
v6ser's Avatar
Member - OP
Thanks Meter 135
Posts: 98
Join Date: Jan 2012
Location: Rome now, Brasilia before

 
DONATE TO ME
Please you all having problems with 3th part apktool/s, use the original one.

Otherwise I won't help you :\
If I helped you hit thanks



CM9, AOKP and S-Voice for MDPI/LDPI porter

checkout my work at MADTEAM
The Following User Says Thank You to v6ser For This Useful Post: [ Click to Expand ]
 
fishingfon
Old
#28  
fishingfon's Avatar
Senior Member
Thanks Meter 247
Posts: 705
Join Date: Feb 2012
Location: Brisbane, QLD, Australia
Hi,
i am trying to decompile lots of apks from the new Samsung Galaxy S3 rom from using this tool. but i keep getting this error:


C:\Windows\system32>
C:\Windows\system32>apktool d C:\temp\applicationsprovider.apk
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78
0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder .java:44)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder .java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib .java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85 )
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)

C:\Windows\system32>


Can someone please help me with this.

Cheers Corey
Stop Animal Cruelty, please donate:
http://www.peta.org/

Shocking Video from China fur Farms, Animals Skinned alive, please donate:
https://secure.peta.org/site/Advocac...Action&id=3957

My Current Devices:
Galaxy Note II N7100
HTC 8x Windows Phone 8 (So Sexy!!)
Samsung Galaxy S2 I9100,
Nexus 7



 
cowsquad
Old
#29  
cowsquad's Avatar
Senior Member
Thanks Meter 198
Posts: 881
Join Date: Aug 2009
Location: Portland, Oregon

 
DONATE TO ME
Quote:
Originally Posted by fishingfon View Post
Hi,
i am trying to decompile lots of apks from the new Samsung Galaxy S3 rom from using this tool. but i keep getting this error:


C:\Windows\system32>
C:\Windows\system32>apktool d C:\temp\applicationsprovider.apk
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78
0a 30 33 36 00
at org.jf.dexlib.DexFile.(DexFile.java:377)
at org.jf.dexlib.DexFile.(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder .java:44)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder .java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib .java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85 )
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)

C:\Windows\system32>


Can someone please help me with this.

Cheers Corey
Okay, go to this thread and download the apktool.jar for the link provided on that thread.
http://rootzwiki.com/index.php?/topi...-Rule-Them-All
Replace the sdk apktool.jar with the one provided above. I have mine on usr/local/bin or something like that. I use Linux OS.
Then copy the aapt provided it with your SDK, usually located in the tools folder, and replace that file on usr/local/bin. Pretty much you have to delete the aapt file that came along with your windows apktool .I hope I did explain everything clearly, if not, please let me know. I spent days trying to make the apktool work properly on Linux mint.
Sent from my Galaxy Nexus using Tapatalk 2
The Following User Says Thank You to cowsquad For This Useful Post: [ Click to Expand ]
 
shaiknbaik
Old
#30  
Junior Member
Thanks Meter 3
Posts: 22
Join Date: May 2011
Location: San DIego
thank you for the guide it helped me sign my cm9 theme but when i try to apply the theme it says theme error the theme was improperly compiled and cannot be applied... can someone please help me with this! the apk installed. I tried the work around where you apply stock then reboot and it didnt work.. PLEASE HELP!

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...