Edit Concat Picture - XPERIA X10 Android Development

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

Related

[Q] Editing an APK, any APK.

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

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

Creating a CWM zip file

I have some changes that I like to make to the Settings.apk, Systemui.apk, and framework-res.apk. Typically, I just pull these files from the Rom I'm using, edit the images in the drawable folders, and then copy them into the system files on my phone. I'd like to be able to create a zip file to do this for me. It looks like I can take someone elses update package and edit the "update script" file to do this. Is it that simple or is there more to it? What other files are important to creating an updater zip.
Thanks
Sent from my SAMSUNG-SGH-I777 using xda premium
BigMc71 said:
I have some changes that I like to make to the Settings.apk, Systemui.apk, and framework-res.apk. Typically, I just pull these files from the Rom I'm using, edit the images in the drawable folders, and then copy them into the system files on my phone. I'd like to be able to create a zip file to do this for me. It looks like I can take someone elses update package and edit the "update script" file to do this. Is it that simple or is there more to it? What other files are important to creating an updater zip.
Thanks
Sent from my SAMSUNG-SGH-I777 using xda premium
Click to expand...
Click to collapse
Just head over to perkas files stash (google it) and look for a empty system cwm.
Now you just have to make folders in this zip and add your files. example you want framework-res.apk and systemui.apk flashed.
So open the cwm zip and add a folders called app and a folder called framework.
The zip will be/system and so with the folders it creates /system/framework/framework-res.apk and system/app/SystemUI.apk. Etc
This empty system cwm should have all the folders you need for the zip

[Q] replacing files in a .apk file

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!!

Anyone Help at once in one system apk

Hi guys
Hope someone help me
Can someone help or my one apk:
Settings.apk
My rom will be finish but i have problem with this apk so i could finish it
I try to push it but it doesnt work
Even a stock.
But my friend gave me a one settings.apk it work
But i need to edit more so i not use it.
Please someone help at once..
Sent from my GT-S5300 using xda app-developers app
Seems like you want to "mod" your ROM?
janreytuazon15 said:
Hi guys
Hope someone help me
Can someone help or my one apk:
Settings.apk
My rom will be finish but i have problem with this apk so i could finish it
I try to push it but it doesnt work
Even a stock.
But my friend gave me a one settings.apk it work
But i need to edit more so i not use it.
Please someone help at once..
Sent from my GT-S5300 using xda app-developers app
Click to expand...
Click to collapse
First of all, which ROM are you using? Get the ROM's "zip" file. In the "zip" file, you will find the "system" folder. Open the "system" folder, and you will find the "app" folder. In the "app" you will get the apk named "Settings.apk".
If you are modding your ROM, it is necessary that you "sign" the apk. Else, it won't work.
Assuming that you are using apktool:
Unpack apk using apktool, do all the editing and stuff.
Open up the original "Settings.apk", and extract the "META-INF" folder and "AndroidManifest.xml" file from it.
Pack the apk using "apktool b Settings"
Now, copy the META-INF and the AndroidManifest.xml files/folders into Settings/build/apk folder and paste it (replace files if necessary)
Then, re-build the apk using "apktool b Settings"
Now, push the app, and apply the permissions correctly. In most cases, it is 644.
Iam using my rom
But its not finish because of that apk
Sent from my GT-S5300 using xda app-developers app
vineethraj49 said:
First of all, which ROM are you using? Get the ROM's "zip" file. In the "zip" file, you will find the "system" folder. Open the "system" folder, and you will find the "app" folder. In the "app" you will get the apk named "Settings.apk".
If you are modding your ROM, it is necessary that you "sign" the apk. Else, it won't work.
Assuming that you are using apktool:
Unpack apk using apktool, do all the editing and stuff.
Open up the original "Settings.apk", and extract the "META-INF" folder and "AndroidManifest.xml" file from it.
Pack the apk using "apktool b Settings"
Now, copy the META-INF and the AndroidManifest.xml files/folders into Settings/build/apk folder and paste it (replace files if necessary)
Then, re-build the apk using "apktool b Settings"
Now, push the app, and apply the permissions correctly. In most cases, it is 644.
Click to expand...
Click to collapse
If i edit other thing in my apk i will do ur method up there in apktool
Then i will sign and zipalign? Or only sign?
Sent from my GT-S5300 using xda app-developers app
Use any of the tools available for zipaligning
janreytuazon15 said:
If i edit other thing in my apk i will do ur method up there in apktool
Then i will sign and zipalign? Or only sign?
Sent from my GT-S5300 using xda app-developers app
Click to expand...
Click to collapse
I just sign the apk and push it, and it works. If you would like to zipalign, use dsixda's kitchen, or any other apk tools available
vineethraj49 said:
I just sign the apk and push it, and it works. If you would like to zipalign, use dsixda's kitchen, or any other apk tools available
Click to expand...
Click to collapse
Did i do your apktool method an sign and push?
Sent from my GT-S5300 using xda app-developers app
Yes, without signing, it wouldn't work.
janreytuazon15 said:
Did i do your apktool method an sign and push?
Sent from my GT-S5300 using xda app-developers app
Click to expand...
Click to collapse
As I said, system apps don't work if they aren't signed properly. And, the method that I use for signing is just "another" method. There are other methods too For simplicity, you can use any of the "apk tools" that other developers have created for simplicity.
vineethraj49 said:
As I said, system apps don't work if they aren't signed properly. And, the method that I use for signing is just "another" method. There are other methods too For simplicity, you can use any of the "apk tools" that other developers have created for simplicity.
Click to expand...
Click to collapse
Hi try to decompile it in apktool
But
I see a errors when get decompiling..
And when i get to the directory
I only see
Res
Androidmanifest.xml
And one other folder
Sent from my GT-S5300 using xda app-developers app
You need to install required frameworks...
janreytuazon15 said:
Hi try to decompile it in apktool
But
I see a errors when get decompiling..
And when i get to the directory
I only see
Res
Androidmanifest.xml
And one other folder
Sent from my GT-S5300 using xda app-developers app
Click to expand...
Click to collapse
Get the framework-res.apk from the /system/frameworks folder, and install it using apktool if framework-res.apk and try compiling :silly:

Categories

Resources