Commit Graph

5523 Commits

Author SHA1 Message Date
Zoey Chen
3fcd72ed0a Merge "[TelephonyMainline] Cannot remove AUTHORITY_URI from the public API." 2019-12-05 03:49:33 +00:00
Bernardo Rufino
ee7d195f03 Merge "Add MANAGE_APP_OVERLAY_PERMISSION intent action" 2019-12-04 10:42:34 +00: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
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
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
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
Adrian Roos
1c2e9a19f8 DeviceConfig: Split android:window_manager into android and window_manager
The keys are split according to whether they affect the system as a whole,
or simply the inner workings of the window manager.

Also encapsulates WindowManagerConstants properly and adds testing.

Bug: 139735771
Test: atest WindowManagerConstantsTest
Change-Id: I67c96a2bdd3140fe2ff9c6832d2d69f2e57115e2
2019-11-20 13:29:26 +01:00
Meng Wang
6ed110171e Merge "Do not use hidden telephony API PhoneConstants.PRESENTATION_*" am: 9636d7e3af am: 9e294c69d3
am: 40a2f98c71

Change-Id: Ie2426fd71273e2b48924e8c096b07409cfaed20e
2019-11-19 22:20:19 -08:00
Meng Wang
40a2f98c71 Merge "Do not use hidden telephony API PhoneConstants.PRESENTATION_*" am: 9636d7e3af
am: 9e294c69d3

Change-Id: Iddbe0533660d30d86ee932b481020b85eb91e176
2019-11-19 22:13:30 -08:00
Meng Wang
9e294c69d3 Merge "Do not use hidden telephony API PhoneConstants.PRESENTATION_*"
am: 9636d7e3af

Change-Id: Id83ddc2f1b6d686e6249132f0e32b5a109e180cb
2019-11-19 22:07:44 -08:00
Treehugger Robot
9636d7e3af Merge "Do not use hidden telephony API PhoneConstants.PRESENTATION_*" 2019-11-20 04:26:47 +00:00
Zoey Chen
7d4cb3c5d3 Merge "[Telephony mainline] Add SystemApi and NonNull annotation" 2019-11-20 04:23:26 +00:00
Vishnu Nair
6ce1e002d2 Make Settings.Global.HIDE_ERROR_DIALOGS a TestApi
Required to test ANR

Fixes: 144724475
Test: run cts -m CtsWindowManagerDeviceTestCases -t android.server.wm.AnrTests
Change-Id: I02ef51790a630c9cead7e66eca58d107d77e95db
2019-11-19 17:25:21 -08:00
Meng Wang
91e4cc8a7c Do not use hidden telephony API PhoneConstants.PRESENTATION_*
Replaced with TelecomManager.PRESENTATION_*

Bug: 140908357
Test: make
Change-Id: Ib7c2531d69b14307e17ed5dd62f3aa8d56153330
2019-11-18 17:03:02 -08:00
zoey chen
fa86d5a012 [Telephony mainline] Add SystemApi and NonNull annotation
Bug: 143860012
Test: make
Change-Id: I619d6ba04cb28830e3995feb02ffcb592ff65818
2019-11-18 15:56:21 +08:00
Goven Liu
b75323eb34 Merge "[Wi-Fi] Add intent action & extra keys & result codes for add networks." 2019-11-18 04:33:17 +00:00
Robert Horvath
993e82eec7 Merge "Add setting to go to sleep after long user inactivity" 2019-11-15 15:05:15 +00:00
Alan Stokes
096757a77f Merge "Remove instant apps access to verifier consent setting." 2019-11-14 09:35:41 +00:00
Jeff Sharkey
97d3ca1e8f Merge changes from topic "legacycodez"
* changes:
  Progress towards splitting MediaProvider UID.
  Progress towards splitting MediaProvider UID.
2019-11-13 20:53:45 +00:00
Artur Satayev
79aff5c601 Merge "Add @UnsupportedAppUsage to test apis that are known to be used by apps." am: a98026f7aa
am: 59318bab67

Change-Id: Ic691d764839ecf34daa8b53aa92497e013c9a2a7
2019-11-13 10:40:54 -08:00
Artur Satayev
59318bab67 Merge "Add @UnsupportedAppUsage to test apis that are known to be used by apps."
am: a98026f7aa

Change-Id: Ia39fbc2200aa7262e4a05b0710b7a382bb01b276
2019-11-13 10:33:06 -08:00
TreeHugger Robot
bc7671b9fb Merge "Add @UnsupportedAppUsage to test apis that are known to be used by apps." 2019-11-13 15:46:27 +00:00
Alan Stokes
698eb16409 Remove instant apps access to verifier consent setting.
This setting should be private to GPP, and there should be no reason
for any app to access it.  And GPP is migrating away from this
relatively public setting, so it can't be relied upon.

Test: Builds
Bug: 135751498
Bug: 37119785
Change-Id: I839c2d67ae54b4df184ea7ee1c7aebee72c6e794
2019-11-13 15:44:00 +00:00
Artur Satayev
5a525851a8 Add @UnsupportedAppUsage to test apis that are known to be used by apps.
go/testapi-enforcement

Bug: 133832325
Test: m
Change-Id: Ifc8db120640a1554dcbf1722e61e09c7ddc65dd6
Merged-In: Ifc8db120640a1554dcbf1722e61e09c7ddc65dd6
2019-11-13 15:05:56 +00:00
Julia Reynolds
6f08e137e5 Merge "Constants for NLS specific approval screens in Settings" 2019-11-13 14:02:39 +00:00
Artur Satayev
f0b7d0ba51 Add @UnsupportedAppUsage to test apis that are known to be used by apps.
go/testapi-enforcement

Bug: 133832325
Test: m
Change-Id: Ifc8db120640a1554dcbf1722e61e09c7ddc65dd6
Merged-In: Ifc8db120640a1554dcbf1722e61e09c7ddc65dd6
2019-11-13 12:58:29 +00:00
Jeff Sharkey
ab0a97220a Progress towards splitting MediaProvider UID.
We're working towards making MediaProvider into a Mainline module,
which means it can no longer share the "android.media" UID built
into the OS.  The major reason for this is because they're signed
with separate keys, but a secondary reason is that we don't know what
database customizations an OEM has performed in their MediaProvider.

This initial pass introduces the APIs needed to support a "legacy"
MediaProvider that will be used to migrate data between the old and
new UID.  This legacy provider is implemented using the same code
as the modern provider, but hosted at the "media_legacy" authority.

Bug: 144247087
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Ibc38a786799e138e9c3e31297c7066bab6843d89
2019-11-12 15:48:52 -07:00
Bernardo Rufino
cf4d35c664 Merge "Remove instructions for specifying package in ACTION_MANAGE_OVERLAY_PERMISSION" 2019-11-12 10:03:23 +00:00
Tyler Gunn
8468fd875d Merge "More telephony updates for mainline." am: 5be8504888
am: 0f0dfaca35

Change-Id: I77fdb0953ef799cbd44db16b797fef7386a71cd7
2019-11-11 19:50:28 -08:00
Tyler Gunn
0f0dfaca35 Merge "More telephony updates for mainline."
am: 5be8504888

Change-Id: Ifbe3370b075651738e26c613c914dfb8e5ab3338
2019-11-11 19:41:26 -08:00