summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge "Add pinning support in ContactsProvider"Yorke Lee2013-07-303-15/+170
|\
| * Add pinning support in ContactsProviderYorke Lee2013-07-243-15/+170
| | | | | | | | Change-Id: I3c835c2fd0faf99f8fb176752cfcb12e011095a2
* | am 84acbc81: am e2688b18: am 44c3d51b: am 13d744f2: am 466d8411: am ↵Chiao Cheng2013-07-231-0/+1
|\ \ | |/ |/| | | | | | | | | 8d54a6e0: resolved conflicts for merge of b8fb609b to jb-mr1-dev * commit '84acbc81b50e8d30df668b4ffd763b7c96e172a2': Do not allow updates to the _data column.
| * am e2688b18: am 44c3d51b: am 13d744f2: am 466d8411: am 8d54a6e0: resolved ↵Chiao Cheng2013-07-232-3/+32
| |\ | | | | | | | | | | | | | | | | | | conflicts for merge of b8fb609b to jb-mr1-dev * commit 'e2688b18df75eceb4895fecaaf4f0ebd42f23ef7': Do not allow updates to the _data column.
| | * am 44c3d51b: am 13d744f2: am 466d8411: am 8d54a6e0: resolved conflicts for ↵Chiao Cheng2013-07-232-3/+32
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | merge of b8fb609b to jb-mr1-dev * commit '44c3d51be8deee28d01e3e3f739a2f6b1fc608fa': Do not allow updates to the _data column.
| | | * am 13d744f2: am 466d8411: am 8d54a6e0: resolved conflicts for merge of ↵Chiao Cheng2013-07-232-3/+32
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b8fb609b to jb-mr1-dev * commit '13d744f2290a405bf99b1f8114da23668bd15274': Do not allow updates to the _data column.
| | | | * am 466d8411: am 8d54a6e0: resolved conflicts for merge of b8fb609b to jb-mr1-devChiao Cheng2013-07-232-3/+32
| | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | * commit '466d84110ef8f03b91561dd7a778558570e32abb': Do not allow updates to the _data column.
| | | | | * am 8d54a6e0: resolved conflicts for merge of b8fb609b to jb-mr1-devChiao Cheng2013-07-232-3/+32
| | | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '8d54a6e0fa9fb4bb0a2b3b2f36d0e9bf930d05c8': Do not allow updates to the _data column.
| | | | | | * resolved conflicts for merge of b8fb609b to jb-mr1-devChiao Cheng2013-07-222-3/+32
| | | | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I336ee0b3f041f83a4b4e2c9973abb73852c2cc6f
| | | | | | | * am 284f7164: Do not allow updates to the _data column.Chiao Cheng2013-07-222-3/+33
| | | | | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '284f71646d1953f2d78b53e2cdb42cb93e1d9d6f': Do not allow updates to the _data column.
| | | | | | | | * Do not allow updates to the _data column.Chiao Cheng2013-07-122-3/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes a security hole where applications can update the data location of voicemail files to point to arbitrary file paths. Voicemail provider stores the location of the data file in the _data column. Applications can update this with an arbitrary file path as long as they have the ADD_VOICEMAIL permission. Then they can subsequently read that voicemail and obtain access to the file. This location is generated by the provider and does not need to be updated by the applications. Bug: 9674953 (cherry picked from commit ab2a24c126f35ae4aefb469f91094e5972abd8f0) Change-Id: I6c795fe8e283f60f71ebc0e53606383c9fd22e71
| | | * | | | | | am 9c842fcf: White list file names and do not allow ".."Chiao Cheng2013-07-102-3/+25
| | | |\ \ \ \ \ \ | | | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '9c842fcf486ed5c70ca6db3106349aade27751bf': White list file names and do not allow ".."
| | | | * | | | | White list file names and do not allow ".."Chiao Cheng2013-07-092-3/+25
| | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes security vulnerability where application can pass in relative file paths with ".." in the string to access files outside of the dumpedfiles directory. Bug: 9607306 Change-Id: Iad219cb48fa560d837498c2dc75127294dcf401b
| * | | | | | | am 4a1ade1e: White list file names and do not allow ".."Chiao Cheng2013-07-092-3/+25
| |\ \ \ \ \ \ \ | | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | * commit '4a1ade1e8e86f8f8d2f47fce809e0b5e64735c2d': White list file names and do not allow ".."
| | * | | | | | White list file names and do not allow ".."Chiao Cheng2013-07-092-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes security vulnerability where application can pass in relative file paths with ".." in the string to access files outside of the dumpedfiles directory. Bug: 9607306 Change-Id: Iad219cb48fa560d837498c2dc75127294dcf401b
* | | | | | | | Fix acore crash when upgrading to KLPYorke Lee2013-07-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug 9811106 Change-Id: Iaf83808fe66886d4cdd66b991c3964972314c500
* | | | | | | | Do not allow updates to the _data column.Chiao Cheng2013-07-122-3/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes a security hole where applications can update the data location of voicemail files to point to arbitrary file paths. Voicemail provider stores the location of the data file in the _data column. Applications can update this with an arbitrary file path as long as they have the ADD_VOICEMAIL permission. Then they can subsequently read that voicemail and obtain access to the file. This location is generated by the provider and does not need to be updated by the applications. Bug: 9674953 Change-Id: I9c8fc45071a06d627574a52bafbd9e6e172b4bf8
* | | | | | | | Merge "White list file names and do not allow "..""Chiao Cheng2013-07-092-3/+25
|\ \ \ \ \ \ \ \
| * | | | | | | | White list file names and do not allow ".."Chiao Cheng2013-07-092-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes security vulnerability where application can pass in relative file paths with ".." in the string to access files outside of the dumpedfiles directory. Bug: 9607306 Change-Id: Iad219cb48fa560d837498c2dc75127294dcf401b
* | | | | | | | | am 5e0fa885: am 321d81dc: Merge "Change method to determine if the table is ↵Jay Shrauner2013-07-021-3/+2
|\ \ \ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | empty" * commit '5e0fa885379a1919f9e7719ba3eb666ee2341084': Change method to determine if the table is empty
| * | | | | | | | am 321d81dc: Merge "Change method to determine if the table is empty"Jay Shrauner2013-07-021-3/+2
| |\ \ \ \ \ \ \ \ | | |_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | * commit '321d81dcc008d4d7b3ad02272960a9972a141c90': Change method to determine if the table is empty
| | * | | | | | | Change method to determine if the table is emptyHyoseong Kim2013-06-031-3/+2
| | | |/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | queryNumEntries API perform "COUNT(*)" query. It is slower than New API that perform "EXISTS". If the goal is to determine if the table is empty, using new API is better. [+] https://android-review.googlesource.com/52750 Change-Id: Idcc2633d0a5349c59f41e125cf34c9dc6622cdbe
* | | | | | | | Fix acore crash during Contacts database upgrade to 801Amith Yamasani2013-06-211-0/+1
| |_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure that the oldVersion is upgraded so that it doesn't throw an exception after a successful upgrade step. Change-Id: I29d4b85a2990a93abde340b4e1f60ddfc8698b3f
* | | | | | | Ensure database create broadcast fires after boot complete.Chiao Cheng2013-06-192-14/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Contacts database is created before boot completes by the ContactsUpgradeReceiver. Any notifications fired before boot will not be received by applications. Bug: 9394450 Change-Id: I1c47308c7ec52b777f9f4ca8c19141634e4e0baa
* | | | | | | Merge "Add number presentation column to call log table"Jay Shrauner2013-06-192-9/+27
|\ \ \ \ \ \ \
| * | | | | | | Add number presentation column to call log tableJay Shrauner2013-06-102-9/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add number presentation column to call log table and convert older call logs to use the new column. Bug:6948882 Change-Id: I0e8f781d30600e3bfb08d8b89a1cade531e18c7f
* | | | | | | | Contacts provider needs to be a privileged apkChristopher Tate2013-06-171-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fixes a sometimes-bug: the contacts database helper can be invoked for upgrade prior to system boot, but it sends broadcasts. Use FLAG_RECEIVER_REGISETRED_ONLY_BEFORE_BOOT flag to avoid problems. Bug 8765951 Change-Id: I4ee4b4c3e17803e73c63e7a2e06e35088d1a611d
* | | | | | | | Merge "Add updates on usage data to Delta API."Christine Chen2013-06-101-1/+3
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
| * | | | | | | Add updates on usage data to Delta API.Christine Chen2013-06-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Updates the last_updated_timestamp of a contact when there is new usage data available: last time contacted and times contacted. Change-Id: I633d617681d56072a0d1f09d75a7fcba7e47b219
* | | | | | | | Use ICU collator for display name orderingJay Shrauner2013-05-311-2/+2
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use ICU collator when ordering by DISPLAY_NAME to get locale aware ordering. Bug: Change-Id: I059761a311961a80998a628c67746b78ca3d14c7
* | | | | | | Clean up int data conversion callsJay Shrauner2013-05-234-67/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Catch various places we would crash if a data column didn't parse as expected as an int or long. Bug:9050606 Change-Id: I241e8a2b158eea89a2b86ca20d3b93379668084d
* | | | | | | am 3f88ff6b: Merge "Fix method not found errors for unit test." into jb-mr2-devChiao Cheng2013-05-131-0/+4
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | * commit '3f88ff6b537fb53806f126b4aea3355686387717': Fix method not found errors for unit test.
| * | | | | | Fix method not found errors for unit test.Chiao Cheng2013-05-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Two methods in MoreDatabaseUtils are no longer used after a recent bug fix. But the tests for them are erroring out in userdebug builds because proguard is stripping the methods. Bug: 8894559 Change-Id: Idc2b4c9fd2fd6b58a3c44e5a40dec1b1c582cd2e
* | | | | | | Fix unit tests when phone is in ja_JP localeJay Shrauner2013-05-102-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ContactsProvider2 uses method getLocale() to allow tests to override default locale. This locale, however, was not being used for the NameSplitter. Change the createNameSplitter method to take locale as an input parameter so the SearchIndexManager tests will run with the right search indexes. Bug:7264326 Change-Id: I2535673032dcd628d8719b00eff6512cba9dc279
* | | | | | | Close PFD after finished reading from pipe.Jeff Sharkey2013-04-251-0/+4
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoids leak. Change-Id: I2f5197d05e920b85062e5b88abb043a464bf17de
* | | | | | Fixed issue where some contacts are not added to delete log.Chiao Cheng2013-04-232-12/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Contacts with multiple raw contacts were not being inserted into the delete log when accounts are removed. This was due to the raw contacts being removed in batch instead of one at a time. The logic to determine whether a contact can be deleted was determining whether other raw contacts exist. This does not work when all raw contacts are removed in a single batch. Added logic to pre-select contacts that will be deleted. Bug: 8696462 Change-Id: I95adccf9e6756bbf6ca9dd7d144c1d9ee8905631
* | | | | | Fix sqlite error when too many bind variables.Chiao Cheng2013-04-221-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sqlite has a limit of 999 bind variables by default. Since there is no risk of sql injection in this method, change to building sql by concatentation. Bug: 8676489 Change-Id: I9bfea735bb14fd65c84eb4255825b7ad3f5fae71
* | | | | | Fixing delta api for account removal case.Chiao Cheng2013-04-181-1/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Account removal uses a different code path from normal contact deletes. This patch properly adds deleted contacts into the delete log when an account is removed. Also updates contact last updated timestamp for the non-delete case when a raw contact is removed from an aggregate contact. Bug: 8654272 Change-Id: I05c3ef297e5ad2ca6713e06d0b40206876cf0b9e
* | | | | | Adding contacts delta api.Chiao Cheng2013-04-088-58/+444
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates and inserts can be detected through the use of a new timestamp field in the contacts table. Deletes can be detected by querying the new deleted_contacts table. Bug: 8182147 Change-Id: I5c1e596f4e1aa58528afc29396f79cb4051e229c
* | | | | | Merge "Provider side changes for exposing data usage stats" into jb-mr2-devYorke Lee2013-04-051-7/+37
|\ \ \ \ \ \
| * | | | | | Provider side changes for exposing data usage statsYorke Lee2013-04-031-7/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a uri query parameter to filter for a specific type of data usage, otherwise the sum of all the data usage stats for that particular data is returned. Bug 8124079 Change-Id: Iee4c3accb46c9402f0a1659c9b8943c5a219a169
* | | | | | | Japanese and Chinese search key fixesJay Shrauner2013-04-025-53/+164
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change so Pinyin search keys are only generated when in a simplified Chinese locale. Fix name style classification of phonetic names. Generate Romaji search keys for Japanese phonetic names. Add secondary locale labeling for a number of non-Western languages (Japanese, Korean, Thai, Arabic, Hebrew, Greek, Cyrillic). Bug:5356921 Change-Id: I8c3a6b67d59fbd6b7b16e4e9f69bc30d1d996a75
* | | | | | Add new apis to CP2Yorke Lee2013-03-271-0/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Data.Contactables.CONTENT_URI and CONTENT_FILTER_URI Querying against these uris return email addresses and phone numbers belonging to all contacts with email/address/names that match the filter (if provided). Add VISIBLE_CONTACTS_ONLY boolean parameters to Data Bug: 8123918 Change-Id: I491cb2ff4c64c9d042d5e21cebc5f90d086c70ac
* | | | | | Fix unit tests for ICU 51 patchesJay Shrauner2013-03-111-54/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix unit tests to reflect fixes to AlphabeticIndex from backporting ICU 51 fixes into current Android ICU drop. Add tests for new German "Sch" and "St" labels. Bug: Change-Id: I9c4778bec24eebe6ed4228d541b6a6d95c6701aa
* | | | | | Merge "Use ICU ImmutableIndex" into jb-mr2-devJay Shrauner2013-03-071-4/+4
|\ \ \ \ \ \
| * | | | | | Use ICU ImmutableIndexJay Shrauner2013-03-071-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch to using ICU ImmutableIndex, which is thread-safe and theoretically has faster lookups. Bug: Change-Id: Icd1f8b53c73f44fe71aeb99aefb9286405ea32d1
* | | | | | | Fix FastScrollingIndexCache testJay Shrauner2013-03-071-10/+8
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure the FastScrollingIndexCache instance used for the unit tests was created with the correct MockSharedPreferences Bug: Change-Id: I612638dadab394ea3ed8abbbe6f47de5f17601fe
* | | | | | Merge "Auto-update ContactsDB on ICU version change" into jb-mr2-devJay Shrauner2013-03-054-45/+182
|\ \ \ \ \ \
| * | | | | | Auto-update ContactsDB on ICU version changeJay Shrauner2013-03-044-45/+182
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Save current ICU version into the ContactsDB and rebuild locale specific data whenever the version changes. Bug: Change-Id: Id5fd3e178558dc903b522b2655c75e6aa353f6e5
* | | | | | | Merge "Reverting is_primary sort order back to previous priority." into ↵Chiao Cheng2013-03-041-2/+2
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | jb-mr2-dev