Well I got an app from the market and some of the info in the app are completely wrong. I messaged the dev but no response. So how can I edit the text myself?
Rename the .apk file extension to .zip and then view the files within using a hex editor. Make your changes and then use the market app to resign your apk.
There are a number of zip apps on the market that will let you extract as a normal zip, also...
Sent from my Nexus One using XDA App
using this app here which is great but cant seem to locate the files needed to edit
http://forum.xda-developers.com/showthread.php?t=890199
ermacwins said:
using this app here which is great but cant seem to locate the files needed to edit
http://forum.xda-developers.com/showthread.php?t=890199
Click to expand...
Click to collapse
Just figured out some strange behaviour while saving in APK Edit.
Looks like aatp (wich I use in the background) can't handle external resources that well.
No real solution yet, just a pointer...
Try APK Manager instead?
i've never considered this, but can we really just rename an apk to zip and view its contents?
i just tried this with the gmail app (bad example to use?) and i can see the manifest file and res folder, but i cannot see any of the activity java classes or anything. i'll look into the apk manager thread.
what are some of the market apps called for this?
i didnt think it would be so easy to edit any apk once compiled. otherwise wouldnt it be so easy to make gmail apk black background, etc?
I use Androzip from the market...
Sent from my Nexus One using XDA App
RogerPodacter said:
i've never considered this, but can we really just rename an apk to zip and view its contents?
Click to expand...
Click to collapse
Yes, although you don't get absolutely everything, as some xml is compiled into resources.arsc
Related
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.
So I figured out I can use root explorer to extract framework-res.apk to edit the eri.xml file to change my carrier name....what I don't know is how to put it all back together to replace the current apk ...
Any tips?
Sent from my HERO200 using XDA App
7 zip on the pc is the best way. Right click on the apk, and just open archive, and drag and drop files as necessary. No need to rezip
Sent from my HERO200 using XDA App
Thanks!
Sent from my HERO200 using XDA App
Vandelay007 said:
So I figured out I can use root explorer to extract framework-res.apk to edit the eri.xml file to change my carrier name....what I don't know is how to put it all back together to replace the current apk ...
Any tips?
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
you can unzip and rezip but its not needed, you can also decompile and recompile with apktools but that is might not be needed. If your just replacing a file all you need to do is open it in 7zip or winrar and drag it in to the appropriate folder it will replace the old file. You will need to resign it though.
My question is how are you editing the xml file are you decompiling it and then editing it? if so you need to recompile the apk before you copy it back in other wise you'll most likely get boot loops since android compiles their xmls to binary format.
Root explorer is the easiest way to edit xml's. You can read and edit binary xml's without any hex editors and crap. Much easier.
Sent from my HERO200 using XDA App
Yeah - that's what I thought too - however - there is no option on the eri.xml file to edit it when you long press on it - you can extract it - but it just moves it to sdcard/extracted - which is what brought me to wonder how i could zip it back up -
danaff37 said:
Root explorer is the easiest way to edit xml's. You can read and edit binary xml's without any hex editors and crap. Much easier.
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
Well technically you dont need to hex edit any of android xml's they just need to decompiled. They compile them to binary for speed and optomization purposes not like a java or c compilation where compile makes byte code.
Vandelay007 said:
Yeah - that's what I thought too - however - there is no option on the eri.xml file to edit it when you long press on it - you can extract it - but it just moves it to sdcard/extracted - which is what brought me to wonder how i could zip it back up -
Click to expand...
Click to collapse
So back to apk tool... use it to decompile the apk and edit your xml then recompile it. I don't use root explorer so there might be a way to use it to accomplish the same thing.
Can someone explain how to open a .apk folder to view the files within? Also how to convert it back again with changes made to it? I would like to open the attached folder and change the dialer tones. I tried doing this changing the files in the ui but it didn't change the tones. My belief is they are wrapped in the .so
pretty sure its not in an .so because i dont see a .so tied to that apk. it would either be tied into the smali or you could make changes to the xml to point to different sounds.
Pirateghost said:
pretty sure its not in an .so because i dont see a .so tied to that apk. it would either be tied into the smali or you could make changes to the xml to point to different sounds.
Click to expand...
Click to collapse
My apologies. I'm working with two issues one is an .so and then there is this one, which is indeed an .apk.
So can you explain how I open this?
Get 7zip for windows, install it, open apk with 7zip file manager
tomween1 said:
My apologies. I'm working with two issues one is an .so and then there is this one, which is indeed an .apk.
So can you explain how I open this?
Click to expand...
Click to collapse
studacris said:
Get 7zip for windows, install it, open apk with 7zip file manager
Click to expand...
Click to collapse
but in order to edit any of the xml you will need apk manager.
I really did not like the gray background on the music widget so I made a transparent version that looks real good on the Xoom.
To apply the apk you will need adb and root running.
adb remount
adb push Music2.apk /system/app/Music2.apk
What exactly did you edit to get it to do that? I'd like to play around with it a little bit.
arrtoodeetoo said:
What exactly did you edit to get it to do that? I'd like to play around with it a little bit.
Click to expand...
Click to collapse
Used Photoshop to edit the images. If you extract the files from the .apk using winrar or something similar you can find the background files in res/drawable-mdpi. There are 4 files in there that all start with bg_panel and are 9.png's.
Once I had the files edited the way I wanted, I just dragged and dropped them into the .apk using winrar.
Hope that helps.
great job on this
why do you use advanced task killer?
Works great, thanks.
Note to anyone trying to be lazy like me: You must use the ADB method he instructed how to use, simply trying to install the .apk doesn't work.
PaulG1488 said:
why do you use advanced task killer?
Click to expand...
Click to collapse
I use ATK more out of habit than anything else. I like to know what is running and kill what is not needed to reduce battery usage. Have used this since the G1 days
B Dizzle said:
Used Photoshop to edit the images. If you extract the files from the .apk using winrar or something similar you can find the background files in res/drawable-mdpi. There are 4 files in there that all start with bg_panel and are 9.png's.
Once I had the files edited the way I wanted, I just dragged and dropped them into the .apk using winrar.
Hope that helps.
Click to expand...
Click to collapse
Thank you! I knew how to edit them, I just couldn't track down the files.
There is also a preview file that shows up when you are adding widgets to the screen. I don't recall which folder it is in but the name of the png is obvious.
Was searching for a market alternative that looked like this but none I found worked so this made my day! Thanks!
pure music should be working sometime soon, i emailed the dev about it and he acknowledged that there was a problem.
@B Dizzle: Thanks for this. I have not rooted yet but will soon to get this music widget mod. I am trying to make all my widgets have transparency (except CNN) and Pandora is the only one I have left to make my home screen complete. Do you know if it is possible to do something similar with Pandora widget?
See screen here (lower center).
Please HELP
Ive tried to install this mod, but music app is now lost.
Anyone can help me on this one?
Thanks in advance!
drziddo said:
Ive tried to install this mod, but music app is now lost.
Anyone can help me on this one?
Thanks in advance!
Click to expand...
Click to collapse
For simplicity put the music2.apk file in the same directory as adb. Then attempt to push the file again.
A reboot may also fix this.
If all else fails, download the official dump from the dev section and push the original music2.apk back to your device.
Sent from my Xoom using Tapatalk
I havnt got a XOOM yet so I can only use the emulator but maybe I could make one with the blue "holographic" outline if anyone is interested. Just let me know.
B Dizzle said:
For simplicity put the music2.apk file in the same directory as adb. Then attempt to push the file again.
A reboot may also fix this.
If all else fails, download the official dump from the dev section and push the original music2.apk back to your device.
Sent from my Xoom using Tapatalk
Click to expand...
Click to collapse
Downloaded the dump, pushed the apk, not working.
Any ideas?
If I had to guess there is a permission issue if the music2.apk is actually in the /system/app folder. Check permissions on the apk. Check the owner of the file. Try replacing the file with another using Root Explorer.
I try to change some icons and pictures of theme I use.
inside the apk theme there's a few apks. What I did was open the apk as zip, and extract some apks I wanted to change their icons and pictures. I succeeded to change what I wanted with APK Editor. Next I tried to replace the "old" apks with the "new" I changed. so I opened APK Editor- "select an apk file"- choose the apk theme-"simple edit"- "assets"- the pencil of the apk I wanted to replace, and when I choose the "new" apk I changed, nothing happen. the apk didn't replace. I tried to do so with "select apk from app" but it won't find the theme.
I tried to copy past the "new" apk but I get an error when I try to install it.
Am I missing something? how can I change icons and picturrs in a theme?
No one knows?
Edit: nevermind I figure out how to do it
Sent from my SM-N950F using XDA Labs
soilentgreen said:
Edit: nevermind I figure out how to do it
Click to expand...
Click to collapse
Well, I guess we can all wonder what you did!
https://xkcd.com/979/