Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,739,607 Members 52,354 Now Online
XDA Developers Android and Mobile Development Forum

[TUTORIAL]How to unpack/repack .apk files

Tip us?
 
despotovski01
Old
#21  
despotovski01's Avatar
Recognized Developer - OP
Thanks Meter 1846
Posts: 1,452
Join Date: Jan 2011
Quote:
Originally Posted by Rydah805 View Post
will this allow me access to edit smalli and values?
What's smalli? And yes, it will allow you to edit some .xml files and images (including the app icon).
"If you think you can, therefore, you can." - Unknown
"A journey of a thousand miles begins with a single step." - Confucius
"Question everything." - Einstein

"Don't let anyone tell you what you can't do."

My work:
Android Ultimate Toolbox Pro Updated as of 4.5.2013
Boot Animation Factory Updated as of 1.6.2013
Boot Animation Creator Obsolete
Boot Animation Previewer Obsolete

Devices:
LG G2 D802 16GB: Android 4.2.2 Jellybean (stock)
HTC EVO 3D: CyanogenMod 11
 
Rydah805
Old
#22  
Rydah805's Avatar
Recognized Contributor
Thanks Meter 1135
Posts: 3,781
Join Date: Oct 2008
Location: Ventura County, CA

 
DONATE TO ME
Quote:
Originally Posted by despotovski01 View Post
What's smalli? And yes, it will allow you to edit some .xml files and images (including the app icon).
im asking, because it didnt show values folder, like when you decompile an apk. (specifically in com.htc.resources.apk)



ThisIzRydah.com
Check Me Out On The Google Play Store!!!
Check Me Out On iTunes!!!
Check Me Out On Amazon MP3!!!
Check Me Out On Zune!!!
HTC One (M8) - Amber Gold
HTC One (M7) - Half Stealth Black/Half Glacier Silver
Samsung Galaxy S4

 
strunkie
Old
#23  
Senior Member
Thanks Meter 75
Posts: 133
Join Date: Dec 2010
not usefull, watch the framework-res.apk file.
You dont get all things.

or you need to make a converter for resources.arsc to
 
pinky059
Old
#24  
Senior Member
Thanks Meter 151
Posts: 500
Join Date: Oct 2010
Location: Baltimore
When using an acrhive manager such as WinRAR to extract the files, that's great and all if you are just going to replace/add/modify existing images. But, for .xml's, you have to use something that decodes them or uncompresses them from the binary format they are in.

Trust me, I have been creating Icon zips for a few months now and in order to edit .xml values, I have found it a MUST to have APK Tool or APK manager installed on the machine.

Simply unzipping and then zipping back up doesn't do anything unless you are not editing any resources (.xmls, values, smali, etc.)
 
daisun
Old
(Last edited by daisun; 15th June 2011 at 01:45 AM.)
#25  
Senior Member
Thanks Meter 39
Posts: 202
Join Date: Mar 2010
For those still interested in editing apks on OS X without unpacking and hence without resigning I have found something that works!

muCommander! Just rename the .apk to .zip and browse it using muCommander just like you would using WinRar! Just tested it, I was able to add and remove files without resigning. The modified apk installed on my phone without a problem!

As for editing xml values you can simply copy the xml file out and edit it using your favourite editor and then copy them back in.

Hope I was able to help some OS X users.

/edit By the way, this method (WinRar or muCommander) also works for editing update.zip. This means you can customise the rom (add/remove system apks, change the boot animation etc) before you flash it.
 
despotovski01
Old
#26  
despotovski01's Avatar
Recognized Developer - OP
Thanks Meter 1846
Posts: 1,452
Join Date: Jan 2011
Quote:
Originally Posted by daisun View Post
For those still interested in editing apks on OS X without unpacking and hence without resigning I have found something that works!

muCommander! Just rename the .apk to .zip and browse it using muCommander just like you would using WinRar! Just tested it, I was able to add and remove files without resigning. The modified apk installed on my phone without a problem!

As for editing xml values you can simply copy the xml file out and edit it using your favourite editor and then copy them back in.

Hope I was able to help some OS X users.

/edit By the way, this method (WinRar or muCommander) also works for editing update.zip. This means you can customise the rom (add/remove system apks, change the boot animation etc) before you flash it.
Thanks for the tut! I don't have a Mac to test it, but it sounds good. Would you mind if I add it to my tutorial with your credit, of course?
"If you think you can, therefore, you can." - Unknown
"A journey of a thousand miles begins with a single step." - Confucius
"Question everything." - Einstein

"Don't let anyone tell you what you can't do."

My work:
Android Ultimate Toolbox Pro Updated as of 4.5.2013
Boot Animation Factory Updated as of 1.6.2013
Boot Animation Creator Obsolete
Boot Animation Previewer Obsolete

Devices:
LG G2 D802 16GB: Android 4.2.2 Jellybean (stock)
HTC EVO 3D: CyanogenMod 11
 
LiquidSolstice
Old
#27  
LiquidSolstice's Avatar
Recognized Developer
Thanks Meter 4370
Posts: 4,570
Join Date: Jan 2008
[QUOTE=daisun;14715111]That method works perfectly under Windows and is the method I use personally. However, I would also like to perform the same thing under OSX (on my Macbook).QUOTE]

Ahh. Excuse me, I completely missed the OS X part. Best of luck with that.
 
daisun
Old
#28  
Senior Member
Thanks Meter 39
Posts: 202
Join Date: Mar 2010
Quote:
Originally Posted by despotovski01 View Post
Thanks for the tut! I don't have a Mac to test it, but it sounds good. Would you mind if I add it to my tutorial with your credit, of course?
Of course you may add it to your tutorial. I'm all for spreading knowledge!
The Following User Says Thank You to daisun For This Useful Post: [ Click to Expand ]
 
kgbrown247
Old
#29  
kgbrown247's Avatar
Senior Member
Thanks Meter 12
Posts: 200
Join Date: Dec 2008
Location: Okc, OK
nice tutorial, there are noobs that have the slightest clue about android, let alone windows
Galaxy Note 2 running CleanAce 4.9 plus other custom themes...

ASUS Transformer stock and rooted
Other Stock GTab2, Backup Phone: GNex
 
YoungSinema
Old
#30  
YoungSinema's Avatar
Senior Member
Thanks Meter 101
Posts: 538
Join Date: Jun 2010
Location: Lancaster, CA

 
DONATE TO ME
Wait! Does this just do what 7zip can do, but with more steps? Not to be rude, but...

I second everything Liquid said, and also OP I like how you listen to the criticism without arguing. I wish you the best of luck and hope you can expand this into something more useful.

The Following 2 Users Say Thank You to YoungSinema For This Useful Post: [ Click to Expand ]
Tags
android, apk, archive, repack, unpack
THREAD CLOSED
Subscribe
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes