• Announcements

    • Reminder - MoDaCo position on illegal content   07/30/15

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such softwareNintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)CUSTOM ROMS You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)ROMs must give full credit to the original authorISSUES If you have any issues with this policy, please contact PaulOBrien directly via PM.
    • Reminder: Selling items on the forum directly is not allowed   07/30/15

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspension / ban.
Sign in to follow this  
Followers 0

[MOD] Phone.apk modded with larger photo and ICS icons

28 posts in this topic

Posted (edited) · Report post

Ive made some modifications in Phone.apk:

- Larger contact photo: 250x250px

- Accept and reject call icons from ICS

- New background

Note:

-To improve your contact photo qualitty you need modded contacts.apk (Link below). In this case ive increased the croping size to 320x320px.

-If you are using Swedish Snow i also have a modded framework to change the aceppt and reject call tabs as you can see in the screenshot. (request it if you want it)

Instructions:

Don't forget to backup your apps first

1. Put the phone into "Flight Mode" either by holding power while the device is on and selecting Flight Mode from the submenu, or by selecting Flight Mode from the Settings menu.

2. Use a terminal, or root explorer, or any app you want to copy Phone.apk to /system/app/. Make sure the file is Phone.apk --(If you still get a FC, don't worry, just proceed to step 3.) Do the same thing with Contacts.apk

3. Reboot the phone.

Hope you enjoy it. wink.gif

Phone.apk

http://www.mediafire.com/?6xhpxle1pstx677

Contacts.apk

http://www.mediafire...edvq7332i1iqmzs

Swedish Snow RLS3 modded by me with some icons from ICS, blue status bar icons and some moddifications in lock screen. Also it includes the addon from konstat with no battery icon and center clock. To turn on the MIUI battery bar go to Setting/ROM Settings/Battery bar

Note: If status bar appear black in the first boot, just reboot and it should be right.

Swedish Snow RLS3 nlogmachine mod:

http://www.mediafire...ounkcciu08uhsrm

post-908637-0-33590200-1327517617_thumb.

post-908637-0-01192500-1327517633_thumb.

Edited by Pedro045f
1

Share this post


Link to post
Share on other sites

Posted · Report post

Will it work with CM7?

0

Share this post


Link to post
Share on other sites

Posted · Report post

Will it work with CM7?

I haven't tested it, but theoretically it should work. If it doesn't, let me know.

0

Share this post


Link to post
Share on other sites

Posted · Report post

And with Fish'N'Chips?

0

Share this post


Link to post
Share on other sites

Posted · Report post

And with Fish'N'Chips?

Yes. Ive tested it and its working.

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

tried with SS2, says 'app is not installed'

edit: nvm, after 3-4 reboots it finally worked

Edited by revmit
0

Share this post


Link to post
Share on other sites

Posted · Report post

tried with SS2, says 'app is not installed'

edit: nvm, after 3-4 reboots it finally worked

Glad it worked!

0

Share this post


Link to post
Share on other sites

Posted · Report post

Looks really nice :)

trying it now :)

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

It works with MMHMP rls8. Just wonder if you can make a ZTE dialer version for the optimised Contacts.apk? Nevertheless, great job, it's very nice.

Edited by lee89b
0

Share this post


Link to post
Share on other sites

Posted · Report post

Phone.apk doesn't work with CM 7.1.

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Is it possible to make it work with CM 7.1?

Edited by bazik19
0

Share this post


Link to post
Share on other sites

Posted · Report post

Is it possible to make it work with CM 7.1?

Im working on it. Stay tuned wink.gif

0

Share this post


Link to post
Share on other sites

Posted · Report post

I am interested in the Swedish Snow mod. Could you upload it ?

0

Share this post


Link to post
Share on other sites

Posted · Report post

I am interested in the Swedish Snow mod. Could you upload it ?

Done!

0

Share this post


Link to post
Share on other sites

Posted · Report post

thanks pedro! will try ASAP

0

Share this post


Link to post
Share on other sites

Posted · Report post

Can it work with RLS4b?

0

Share this post


Link to post
Share on other sites

Posted · Report post

Can it work with RLS4b?

yes. I am using it right now.

0

Share this post


Link to post
Share on other sites

Posted · Report post

This looks really great! Could you possibly outline what code changes you have made, so other people can adapt this for other ROMS? eg Cm7, where I believe the phone/contacts are very different to stock.

I could imagine that this would take a long time or you can't quite remember everything, and if that's the case, don't worry :)

1

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

This looks really great! Could you possibly outline what code changes you have made, so other people can adapt this for other ROMS? eg Cm7, where I believe the phone/contacts are very different to stock.

I could imagine that this would take a long time or you can't quite remember everything, and if that's the case, don't worry :)

You are right, there are some differences. Im working on CM7 dialer and ZTE dialer right now.

Here is what ive changed in stock dialer to increase the croping size to 320x320px

In "AttachImage.smali":

.line 131 and .line 132:

const/16 v21, 0x60 --> changed to const/16 v21, 0x13b

In "EditContactActivity.smali":

.method public static getPhotoPickIntent()Landroid/content/Intent;

.locals 5

.prologue

const/16 v4, 0x60 --> changed to const/16 v4, 0x13B

Note: The code may vary according to the version of contacts.apk used

If you apply these changes to any other contacts.apk please post the results!!

Edited by Pedro045f
0

Share this post


Link to post
Share on other sites

Posted · Report post

Can someone upload the original phone and contacts apk from SwedishSnow RLS4b? I didn't made a backup of them and i want them back :P

0

Share this post


Link to post
Share on other sites

Posted · Report post

Can someone upload the original phone and contacts apk from SwedishSnow RLS4b? I didn't made a backup of them and i want them back :P

Just download the rom again to your computer.

Open the zip file and extract phone.apk & contacts.apk from \system\app ( you can drag and drop ).

Done

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

In "AttachImage.smali":

.line 131 and .line 132:

const/16 v21, 0x60 --> changed to const/16 v21, 0x13b

In "EditContactActivity.smali":

.method public static getPhotoPickIntent()Landroid/content/Intent;

.locals 5

.prologue

const/16 v4, 0x60 --> changed to const/16 v4, 0x13B

not sure why you bother hacking the binaries, why not just edit the sourcecode? also why did you use 0x13B which is 315 not 320?

packages/apps/Contacts/src/com/android/contacts/EditContactActivity.java - line 131 change the 96 to 320

private static final int ICON_SIZE = 96;
packages/apps/Contacts/src/com/android/contacts/AttachImage.java - lines 130 and 131 change 96 to 320:
intent.putExtra("outputX", 96);

intent.putExtra("outputY", 96);

what are the implications of using the larger images, and then reverting to a rom that doesn't use these patches - do we have to resize all over again?

edit: doesn't seem to work at all with cm7.2 - i think the image picker may be bigger, but when you get a call its still a small icon

Edited by sej7278
0

Share this post


Link to post
Share on other sites

Posted · Report post

not sure why you bother hacking the binaries, why not just edit the sourcecode? also why did you use 0x13B which is 315 not 320?

Sorry, i forgot to change it in the 1st post, i actually meant 315 but it doesn't make any difference in the final result anyway.

what are the implications of using the larger images, and then reverting to a rom that doesn't use these patches - do we have to resize all over again?

When you flash a new Rom you need to sync with google to have your contacts back. Every time you sync contacts with google account the photo size will be reverted to 96x96px. Thats because google wont let have contact pictures bigger than that in their servers.

edit: doesn't seem to work at all with cm7.2 - i think the image picker may be bigger, but when you get a call its still a small icon

The contacts app must be able to crop the photos with at least 250x250px size otherwise the image wont have the proper quality to use with the modded phone.apk as i said in the 1st post.

0

Share this post


Link to post
Share on other sites

Posted · Report post

PLease can you make just New background mod and ICS answer/reject tabs mod for Swedish Snow RLS7?Thanks:)

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.