517d590dc73e5efcf7c94e2431faec2473924ca2 |
07-Jul-2017 |
Makoto Onuki <omakoto@google.com> |
Make CP2 low-ram friendly - Switch to ArrayMap|Set - No common nickname DB on lowram devices - Don't use WAL for profile DB, ever - Don't use WAL for contacts2.db on lowram devices Bug 63340057 Test: adb shell am instrument -w -e package android.provider.cts.contacts \ android.provider.cts/android.support.test.runner.AndroidJUnitRunner Test: bit ContactsProviderTests Change-Id: I16a6b41762874590c487ac82020bd1da7d7c0a0a
bQueryUtils.java
|
442d7200fb77e2a6d0d3c8d1b17b3b8090581b02 |
06-Mar-2017 |
Makoto Onuki <omakoto@google.com> |
Don't use manifest receiver - Only use a runtime receiver to handle package broadcasts. We still do mostly the same tasks in the receiver. - Also remove the BG service used by the voicemail provider. - When the voicemail provider starts, remove records made by packages that have been uninstalled. - The package receiver was used to update GAL providers too. The previous CL already takes care of scanning GAL providers on startup. Test: adb shell am instrument -w com.android.providers.contacts.tests Bug 35388445 Bug 35385207 Change-Id: I743a769bd51e2acdbd13df1440cce04b35331fda
ackageUtils.java
|
e9e0f18594b4e346dede853073cf7488ee8d86ee |
08-Sep-2016 |
Chris Smith <cjs@google.com> |
Make DbQueryUtils.escapeLikeValue() escape escape chars. If the escape char we choose is present in the value it also needs to be escaped for it to be treated literally. From the SQLite docs: The escape character followed by a percent symbol (%), underscore (_), or a second instance of the escape character itself matches a literal percent symbol, underscore, or a single escape character, respectively. Change-Id: Id3e401576ced26b69fe9f06d8f462733faad330e
bQueryUtils.java
|
d2f3ed91e988e487ab4213c5c27659097d490c18 |
10-Feb-2016 |
Ricky Wai <rickywai@google.com> |
Fix failed enterprise unit tests in CP2 Changes: - queryCorpContactsProvider will throw exception if it receives non-cp2 query - Resolved the conflicts between ag/861964 and ag/861953 so test cases will check empty cursor not null cursor - Remove getCorpUserHandle(c) in tests as no code using it. (Proguard will stripped out unused method in CP2 and cause test fails) Bug: 27114665 Change-Id: I33e87ada0bc1b62174c9a0d9df8840ba3fa23a3c
serUtils.java
|
9be8c68e62112d607d0f31066df8c0b9c9587340 |
14-Jan-2016 |
Victor Chang <vichang@google.com> |
Merge "Create a new device policy for controlling work contacts search"
|
6040ab71df843cbb9562ded8b819bfff1c0d9838 |
05-Jan-2016 |
Victor Chang <vichang@google.com> |
Create a new device policy for controlling work contacts search Extra things: 1. fixed b/26399207 2. ContactsActor.java is changed to avoid failed unit test because of using getSystemService(serviceClass) in EnterprisePolicyGuard 3. Make ContactsProvider2.sUriMatcher and all uri codes public BUG=25981902, 26399207 Change-Id: I0025b809a39ff31663a15cfbcdfd087a98187c44
serUtils.java
|
dc653a5c1bed274512ce41e4a6129a65d2b0eeac |
22-Dec-2015 |
Makoto Onuki <omakoto@google.com> |
Move CallLog and VoiceMailStatus to their own DB. - Move the "calls" and "voicemail_status" tables to the new "calllog.db" database. - Migrate all data into it. - Remove the old tables in contacts2.db - VoicemailContract.Status.SOURCE_PACKAGE is no longer UNIQUE Bug 26247586 Change-Id: I003d49b8fb150c21a34830bc62e8c816ce2cd8cd
ropertyUtils.java
|
400e50c1efeb601f6162bd829fdf33e9dc5252f6 |
13-May-2015 |
Makoto Onuki <omakoto@google.com> |
Clean up permissions - All permission checks now always pass if the caller is self. - Remove uses-permissions that're enforced by self. Bug 20927020 Change-Id: I985338495ed947d317f37e1a8d674a40c5e6bfe4
ontactsPermissions.java
|
42d5b79db882739368b163f4d5f61546d134cdbb |
27-Mar-2015 |
Ricky Wai <rickywai@google.com> |
Remove caller-id check in enterprise phone and raw contacts entities Bug: 19990833 Change-Id: Ibba3a0594262b975b3b4fdd4ebd1fcf1e40ff98a
serUtils.java
|
abaa423fa15f00b07b9c92c16ee186c909cac145 |
23-Jan-2015 |
Kenny Guy <kennyguy@google.com> |
Fix cross profile caller id to use manager profiles userid. Cross profile caller id was checking myUserId when deciding whether to allow caller id from manged profiles where it should have used the managed profiles userid. Bug: 19122752 Change-Id: I230fc933655cd9464d00b619a383ff0682660c12
serUtils.java
|
b0828df351e8b261ab36c8af37929bf3d9d6a4f9 |
17-Jul-2014 |
Makoto Onuki <omakoto@google.com> |
Check DPM.getCrossProfileCallerIdDisabled in caller-id - Also add a test for UserUtils - Also fix broken tests due to UserUtils. Bug 16467654 Bug 15779911 Bug 16458399 Change-Id: I64a4526b512fce94590b75eae037a8bdcd874064
serUtils.java
|
3b34457a4cc0d2c55676f366ddc673091a198adb |
17-Jul-2014 |
Yorke Lee <yorkelee@google.com> |
Sync call log entries from the primary user into the secondary user's call log On startup of a secondary user's call log provider, sync any call log entries from the primary user's call log that are: 1) Newer than the last sync time 2) Not a voicemail 3) Not a duplicate entry (identified by the number, and start time of the call) Bug: 16298776 Change-Id: I843dfd8dd5c9433942e610cbbc2dfed95c29dd1c
serUtils.java
|
a73b09bd8df85c93f1c95356efc1c41c103b11cc |
17-Jul-2014 |
Yorke Lee <yorkelee@google.com> |
Fix broken tests in CP2 Change-Id: I1c198cbf086c7f267178a26d2a50123a8edaec12
serUtils.java
|
d841fcb6aeb9fe7cb9454668bf641782f88f4382 |
16-Jul-2014 |
Makoto Onuki <omakoto@google.com> |
Address comments on commit 498944 Bug 15779911 Change-Id: I68ea7be682696efb40ff3bfc0ac615466402c8db
serUtils.java
|
5f9dbc1d2645f20ce883c11f6b2511503cecf8ce |
09-Jul-2014 |
Makoto Onuki <omakoto@google.com> |
Add the enterprise caller-id API Also Moved UserUtils to utils/ Bug 15779911 Change-Id: Ia4445772f12ebbc0f7832f3700c6fecf2ba13dd2
serUtils.java
|
ab2a24c126f35ae4aefb469f91094e5972abd8f0 |
11-Jul-2013 |
Chiao Cheng <chiaocheng@google.com> |
Do not allow updates to the _data column. 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
bQueryUtils.java
|
dacd5de146b413de86d38b6f56a3fe0b2af4b155 |
17-Nov-2012 |
Chiao Cheng <chiaocheng@google.com> |
Change default sort order for email queries. - Prioritizing "default" emails over last used emails. - Added ordering for same domain emails as last order by. Bug: 7183241 Bug: 7346215 Change-Id: I6a8ba3cfe08792693eec4896f16853a88713bc3f
bQueryUtils.java
|
ff91ec356f1b17dea095a880f61b8bc4ff333b1e |
18-Jul-2012 |
Makoto Onuki <omakoto@google.com> |
Tolerate crashes during re-aggregation. This CL consists of two parts: - Don't crash even if the name_lookup table contains malformed data. Just treat it as name-unmatch. - Don't crash even if an exception is thrown durign re-aggregation. Re-aggregation is not *that* important anyway, so in that case just bump the logic version and start the provider normally. (And even if we fail to bump the version number, just go ahead and continue.) Bug 6827136 Change-Id: Ifa3d4697c5d81f3480e0b8a9238b49312ac75e3b
ex.java
|
dfab50ecd585e55769dea451cb3a47ff69b8b86d |
14-Apr-2012 |
Makoto Onuki <omakoto@google.com> |
Fix and simplify data usage feedback Now it correctly updates both raw_contacts and contacts too, with fewer sqls and less memory. Bug 6326418 Change-Id: I89f0f92bae5bad5505b218eca2a29ae56b51fe7f
lock.java
|
eae25ef81bfe12946f50c72be9647447bb2a16b5 |
03-Apr-2012 |
Daniel Lehmann <lehmannd@google.com> |
Increase the photo size to 480x480 or 720x720, depending on device Bug:6202229 Change-Id: I98b38023585d154eccad302578f796a2318fd5b2
emoryUtils.java
|
81567f4a0f7c9c338506bd82f4d33e83c2ccf159 |
23-Mar-2012 |
Makoto Onuki <omakoto@google.com> |
Add new package aggregation.util Move aggregator related classes into it. Change-Id: I712fe07ad2bab1e532e3822e3e2797a199329865
ex.java
|
10178e5e0b9de566e04508b624a89860c61787d6 |
24-Nov-2011 |
Makoto Onuki <omakoto@google.com> |
Remove LegacyContactImporter Contact data migration from donut is no longer supported. Bug 5664971 Change-Id: I01c56752d93bb0f8e2a0e6ff81285f1971a7c893
eededForTesting.java
|
9978b26dd17bb2b20b91101f1e4682604336b5f6 |
15-Nov-2011 |
Flavio Lerda <flerda@google.com> |
Use integer constant when adding filtering clause. Currently we are quoting an integer constant when generating the filtering clause that excludes voicemails from the set of calls returned to applications querying the default call log URI. Pass the integer to the helper function, so that we can avoid quoting. Change-Id: I1e460d2c8d3b04047cf4a1f4e1209b3e4ba5053b
bQueryUtils.java
|
aafbe295d67686870c64c74a59e589d1dfb506fa |
20-Jun-2011 |
Debashish Chatterjee <debashishc@google.com> |
Introduced query param 'include_voicemails' for call_log uri. - by default only call entries (i.e. no voicemails) are returned. - if include_voicemails is set to true then also include voicemail records, but only if the caller has full voicemail permission. - voicemail record can only be inserted through call_log provider if include_voicemails is set. Change-Id: I98f6778ace64fa752dc0525c5ce4e5eb83b2e689
bQueryUtils.java
electionBuilder.java
|
00e7c94b70f4b477653534dbe559d1759d796157 |
16-Jun-2011 |
Debashish Chatterjee <debashishc@google.com> |
Added checks in voicemail provider to not expose call_log fields. - Voicemail provider now has check to ensure that no field outside of its projection is accesible. - Moved functionality to check ContentValues against a projection map to DbQueryUtils. - Associated test cases. Change-Id: I23033c96f74f0ab981152f70e585c69ba5284602
bQueryUtils.java
|
52e8d24f8492116f0b49b147576ce13a5f913aa2 |
13-Jun-2011 |
Debashish Chatterjee <debashishc@google.com> |
Voicemail provider implementation within ContactsProvider. - New voicemail provider class - all voicemail operations restricted to only 'voicemail' call type. - new voicemail permissions (currently defined in the manifest file itself) Change-Id: I32b916c5b4a53e93bafbecf7df7bee3f5e27fee6
loseUtils.java
bQueryUtils.java
ypedUriMatcher.java
ypedUriMatcherImpl.java
riType.java
|