[Q] X & Y Crop values of Contacts.apk - Galaxy S II Q&A, Help & Troubleshooting

Hi,
Anyone know where is the X and Y "crop" values in contacts.apk ? I would like to increase the number of dip/px to portrait crop instead of square and have a better picture.
thx

You can try apktool and apk sign for edit apk file.
I use them for translate apk file and don't have any problem

langthang said:
You can try apktool and apk sign for edit apk file.
I use them for translate apk file and don't have any problem
Click to expand...
Click to collapse
Hi,
thx for the reply, It seems that apk manager use apktool to do its work :/
I tried directly with apktool it instantly FCs, have something to do with the compression, was getting the same result with apk_manager till I set compression to 0.
Any help plz, im stuck :/

Figured out: some file can be modified and we can use phone.apk with root explorer but some file need to be loaded after flashing in the recovery.
New question: Anyone know where is the "crop" value in contacts.apk ? I would like to increase the number of dip/px to crop less and do a portrait crop instead of square.
thx

up, anyone ?

nobody knows ?

Related

Handcent Pop-up, can you mod it???

Anyone know how to mod it? I am trying to get rid of the gray look and make it more gingerbread-like.
The problem is everytime I extract it and re-zip + sign it with apktool it doesnt let me install it on my phone.
I cant re-compile it either after editing the png files...
if anyone has any ideas let me know...
If you are editing a .9.png file, you need to follow a slightly different procedure via APK Manager.
*sent from my X10i
My_Immortal said:
If you are editing a .9.png file, you need to follow a slightly different procedure via APK Manager.
*sent from my X10i
Click to expand...
Click to collapse
can you explain what that would be.. I am just looking into how to edit .9.png files..
I would be willing to help with this if I could. I would like to see a customised pop up.
hrm5023 said:
Anyone know how to mod it? I am trying to get rid of the gray look and make it more gingerbread-like.
The problem is everytime I extract it and re-zip + sign it with apktool it doesnt let me install it on my phone.
I cant re-compile it either after editing the png files...
if anyone has any ideas let me know...
Click to expand...
Click to collapse
Ive been modding Handcent sms for some time. Link Can you explain what are you looking for? or Im guessing you have apk modding issue not really handcent
you don't need to use apkmanager or deconstruct/reconstruct apks to mod it (or any other app/widget for that matter).
download ninja morph from the market. you can select the apps from the phone, it will extract them and you can swap .9's inside ninjamorph to theme the apps/widgets.
i know with downloaded apps, you have to have them installed to system/app though. so you may need to move handcent to system/app, then chmod the apk, then reboot before doing the ninja morph.

[Q] Need help modifying framework-res.apk or twframework-res.apk and services.jar

Hello, maybe this is the wrong thread but i seem to not be getting any help over at Q&A's... I'm porting a theme from the captivate forums and for some reason my dropdown notifications have a transparent background and the text is black as well for any popup window like when you long press the homescreen to get widgets, and wallpaper chooser, so i think i need to modify either the framework-res.apk or the twframework-res.apk but don't kno exactly what file to modify to either get the text to white or get a background on those things... if anyone would advice me i'd appreciate it... thanks
Also if anyone could guide me into modifying the services.jar to change the clock color i would also appreciate it...
THIS IS THE LINK TO WHAT IM WORKING ON
danalex0829 said:
Hello, maybe this is the wrong thread but i seem to not be getting any help over at Q&A's... I'm porting a theme from the captivate forums and for some reason my dropdown notifications have a transparent background and the text is black as well for any popup window like when you long press the homescreen to get widgets, and wallpaper chooser, so i think i need to modify either the framework-res.apk or the twframework-res.apk but don't kno exactly what file to modify to either get the text to white or get a background on those things... if anyone would advice me i'd appreciate it... thanks
Also if anyone could guide me into modifying the services.jar to change the clock color i would also appreciate it...
THIS IS THE LINK TO WHAT IM WORKING ON
Click to expand...
Click to collapse
you need to edit the .xml files.
for notification you need to edit statubar_expand.xml and files that has similar name to that xml. dont exactly remember what its called.
its in framework-res.apk/res/layout
the notification pulldown background is in
twframework-res.apk/res/drawable-hdpi
eunkipark92 said:
you need to edit the .xml files.
for notification you need to edit statubar_expand.xml and files that has similar name to that xml. dont exactly remember what its called.
its in framework-res.apk/res/layout
the notification pulldown background is in
twframework-res.apk/res/drawable-hdpi
Click to expand...
Click to collapse
Well for the notification pulldown background ive got the one i wanted... what im referring to is when u have a notification, for instance you downloaded something from the market and u get successfully downloaded that one notification has no background it is set to transpare t and the letters are black so i can really read what it says...
anybody wishing to help?
If it is an image you need to edit to be non-black/transparent the file I think you're looking for is called "status_bar_item_background_normal.9.png"
Change that to a totally opposite color and see if that's it?
If you mean editing the color of the letters then I do not know what to edit in the .xml file.
Hope I helped!
How can I modify the XML files? 'cause when I extract them from apk file, all of them are protected, I can't read any codes. Can anyone show me how to fully unprotected them?
P/s: I always get this error "An invalid character was found in text content. Error processing resource..." whenever I open xml file with IE.
vnthantai said:
How can I modify the XML files? 'cause when I extract them from apk file, all of them are protected, I can't read any codes. Can anyone show me how to fully unprotected them?
Click to expand...
Click to collapse
^^ +1.....
danalex0829 said:
^^ +1.....
Click to expand...
Click to collapse
they must be decompiled with apk manager
additionally when you recompile make sure to check the log as there will be several images that will be renamed from. 9.png to png you must use the draw9patch program found in the tools folder of the android ask to 9patch these images otherwise your apks will not compile correctly. Im on my phone now so I can't provide the necessary video link how ever simply go on youtube and search how to use draw9patch there is a very good beginners explanation (2 part) of what a 9 patch is and how to use the 9 patch utility
Sent from my AXURA powered Vibrant
are all of images in "res/drawable-hdpi" folder 9.png formated files? or just some of them?
vnthantai said:
are all of images in "res/drawable-hdpi" folder 9.png formated files? or just some of them?
Click to expand...
Click to collapse
it varies, they can be in any folder really, but generally speaking that is where you will find most of them. Just check the logs and you will know exactly where to find them and what they were named.
was anyone able to figure out to edit services.jar in order to change clock color?
aamir123 said:
was anyone able to figure out to edit services.jar in order to change clock color?
Click to expand...
Click to collapse
Here you go man. http://forum.xda-developers.com/showthread.php?t=940692
That thread will explain that part. Be careful with it though, and make a backup cas if you mess it up you'll get a boot loop as I did
am trying to edit the framework-res.apk
am trying to change the images of the slider (jog_dial_bg_rev.png) but when i save it and then install or move the .apk to system/framework folder
the phone crashes? has this got anything to do with the MD5?
all i wanna do is change the slider image based on the CM7 pro v20 ROM
my reason is because the black shadow covers the incoming call number
kashem58 said:
am trying to edit the framework-res.apk
am trying to change the images of the slider (jog_dial_bg_rev.png) but when i save it and then install or move the .apk to system/framework folder
the phone crashes? has this got anything to do with the MD5?
all i wanna do is change the slider image based on the CM7 pro v20 ROM
my reason is because the black shadow covers the incoming call number
Click to expand...
Click to collapse
Instead of extracting, Just open it with winrar or 7zip and drag and drop image in the 7zip window.
Sent from samsung vibrant

Replacing icons in apk

Hi
sorry if for expert devs this is a basic question
I have been looking around but I did not found this explained
HOW TO CHANG THE ICON ASSOCIATED WITH AN APK ????
I know how to open a apk with 7 zip and that I have to change the png file there
but which file ?????
do I need to change just the file associated with the icons or all the others ?
I mean .... inside (for example) mm.apk I found the icons related to contacts.apk to email.apk etc ... do I need to chenge all of them with the new ones ?
decompile and recompile
Decompile the app with apktool and go into the res folder and find the icon u want to replace ,,change it and recompile with apktool.Lastly sign the app and you are good to go
I have never tried change icons but i tried to change the background images for dialer and system menu. I used the same method mentioned above by opening the apk using 7zip and changing the images files with my custom images and rename them exactly the same as old ones.
Then I used CWM to flash the zip which contains the modified apk (i.e. contacts.apk and framework-res.apk)
However, I would recommend that you backup your ROM before flashing the modified zip file just in case something wrong happens.
Good Luck
I remember that there is a tool much faster than apktool ti decompile recompile but ... I have not been on the forum for long and I lost it
Is it also possible to change only theicon by using vrtheme ? if yes can someone explain how ?
Thanks
Give this thread a whirl...should be very useful
Basic theming guide by Dully79
Darkside Agent said:
Give this thread a whirl...should be very useful
Basic theming guide by Dully79
Click to expand...
Click to collapse
All very interesting I am sure I will use it at some point
I installed Java SDK and APKtool ... I remembered what they are for ... but still ...
the only thing I needed to know was if I need to change all the images in res or only that associated to the icon.....
ads7112 said:
All very interesting I am sure I will use it at some point
I installed Java SDK and APKtool ... I remembered what they are for ... but still ...
the only thing I needed to know was if I need to change all the images in res or only that associated to the icon.....
Click to expand...
Click to collapse
fine, whatever, ignore my post
Please .. do not missunderstand me !!!
Your help is very much apreciated
I knew approximately what to do to modify the theme also if in general I preferred kitchen uot
Instead I was hoping in a simple change of icon afetr decompressing/decompiling the apk but apparently it is not so simple ...never mind

Help with Default themes.apk

Hy i just de-compiled Default Themes.apk from ST15i
as i wanted to change the name From DefaultThemes.apk to something i want & i successfully did it
but now that .apk in not installing as a normal apk or by pushing into system app
even tried to sign it but no luck:crying:
I attached the .apk i moded, please someone look into it and tell me whats wrong
This defaultthemes.apk is de-compiles so just extract it and peep into it
Thanks
piousheart said:
Hy i just de-compiled Default Themes.apk from ST15i
as i wanted to change the name From DefaultThemes.apk to something i want & i successfully did it
but now that .apk in not installing as a normal apk or by pushing into system app
even tried to sign it but no luck:crying:
I attached the .apk i moded, please someone look into it and tell me whats wrong
This defaultthemes.apk is de-compiles so just extract it and peep into it
Thanks
Click to expand...
Click to collapse
What did you do after you recompiled the apk?
Ticklefish said:
What did you do after you recompiled the apk?
Click to expand...
Click to collapse
Pushed in system\app rebooted phone ( This method didn't worked, defaultthemes.apk didn't installed )
Then i tried to sign the apk and pushed - didnt workred.. then installed as a normal apk still no sucess
Thanks for the reply.
piousheart said:
Pushed in system\app rebooted phone ( This method didn't worked, defaultthemes.apk didn't installed )
Then i tried to sign the apk and pushed - didnt workred.. then installed as a normal apk still no sucess
Thanks for the reply.
Click to expand...
Click to collapse
So you didn't use the signing from the original app? Or change the compression rate of resources.arsc? Just compiled and pushed?
1.Make a copy of an original apk
2.Decompile the app
3.Do desired changes
4.Recompile
5.Replace changed resources from recompiled app back to original app (without unpacking it, use winrar or something like that open the apk and then just paste the changed resources inside)
6.Copy the file to /system/app
7.Give 644 permissions.
Ticklefish said:
So you didn't use the signing from the original app? Or change the compression rate of resources.arsc? Just compiled and pushed?
Click to expand...
Click to collapse
How to use the signing from original app?
How to change the compression ratio of resources.arsc?
Sorry for making you concern but i am really a noob
Theonewithideas said:
1.Make a copy of an original apk
2.Decompile the app
3.Do desired changes
4.Recompile
5.Replace changed resources from recompiled app back to original app (without unpacking it, use winrar or something like that open the apk and then just paste the changed resources inside)
6.Copy the file to /system/app
7.Give 644 permissions.
Click to expand...
Click to collapse
Thanks for replying..
I tired to paste the changed work from recompiled app to original but the problem is i changed the values in res\value\string ( changed the name of application so that i can install w\o replacing the original themes ) but after recompiling VALUE folder disappeared from res, now how do i move the STRING to original apk?
piousheart said:
Thanks for replying..
I tired to paste the changed work from recompiled app to original but the problem is i changed the values in res\value\string ( changed the name of application so that i can install w\o replacing the original themes ) but after recompiling VALUE folder disappeared from res, now how do i move the STRING to original apk?
Click to expand...
Click to collapse
That's inside resources.arsc. Which needs to be compressed at a STORE rate. Have a look at the tool in my signature, it can do all this for you automatically.
Ticklefish said:
That's inside resources.arsc. Which needs to be compressed at a STORE rate. Have a look at the tool in my signature, it can do all this for you automatically.
Click to expand...
Click to collapse
Can you teach me how do i make that defaultThemes.apk a normal installable apk?

[Q] App Google Cloud Print Mod - No Icon

I wonder, if anyone has found the application of Cloud Print (official) without icon in the launcher (non-icon).
I tried descompilarla and compile, and I have not succeeded.
I tried to decompile, fix it and compile it, but I have not succeeded
I would greatly appreciate if anyone could help me.
Answer
vk2r said:
I wonder, if anyone has found the application of Cloud Print (official) without icon in the launcher (non-icon).
I tried descompilarla and compile, and I have not succeeded.
I tried to decompile, fix it and compile it, but I have not succeeded
I would greatly appreciate if anyone could help me.
Click to expand...
Click to collapse
What do you mean you have not succeeded?
Decompile the apk file, remove the icon and replace a transparent icon with the same name and if possible in same format as the older icon.
Also in android manifest file, look whether the icon is given with an extension. If so, change it to the icon's format that you have placed.
Now again recompile the apk file and also sign the apk.
There are lots of tutorials on both Google and XDA that will help you to learn decompiling and recompiling an apk.
Press thanks if I have helped you.
I am a newbie. Anyone can correct me if I am wrong.

Categories

Resources