[Q] Would this work? - Motorola Droid X2

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.

Related

Edit Concat Picture

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

How to open an apk file?

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

[Q] Recompiling an apk correctly

I've made some aesthetic changes i like to my GO Launcher EX apk, which is a non system apk. The change I made was to some dock images, which did not have the .9 extension. Everything goes smoothly until I try to install my compiled .apk. If i leave it unsigned, it won't install, but if i sign it, it will. However, when i open it, the screen flickers constantly and will not respond. I'm out of ideas.
FYI, I compile/decompile with Apkmanager and edit with Gimp.
If you're not doing any thing with 9 patch images than there is no need to decompile in the first place. Get 7zip on computer. Right click apk/7zip/open archive and you can navigate to Res/drawable-hdpi and you can extract the drawable-hdpi folder to desktop and do what you need to with the images (non 9's) and drag new edited images into the open 7zip window in the proper place close 7zip window. Once done you only need to use apk mananger to sign the apk and push back to device.
good day. using xda premium.

[Q] Editing Images Framework-res.apk file

hello all
I was trying to edit the framework-res.apk which can be found in system/framework/framework-res.apk
this file holds alot of images that you can edit (e.g slider, incoming call, icons etc...) framework-res.apk\framework-res.apk\res\drawable-mdpi folder
i edited the png's jog_dial_bg_rev_down.png and jog_dial_bg_rev.png
they are the call slider revamped (just removed the shadows so it doesnt cover the incoming call)
i have used apk edit, Apk manager, APK sign and everytime i build the framework-res.apk and move it to the system/framework/ folder
everytime i move the file my phone either gets bricks, bootloops or get tons of force close down of some apps
has anyone got any solutions how to edit framework-res.apk without all this bricking bs?
i have uploaded the edited images for the sliders on Slider_Revamped.rar
When you sing apk than you need to replace :
Meta-inf and recourse.so from original framework-res.apk.
You just open both frameworks with 7zip and drag from original to edited
Sent from my U20i using xda premium
Eyama said:
When you sing apk than you need to replace :
Meta-inf and recourse.so from original framework-res.apk.
You just open both frameworks with 7zip and drag from original to edited
Sent from my U20i using xda premium
Click to expand...
Click to collapse
i had same issue.. thanx will try
Download "NinjaMorph" off of the market, it decompiles any APK, TAR whatever and allows you to replace any file (including XMLs if you like) from the APK with those on your SD. What I do is decompile the APK then plug my phone in and navigate to where NinjaMorph decompiled the APK to on the SD, which is "AndroidThemes", do the editing on my PC then disconnect the phone, recompile the APK and it automatically pushes the APK to wherever you pulled it from. I've used it many times when I've been messing with frameworkres, it works every time.
Does this method also work with .9.patched files?
christophermaisch said:
Download "NinjaMorph" off of the market, it decompiles any APK, TAR whatever and allows you to replace any file (including XMLs if you like) from the APK with those on your SD. What I do is decompile the APK then plug my phone in and navigate to where NinjaMorph decompiled the APK to on the SD, which is "AndroidThemes", do the editing on my PC then disconnect the phone, recompile the APK and it automatically pushes the APK to wherever you pulled it from. I've used it many times when I've been messing with frameworkres, it works every time.
Click to expand...
Click to collapse

[SOLVED] Edit .ogg in camera.apk

I have a rooted Galaxy M Style phone with stock Gingerbread 2.3.4 firmware. I am trying to customize my stock camera app, but am not sure what I'm doing wrong. I plan to replace the autofocus_ok.ogg with a different tune from my phone. I checked the properties of the autofocus_ok.ogg and saw it's a mono, 44100hz, and 96 bitrate file. The tune that I have has the same properties. So this is what I have done so far:
I backed up camera.apk to /system/app/camera.apk.bak and the camera.odex to /system/app/camera.odex.bak. I left a copy of camera.odex in /system/data. I copied the camera.apk to my memory card and placed the file on my computer. I renamed the file to a .rar. I then deleted the autofocus_ok.ogg and placed the tune that I wanted in that directory. Then I renamed it to autofocus_ok.ogg. I renamed the file back to .apk and transferred the file back to the memory card, then over to /system/app. The camera app will not install/not showing up on my phone. I am transferring the files through root explorer on my phone.
I worked with the original apk file again with apktool. I was able to decompile and replaced and renamed the files that I needed again. I compiled the file and transferred the file to /system/app again, but the apk will still not install. I checked the complied apk file and noticed that the file didn't have the META-INF folder, so I copied that over to. Tried to install it again by copying the file to /system/app, but it still won't show up on my phone. Is there anyway for me to change the autofocus_ok.ogg without a custom rom?
Thanks.
ImAhNoBoDy said:
I have a rooted Galaxy M Style phone with stock Gingerbread 2.3.4 firmware. I am trying to customize my stock camera app, but am not sure what I'm doing wrong. I plan to replace the autofocus_ok.ogg with a different tune from my phone. I checked the properties of the autofocus_ok.ogg and saw it's a mono, 44100hz, and 96 bitrate file. The tune that I have has the same properties. So this is what I have done so far:
I backed up camera.apk to /system/app/camera.apk.bak and the camera.odex to /system/app/camera.odex.bak. I left a copy of camera.odex in /system/data. I copied the camera.apk to my memory card and placed the file on my computer. I renamed the file to a .rar. I then deleted the autofocus_ok.ogg and placed the tune that I wanted in that directory. Then I renamed it to autofocus_ok.ogg. I renamed the file back to .apk and transferred the file back to the memory card, then over to /system/app. The camera app will not install/not showing up on my phone. I am transferring the files through root explorer on my phone.
I worked with the original apk file again with apktool. I was able to decompile and replaced and renamed the files that I needed again. I compiled the file and transferred the file to /system/app again, but the apk will still not install. I checked the complied apk file and noticed that the file didn't have the META-INF folder, so I copied that over to. Tried to install it again by copying the file to /system/app, but it still won't show up on my phone. Is there anyway for me to change the autofocus_ok.ogg without a custom rom?
Thanks.
Click to expand...
Click to collapse
erm... is the permissions set correctly rw-r--r-- ?
MoonBlade said:
erm... is the permissions set correctly rw-r--r-- ?
Click to expand...
Click to collapse
Yup, permissions were set correctly like rw-r--r--. Owner is root:root. Those are the permission that I set on the apk file like they were on the original file. I just realized that the compiled apk's from apktools doesn't show up on my phone. The apk that I created by opening up winrar and just replacing the .ogg files do show up, but I get the error "The application Camera (process com.sec.android.app.camera) has stopped unexpectedly. Please try again."
Anything else I can try or a thread to refer to?
ImAhNoBoDy said:
Yup, permissions were set correctly like rw-r--r--. Owner is root:root. Those are the permission that I set on the apk file like they were on the original file. I just realized that the compiled apk's from apktools doesn't show up on my phone. The apk that I created by opening up winrar and just replacing the .ogg files do show up, but I get the error "The application Camera (process com.sec.android.app.camera) has stopped unexpectedly. Please try again."
Anything else I can try or a thread to refer to?
Click to expand...
Click to collapse
why dont you try to push the modified apk manually using root explorer or so instead of pushing via adb ..
after decompiling apk and modifying it, compile it into some folder and then copy it into you sd card then use root explorer and manually push(copy) the apk into system/app .. give proper permissions and then reboot your phone..
Here are some guides to use apktool
http://forum.xda-developers.com/showthread.php?t=1891686
http://forum.xda-developers.com/showthread.php?t=1989533
MoonBlade said:
why dont you try to push the modified apk manually using root explorer or so instead of pushing via adb ..
after decompiling apk and modifying it, compile it into some folder and then copy it into you sd card then use root explorer and manually push(copy) the apk into system/app .. give proper permissions and then reboot your phone..
Here are some guides to use apktool
http://forum.xda-developers.com/showthread.php?t=1891686
http://forum.xda-developers.com/showthread.php?t=1989533
Click to expand...
Click to collapse
I have been pushing the modified apk through root explorer all this time. I don't even have adb install, haha. The procedure you explained have been the way I have been doing it the whole time, lol. I read the threads you posted and the procedure is the same as I've been doing it, except for the second thread. I can't grab the apktool from 4shared because I don't have an account. I am using the latest apktool 1.5.2. Also, I didn't understand what PulseDroid was talking when he said "We are NOT done just yet, we cannot use the new apk's... we have to take what we did and add it back to the original apk file to keep proper signature use something like 7zip, take the 'resources.arcs' file and any other xml files you edited out of the "-new" apk and copy them into Original apk". So I'm suppose to replace the resources.arcs and the .ogg files that I created from the new apk to the old apk? I didn't mess with any xml file.
Anyways, is there anything else I can try?
EDIT: ........I feel so embarrassed. I checked out this thread http://forum.xda-developers.com/showthread.php?t=2378177 and saw this post "Drag your replacement files into WinRAR and (here's the important part) in the Compression Method drop-down choose "Store"." All this time I have been compressing the file as "Normal" in Winrar, instead of "Store".
All in all, I did not need apktool at all. I used the original apk and opened it up in Winrar. I deleted the files that I wanted to replaced and put in the files that I wanted. Each time I put something in the file in Winrar I get a prompt for compression and instead of "Normal" compression just use "Store". It was that simple.
This helped me, thank you!

Categories

Resources