Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
THREAD CLOSED
Tip us?
 
raziel23x
Old
#1791  
raziel23x's Avatar
Senior Member
Thanks Meter 686
Posts: 887
Join Date: Sep 2010
Location: Novi

 
DONATE TO ME
Quote:
Originally Posted by shourov View Post
I dont know y m i getting a error in cmd while typing "apktool if framework-res.apk"...its showing me that apktool is not recognized command or something. .need help..(noob)
Try this
Java apktool if framework-res.apk

Sent from my SCH-I405 using Tapatalk 2
APK Multi-Tools
Your one stop APK Multi-Tool Editor for both LINUX and WINDOWS OS
|WINDOWS OS] | LINUX OS|
Donations Are Welcome
Motorola Droid RAZR CDMA XT912
Main System: Rooted Stock

If you want to help with increasing my dropbox size Click here to signup for dropbox
 
sponge_worthy
Old
#1792  
sponge_worthy's Avatar
Senior Member
Thanks Meter 46
Posts: 276
Join Date: May 2007
So I thought what I was trying to do would be easy. I've read several posts from this thread and searched for my problem.

I'm just trying to change a couple of graphics (8 in total) for the Blik calendar widget. It decompiled with APKTool without any errors. I switched the graphics I changed which are exactly the same number of pixels as before although my new graphics are bigger in KB because of the colors. It compiled just fine using APKTool without any errors. I then used the signature tool someone posted on here. I think it was a download from PPCGeeks site. I drag and drop the files into the sig tool and sign them.

I still get the Application Not Installed when I try to install the app. I also tried to drag and drop the META-INF files and the AndroidManifest.xml file from the original APK into the new one and it still says Application Not Installed and this time it took less time to give me that error.

A couple of questions:
1) when the signature program works am I not supposed to change the name of the apk? It adds the "signed" extension which I remove.
2) When trying to copy over the META-INF info from the original APK to my new one it asks to assign a password for encryption. I just cancel out of that. Is that ok? Or do I need to add a password. I'm using winzip to copy those files over.

What else could I be doing wrong?

I'm trying this on my ASUS Transformer with ICS if that helps.

Thanks.
 
mattmanwrx
Old
#1793  
mattmanwrx's Avatar
Recognized Themer
Thanks Meter 2478
Posts: 4,538
Join Date: Aug 2010
Location: London

 
DONATE TO ME
Quote:
Originally Posted by sponge_worthy View Post
So I thought what I was trying to do would be easy. I've read several posts from this thread and searched for my problem.

I'm just trying to change a couple of graphics (8 in total) for the Blik calendar widget. It decompiled with APKTool without any errors. I switched the graphics I changed which are exactly the same number of pixels as before although my new graphics are bigger in KB because of the colors. It compiled just fine using APKTool without any errors. I then used the signature tool someone posted on here. I think it was a download from PPCGeeks site. I drag and drop the files into the sig tool and sign them.

I still get the Application Not Installed when I try to install the app. I also tried to drag and drop the META-INF files and the AndroidManifest.xml file from the original APK into the new one and it still says Application Not Installed and this time it took less time to give me that error.

A couple of questions:
1) when the signature program works am I not supposed to change the name of the apk? It adds the "signed" extension which I remove.
2) When trying to copy over the META-INF info from the original APK to my new one it asks to assign a password for encryption. I just cancel out of that. Is that ok? Or do I need to add a password. I'm using winzip to copy those files over.

What else could I be doing wrong?

I'm trying this on my ASUS Transformer with ICS if that helps.

Thanks.
Try installing it with adb, as it will tell u the parse error (usually is a siginature error)..

If it is just images, try the vrtheme (villain rom theme) flasher from the villain rom team.. it might be different for a /data app though...
Plenty of info about it on xda..

Sent from my HTC One X using xda premium
Dont Forget to Hit the Thanks Button
Creator of

Sign Up Today To Bring Your Idea To Android
Check out - www.mattman.org - for all below downloads + more!

HTC One X Blue/Green/Red Status Bar Mods

HTC One X Modified Boot Animation


Sandvold Beta ICS Mods
Motorola RAZR i (Stock atm)
Nexus 7 - Carbon ROM
HTC One X - Carbon ROM
Asus Transformer - My ParanoidAndroid Build
HTC Desire - Retired!
 
mArtinko5MB
Old
#1794  
mArtinko5MB's Avatar
Senior Member
Thanks Meter 34
Posts: 182
Join Date: Apr 2011
Is there any way to get java classes from *.smali files ? I used apktool to decompile some *.apk application, but got smali classes. I'm trying to avoid learning that language and get java classes. I would want to get clear classes from apk, to know how to implement some features

And Sorry for asking maybe stupid question, this topic has more than hundred pages ... Thank's
Galaxy Nexus
 
iBotPeaches
Old
#1795  
iBotPeaches's Avatar
Senior Member
Thanks Meter 1713
Posts: 596
Join Date: Apr 2011
Location: KCK

 
DONATE TO ME
Quote:
Originally Posted by mArtinko5MB View Post
Is there any way to get java classes from *.smali files ? I used apktool to decompile some *.apk application, but got smali classes. I'm trying to avoid learning that language and get java classes. I would want to get clear classes from apk, to know how to implement some features

And Sorry for asking maybe stupid question, this topic has more than hundred pages ... Thank's
I don't know any smali -> java stuff. Pretty busy with work this week, sorry. v1.4.7 is in testing with some people though.
The Following User Says Thank You to iBotPeaches For This Useful Post: [ Click to Expand ]
 
bluezr1
Old
#1796  
bluezr1's Avatar
Senior Member
Thanks Meter 104
Posts: 495
Join Date: Mar 2009
I apologize if this is the wrong place to ask this question. Although basically I want to learn how to compile and decompile apk's. So I was wondering if it would be better to use this at first, or apk manager? Also, is one more powerful than the other. I would imagine that they both pretty much work the same way.

Thank you,

Sent from my Thrive using Tapatalk 2
 
djdarkknight96
Old
#1797  
djdarkknight96's Avatar
Recognized Themer
Thanks Meter 2665
Posts: 6,606
Join Date: Nov 2009
Location: Springfield

 
DONATE TO ME
Quote:
Originally Posted by sponge_worthy View Post
So I thought what I was trying to do would be easy. I've read several posts from this thread and searched for my problem.

I'm just trying to change a couple of graphics (8 in total) for the Blik calendar widget. It decompiled with APKTool without any errors. I switched the graphics I changed which are exactly the same number of pixels as before although my new graphics are bigger in KB because of the colors. It compiled just fine using APKTool without any errors. I then used the signature tool someone posted on here. I think it was a download from PPCGeeks site. I drag and drop the files into the sig tool and sign them.

I still get the Application Not Installed when I try to install the app. I also tried to drag and drop the META-INF files and the AndroidManifest.xml file from the original APK into the new one and it still says Application Not Installed and this time it took less time to give me that error.

A couple of questions:
1) when the signature program works am I not supposed to change the name of the apk? It adds the "signed" extension which I remove.
2) When trying to copy over the META-INF info from the original APK to my new one it asks to assign a password for encryption. I just cancel out of that. Is that ok? Or do I need to add a password. I'm using winzip to copy those files over.

What else could I be doing wrong?

I'm trying this on my ASUS Transformer with ICS if that helps.

Thanks.
Use apk manager to sign the apk...you must remove the META-INF folder inside the apk if one is there before you sign it. Then it will install but you will have to uninstall the original first.





Quote:
Originally Posted by bluezr1 View Post
I apologize if this is the wrong place to ask this question. Although basically I want to learn how to compile and decompile apk's. So I was wondering if it would be better to use this at first, or apk manager? Also, is one more powerful than the other. I would imagine that they both pretty much work the same way.

Thank you,

Sent from my Thrive using Tapatalk 2
Apk manager is the same just has a menu and can sign and install from it's menu. I use both...apk tool to decompile and apk manager to build and sign.

Sent from my DarkICE Skanky CM9 Gnex using the app!
GALAXY NEXUS:
ROM: JellyBro With DarkJelly goodness



More from me:
DarkIce keyboard skins-Android Pro Widget skins - Handcent Skins
The Following User Says Thank You to djdarkknight96 For This Useful Post: [ Click to Expand ]
 
kamikaze_in
Old
#1798  
Member
Thanks Meter 15
Posts: 93
Join Date: Aug 2011
Hey all facing a issue with Apktool

i cant seem to decompile SystemUI.apk kindly advice what to do

following are the screenshots

framework and systemUI installed
Click image for larger version

Name:	screenie1.png
Views:	94
Size:	7.9 KB
ID:	1137541

directory where apktool is installed
Click image for larger version

Name:	screenie2.jpg
Views:	105
Size:	37.6 KB
ID:	1137542

command execution which gets stuck at baksmaling for hours
Click image for larger version

Name:	screenie3.jpg
Views:	98
Size:	44.0 KB
ID:	1137543
 
he_stheone64
Old
#1799  
he_stheone64's Avatar
Recognized Themer
Thanks Meter 9087
Posts: 4,705
Join Date: Aug 2008
Location: Vienna & Düsseldorf
Quote:
Originally Posted by mArtinko5MB View Post
Is there any way to get java classes from *.smali files ? I used apktool to decompile some *.apk application, but got smali classes. I'm trying to avoid learning that language and get java classes. I would want to get clear classes from apk, to know how to implement some features

And Sorry for asking maybe stupid question, this topic has more than hundred pages ... Thank's
As far as I understand apktool, decompiling classes is dependent on smali baksmali properties (part of apktool), so that would be a question for jesusfreke. Having said that I`m sure he would have already done that, if it would be that easy to do.

---------- Post added at 11:32 AM ---------- Previous post was at 11:24 AM ----------

Quote:
Originally Posted by imisa2 View Post
I can't recompile apk . It gives me sign error every time. please help.
Too much and too detailed information...
The Following User Says Thank You to he_stheone64 For This Useful Post: [ Click to Expand ]
 
tommytomatoe
Old
#1800  
tommytomatoe's Avatar
Recognized Developer
Thanks Meter 6715
Posts: 6,234
Join Date: Dec 2010
Location: Knoxville USA

 
DONATE TO ME
To get java looking classes you will need to use dex2jar and jdgui to view them. There is no easy way to go back to dex after you've decoded it. Keep in mind dex2jar is not perfect.

Sent from my EVO using Tapatalk 2

THREAD CLOSED
Tags
apk, apktool, reengineering, resources, xml
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...