Unofficial CM12 for Android One, Disabling Encryption on Nexus 6 – XDA TV

Android One devices have received an Unofficial CyanogenMod … more

Pushbullet Universal Copy/Paste Availabe for Linux, Mac OS X

Pushbullet is one of those useful utilities that once installed, permanently … more

Enable the Hidden Notification LED on the Google Nexus 6!

LED notification lights have existed on Android devices since the very beginnings … more

MX Player Ready to Rock on Lollipop

A good video player should be reliable and free. One of the XDA Community Apps, MX Player, meets both of … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[MOD] Dialer/Contacts.apk 2.8 Based off ChainsDD Dialer (Updated 140110)

OP Wysie

13th December 2009, 06:20 AM   |  #1  
OP Senior Member
Thanks Meter: 6
 
1,119 posts
Join Date:Joined: Jul 2009
Hi all,

I started this thread in order to gain more feedback on the changes/additions I've made to ChainsDD's dialer. Ultimately I believe all the changes he and I make will become one build . Actually I've posted the changes on ChainsDD's thread, but I figured it will probably get a little messy over time, thus the reason for this.

For those of you who have used my previous versions, and are experiencing issues with no image for the left action button, settings no saving, FCs, etc. try this before installing:

Code:
adb remount
adb shell rm -r /data/data/com.android.contacts/shared_prefs
adb shell rm -r /data/data/com.android.providers.contacts/shared_prefs
There are 2 zip files, one's the apk (for people who hate to reboot and like commands, like me), and one's the update.zip version (for people who hate commands and like to reboot :P):

Installation instructions (Amon_RA's):
Code:
adb remount
adb shell rm -r /system/app/Contacts.*
adb shell rm -r /data/dalvik-cache/system@app@Contacts.apk@classes.dex
adb shell rm -r /data/data/com.android.contacts/shared_prefs
adb shell rm -r /data/data/com.android.providers.contacts/shared_prefs
adb push Contacts.apk /system/app/Contacts.apk
Or you can simply reboot to recovery mode and flash the update version.

If call log is outdated (should not happen, just in case), or if you want to delete the call log cache for some reason, do the following and then re-open Contacts/Call log:
Code:
adb remount
adb shell rm /data/data/com.android.contacts/files/idCache.dat
Credits:
ChainsDD of course, for backporting it! http://forum.xda-developers.com/showthread.php?t=594194
rac2030, for open-sourcing NavStarter. I adapted his code to enable navigation from the contact info. Thanks dude!
geesun, for sending me his group call logging code, and x140dan, for helping me get in touch with geesun. Thanks guys!

Features:
Dialer:
Ability to set certain programs for voicemail
Themeable background: custom_background_dialer.png in drawable-finger
Changeable digits color (Screenshots: http://forum.xda-developers.com/show...8&postcount=79)
Haptic feedback function

Call Log:
View total incoming/outgoing call time in call log
Show actual time in call log, instead of relative time
Show contact pictures in call log
Hide the green dial button, when this is hidden, tapping on the arrows showing incoming/outgoing/missed call will dial the number instead. That is, they replace the function of the green dial button.
Ability to clear all logs of a particular user or number (long-press on the entry, it's in the context menu)
Ability to clear all logs of a particular type (missed, incoming, outgoing)
Call logs are now grouped
Ability to change the size of the contact picture when viewing an individual's call log

Contacts:
Navigate directly from contact info (works with M4ps and rooted Maps, it doesn't make sense actually, if you're rooted you shouldn't be running M4ps).
Show dial button in Contacts/Favourites, saving you one step before you call the person.
Add/remove contacts from Groups I've tested this quite extensively. It works when creating a new contact or when editing an existing one.
Ability to change the size of the contact picture when viewing a contact.
Alphabetical separators in contacts. Screenshots: http://forum.xda-developers.com/show...&postcount=187
Ability to create/rename and delete groups! System Groups and Starred in Android are shown but not editable though. Access this by pressing Menu in either Contacts or Favourites. Screenshots: http://forum.xda-developers.com/show...&postcount=308
Ability to take a picture with the camera directly when adding/editing a contact. Screenshot: http://forum.xda-developers.com/show...&postcount=352
Added copy to context menu when viewing a contact so you can copy a contact's number, address, email, etc. directly. Thanks to vinz0r for suggestion.
Added preference to hide all "Text/SMS" actions except for mobile numbers. Thanks to nolageek for suggestion.

Favourites:
Ability to clear frequently called numbers.
Ability to hide frequently called numbers


Misc:
Enable/disable auto-rotation based on sensor

Some screens (more screenshots attached below):
Separators in Contacts


Editing of Contact Group Membership



Current version:
2.8:
apk: http://www.mediafire.com/file/lxyzby...ie_2.8_apk.zip
update.zip: http://www.mediafire.com/file/jnzlit...ate_signed.zip

Mirror (Thanks AndroidSPIN!):
apk: http://www.androidspin.com/downloads...ie_2.8_apk.zip
update.zip: http://www.androidspin.com/downloads...ate_signed.zip

The apk is within the zip file, unzip it first. For the update.zip version, do NOT unzip it.

Odex instructions (in case you want to do it): http://forum.xda-developers.com/show...&postcount=609

Version 2.5 for TheOfficial ROM users:
enomther has kindly compiled a version for TheOfficial ROM users, please use it if you're having problems with jumpy alphabets when scrolling. Thanks enomther!
http://forum.xda-developers.com/show...postcount=6186

ALWAYS read the changelog! Might save you from updating sometimes .

If you like what I do, buy me a beer!

To Do:
Dialer:
Landscape dialer? (I need a mock-up that looks good.)

Call Log:
Call log enhancements (Set the monthly incoming/outgoing call limits and warn accordingly.)

Contacts:
Add navigate option to context menu
Quick contact? (still thinking of how to implement it)

Misc:
Allow styles in preferences? (xenio's suggestions)

Known Bugs:
Not really a bug, but a limitation of Android currently. Friends, Family, Colleagues and the other Google-created Contact groups can't be shown. More info and workarounds here: http://code.google.com/p/android/issues/detail?id=1632

Any suggestions?
Attached Thumbnails
Click image for larger version

Name:	addtocontacts.jpg
Views:	6216
Size:	20.1 KB
ID:	256517   Click image for larger version

Name:	callllog.jpg
Views:	5309
Size:	18.2 KB
ID:	256623   Click image for larger version

Name:	totalduration.jpg
Views:	2853
Size:	18.3 KB
ID:	256685   Click image for larger version

Name:	instances.jpg
Views:	2289
Size:	20.7 KB
ID:	256826   Click image for larger version

Name:	navi.jpg
Views:	2114
Size:	15.8 KB
ID:	256993   Click image for larger version

Name:	contactsdial.jpg
Views:	4528
Size:	19.2 KB
ID:	257402  
Last edited by Wysie; 14th January 2010 at 05:23 PM. Reason: 2.8
The Following User Says Thank You to Wysie For This Useful Post: [ View ]
13th December 2009, 06:20 AM   |  #2  
OP Senior Member
Thanks Meter: 6
 
1,119 posts
Join Date:Joined: Jul 2009
Changes:
2.8
Fixed bug at http://code.google.com/p/cyanogenmod.../detail?id=999
Added German translations, thanks to thiasB!
Patched Call Logs by niuchl. It's supposed to be faster. Do report if it's faster/slow/bugs anything. His implementation does NOT make use of a HashTable or any cache.

2.7
- Cleaned up some code.
- Added an option in Contacts to auto-hide the keyboard when scrolling. Useful for those who use the virtual keyboard often (like myself) to search for names.

2.62
- Added menu option to show all groups or show only contacts with phone
numbers. Requested by explosivo2k2 (Twitter).
- Enabled fast scrolling for call log, and individual call log details.

2.61:
- Fixed a bug. http://code.google.com/p/cyanogenmod.../detail?id=783
- Added various clearing logs function when viewing an individual's call log. Press menu or long press on number to see them. Preferences may be implemented in future.
- Layout of individual's call log is changed. Time and date is now the focus instead of number. Also added labels for the number type.
- Cleaned up code quite a lot.

2.6:
- Call log should now load much faster.
- Some layout tweaks here and there
- Special thanks goes out to shadowch31 and lilithpro for testing! And everyone else who helped of course.
- Unknown numbers, private numbers and payphone numbers are now grouped together. Unknown as in you can't see the number, not those numbers which are not saved.

2.51:
- Fine-tuned the group call logging portion layout.
- Also, most of the contacts should group properly now. I did some workarounds to get most of them to group. Android's PhoneNumberUtils can't seem to compare numbers properly all the time, which kinda sucks. In addition to using PhoneNumberUtils.compare(), I also queried and pulled out the id of the Person (Contact). Lastly, I wrote a sloppy method which compares the last 8 digits of numbers, and if they are equal, they are grouped together.
- Also, my previous functions of "Remove all [Number]" was bugged. Again, I can't do much due to PhoneNumberUtils not working perfectly, but it should remove all numbers now, as long as they are 8 digits or more. Previously, if you had:
91234567, +6591234567, and 010891234567. and you selected "Remove all 91234567", only 91234567 will be removed, and the other 2 with country codes will not. It now works as expected, but the code is honestly not the best way possible. Unfortunately I am unfamiliar with country codes and such .
- Cleaned up the code, most of the strings are now in strings.xml.
- Ability to view call log directly from a contact.
- The dialog shown when copying a number, address, etc. now contains the address itself, instead of the word "address"
- Added more options to the context menu when viewing an individual's call log
- The incoming/outgoing/missed call icon when viewing an individual's call log will now dial the number of that particular entry.
- I should've called it 2.6. Lol.

2.5:
Rebased call log portion of Contacts.apk on geesun's code for grouping of call logs. In other words, call logs are now grouped!
Some minor code changes.
Preferences to set contact picture size when viewing call log is in as well.

2.34:
Fixed issues with Groups management in general when the group names contain special characters such as single quotes (').

2.33:
Added some prefs to hide labels/numbers for Call Log, Contacts and
Favourites.
Also, when viewing a contact, you can now copy the name by long-pressing
on it.

2.32:
Fixed a self-introduced FC bug which happens if you choose a contact picture by using the Gallery/photo picker, and cancel it halfway.
Fixed an AOSP bug with "Display Groups" in Contacts always having an index off. See comments in github code for more information.

2.31
Fixed a bug whereby the temporary file created when taking a photo (for adding/editing of contact) will not get deleted if the user chooses to cancel his actions halfway.
Added copy when viewing a Contact information. Everything is copiable except for Ringtone and Groups. Thanks to vinz0r for suggestion. Screens: http://forum.xda-developers.com/show...&postcount=362
Added preference for showing "Text" action for mobile numbers only. The code was actually 1/2 done already, I believe by ChainsDD! Thanks to nolageek for suggestion.

2.3:
Fixed a bug with the first group not showing up when editing a Contact's group membership. For example, if you have College, Fun, and XDA as your groups, College will not show up. Thanks to G1sanju for reporting. It's an old bug, since the first time groups management was implemented actually.
Added the ability to take a picture using the camera directly (instead of selecting from Gallery only) when adding/editing a contact. Again, thanks to G1sanju for suggesting. Screenshots: http://forum.xda-developers.com/show...&postcount=352

2.21:
Added more options for the clearing of call logs. You can now clear all incoming, all outgoing or all missed calls. Thanks to xdan for the suggestion. Screenshots: http://forum.xda-developers.com/show...&postcount=325

2.2:
Fixed a tiny bug when adding/removing a contact from groups.
Reduced haptic feedback from 50ms to 30ms so your fingers are no longer hurt :P.
Implemented ability to Manage Groups. You can now Add, Delete, and Remove groups. System Groups and Starred in Android are shown, but are not editable though. Access this by pressing Menu in either Contacts or Favourites. Screenshots: http://forum.xda-developers.com/show...&postcount=308
Updated preferences, you can choose whether you are asked before deleting groups.

2.11:
"Fixed" an FC when viewing certain contacts. Not really mine or AOSP's code, but rather some apps are saving Contact data wrongly. More info here: http://code.google.com/p/cyanogenmod.../detail?id=890

2.10:
Added haptic feedback for dialer. Thanks to truemagic for the suggestion.
Fixed some layout bugs from the alphabetical separator backport.

2.01:
Fixed an FC bug which occurred if you try to make a "Direct Dial" or "Direct Message" shortcut. Thanks to g1lol for reporting.
Separators are now shown only in "Contacts" tab, and not anywhere else (eg, when creating a "Direct Dial" and you're asked to pick a contact).
Using some more code from AOSP master.

2.0:
Fixed groups being shown duplicated when editing contacts. Thanks to acrawl1 for reporting.
Fixed FC bug when adding contacts, and green dial button not dialing in call log. Self-introduced bug :X. Thanks adair for reporting.
A few other layout tweaks, and some minor code changes. Eg. Green dial button was shown when adding contacts, fixed it already.
Alphabetical separators in Contacts. It's changeable, in case you don't like it. Screenshot: http://forum.xda-developers.com/show...&postcount=187

1.96:
Show contact pictures/Show dial button is now an individual setting for each tab (so you can customize it to your liking)
Keypad #1 can now be set to dial the usual voicemail, while Left Action Button does something else, eg. Google Voice. Thanks A|G for the suggestion.
No longer need to restart app to show/hide contact pictures.
Contact pictures can now be shown in call log. Green dial button can be hidden. In the case where green dial button is hidden, the incoming/outgoing/missed call arrows will replace the dial function, so you don't really miss out on anything. See pic for explanation:



More screens here: http://forum.xda-developers.com/show...&postcount=171

1.95:
Fixed the FC bug with Dream users when they slide out the keyboard while editting a contact. Thanks to shadowch31 for the logcats .
Don't have to update if you're using Sapphire/Magic. Important for Dream users.

1.94:
Fixed the issue with the digits colours not being set properly. Thanks MontAlbert for the help!
Contact picture size when viewing a contact is now configurable.
Cleaned up preferences, thanks camalot for the suggestion.
Added an About, thanks xiutian for the suggestion.
Screenshots: http://forum.xda-developers.com/show...&postcount=128

1.92:
Fixed a bug which caused a contacts to be removed from all groups if you editted his info without choosing the "Groups" option (forgot to load the info).

1.91:
Added ability to use custom colors. (Screens/Info: http://forum.xda-developers.com/show...6&postcount=86)

1.9:
Fixed a couple of FC bugs introduced with the group feature.
Added preferences to allow switching of digits colours. (Screens: http://forum.xda-developers.com/show...8&postcount=79)

1.8:
Clear Frequently Called is now hidden when "Hide Frequently Called" is selected. Thanks camalot for suggestion.
Setting group separators now use the same text as tabs (consistency, won't have Favorites in tabs and FavoUrites in settings anymore). Thanks again to camalot for the suggestion.
Added ability to add/remove contact from groups. I've tested it quite extensively, still, please report any bugs. Take note that even though you can deselect a contact from "My Contacts", the Contacts.apk by default (AOSP code) will always add it back to My Contacts. I *may* remove "My Contacts" from the list in future, but that's a low priority.

1.72:
Added option to allow disabling of number checking for dialer. What's number checking? Basically, previously, SMS/Add To Contacts will not be shown in the Menu in Dialer unless at least one digit is entered. Also, the left action button was disabled unless one digit is entered (except for voicemail). With number checking disabled, you'll always see them in menu, and left action button will always be enabled.

Added a drawable, custom_background_dialer.png in drawable-finger to allow a themeable background in Dialer. Thanks jairomeo for the suggestion. See the following screenshot for an example:



Don't worry, the Dialer is still black background by default. Just used camalot's display pic (nearest I could find :P) as an example.

1.71:
Minor update to allow user to choose if he wants to be prompted before clearing frequently called.

1.7:
Added settings to hide contact pictures in contacts. Requires a restart of Contacts app though. Will fix in future (lowest-priority :P)
Added ability to show seconds as well when using exact times for call log.
Clear frequently called numbers is now available.
Added preference setting to hide frequently called numbers altogether.
Cleaned up the layout for Contacts a little (especially when hiding contact pictures).

1.62:
Small bugfix to fix the GTalk status icon in Contacts .

1.6:
Added call button beside for Contacts. Only contacts with numbers will have the dial button (see attached screenshot for idea). Also implemented it into preferences in case you want to turn it off. Note that this affects Favourites as well.

1.53:
Added ChainsDD's preferences. It's much better implemented than my previous one . Also has the same voicemail handlers as his now.

1.52:
Fixed a FC bug that some people reported. Thanks to regunus for the logcat, and a friend of mine for testing .

1.51:
Added the drawable for navigation (by me, I suck at graphics but hey.)
Fixed a small bug with Navigation showing even if Maps installed does not support it (non-issue really, everyone should be on 3.3.1 by now).

1.5:
Navigate to... is now an option when viewing a contact.

1.4:
Implemented function to clear all call logs of a particular name or number.

1.3 (151209):
Implemented a menu item to show total call time so far. Also added a prompt before call log is cleared. Screenshots added.

1.2:
Call log now shows actual time instead of relative time. For now it will default to 12 or 24-hour depending on your system settings. May make it an option to have configurable formatting options in future.

1.1:
Didn't know that github files were incomplete. Fixed.
Added new drawables for the SMS function.
Re-wrote SharedPrefs portion. Bug with Dialer not reading settings should hopefully be fixed now.

1.0:
Changed the version naming
Added SMS as an option for the left action button (in addition to voicemail and add to contacts).

141209:
Long-press on "Dial" button now activates voice dialer as well.
Delete button remains disabled until at least one number is entered. However, there's a known bug with this (see below).

As of 131209:
Added sensor-based rotation
Added preferences panel so you can choose whether to use voicemail or "add to contacts" for left action button
Recoded the "1", it'll show a voicemail symbol if you have voicemail. Also, long-pressing it if you do not have voicemail no longer does anything.

Previous releases:
2.7: http://www.mediafire.com/file/nimyzy...ie_2.7_apk.zip
2.62: http://www.mediafire.com/file/f0wnei...ie2.62_apk.zip
2.61: http://www.androidspin.com/downloads...ie2.61_apk.zip
2.6: http://www.mediafire.com/file/oozkkz...ie_2.6_apk.zip
2.51: apk: http://www.mediafire.com/file/5kyy2g...e_2.51_apk.zip
2.5: http://www.mediafire.com/file/winncm...sie2.5_apk.zip
2.34: http://www.mediafire.com/file/w2kz4m...ie2.34_apk.zip
2.33: http://www.mediafire.com/file/yaj0nd...ie2.33_apk.zip
2.32: http://www.mediafire.com/file/yyi2zi...ie2.32_apk.zip
2.31: http://www.mediafire.com/file/dx24c2...ie2.31_apk.zip
2.3: http://www.mediafire.com/file/ket2yn...sie2.3_apk.zip
Last edited by Wysie; 14th January 2010 at 06:29 PM. Reason: 2.8
The Following User Says Thank You to Wysie For This Useful Post: [ View ]
13th December 2009, 08:15 AM   |  #3  
tehseano's Avatar
Senior Member
Flag Detroit
Thanks Meter: 15
 
819 posts
Join Date:Joined: Jan 2009
Donate to Me
More
Awesome mod man, love it!
13th December 2009, 08:36 AM   |  #4  
Senior Member
Thanks Meter: 157
 
2,402 posts
Join Date:Joined: Jan 2007
More
remove data worked perfectly now.
13th December 2009, 02:40 PM   |  #5  
Jrbourque's Avatar
Senior Member
Thanks Meter: 42
 
1,628 posts
Join Date:Joined: Jan 2009
Ive been meaning to ask a dev working on this to see if this feature is hard to add or not. and in no way shape or form do i want my phone to be like an iphone but i like the feature. when you put the phone up to your ear the light goes out and when you move it down to hit the buttons it lights back up. Is this easy to code?
13th December 2009, 03:05 PM   |  #6  
OP Senior Member
Thanks Meter: 6
 
1,119 posts
Join Date:Joined: Jul 2009
Jrbourque: From what I know iPhone does it using a proximity sensor, something which Magic and Dream does not have . Check out cytown's Phone.apk thread, I think someone asked for it before, there's some info there.
13th December 2009, 04:21 PM   |  #7  
Jrbourque's Avatar
Senior Member
Thanks Meter: 42
 
1,628 posts
Join Date:Joined: Jan 2009
Quote:
Originally Posted by Wysie

Jrbourque: From what I know iPhone does it using a proximity sensor, something which Magic and Dream does not have . Check out cytown's Phone.apk thread, I think someone asked for it before, there's some info there.

thanks for the response...ill check it out
13th December 2009, 06:32 PM   |  #8  
OP Senior Member
Thanks Meter: 6
 
1,119 posts
Join Date:Joined: Jul 2009
Updated first post with new version. I'd appreciate if someone could help me with fixing the bug .
14th December 2009, 05:51 AM   |  #9  
OP Senior Member
Thanks Meter: 6
 
1,119 posts
Join Date:Joined: Jul 2009
Added SMS/MMS function to the left action button . Bug is still there though (see first post) .
14th December 2009, 01:26 PM   |  #10  
OP Senior Member
Thanks Meter: 6
 
1,119 posts
Join Date:Joined: Jul 2009
Updated.

1.1:
Didn't know that github files were incomplete. Fixed.
Added new drawables for the SMS function.
Re-wrote SharedPrefs portion. Bug with Dialer not reading settings should hopefully be fixed now.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes