Commit Graph

5547 Commits

Author SHA1 Message Date
Jeff Sharkey
5e374476c4 Adjust policy for "stale" volumes outside module.
We're not ready to commit to VolumeRecord in an API surface, so the
next best choice we have is to place the logic in MediaStore, which
is outside the Mainline module boundary.

This also has the benefit of giving partners control over exactly
what policy they want to use for expiring stale volumes.

Bug: 137890034
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I677e4bfa6d08e32775e02c323debbaa90acf632b
2019-12-06 17:52:16 -07:00
Meng Wang
0bcd19acdb Merge "Remove telephony API usage: PhoneConstants.SUBSCRIPTION_KEY" am: ddf215dd58 am: cb0d068f28
am: 4f47555359

Change-Id: Iafa9facfbb0759916cd414b23da19f9a3c367a55
2019-12-06 00:25:55 -08:00
TreeHugger Robot
cf87cafa19 Merge "Bug report handler app via Bug Report Shortcut" 2019-12-06 01:45:31 +00:00
Meng Wang
4f47555359 Merge "Remove telephony API usage: PhoneConstants.SUBSCRIPTION_KEY" am: ddf215dd58
am: cb0d068f28

Change-Id: If502b6af63c532f5c87b384096680f7435018874
2019-12-05 15:37:24 -08:00
Alex Lin
a1248d313c Merge "Add country blacklist support" 2019-12-05 23:37:04 +00:00
Meng Wang
ddf215dd58 Merge "Remove telephony API usage: PhoneConstants.SUBSCRIPTION_KEY" 2019-12-05 23:23:51 +00:00
Jeff Sharkey
6697c2fe1c Merge changes from topic "matchz"
* changes:
  Add QUERY_ARG_RELATED_URI to aid media placement.
  Introduce QUERY_ARG_MATCH_* values for filtering.
2019-12-05 22:07:57 +00:00
Paul Chang
c40f578d02 Bug report handler app via Bug Report Shortcut
- Send intent (android.internal.intent.action.BUGREPORT_REQUESTED) to bug report handler app after pressing Bug Report Shortcut
- Add config "config_bugReportHandlerEnabled" to enable this feature
- Add config "config_defaultBugReportHandlerApp" to get the package of default bugreport handler app
- Add settings CUSTOM_BUGREPORT_HANDLER_APP to get the package of custom bugreport handler app
- Add settings CUSTOM_BUGREPORT_HANDLER_USER to get the user id of custom bugreport handler app

BUG:142921485
Test: After pressing Bug Report Shortcut in manual local test:
- the intent can be sent to bugreport handler app.
- the intent can be sent to Shell if the chosen and the default bugreport handler app can't handle it.
- the intent can be sent to system user profile's default bugreport handler app if the custom profile(like work profile) is removed.
Change-Id: Idc33b47f0cc65b90cbf648bda54a1d900fef007a
2019-12-06 05:52:09 +08:00
Meng Wang
646dcbd0ed Remove telephony API usage: PhoneConstants.SUBSCRIPTION_KEY
Replaced with SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX. Both are set
in Intent extras by SubscriptionManager#putPhoneIdAndSubIdExtra.

Bug: 140908357
Test: make
Change-Id: I54a65ef81acc68c34af6263e929634f15f05e494
2019-12-05 12:12:20 -08:00
Zoey Chen
aeab4bda93 Merge "[Telephony mainline] Add SystemApi and NonNull annotation" am: 8e708ff380
am: ae95a26703

Change-Id: Id649a4f73b750d957eaa11b7ddf350c62b0d354a
2019-12-05 00:16:29 -08:00
Zoey Chen
8e708ff380 Merge "[Telephony mainline] Add SystemApi and NonNull annotation" 2019-12-05 07:58:03 +00:00
SongFerng Wang
1e7dc81c59 Merge "ServiceState merges voice and data into a single value" 2019-12-05 06:36:18 +00:00
Zoey Chen
3fcd72ed0a Merge "[TelephonyMainline] Cannot remove AUTHORITY_URI from the public API." 2019-12-05 03:49:33 +00:00
Alex Lin
7dd53c9aef Add country blacklist support
Adding a country blacklist, except for pixel2(walleye, taimen) will still uses whitelist
Bug: 144702079
Test: manually tested

Change-Id: I21c146556e5406ecf5c72f74767ea8d5fc643aec
2019-12-04 13:53:25 -08:00
Jack Yu
b496fd8765 Merge "Added sub id to SmsCbMessage" am: 258e925cd6
am: 35132f9a21

Change-Id: Ia2e5933ffc493c69efbac8da2ab993281e31867b
2019-12-04 09:47:53 -08:00
Jack Yu
258e925cd6 Merge "Added sub id to SmsCbMessage" 2019-12-04 17:34:01 +00:00
SongFerngWang
2b1ea8dcaf ServiceState merges voice and data into a single value
The voice and data is the same for operator name at ServiceState.
So ServiceState merges voice and data into a single value.
- merge the voice and data OperatorAlphaLong,OperatorAlphaShort, and
OperatorNumeric.

Bug: 144663018
Test: Build pass.
      atest NetworkControllerDataTest (PASS)
      atest ServiceStateTest (PASS)
      atest TelephonyMetricsTest (PASS)
      atest ServiceStateProviderTest (PASS)

Change-Id: I67e4a822c792bf9a9e174146ef8d65d9927d7612
2019-12-04 21:06:20 +08:00
Bernardo Rufino
ee7d195f03 Merge "Add MANAGE_APP_OVERLAY_PERMISSION intent action" 2019-12-04 10:42:34 +00:00
zoey chen
1acbb9c031 [Telephony mainline] Add SystemApi and NonNull annotation
Bug: 143860012
Test: make
Change-Id: I619d6ba04cb28830e3995feb02ffcb592ff65818
Merged-In: I619d6ba04cb28830e3995feb02ffcb592ff65818
2019-12-04 11:40:07 +08:00
zoey chen
9ffc6559a7 [TelephonyMainline] Cannot remove AUTHORITY_URI from the public API.
Bug: 143860012
Test: make
Change-Id: I952a5f20a1c34b3f1cabeb8c2bde6e2b85f4993d
2019-12-04 11:39:51 +08:00
Jack Yu
29dfebb84c Added sub id to SmsCbMessage
Added a new field subscription id to SMS
cell broadcast message.

This is the preliminary step of deprecating
CellBroadcastMessage class.

Bug: 144891074
Test: Manual

Merged-In: I23f61e77f6a9a16ce77f7892ba96fd7485c555a4
Change-Id: I23f61e77f6a9a16ce77f7892ba96fd7485c555a4
(cherry picked from commit 750b8b1972)
2019-12-03 11:43:59 -08:00
Jack Yu
fe903fb842 Merge "Code clean up" 2019-12-03 19:10:34 +00:00
Alan Stokes
a5ca0cc2c1 Merge "Delete PACKAGE_VERIFIER_ENABLE setting." 2019-12-03 12:22:19 +00:00
Jack Yu
21effc8643 Code clean up
Remove database version 1~11 support since the format hasn't changed
in the past 7 years.

Bug: 135956699
Test: Manual
Change-Id: I367124471f16073bb47a31c094d161d36969acc1
2019-12-02 23:38:26 -08:00
Zongheng Wang
4d701d0101 Merge "Move Bluetooth specfic APIs called in Settings to BT DatabaseManager" am: 3908351777
am: 6b30bf8a7f

Change-Id: I237a8c05c9e09cc09a4a096734c6af556b9bc283
2019-12-02 14:19:52 -08:00
Zongheng Wang
6b30bf8a7f Merge "Move Bluetooth specfic APIs called in Settings to BT DatabaseManager"
am: 3908351777

Change-Id: I75c245ec452cc8b3918143500ea7f1dad7b0baa7
2019-12-02 14:15:58 -08:00
Treehugger Robot
3908351777 Merge "Move Bluetooth specfic APIs called in Settings to BT DatabaseManager" 2019-12-02 22:07:21 +00:00
Zongheng Wang
02f82e233d Move Bluetooth specfic APIs called in Settings to BT DatabaseManager
Bug: 142004000
Test: Manual
Change-Id: I45f93ce35813fff9677c2d41e6f31622bc04ca09
Merged-In: I89b0ab44920b1deefe7523e5f19ed1c799c4c658
2019-12-02 19:53:08 +00:00
Bernardo Rufino
8fefb94621 Add MANAGE_APP_OVERLAY_PERMISSION intent action
In order to support system use-cases, such as when the user wants do
revoke SYSTEM_ALERT_WINDOW (SAW) permission via notification, we are
introducing a new intent, MANAGE_APP_OVERLAY_PERMISSION (notice the
"APP_"), that directs the user to the app-specific screen to toggle SAW
permission.

The intent can only be started if the caller has INTERNAL_SYSTEM_WINDOW
permission, which sysui and the system have. This is verified in CTS.

In this change we also update usage in NotificationGutsManager and
AlertWindowNotification.

Test: Builds
Test: atest TestManageOverlayPermissionIntents
      (cts in one of the topic CLs)
Test: Let an app draw on top of other apps, via its notification go to
      settings, verify that the screen for controlling such capability
      for the app is dispayed.
Bug: 145198756
Bug: 135920175

Change-Id: Iba29e1eaee729268a4dec9561946f6ed74b36619
2019-12-02 15:36:40 +00:00
TreeHugger Robot
0e4a72c35f Merge "Move Bluetooth specfic APIs called in Settings to BT DatabaseManager" 2019-11-28 03:46:40 +00:00
Zongheng Wang
eadcbd8f8a Move Bluetooth specfic APIs called in Settings to BT DatabaseManager
To resolve merge conflict for aosp/1175775

Bug: 142004000
Test: Manual
Change-Id: I89b0ab44920b1deefe7523e5f19ed1c799c4c658
2019-11-27 14:21:11 -08:00
Meng Wang
472a065d93 Merge "Move android.provider.Telephony to frameworks/base/core" am: 4d0df870cd am: 9b84a44f04
am: fba2c8041a

Change-Id: I9aab1a8bfe10a2fd661e0bd19452b4a66f6e1a2f
2019-11-27 13:44:06 -08:00
Meng Wang
fba2c8041a Merge "Move android.provider.Telephony to frameworks/base/core" am: 4d0df870cd
am: 9b84a44f04

Change-Id: Ib87b7648cf7cc19b267770a6f1fd910f751c7ab8
2019-11-27 13:38:32 -08:00
Meng Wang
9b84a44f04 Merge "Move android.provider.Telephony to frameworks/base/core"
am: 4d0df870cd

Change-Id: I1015777c7fa0e5b67ea3d9da4c14036842b527aa
2019-11-27 13:31:23 -08:00
Meng Wang
6b2264a1cb Move android.provider.Telephony to frameworks/base/core
Bug: 145232482
Test: make
Change-Id: I49a9e8b1b5e3c99f0ed84638fc9f79202b0189b3
2019-11-27 11:06:43 -08:00
TreeHugger Robot
06d5a4946b Merge "Add Settings flag to turn notif history on/off" 2019-11-27 09:44:02 +00:00
TreeHugger Robot
4da9fbe356 Merge "Secure FRP : Add a secure bit to know when the device is in secure FRP mode." 2019-11-26 17:56:45 +00:00
Simranjit Singh Kohli
2cebd529f3 Secure FRP : Add a secure bit to know when the device is in secure FRP mode.
Bug: 141262900
Test: atest SettingsProviderTest
Change-Id: Iabc1f699d6afd6a1524b37f992314b9b20463bc2
2019-11-26 06:34:12 -08:00
Julia Reynolds
e43fac3f26 Add Settings flag to turn notif history on/off
Test: atest
Bug: 137396965
Change-Id: I63af12171c792305a16c6d72e809bf8f15cd215c
2019-11-25 12:24:22 -05:00
Alan Stokes
0f2b7fd29a Merge "Delete PACKAGE_VERIFIER_USER_CONSENT from Settings." 2019-11-25 13:41:49 +00:00
Dan Sandler
486ad0d659 Action chips in share sheet. (DO NOT MERGE)
am: 0d3e358628

Change-Id: I0df785ea4279811fe4f556f67dde8e3c6cef98b0
2019-11-25 05:28:10 -08:00
Rhed Jao
a7ac868de8 Merge "Accessibility shortcut improvement (4/n)" 2019-11-25 03:53:24 +00:00
Dan Sandler
0d3e358628 Action chips in share sheet. (DO NOT MERGE)
Move the Copy button to a new row of chips below the
(now larger) preview. Optionally, if a proximity-sharing
service is installed, show that chip as well.

Bug: 143229724
Fixes: 144290152
Test: atest SystemUITests frameworks/base/core/tests/coretests
Change-Id: I0d6457df85bc937f72ca97da6b4b84b634a90daf
2019-11-24 23:39:49 +00:00
Jeff Sharkey
6d520a4903 Add QUERY_ARG_RELATED_URI to aid media placement.
We normally have strict rules about where media can be created to
help ensure that the user's content stays organized.  (For example,
"image/jpeg" can only be placed inside DCIM/ or Pictures/.)

However, when inserting an SD card from another device, it's pretty
common to find media outside of these well-defined top-level
directories.  Apps have been able to read and write pre-existing
content in these locations, but this change now provides a way for
apps to create new media "adjacent" to this pre-existing content,
subject to the following rules:

-- The top level MIME type must be in agreement.
-- The relative path on the device must be in agreement.

When a developer wants to perform an insert() which would normally
be blocked, they can provide a QUERY_ARG_RELATED_URI to allow that
operation to succeed, if it meets the rules above.

Bug: 131643582
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I7d678ee733023f5c5b55b5d18cdcde5a20116312
2019-11-23 16:11:18 -07:00
Jeff Sharkey
0fa31f6950 Introduce QUERY_ARG_MATCH_* values for filtering.
The existing strategy of methods like setIncludePending() doesn't
scale well for callers to use multiple matching strategies.  For
example, callers are interested in these matching strategies:

MATCH_EXCLUDE: Ensure that any matches are excluded.
MATCH_INCLUDE: Ensure that any matches are included.
MATCH_ONLY: Return only exact matches.

The reason why we have this menu of options is because the underlying
fields have different default behavior.  For example, "trashed" items
are naturally excluded by default, but "favorite" items are naturally
included by default.

Callers only interesting in listing "trashed" items or "favorite"
items shouldn't need to perform their own inefficient Cursor diffing
logic, so we give them these flexible arguments.

Adjust MediaProvider internals to apply these matcher values to
all update() and delete() calls, in addition to query().

Bug: 143432502
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I0d4bc063b8ea5ac2a602fab43a62c2de7724ba34
2019-11-23 10:54:10 -07:00
TreeHugger Robot
72672006c8 Merge "Make Settings.Global.HIDE_ERROR_DIALOGS a TestApi" 2019-11-22 22:09:36 +00:00
Matt Pape
e6bc101c5f Merge "Add DeviceConfig.setProperties method for atomic writing." 2019-11-22 17:19:28 +00:00
Alan Stokes
1a23ebdf22 Delete PACKAGE_VERIFIER_ENABLE setting.
It is no longer used anywhere in the framework. (It is sometimes used
by GPP, but that's fine; they don't use this constant.)

Bug: 135751498
Test: Still builds
Test: atest SettingsProviderTest
Change-Id: I52244fa096e70349165d435493cc758acc52ad68
2019-11-22 15:43:36 +00:00
Alan Stokes
31eb159690 Delete PACKAGE_VERIFIER_USER_CONSENT from Settings.
It isn't used anywhere in the framework, except by incidentd - that
usage is also removed.

Any such setting is private to the verifier and not the business of
the framework.

Test: atest SettingsProviderTest
Test: Still builds
Bug: 135751498
Change-Id: Ia6424d8ce811560e4ba72ada003dc08475d5123e
2019-11-22 14:57:55 +00:00
Matt Pape
4bd0a6a259 Add DeviceConfig.setProperties method for atomic writing.
This method accepts multiple flags and overrides the values of all flags
in the provided namespace atomically. If any listeners are registered
for that namespace it will also trigger a callback with all of the flags
that were changed (added, updated, or removed).

Test: atest FrameworksCoreTests:DeviceConfigTest
      atest FrameworksCoreTests:SettingsProviderTest
      atest SettingsProviderTest:DeviceConfigServiceTest
Bug: 136135417

Change-Id: I2e496a3807493750ba8891dd6390055c919b5f45
2019-11-21 14:51:17 -08:00