Editing apk setup file - Moto G Q&A, Help & Troubleshooting

i have the apk setup file of an app. The app has notifications that appear on the status bar. I want to edit the setup apk file to edit the icon resources which are png files. How can i edit them? I used winrar to extract the resources, edit and place them back into the archive but the setup didn't run then. Please help.

nilanko said:
i have the apk setup file of an app. The app has notifications that appear on the status bar. I want to edit the setup apk file to edit the icon resources which are png files. How can i edit them? I used winrar to extract the resources, edit and place them back into the archive but the setup didn't run then. Please help.
Click to expand...
Click to collapse
Apk manager is the solution, incase it helps somebody.

Related

Icon changing from apks, downloaded from XDA

Hey,
could anybody tell me, how i can change an icon from an application, downloaded from this cool forum?
Technically it's very easy.
1. open APK with 7zip or winrar, search the folder with the icon, put the new icon in it (correct masses and name) and save.
2. put this apk to the sd card and install.
But now the installation is aborted.
It's not an market app, its an App from here.
Could anybody help please?
1. Make sure the zip/unzip app you use doesn't try to compress the apk
2. You need to resign the app with test keys (you'll need the sdk for this, http://developer.android.com/guide/publishing/app-signing.html )
OK. Thank you very much!

Modding the sense 3.0 (step by step directions needed)

I love all the beautiful modified skins of Thypancy's intial theme. Is there a post where we could learn to mod these themes. too. I have 4 in mind that I would like to make or have modified, but i would rather learn how to do it myself. Can someone point me in the right direction.
Hi,
I am not a PRO at this... but i would just explain you the procedure:
1) extract/Decompile the .apk file you want to MOD or make changes to. Use m10 editor for this.Select the option "decomplie all"
2) Minimize the m10 editor, and open the folder where you m10 editor is installed. There you would find a folder with the name of the .apk file you just decomplied. Go to folder assests>"base theme name">drawble>shared folder.
3) now select the .png files you want to edit. Install Paint.net, and edit with them, it was easy process for me. Remeber to "flip image vertical" after you are done with editing.
4) now go back to m10 editor, and Save the file.
5) You should have AndroidSDK installed.If not, do it. Then go to the folder where you have installed it. open the "autosign" file. It will open command prompt. There select the option to sign the file manually. Give the path for the file. It will sign it then. Exit from that program.
6) you are done, you can install it now.
Well, this is the basic idea for modding, and it would work if you have a little bit knowledge. I have been taught all this by "laletsehgal21", who has a good thread of his MODS... you can ask him for a detailed help.
Happy Modding
mathrania said:
Hi,
I am not a PRO at this... but i would just explain you the procedure:
1) extract/Decompile the .apk file you want to MOD or make changes to. Use m10 editor for this.Select the option "decomplie all"
2) Minimize the m10 editor, and open the folder where you m10 editor is installed. There you would find a folder with the name of the .apk file you just decomplied. Go to folder assests>"base theme name">drawble>shared folder.
3) now select the .png files you want to edit. Install Paint.net, and edit with them, it was easy process for me. Remeber to "flip image vertical" after you are done with editing.
4) now go back to m10 editor, and Save the file.
5) You should have AndroidSDK installed.If not, do it. Then go to the folder where you have installed it. open the "autosign" file. It will open command prompt. There select the option to sign the file manually. Give the path for the file. It will sign it then. Exit from that program.
6) you are done, you can install it now.
Well, this is the basic idea for modding, and it would work if you have a little bit knowledge. I have been taught all this by "laletsehgal21", who has a good thread of his MODS... you can ask him for a detailed help.
Happy Modding
Click to expand...
Click to collapse
Thanks for the Info!!!
mathrania said:
Hi,
I am not a PRO at this... but i would just explain you the procedure:
1) extract/Decompile the .apk file you want to MOD or make changes to. Use m10 editor for this.Select the option "decomplie all"
2) Minimize the m10 editor, and open the folder where you m10 editor is installed. There you would find a folder with the name of the .apk file you just decomplied. Go to folder assests>"base theme name">drawble>shared folder.
3) now select the .png files you want to edit. Install Paint.net, and edit with them, it was easy process for me. Remeber to "flip image vertical" after you are done with editing.
4) now go back to m10 editor, and Save the file.
5) You should have AndroidSDK installed.If not, do it. Then go to the folder where you have installed it. open the "autosign" file. It will open command prompt. There select the option to sign the file manually. Give the path for the file. It will sign it then. Exit from that program.
6) you are done, you can install it now.
Well, this is the basic idea for modding, and it would work if you have a little bit knowledge. I have been taught all this by "laletsehgal21", who has a good thread of his MODS... you can ask him for a detailed help.
Happy Modding
Click to expand...
Click to collapse
cool man.....
Jst one thing attach the base file that one must use to decompile so that he does not have errors while re-compiling
In de-compiled files changes have to b made in three places.
1. Androidmanifest.xml (name of package).
2. Res\values\strings.xml (name of theme).
3. Assets\shared(change this to theme name)
Now compile and then edit
lalitsehgal21 said:
cool man.....
Jst one thing attach the base file that one must use to decompile so that he does not have errors while re-compiling
In de-compiled files changes have to b made in three places.
1. Androidmanifest.xml (name of package).
2. Res\values\strings.xml (name of theme).
3. Assets\shared(change this to theme name)
Now compile and then edit
Click to expand...
Click to collapse
I tried this but instead of pngs, i'm getting dat files in the "\\\drawable\shared" folder? Is anyone else having this problem?
keedog said:
I tried this but instead of pngs, i'm getting dat files in the "\\\drawable\shared" folder? Is anyone else having this problem?
Click to expand...
Click to collapse
no after using m10 editor u'll play with dat files only best part is inverted
lalitsehgal21 said:
no after using m10 editor u'll play with dat files only best part is inverted
Click to expand...
Click to collapse
What???? I'm way confused by that last sentence.
keedog said:
What???? I'm way confused by that last sentence.
Click to expand...
Click to collapse
he means, that the images you would like to EDIT would be inverted(up side down kind of) already...... the way it looks in your android phone...it wd be inverted
keedog said:
I tried this but instead of pngs, i'm getting dat files in the "\\\drawable\shared" folder? Is anyone else having this problem?
Click to expand...
Click to collapse
In the m10 editor, on the second tab "m10files", select "decode images". And then start the process.....
I have attached an .apk file. Install it on your sensation, apply the theme to your mobile. Observe the stuff. Then try to decompile the same file, and edit the images to your choice. It will help you to recognize what files you should change to get your desired result.
mathrania said:
I have attached an .apk file. Install it on your sensation, apply the theme to your mobile. Observe the stuff. Then try to decompile the same file, and edit the images to your choice. It will help you to recognize what files you should change to get your desired result.
Click to expand...
Click to collapse
Thatz a pretty nice one, and i like how u pointed out all the pages with text. thanks again.
mathrania said:
Hi,
I am not a PRO at this... but i would just explain you the procedure:
1) extract/Decompile the .apk file you want to MOD or make changes to. Use m10 editor for this.Select the option "decomplie all"
2) Minimize the m10 editor, and open the folder where you m10 editor is installed. There you would find a folder with the name of the .apk file you just decomplied. Go to folder assests>"base theme name">drawble>shared folder.
3) now select the .png files you want to edit. Install Paint.net, and edit with them, it was easy process for me. Remeber to "flip image vertical" after you are done with editing.
4) now go back to m10 editor, and Save the file.
5) You should have AndroidSDK installed.If not, do it. Then go to the folder where you have installed it. open the "autosign" file. It will open command prompt. There select the option to sign the file manually. Give the path for the file. It will sign it then. Exit from that program.
6) you are done, you can install it now.
Well, this is the basic idea for modding, and it would work if you have a little bit knowledge. I have been taught all this by "laletsehgal21", who has a good thread of his MODS... you can ask him for a detailed help.
Happy Modding
Click to expand...
Click to collapse
I have all the pngs replaced and the its back in a apk, but now I don't see a autosign file in the sdk folder. am I looking in the wrong place?
This is the Android-sdk (along with java jdk) that i downloaded. I can't find a autosign file anywhere.
i found the autosign bat fle. but now im getting errors.
question: how/where do i change these?
In de-compiled files changes have to b made in three places.
1. Androidmanifest.xml (name of package). how do u change this?
2. Res\values\strings.xml (name of theme). how/where do u change this?
3. Assets\shared(change this to theme name) h0w/where do u change this?
---
also when I replaced the background image, and he skin png, they resorted back to the original and didn't keep my background image nor skin pmg.
Sorry to hijack, but how would I change the dock/nav bar?
Sent from my HTC Sensation Z710e

Problem editing apk images

Hey I'm trying to edit the icon for an app, here's what I'm doing:
1. Open the APK with 7Zip
2. Drag file to desktop
3. Edit with Paint
4. Save and drop back into opened archive
5. Overwrite existing file
6. Place back on phone, try to install
7. Get error, application not installed.
I'm not unzipping anything, so it should still be signed? Just in case I also tried signing with signapktic, and it still wouldn't install.
Thanks in advance.
Edit: sorry, please move this to q&a in general.
Is it a .9.PNG you're editing? If so, there's your problem. You can't just edit a .9.PNG and expect it to work, you have to sign it THEN pass it back across to the APK.

[Q] How to create sense 3.0 themes?

Hey Guys I just want to be able to create my own themes for sense ui, can anyone help me out..... I think i need to change the rosie apk and do I need m10 tools?
there's a couple of files to edit. someone in the themes & apps section did a rough outline of what to do, you may want to search through there.
I think you need to edit images from framework.apk
Hi
You will need to edit the images in the framework-res.apk, systemui.apk and com.htc.resources.apk
For some of the apks like Rosie and the lockscreen you will need the m10tools. For the others you do not.
Sent from my Desire HD using XDA App
What program do I use? apk manager? I am not sure how to use it...
darryll4sh0 said:
What program do I use? apk manager? I am not sure how to use it...
Click to expand...
Click to collapse
Yes you can use APK manager. If you are editing only the images then a better idea would be to open the APK with winrar and drop the images in the respective folders. Do not extract the APK. If you want to edit the XML files then you will need to decompile it using APK manager.
APK manager is simple to use. Start the program and place the APK file in the place-apk-here-for-modding folder. In the program select option 22 and choose your APK.
Then select option 9 and decompile the APK. Once it has decompiled, you can go into the projects folder and edit whatever you want. After you have finished editing, select the compile option in the program and then zipalign the APK.
Sent from my Desire HD using XDA App
If i edit the files with winrar, do i need to zipalign it? also do i have to flash it in or just install it?
darryll4sh0 said:
If i edit the files with winrar, do i need to zipalign it? also do i have to flash it in or just install it?
Click to expand...
Click to collapse
Also how can i actually see the xml files (like pictures)
darryll4sh0 said:
If i edit the files with winrar, do i need to zipalign it? also do i have to flash it in or just install it?
Click to expand...
Click to collapse
Yes you will have to zipalign it. You will have to flash it. Installing it will not work.
darryll4sh0 said:
Also how can i actually see the xml files (like pictures)
Click to expand...
Click to collapse
XML files store data and text, they are not pictures. Anyways to see the pictures you can extract the APK using winrar, or you can decompile it using APK manager.
Sent from my Desire HD using XDA App
Thanks about the winrar tip! I think it would be easier for me to replace the pngs through there than something else. right now i'm looking through my iphone for all pngs,but the problem is that the scan has found over 90 thousand pngs! Its going to take a while to sort that out but when i'm finished I bet its going to be good.

[Q] What is the best way to change name and icon of android app?

I have been reading about this for awhile and found a lot of different apps out there but looking for the simplest way I can change the app name and app icon. I tried APK editor but it didn't work during save process. Just stated error happened during save process.
maddog75 said:
I have been reading about this for awhile and found a lot of different apps out there but looking for the simplest way I can change the app name and app icon. I tried APK editor but it didn't work during save process. Just stated error happened during save process.
Click to expand...
Click to collapse
Not sure about how to change name, but to change icons all you need is to replace the icons found in res/drawable folder. Anyways the icon's/image's names should be same though. You can do this by simply opening the apk using 7zip or any other zip based software, navigate to the folder and start replacing the files.
coolsandie said:
Not sure about how to change name, but to change icons all you need is to replace the icons found in res/drawable folder. Anyways the icon's/image's names should be same though. You can do this by simply opening the apk using 7zip or any other zip based software, navigate to the folder and start replacing the files.
Click to expand...
Click to collapse
So I am using the GUI based APK TOOK program to decompile it, then changed with notepad plus. Now I recompile it and they are in folder format how to turn back into apk format that is readable by the droid os or by using APK editor to verify the file.
maddog75 said:
So I am using the GUI based APK TOOK program to decompile it, then changed with notepad plus. Now I recompile it and they are in folder format how to turn back into apk format that is readable by the droid os or by using APK editor to verify the file.
Click to expand...
Click to collapse
To change icons, you don't need to decompile and recompile I'm afraid. Like I said before, just change the respective files by opening the apk using 7zip.
coolsandie said:
To change icons, you don't need to decompile and recompile I'm afraid. Like I said before, just change the respective files by opening the apk using 7zip.
Click to expand...
Click to collapse
Well What I am having trouble doing is changing the name, trying to use apktook gui edition but when put back together as a compressed zip file, then put on my phone. I use astro file manager to change the name to .apk keeps telling me having trouble parsing file not sure what I am doing wrong.
maddog75 said:
Well What I am having trouble doing is changing the name, trying to use apktook gui edition but when put back together as a compressed zip file, then put on my phone. I use astro file manager to change the name to .apk keeps telling me having trouble parsing file not sure what I am doing wrong.
Click to expand...
Click to collapse
Maybe the problem is with the signing issues, which you are getting "Error parsing file" error. Try referring this thread:
http://forum.xda-developers.com/showthread.php?t=2213985
And make sure you've done exactly the same way, as mentioned there.
maddog75 said:
...... .apk keeps telling me having trouble parsing file not sure what I am doing wrong.
Click to expand...
Click to collapse
A changed APK needs tot be signed.
Send from N7
NLBeev said:
A changed APK needs tot be signed.
Send from N7
Click to expand...
Click to collapse
What should I use to sign the apk?, is this correct after using apktool and recompiling then compressing folders to zip file, transfer to phone and use astro file manager to rename to apk. What program then should I use to resign it before installing.
maddog75 said:
What should I use to sign the apk?, is this correct after using apktool and recompiling then compressing folders to zip file, transfer to phone and use astro file manager to rename to apk. What program then should I use to resign it before installing.
Click to expand...
Click to collapse
So I will have to try it again didn't work even after signing still gave parsing error. I don't think the gui verision of apktool I used worked right.
maddog75 said:
So I will have to try it again didn't work even after signing still gave parsing error. I don't think the gui verision of apktool I used worked right.
Click to expand...
Click to collapse
are you compiling the .apk or just zipping it?? after decompiling the apk do your edits then recompile.
maddog75 said:
What should I use to sign the apk?, is this correct after using apktool and recompiling then compressing folders to zip file, transfer to phone and use astro file manager to rename to apk. What program then should I use to resign it before installing.
Click to expand...
Click to collapse
http://www.londatiga.net/general/how-to-sign-apk-zip-files/

Categories

Resources