Related
As the title says can someone show me how to do this strictly on a mac!
I have failed miserably at it!
All the tools are for windows..
I have the sdk for mac all set up and I can push an pull files!
but everything I edit on the mac and push to the phone crashes the phone with force closes and stuff...
-kitt050383
I came across this in a google search for the same thing. Can someone post a how-to step by step for modding .apk files with adb commands to push to the phone? Thanks in Advance.
Me as well please, been searching for a good 30 minutes now and cant find any tools to do this on a MAC, especially to edit the .9.png's
I just pull the apk and open it with BetterZip. APKs are pretty much like zip files. Then after I'm done, I sign it and push it back to the phone.
ajones7279 said:
I just pull the apk and open it with BetterZip. APKs are pretty much like zip files. Then after I'm done, I sign it and push it back to the phone.
Click to expand...
Click to collapse
So, i change the extension to .zip double click and it unzips it. Open the folder, edit the files... and then i just switch the extension back to .apk?
I dont get what you are saying.
If you're using the default archiver, you may have to change it to .zip. Since I use betterzip, I just associated the .apk extension with BetterZip so it automatically opens it like an archive. Now, extract the contents of the apk, make whatever changes you please, put the contents back into the archive, sign the apk, then push it back to the phone. I'm typing this from my Hero so I'll try to make a more detailed post when I get off.
ajones7279 said:
If you're using the default archiver, you may have to change it to .zip. Since I use betterzip, I just associated the .apk extension with BetterZip so it automatically opens it like an archive. Now, extract the contents of the apk, make whatever changes you please, put the contents back into the archive, sign the apk, then push it back to the phone. I'm typing this from my Hero so I'll try to make a more detailed post when I get off.
Click to expand...
Click to collapse
Thanks for the tip! I'll give it a shot tomorrow.
Didn't know Betterzip was out there. I'll give it a try later tonight as well.
almost there...
ok i can transform an apk to a zip and unzip for editing, but how do i change it back? i just did a bunch of editing work, and now i am stuck. please help me....
So pretty much we all want to know the same thing...
Once we get the apk open... and we change files around how do we get it back to an apk file.
anyone gonna help?
ipeench said:
So pretty much we all want to know the same thing...
Once we get the apk open... and we change files around how do we get it back to an apk file.
anyone gonna help?
Click to expand...
Click to collapse
someone did.
http://forum.xda-developers.com/showpost.php?p=5849463&postcount=6
Better Zip works great for this. Now, if there was a way to do zero compression like the APK Manager. Without that, the sounds for lock/unlock won't work.
Me too have the same problem. I think installing windows on your mac will work fine with all .exe tools. if you don't wanna do anything o your osx then you can run a virtualbox and run windows without affecting os x.
NO WAY
ajones7279 said:
I just pull the apk and open it with BetterZip. APKs are pretty much like zip files. Then after I'm done, I sign it and push it back to the phone.
Click to expand...
Click to collapse
Hi, I have tried to extract the APK with BetterZip.
I can extract files. But, XML file are like unable to open.
The image files are quite OK.
My purpose is to check out Manifest File and other XML Files.
So, if you can actually do those things after extracting with BetterZip, do let me know.
Thanks in advance.
The most useful way is install Windows via Bootcamp or Virtual Machine...
While I don't have a Mac, I should be able to help. First, rename the extension from .apk to .zip so it can be viewed and extracted from whatever archive manager you use. Doing this won't decompile the apk but it will at least let you modify the images. If you want to modify the xml's in the apk file. You can use Apktool which will decompile and recompile apk's, and sign the apk if it's a non-system app. You will also need to have JDK installed to do this.
JDK: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Apktool: https://code.google.com/p/android-apktool/downloads/list
I'd hate to be that guy who starts a whole thread for something...but I've looked everywhere and can't find the answer.
I'm working on my first theme, and I unzipped the framework recourse apk files, made the changes to the files inside, and now I want to turn them back into apk format so I can make everything into a flashable update.
I can't figure out how to turn these framework recourse folders into framework recourse apk files! Can anyone help me!? Thanks! If all goes well, I'll have a new theme out for you guys by tonight.
Thanks in advance!
alexthearmo said:
I'd hate to be that guy who starts a whole thread for something...but I've looked everywhere and can't find the answer.
I'm working on my first theme, and I unzipped the framework recourse apk files, made the changes to the files inside, and now I want to turn them back into apk format so I can make everything into a flashable update.
I can't figure out how to turn these framework recourse folders into framework recourse apk files! Can anyone help me!? Thanks! If all goes well, I'll have a new theme out for you guys by tonight.
Thanks in advance!
Click to expand...
Click to collapse
http://www.4shared.com/file/1LIk07D5/Avabox.html
download for windows. it has auto sign. as for changing back to apk just change extension back to .apk
so...do i use that program to zip up the file, then just change the extension?
........................
alexthearmo said:
so...do i use that program to zip up the file, then just change the extension?
Click to expand...
Click to collapse
Yes. Zip up file, change .zip to .apk.
What? You dont need to resign .apk's. In fact, you're making too much work for yourself. Im sure you extracted the .apk to a folder. All you need to do is reopen that .apk with 7zip. Drag and drop your changes into the .apk and you're done. No need to resign or anything.
VinceOB said:
What? You dont need to resign .apk's. In fact, you're making too much work for yourself. Im sure you extracted the .apk to a folder. All you need to do is reopen that .apk with 7zip. Drag and drop your changes into the .apk and you're done. No need to resign or anything.
Click to expand...
Click to collapse
Thanks for your help guys. I ran into some trouble with all this, and even realized that I mistakenly used some of the wrong files (from a theme that I actually didn't want to use)...so I'm gonna have to spend more time working on this. Hopefully I can get it finished and uploaded tomorrow. But thank you for your help. Right now I got homework to do. bleh.
Thanks for the post. I've been looking all over for this answer.
sweet...........
Can you zip back up a file into a .apk? or do i have to edit with in the .apk through 7zip?
I dont understand...There are no .zip's in any .apks
Sorry bad wording.. How do I turn the .apk file I unzipped to make it show me the files.. back into a .apk file. so I can put it back into my theme. lol Its soooo hard to word
try taking a look here?
http://forum.xda-developers.com/showthread.php?t=657759&highlight=avabox
just rename the file to xxxxxxxx.apk
troyboytn said:
just rename the file to xxxxxxxx.apk
Click to expand...
Click to collapse
Do you sign it first? or rename and sign the apk?
Did the apk disappear? If not, right click it, navigate in the pop-up menu to 7zip->open, drag the stuff you edited into its appropriate spot, close the 7zip window, and you're done! I like to resign at this point, some people say that it is not necessary. For me, it is a simple right-click to do, so I just always do it. YMMV.
You dont need too. When you modify files in the .apk all you need to do is drag the /res folder to your working folder. When you're done, drag it back. Thats it.
So, is it only necessary to sign update.zips? What is the criteria for when something must be resigned?
VinceOB said:
You dont need too. When you modify files in the .apk all you need to do is drag the /res folder to your working folder. When you're done, drag it back. Thats it.
Click to expand...
Click to collapse
Yeah but like, I unzip the apk is what im saying lol. Because if you dont unzip it you cant see the images.. then I dont know what im editing. So once im done I want to be able to turn the files back into a apk
MyDroidHax said:
Yeah but like, I unzip the apk is what im saying lol. Because if you dont unzip it you cant see the images.. then I dont know what im editing. So once im done I want to be able to turn the files back into a apk
Click to expand...
Click to collapse
All you have to do is unzip them, edit the files you want; in another window open the original apk file (one you extracted to work on) use 7zip - open archive, then drag the files you changed into the archive in the appropriate folders in the archive, close and you are done. I just push them back to the phone via adb, not sure if you would have to resign the zip, if you pulled the apk file out of a flashable zip file.
Heaterz16 said:
All you have to do is unzip them, edit the files you want; in another window open the original apk file (one you extracted to work on) use 7zip - open archive, then drag the files you changed into the archive in the appropriate folders in the archive, close and you are done. I just push them back to the phone via adb, not sure if you would have to resign the zip, if you pulled the apk file out of a flashable zip file.
Click to expand...
Click to collapse
Yeah that's how I'm doing it.. but I find it a pain lol
MyDroidHax said:
Yeah but like, I unzip the apk is what im saying lol. Because if you dont unzip it you cant see the images.. then I dont know what im editing. So once im done I want to be able to turn the files back into a apk
Click to expand...
Click to collapse
like i said, just drag and drop the /res folder. No need to unzip it.
VinceOB said:
like i said, just drag and drop the /res folder. No need to unzip it.
Click to expand...
Click to collapse
OHHHH Okay I get it now.. Sorry I didnt go back to it when you said that I thought you didn't understand me, but now I see its quite opposite.. Thanks a lot man.
can anyone sign this for me? i think i zipped everything correctly, but i use a mac so i am not sure, it has the notification bar i want (white with see through background) and a white launcher bar
http://www.zshare.net/download/75495216631b6c2e/
DrededStar87 said:
can anyone sign this for me? i think i zipped everything correctly, but i use a mac so i am not sure, it has the notification bar i want (white with see through background) and a white launcher bar
http://www.zshare.net/download/75495216631b6c2e/
Click to expand...
Click to collapse
Try this: http://www.darktremor.com/upload/changes-signed.zip
scratch that, i packaged it wrong, there is the main folder "Changes-signed" and inside of that there is a "changes" folder, then they system folder inside of that and the "framework-res.apk" folder is still a zip and not apk, it just has an alias apk file name fml
DrededStar87 said:
can anyone sign this for me? i think i zipped everything correctly, but i use a mac so i am not sure, it has the notification bar i want (white with see through background) and a white launcher bar
http://www.zshare.net/download/75495216631b6c2e/
Click to expand...
Click to collapse
I use mac too. The way you zip it is go into the folder where it is, select the contents, right-click and hit compress. It should save into archive.zip. Now, to sign it, use this amazing tool. http://forum.xda-developers.com/showthread.php?t=573498 Put the testsign.jar in Macintosh HD and put the app in the dock. Just drag the zip you want to sign onto the icon, and wait for the dot to go away under the sign app. Then, go to the folder where the original zip was, and there should be a Myzip-signed.zip. That should be a flashable zip as long as there's an update-script.
HeroMeng said:
I use mac too. The way you zip it is go into the folder where it is, select the contents, right-click and hit compress. It should save into archive.zip. Now, to sign it, use this amazing tool. http://forum.xda-developers.com/showthread.php?t=573498 Put the testsign.jar in Macintosh HD and put the app in the dock. Just drag the zip you want to sign onto the icon, and wait for the dot to go away under the sign app. Then, go to the folder where the original zip was, and there should be a Myzip-signed.zip. That should be a flashable zip as long as there's an update-script.
Click to expand...
Click to collapse
so it does not have to be an apk file? im gonna try to sign it myself
DrededStar87 said:
so it does not have to be an apk file? im gonna try to sign it myself
Click to expand...
Click to collapse
Uhh... that program is for your mac, not your phone.
HeroMeng said:
Uhh... that program is for your mac, not your phone.
Click to expand...
Click to collapse
i meant the "framework-res.apk" file because i made it an alias of the original file, but it is still a zip, i have no clue how to make it back into an apk file after unzipping it
and i used the search button but the things i found were not much help....just to let people getting ready to yell at me for not using it
DrededStar87 said:
i meant the "framework-res.apk" file because i made it an alias of the original file, but it is still a zip, i have no clue how to make it back into an apk file after unzipping it
and i used the search button but the things i found were not much help....just to let people getting ready to yell at me for not using it
Click to expand...
Click to collapse
Ok, you know what... just make a metamorph file. Metamorph is much easier.
Wait, what? You were trying to reinstall framework-res.apk? Nonononono. No. You need to write an update-script. It will put the apk in /data/app (or /sdext/app) if you install it as an apk.
HeroMeng said:
Ok, you know what... just make a metamorph file. Metamorph is much easier.
Click to expand...
Click to collapse
ummmmmm...i guess saying that i am extremely new to this is an understatement
the easiest way to do what you are talking about is to use something like 7zip or winzip to open , NOT UNZIP, the apk. Next, open up the zip you made. Now, drag the folder called res from YOUR zip into the open window of the apk. This should replace the old folder with your new one that contains all your edits. Now just close the opened apk, and you are done. Simple.
tejasrichard said:
the easiest way to do what you are talking about is to use something like 7zip or winzip to open , NOT UNZIP, the apk. Next, open up the zip you made. Now, drag the folder called res from YOUR zip into the open window of the apk. This should replace the old folder with your new one that contains all your edits. Now just close the opened apk, and you are done. Simple.
Click to expand...
Click to collapse
He has mac, like me. No 7zip.
HeroMeng said:
He has mac, like me. No 7zip.
Click to expand...
Click to collapse
But you have some sort of zip program, right?
tejasrichard said:
But you have some sort of zip program, right?
Click to expand...
Click to collapse
We have Archive Utility, straight from apple, comes with the mac.
It doesn't allow you to open without unzipping? (obviously I know nothing about macs)
tejasrichard said:
It doesn't allow you to open without unzipping? (obviously I know nothing about macs)
Click to expand...
Click to collapse
Nope. We can run Windows apps in WINE if we want....
so...what are my options people? cuz im still confused...
Re: i think i did this right...
bump.....anyone know anything?
Sent from my HERO200 using the XDA mobile application powered by Tapatalk
So here's the issue: Drededstar has unzipped the framework apks, and changed the files...now he wants to know how to turn the .zip folder into actual apk files.
Macs don't have 7zip or ANY program that lets you look into apk contents without unzipping them all the way. So, you have to unzip them. Then once you're done making the changes, you need to change them back to apk files. DOES ANYONE KNOW HOW TO CHANGE THEM BACK TO APK FILES?!!!
I have a mac too, but I do all my theming on my wife's computer...and she's probably tired of me kicking her off. If anyone knows how to do this one simple step could you please let us mac users know?!! Thanks!
as long as the file structure is right, you just have to rename the zip file to apk.
Most of the guides ive read on XDA say you have to decompile and recompile APKS just to make a couple of modifications to the images. Well I dont believe this to be true. I have tested my method on ubuntu 14.10 and with my nexus 5.
This guide is specifically for modifying images inside of the apks, not the code, or xml itself.
- ADB pull the APK file you want to modify (i chose SystemUI.apk)
- Double click it in File Manager on ubuntu, this should open it up in the archive manager. If not, manually open it up in archive manager
- Click on the "Add Files" button and select which files you want to replace. It will automatically overwrite the current ones.
- Make sure that you are keeping the proper directory structure and are putting the images in the proper place with proper names.
- Copy the new APK file back to your device on /sdcard/file.apk
Then, to get the APK file back on your system without causing problems, I rebooted into TWRP, mounted system and went into the file manager and copy/pasted the APK in the appropriate folder. When you get back into android, chmod 644 new-file.apk. I would not suggest trying to copy the modified APK file into your system while android is running live. Thats why I did it in TWRP. It could cause system unstability, crashing, etc... Im sure that I am not the first person to realize this could be done, but I did discover this on my own because I like to try things. PLEASE, make a backup in case something doesnt work correctly after your mod. Good luck!
bynarie said:
Most of the guides ive read on XDA say you have to decompile and recompile APKS just to make a couple of modifications to the images.
Click to expand...
Click to collapse
Mine doesn't.
XperienceD said:
Mine doesn't.
Click to expand...
Click to collapse
Um, not to be rude but the guide on your signature shows using apktool to decompile and recompile. Soo....? Unless its another guide. And Im not saying ALL guides are, but some, and thats ok. Could you link me to your guide please? I would love to take a look at it. Thanks
EDIT - woops im sorry i didnt really read it... i do see where it says drag and drop the images... good deal. sorry
bynarie said:
Um, not to be rude but the guide on your signature shows using apktool to decompile and recompile. Soo....?
Click to expand...
Click to collapse
Edit: No need for my original reply as you found it.
XperienceD said:
Edit: No need for my original reply as you found it.
Click to expand...
Click to collapse
Yes, and your guide is very good. Thank you for that.