Hello,
What program do I use to open an apk file?
I want to modify an apk file and then save it.
thanks
I think you just put it on your computer, rename it from .apk to .zip
extract.
There ya go.
IDK but you may have to sign it somehow again, but im not sure if you even need to.
Or just use winrar and open it.
Sent from my SGH-T959 using XDA App
I grabbed APK Manager from the development section. More for theming, but powerful.
How to decompile an apk file
use 7-zip if all you want to do is replace images and already edited xml's
Related
Hi..
I wanted to change the contact images in the framework-res. I've done so far, but when I folded the new framework-res with the mod-tool push, then that too, but he shows me the new image does not accumulate in handy.
I can do or what?
My steps:
1. I replace the corresponding image (PNG format) with 7zip
2. im sending the new framework-res or contact.apk via adb mask controller on my x10i
3. reboot
4. im showing in contacts and the image ist the same as before
looking like a rat i handle it?
"Title: Edit Contact Picture"
you should edit "contacts.apk" located in "/system/app" not "framework-res.apk"
DynamicRam said:
you should edit "contacts.apk" located in "/system/app" not "framework-res.apk"
Click to expand...
Click to collapse
the contact image I have is in the framework-res. in the contact.apk another is available.
I am using CM 4.5.7 by Wolf Break
Have you resigned the apk?
Sent from my X10i using XDA App
no, like I do that?
Google it. But you will need the Android SDK or at least latest JDK and there is a script somewhere here on XDA called autosign or something like that. You will need to install those than remove the meta-inf from the modified apk put the apk file in the folder for autosign (make sure theres only one apk in the folder) then run autosign and it will create a new apk called your_signed_apk then rename it and push back to your phone.
Search "resigning apk files" and read. Theres an old thread somewhere for changing app icons i think that has everything you need to know.
Sent from my X10i using XDA App
Here is the thread
http://forum.xda-developers.com/showthread.php?t=503007
Read this thread and use the OPs modified tool found here:
http://www.mediafire.com/?yw24z5m4yya
Sent from my X10i using XDA App
Thx for this.
Sent from my X10i using XDA Premium App
CMoney87 said:
But you will need the Android SDK or at least latest JDK and there is a script somewhere here on XDA called autosign or something like that. You will need to install those than remove the meta-inf from the modified apk put the apk file in the folder for autosign (make sure theres only one apk in the folder) then run autosign and it will create a new apk called your_signed_apk then rename it and push back to your phone.
Click to expand...
Click to collapse
System apps don't need to be signed. If you look in framework-res.apk, there's no META-INF directory.
Are you sure you replaced the framework-res.apk file correctly? I posted some info about framework-res.apk here: http://forum.xda-developers.com/showthread.php?p=11193663#post11193663
As always, back up with xRecovery before messing around with framework-res.apk. One mistake and you won't be able to boot.
I think most stock apps actually might not need to be signed, now that i think about it though. You might just need to make sure you remove the unmodified app first (copy it somewhere first for a backup) and then manually put the apk in, set permissions correctly and then reboot. This apk signing trick allows you to modify any app to change shortcut icons or customize anything you want and reinstall it correctly so it should come in handy anyways.
Sent from my X10i using XDA App
anyone can tell me how to edit apk files and change the name of applications.
and how to use apkedit application.
To start with APK files are just zip files. Rename the extension from .APK to .zip and u would b able extract it. I will post more as soon as get on a PC.
Sent from my LG-P500 using XDA Premium App
hey still i want more information about how to edit apk files and change the name of the application
Never done it, but this might me helpful: http://code.google.com/p/android-apktool/
Doesn't get much easier than Apk Edit
thanks for the help everyone but still anyone can give more information then please post
Download
http://code.google.com/p/android-ap...ame=apktool-install-windows-2.2_r01-3.tar.bz2
Extract it using your favoirate zip application.
Requirements:
* JRE 1.6 (Java Runtime Environment)
Get the apk file which u wanna hack in the folder where you have extracted the apktool. (Like c:\apktool)
Rename the .apk to .zip and extract it. (talk.apk is now talk.zip and after extraction we have folder talk)
You will find AndroidManifest.xml in that folder.
Open it with Notepad++ (I prefer Notepad++)
You will find android:label and the name of app and icon details and many more thing change all you want but dont mess up the structure.
open command prompt then cd to the folder where you have extracted apktool. then type .
apktool.bat b "folder name" "APK name" . (Eg. apktool.bat b talk notalk.apk)
Tip: If you are not getting me i think you shouldnt do it......
EDIT: Figured it out.
Care to share?
Yeah, will be nice if you could share this information with others
aitorTheRed said:
Yeah, will be nice if you could share this information with others
Click to expand...
Click to collapse
Man, I hate it when people do that...
1. Search for APK Manager in XDA and install it on your PC
2. Download and Install the Android SDK kit on your PC
3. Follow the instructions for APK Manager and place the APK file in the modding folder
4. Open APK Manager and select Decompile APK (Your APK file will be placed in a separate folder for you to work on)
5. Change what you want to change in the APK
6. Recompile the APK and sign it (unless it's a system file like framework, those are not signed)
A lot more is involved in modding an APK file and you really should know something about how the files inside the APK work before you go changing things, but in a nutshell, that's the basics.
Hope that helps!
What I have learned.
I had a specific question, but here is what I can tell you.
1. Setup APK Manager, it saves a lot of command line typing.
2. Pretty much always use option 9 and 11, never 1 or 3.
3. If you are simply changing graphics and not smali or XML files, don't use this, open it in 7zip and drag the files. Decompiling changes the image darkness sometimes.
4. Unless you are working on your own apk file, always say yes to 'is it a system apk', when it asks you to keep existing files, say yes. Delete from the 'keep' folder what you edited.
5. If you edit XLM files, delete resources.arsc from the file, this is where they all get compiled to.
6. You can use this for jar files, just rename to apk then back to jar when finished.
7. If you get an error try using option 20 to increase the memory to 1024.
8. If you edit jar files, delete classes.dex in the 'keep' folder when compiling.
9. Treat all files as signed system files (as noted above) and you will be much safer. If the file has a signature on it, this will save it.
Thanks for the info
Is there anything that can install system files. They won't install with ap manager so does it have to be pushed?
Sent from my Desire HD using XDA Premium App
i want to change the colors on a couple widgets.
if i took the .apk file from the /data/app/ and copied it to my computer, renamed it from .apk to .zip, opened it and edited/changed the .png files, saved it, rezipped it and named it back to .apk and put it back in /data/app/ folder and overwrote it would that work?
GandhisEvilTwin said:
i want to change the colors on a couple widgets.
if i took the .apk file from the /data/app/ and copied it to my computer, renamed it from .apk to .zip, opened it and edited/changed the .png files, saved it, rezipped it and named it back to .apk and put it back in /data/app/ folder and overwrote it would that work?
Click to expand...
Click to collapse
I tried to do just that with SystemUI.apk and had issues. I haven't tried with any other apps. I got around it by using 7zip. Within 7zip you can look in the apk and just drag and drop you're new pngs into the apk without actually extracting and re-zipping anything.
If your not familiar with 7zip. It's a free compression app just google it.
i've heard of 7zip, not sure if i've actually ever used it before though.
do you know is /data/app/ the right place to pull the .apk file from?
Yep, I think that's right the right place for apps that you've installed. System apps are in /system/app.
Sent from my DROID X2 using XDA App
that will definitely not work. Go get 7zip... never never unzip an app. use 7zip to open the app and find your image folders. drag only those to the desktop.. or a new folder.. then edit and stick those images back into the app using 7zip.
hello,
i wanna edit some pics in an app from the market.. how can i get it working on my phone.. i signed it and then it won't open on my phone when try to open it..?? here are the files
yakie996 said:
hello,
i wanna edit some pics in an app from the market.. how can i get it working on my phone.. i signed it and then it won't open on my phone when try to open it..?? here are the files
Click to expand...
Click to collapse
Just open the original .apk in 7-Zip, find the files, delete them and then put your new ones in. The have to be exactly the same name. You don't need to decode the apk or resign it.
Some apks won't work like this but very few in the end so you should be okay.
djmcnz said:
Just open the original .apk in 7-Zip, find the files, delete them and then put your new ones in. The have to be exactly the same name. You don't need to decode the apk or resign it.
Some apks won't work like this but very few in the end so you should be okay.
Click to expand...
Click to collapse
when i did this the app don't install on my device..
The 7-zip method not always will work. I use that to edit cyanogenmod themes to best fit my phone, but sometimes I can't install the apk, neither through adb nor file manager
Sent from my Nexus S using xda app-developers app
Try smali the whole apk , replace the pictures then compile it again, using Apk tool.
I'll do this on the go a the time as a matter of fact I did the tsfshell PCB blue theme with the traverse grapheme icons earlier...I do it by using root explorer extract the app and replace whatever you want as long as the file names are the same when done zip everything back up and rename from zip to app then move to system apps or data apps set proper permissions and reboot .....I do it from my cell hope this helps
Sent from my SPH-D700 using Xparent Blue Tapatalk 2
Use APK manager
Decompile the APk
replace or edit the pngs
recompile the APK
Sign it
you are done!!