Recompile apks - Samsung Epic 4G Touch

Everywhere i look redirects to apkmanager.. Which is not working for me.. Can someone tell me the manual way to recompile an apk.. Or an alternative to apk manager...
Sent from my SPH-D710 using XDA Premium App

What apps are you trying to mod?
What OS?

agat63 said:
What apps are you trying to mod?
What OS?
Click to expand...
Click to collapse
I got it figured out, was trying to mod Blend ICS apps.. need de-odexed ones..

Ok new question.. This is obviously my first time figuring out how to put these back together... heres my issue: Im using the multi-tool the app im adjusting is mms.apk.. after I extract and edit the images in the res folder I choose option 3 to zip it up and then 5 to zip align and then it creates the new unsigned apk, which I then rename to Mms.apk ... when I dump it onto my phone it doesnt have the icon in astro, it looks like the white icon with the gear on it.. when i try to install it gives a parsing error... I assume its because its a system file and I need to adb it onto the phone.. but why isnt it showing up with the original mms icon? and then secondly.. I cant get multitool to adb push to my galaxy s2 it just says waiting on device.. is there something I need to do besides usb debugging and connect it to the computer? sorry for all the noobness.. gotta start somewhere right?
Oh also Im using fireworks to edit the png's and exporting them back and i noticed when i sent it back out it was like 29kb so I image export and optimized down to 2kb does that even matter?

You can't dump unsigned app into your phone.
I never workred with tool you mentioned but I think you should have sign option there.
Or you just drug modified images and xml files from that unsigned app into your original one.

It has the option to have signed or unsigned ... both ways result in the same issue...

As I said try to drag modded files and png's into original app and try to flash that.

agat63 said:
As I said try to drag modded files and png's into original app and try to flash that.
Click to expand...
Click to collapse
Ok trying..

Worked like a charm.. Makes me wonder what the point of apk manager is at all? Just 7zip unzip.. Edit and rezip...
Sent from my SPH-D710 using XDA Premium App

You can't edit xml files if you just unzip them. You have to decompile them in order to be able to edit them.

Related

Editing apk files

I have been trying to edit an apk file, basically change some pngs. But after iam done I can't install it anymore. Why is that?
I used 7z to open the apk archive and replaced a few pngs. I put the apk on the sdcard, open to install, goes thru installing then fails. Any help would be appreciated.
Sent from my PC36100 using Tapatalk
dont you have to sign it again or something.. did you keep the same file names for the pngs?
I kept the same file names and sizes. Do I need to sign them?
jasongthang said:
dont you have to sign it again or something.. did you keep the same file names for the pngs?
Click to expand...
Click to collapse
Sent from my PC36100 using Tapatalk
just delete all the stuff in the META-INF folder, make edits, rezip, and resign. easy
What's the easiest way to sign an apk?
dkdude36 said:
just delete all the stuff in the META-INF folder, make edits, rezip, and resign. easy
Click to expand...
Click to collapse
Sent from my PC36100 using Tapatalk
soulassasin187 said:
What's the easiest way to sign an apk?
Sent from my PC36100 using Tapatalk
Click to expand...
Click to collapse
You need an apk signing tool. Basically, you put the modified apk, in the signer folder, without the meta-inf folder, and run a quick command, your signed apk is then spit out. I'll attach the one I use when I get back to my laptop.
Hey... I think this thing makes phone calls too!
Here is the APK Signing Tool that I use.
Just unzip it somewhere, put the apk in the auto sign folder, open a command prompt to the folder, and run sign.bat, it should run you through it. There's a read me file in there, read it in case I forgot something.
Also, when editing market apps, they need to be resigned, but if ur editing built in app from the system, they do not. The HTC signature needs to remain intact on those.
Worked perfectly. Thank you.
JTNiggle said:
Here is the APK Signing Tool that I use.
Just unzip it somewhere, put the apk in the auto sign folder, open a command prompt to the folder, and run sign.bat, it should run you through it. There's a read me file in there, read it in case I forgot something.
Also, when editing market apps, they need to be resigned, but if ur editing built in app from the system, they do not. The HTC signature needs to remain intact on those.
Click to expand...
Click to collapse
Sent from my PC36100 using Tapatalk

Customizing graphics (maybe noobish question)

Less than an hour ago I decided to skin my statusbar. What I do is open SystemUI.apk with 7zip, extract everything from drawable folders and modify them. Now, I've got a question. Is it enough to replace png files in apk with modded ones, or I should somehow sign the apk file?
Thanks in advance.
Sent from nowhere
tajimura said:
Less than an hour ago I decided to skin my statusbar. What I do is open SystemUI.apk with 7zip, extract everything from drawable folders and modify them. Now, I've got a question. Is it enough to replace png files in apk with modded ones, or I should somehow sign the apk file?
Thanks in advance.
Sent from nowhere
Click to expand...
Click to collapse
Good question! I'm also interested in this.
Can't remember well whether it will work without resigning but I always sign the system apk / user apk after doing any modification.
Unsign apk normally get installed when it is placed at system/app but will not work when put it at sd-ext/app_s.
ckpv5 said:
Can't remember well whether it will work without resigning but I always sign the system apk / user apk after doing any modification.
Unsign apk normally get installed when it is placed at system/app but will not work when put it at sd-ext/app_s.
Click to expand...
Click to collapse
Got it. One more question - which tool do you use for signing?
Sent from nowhere
tajimura said:
Got it. One more question - which tool do you use for signing?
Sent from nowhere
Click to expand...
Click to collapse
Auto-sign for signing on PC and Signapktic (from Market) for signing on the phone.
ckpv5 said:
Auto-sign for signing on PC and Signapktic (from Market) for signing on the phone.
Click to expand...
Click to collapse
Thanks for the answers, now going to try that all
Sent from nowhere
Search for "apk tool" here on xda and you'll have what you need for theming and signing and more.
via xda app
System apps are NEVER signed.
If you don't extract (just open in 7zip or winrar) you can just drag new images in. If prompted for compression level, Choose "store". When finished, simply close the file with the x.
Only if you want to change xml files, need you decompile
Sent from my HTC Desire using Tapatalk
rootSU said:
System apps are NEVER signed.
If you don't extract (just open in 7zip or winrar) you can just drag new images in. If prompted for compression level, Choose "store". When finished, simply close the file with the x.
Only if you want to change xml files, need you decompile
Sent from my HTC Desire using Tapatalk
Click to expand...
Click to collapse
Umm, I thought that I have to sign it with "platform" key...
BTW, which PNG is responsible for statusbar background? The closest one I found is "statusbar_bg_tile", 1x1 black image. I want to use gradient background, and have created one full background image and one 9-patch, but dunno what to do - simply replace statusbar_bg_tile with statusbar_bg/statusbar_bg.9 or also modify some xml? In statusbar.xml I can't find any reference to statusbar_bg_tile PNG.
Sent from nowhere

Changing USER APPS ICONS! HELP

Can any experts help me with my little problem on changing icons on user applications, not the system apps icons because i was able to do that manually..
I had successfully changed all the icons of installed user applications on my SGY.
What i did was open it with WinRar and go to res / drawable ldpi (36x36) or mdpi (48x48) or hdpi (72x72) folder & replaced each icons there with proper file name and size..
After i finished it, i copied all modified apps to sd card and tried to install it one by one, but it says "applications not installed"..
And now i wonder what's wrong with what i did? I was able to replace the icons in system apps manually using the method which i used with this one but this one fails!
Any suggestions or instructions?
Any help would be much appreciated! Thank you!!!
After Editing You Have To Sign The App And Then Install It..
Try Zipsigner app... Might help...
Sent from my HTC Sensation 4g with Beats Audio
I've tried that method before too, when I was modding widgets, and it just doesn't work. What worked for me though was same method, but had it signed again with this little tool I found here in xda. I'll link you later when I get on desktop.
Sent from my GT-S5360 using xda premium
Silvane said:
I've tried that method before too, when I was modding widgets, and it just doesn't work. What worked for me though was same method, but had it signed again with this little tool I found here in xda. I'll link you later when I get on desktop.
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
what is the tool name???
Silvane said:
I've tried that method before too, when I was modding widgets, and it just doesn't work. What worked for me though was same method, but had it signed again with this little tool I found here in xda. I'll link you later when I get on desktop.
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
Yeah, i totally forgot that there was a signing thing when modifying apks..
And Sir, can you please give me the link of that "little tool" you're talking about when you get back in your PC? Thanks so much!
Thank you to all who responded! I appreciate you all! Cheers!
I couldn't find the thread I found it from anymore so I can't link the source. But I attached the sign tool which I still have.
Basically you get the apk right. Rename it to zip, extract, delete META-INF folder and then replace whatever images you wanted. Zip it back up, rename back to apk.
To sign, extract the zip included here to a folder. Copy paste the modified apk to the root directory of the sign tool. Make sure only one apk file is in the folder. Run sign.bat and press any button when prompted.
If it signed successfully just install the apk, making sure you have the original one uninstalled.
On a side note, if you want to update the app to a newer version through the market, it will not work. You will have to uninstall the modded one, install from the market and then do the process above again if you still want to modify it.
There are other signing tools too, ones that could sign multiple apk's simultaneously but for some reason they've never worked for me. But you're free to try. Google for 'em.
I have tried this method manytimes
and it works everytime
are you replacingonly the icon in the app apk or any other files to
you have to sign the apk after modding
use the tool given by silvane
if the 7zip method dont work for you
you can use apktool to decompile and recompile the apk and then sign it
you are ready to go
Thanks @Silvane and @deadlylocker as well as others for helping me..
@Silvane: I already downloaded that "autosign" app this morning but i didn't know (phil. time) that it is necessary to delete the meta-inf folder while modding apks before i saw your post so i appreciate your effort of giving instructions! Thanks so much!
No problem.
Sent from my GT-S5360 using xda premium

7-zip cant modify files

I am looking to modify my phone.apk to change the color of a few buttons and the android guy that shows up when in a call. I have done this in the past and it seemed like then it was as simple as deleting the files in 7-zip and replacing with the file I wanted. Am I missing something or is it not that simple. Every time I try to move a file or delete it its says "not Implimented" or un supported compression method. I know how to push and pull files through adb so if I could just get the .png images where I want them then I would be all set. I have looked everywhere but cant seem to come up with a solution.
Thanks Jason
PS. the files are from another rom I am simply trying to use them in my current rom so the .png file should not be corrupt or broken.
You can't edit apk's with any zip extractors
Sent from my Incredible using xda premium
Albinoman said:
You can't edit apk's with any zip extractors
Sent from my Incredible using xda premium
Click to expand...
Click to collapse
Not true, regular image files can (should) be able to be draged out, edited, and droped back in an apk using 7-zip.
nighthawklude99 said:
I am looking to modify my phone.apk to change the color of a few buttons and the android guy that shows up when in a call. I have done this in the past and it seemed like then it was as simple as deleting the files in 7-zip and replacing with the file I wanted. Am I missing something or is it not that simple. Every time I try to move a file or delete it its says "not Implimented" or un supported compression method. I know how to push and pull files through adb so if I could just get the .png images where I want them then I would be all set. I have looked everywhere but cant seem to come up with a solution.
Thanks Jason
PS. the files are from another rom I am simply trying to use them in my current rom so the .png file should not be corrupt or broken.
Click to expand...
Click to collapse
My guess would be that the apk was decompiled at some point before, but not recompiled right, or with the right program. Which phone.apk are you having issues with, the one on your phone or the one your pulling the pngs from?
I am having problems with the phone.apk I pull from my phone with adb, with the phone.apk that is in the original rom, and the phone.apk that is in a nanadroid back up. The rom I am running is anthem 3.3. I am starting to think that there is a problem with 7-zip on my computer. Is there a setting I need to change? I have even ran 7-zip as administrator to see if that helped.
nighthawklude99 said:
I am having problems with the phone.apk I pull from my phone with adb, with the phone.apk that is in the original rom, and the phone.apk that is in a nanadroid back up. The rom I am running is anthem 3.3. I am starting to think that there is a problem with 7-zip on my computer. Is there a setting I need to change? I have even ran 7-zip as administrator to see if that helped.
Click to expand...
Click to collapse
Sounds like your install of 7z may be messed up. I just tried it to make sure something didnt change in an update and it works fine for me still with default configuration.

bootloop trying to replace framework-res.apk

I've been getting this bootloop for the last 18hours of trying
I'm on stock ROM, with Gin2Ics V1.0 theme, and using Overdose1986 Notification toggle, but I change the wifi icon of Overdose1986 using ApkChanger and it works..
and then I want to change the battery icon of FlorinXstyle (Gin2Ics V1.0) to something like this http://forum.xda-developers.com/showthread.php?t=1472766 so I tried decompile the framework-res (should be from Gin2Ics theme) then put some new battery icon from http://forum.xda-developers.com/showthread.php?p=19938404 , then re-compile and i got bootloop..
Am i missing something or doing wrong here? well actually I just read some of the post here on how to decompile/recompile framework-res but mine always ends up in bootloop.. can somene help me thanks
I think just to replace the battery icons you don't need to decompile, just open the framework apk with 7 zip or winrar, and paste the images in, checking the names match. There might bee more or less, but so long as the names match, shouldn't be a prob.
When done, install as you have been.
Sent from my metalliArc S
Metallijim said:
I think just to replace the battery icons you don't need to decompile, just open the framework apk with 7 zip or winrar, and paste the images in, checking the names match. There might bee more or less, but so long as the names match, shouldn't be a prob.
When done, install as you have been.
Sent from my metalliArc S
Click to expand...
Click to collapse
thanks for reply, after I put the images in, what should I do next? how can I make it again to an apk file without compiling it and how should I install it?
EDIT#1: I still got a bootloop
asderth8000 said:
thanks for reply, after I put the images in, what should I do next? how can I make it again to an apk file without compiling it and how should I install it?
EDIT#1: I still got a bootloop
Click to expand...
Click to collapse
To replace images use WinRAR, rename .pngs you have the same as they are in drawable-hdpi (stat_sys_battery_0-100, stat_sys_battery_charge_0-100 stat_sys_battery_charge_full, stat_sys_battery_full, stat_sys_battery_unknown) if they aren't already renamed. So open framework-res.apk with Winrar, go to drawable-hdpi, click Add button, choose all the icons you want, click ok, choose Store compression method and OK. Then you shouldn't have a bootloop.
It won't change from apk to any other file.
n3n00 said:
To replace images use WinRAR, rename .pngs you have the same as they are in drawable-hdpi (stat_sys_battery_0-100, stat_sys_battery_charge_0-100 stat_sys_battery_charge_full, stat_sys_battery_full, stat_sys_battery_unknown) if they aren't already renamed. So open framework-res.apk with Winrar, go to drawable-hdpi, click Add button, choose all the icons you want, click ok, choose Store compression method and OK. Then you shouldn't have a bootloop.
It won't change from apk to any other file.
Click to expand...
Click to collapse
I did what you said but no luck, or maybe I'm using incompatible files but all I do is change the png files, and they have the same name already, I'll call it a night maybe try something tomorrow thanks
http://forum.xda-developers.com/showthread.php?t=1374394
Are you changing permissions when you put the framework-res back in the framework folder?
yes I'm changing permissions, rw-r--r--, but always ends up in bootloop, I read somewhere post that after changemjg permission and move to framework folder, if phone reboot itself then there must be wrong in what i' m doing, cause thats what happen after I move the framework-res to framework folder, after finish replacing the one in the folder, phone shutdown and start to bootloop..
Sent from my LT18i using xda app-developers app
Do you have .odex files in system/app? Also which battery mod are you trying to add?
n3n00 said:
Do you have .odex files in system/app? Also which battery mod are you trying to add?
Click to expand...
Click to collapse
i dont know actually about odex files i'll check them later,btw what about odex files?
its jamesgary's battery mod
Sent from my LT18i using xda app-developers app
i think i dont have .odex files in my system/app folders
Sent from my LT18i using xda app-developers app

Categories

Resources