Commit Graph

29751 Commits

Author SHA1 Message Date
Hall Liu
97363dce3c Merge "Hide APIs introduced in earlier commit" into rvc-dev 2020-03-12 01:31:41 +00:00
TreeHugger Robot
592181386c Merge "Making time-zone an API constant" into rvc-dev 2020-03-12 01:23:28 +00:00
Daniel Bright
50b916bd53 Merge "Remove PHONE_TYPE_IMS and PHONE_TYPE_THIRD_PARTY as apis" into rvc-dev 2020-03-12 00:33:51 +00:00
Jayachandran Chinnakkannu
dd3768ed8c Merge "Remove API getDefaultSimCountryIso() as per API council feedback" into rvc-dev 2020-03-11 21:53:08 +00:00
TreeHugger Robot
27c83fce04 Merge "add permission requirement for java writeData method" into rvc-dev 2020-03-11 21:49:27 +00:00
TreeHugger Robot
8ca61d7cd3 Merge "change getActiveAndHiddenSubscriptionInfoList API name" into rvc-dev 2020-03-11 20:54:07 +00:00
TreeHugger Robot
b6e24590fd Merge "READ_PHONE_STATE permission for isModemEnabledForSlot" into rvc-dev 2020-03-11 20:50:15 +00:00
Daniel Bright
87941e4fa1 Remove PHONE_TYPE_IMS and PHONE_TYPE_THIRD_PARTY as apis
Removing api status to several apis created during telephony mainline in R.

Bug: 147465477
Test: make
Change-Id: I6d394fae478ef62769147beaeb944771a67aca70
2020-03-11 11:59:03 -07:00
Hai Shalom
43cae91e96 Merge "[SAE] Remove support for SAE Password identifier from API surface" into rvc-dev 2020-03-11 18:25:44 +00:00
Julia Reynolds
34621b08e3 Merge "Increase test coverage for NotificationChannel" into rvc-dev 2020-03-11 17:14:42 +00:00
Philip P. Moltmann
093ba7e506 Merge "Allow to exempt apps from restrictions to RECORD_AUDIO" into rvc-dev 2020-03-11 16:11:16 +00:00
Jorim Jaggi
8dc835316a Merge "Add OnControllableInsetsChangedListener" into rvc-dev 2020-03-11 13:33:33 +00:00
TreeHugger Robot
b6b55e8024 Merge "wifi: Update annotation to network setting permission for getSoftApConfiguration" into rvc-dev 2020-03-11 11:05:37 +00:00
TreeHugger Robot
a9caa7d016 Merge "Rename LightsManager.setLights to requestLights" into rvc-dev 2020-03-11 09:06:01 +00:00
TreeHugger Robot
342f72063a Merge "Rollback @SystemApi on ApnSetting" into rvc-dev 2020-03-11 05:46:07 +00:00
TreeHugger Robot
a865f9e172 Merge "DO NOT MERGE Implement suggested changes in API review for permission mainline." into rvc-dev 2020-03-11 05:40:27 +00:00
TreeHugger Robot
f414c083dd Merge "Undo commit "Expose constants in Telephony.Carriers"" into rvc-dev 2020-03-11 05:39:55 +00:00
Daniel Bright
0080b55bc5 Merge "Rollback SystemApis for Mainline" into rvc-dev 2020-03-11 03:44:01 +00:00
Hall Liu
dbb17f1754 Hide APIs introduced in earlier commit
Fixes: 151184696
Test: NA
Change-Id: I5ad3229158a140c4d27cb3bd9b608e7dc165a044
2020-03-10 18:35:04 -07:00
Suprabh Shukla
2e7408eddb Making time-zone an API constant
This is already effectively an API the way it is documented.
Updating all the references of the hard-coded constant.

Test: make update-api && make

Bug: 151112929
Change-Id: Iadeb03c516215cfc51bc8604b67250348d5a4375
2020-03-10 18:05:02 -07:00
David Su
6945c01f1a WifiP2pManager.setMiracastMode(): Remove CONNECTIVITY_INTERNAL permission
The permission annotation is stale. Only the
CONFIGURE_WIFI_DISPLAY permission is checked.

Bug: 151091657
Test: compiles
Change-Id: I6f7cbf8910e5f9e6830d3cb8ba686ca17616fb19
2020-03-11 00:55:56 +00:00
David Su
72ec4f1e80 Merge "WifiManager.factoryReset(): Fix incorrect permissions annotation" into rvc-dev 2020-03-11 00:54:33 +00:00
TreeHugger Robot
60a6e43a74 Merge "Unexpose unnecessary SysUI APIs" into rvc-dev 2020-03-11 00:42:51 +00:00
Hai Shalom
e7095d92bf [SAE] Remove support for SAE Password identifier from API surface
Remove support for SAE Password identifier from API surface due to
privacy vulnerabilities that exist in the protocol.

Bug: 150897608
Test: atest WifiConfigurationTest
Test: Manually connect to SAE network without password id
Change-Id: I40ebf7720ee51ddf264d4f256a1a75b03f1a6ca6
2020-03-10 17:35:48 -07:00
Eugene Susla
4256be1c69 Merge "Make WifiDeviceFilter.Builder.setSsid's arg @NonNull" into rvc-dev 2020-03-11 00:31:45 +00:00
Sarah Chin
76182efa9f Merge "Unexpose getDataRoamingFromRegistration API" into rvc-dev 2020-03-10 23:58:26 +00:00
TreeHugger Robot
8ed01d4075 Merge "Android WebView: Deprecate unsafe file urls APIs" into rvc-dev 2020-03-10 23:54:12 +00:00
TreeHugger Robot
abda4964c5 Merge "Tuner API: remove TsFilterConfiguration.Builder" into rvc-dev 2020-03-10 23:32:36 +00:00
Jeff Sharkey
a7a96ad6f8 Merge "Give hidden API behavior to legacy apps." into rvc-dev 2020-03-10 23:03:41 +00:00
Jeff Sharkey
8b0cff7108 Give hidden API behavior to legacy apps.
Starting in R, there is a new public API overload that delivers a
flags argument.  Some apps may be relying on a previous hidden API
that delivered a userId argument, and this change is used to control
delivery of the new flags argument in its place.

There are dozens of these hidden API users are in the system UID,
either in the system process or the Settings app, so we hard-code
giving them the legacy behavior, since refactoring would be messy
between internal and AOSP branches.

Also adjust incoming and outgoing method signatures to use slightly
more flexible Collection<Uri>, which has handy methods like
contains() and isEmpty().

Bug: 150939131
Test: atest --test-mapping packages/providers/MediaProvider
Test: atest FrameworksServicesTests:com.android.server.devicepolicy.DevicePolicyManagerTest
Exempt-From-Owner-Approval: trivial refactoring
Change-Id: If6a77449e19215cf1c60d4217e62fc04b0959bfc
2020-03-10 16:36:21 -06:00
Daniel Bright
d8b1c8b283 Rollback @SystemApi on ApnSetting
* Remove @SystemApi from ApnSetting.TYPE_*
* Remove @SystemApi from ApnSetting.getApnTypesStringFromBitmask

Bug: 147465477
Test: make \ flash
Change-Id: Ifc781ae494968fbaad8c591dbd990d397e0d733b
2020-03-10 15:08:12 -07:00
David Su
33fd07332d WifiManager.factoryReset(): Fix incorrect permissions annotation
CONNECTIVITY_INTERNAL permission is not checked,
instead NETWORK_SETTINGS is checked.
Updated the annotation accordingly.

Bug: 151091657
Test: compiles
Change-Id: I20b73d695feefdd666be4e6894db981c39ad6b06
2020-03-10 21:59:44 +00:00
Mingguang Xu
ad7b6bbf79 Merge "Extension API: Comments from API review council are addressed" into rvc-dev 2020-03-10 21:54:41 +00:00
David Su
26db1f9278 Merge "WifiManager.getCountryCode(): Change permission to NETWORK_SETTINGS" into rvc-dev 2020-03-10 21:24:51 +00:00
Philip P. Moltmann
b73aa1e008 Merge "Rename AppOpsCollector -> OnOpNotedCallback" into rvc-dev 2020-03-10 21:03:21 +00:00
TreeHugger Robot
2785cbd047 Merge "Make TelephonyManager.getCdmaEriInformation and CdmaEriInformation hide@" into rvc-dev 2020-03-10 20:24:58 +00:00
Sooraj Sasindran
4f1db18325 READ_PHONE_STATE permission for isModemEnabledForSlot
Specify READ_PHONE_STATE permission for isModemEnabledForSlot

Bug: 144791721
Test: make
Change-Id: I895f46671b0023b835239a661eea1881eb1ff48f
2020-03-10 20:14:28 +00:00
Sooraj Sasindran
40468064ed change getActiveAndHiddenSubscriptionInfoList API name
getActiveAndHiddenSubscriptionInfoList to getCompleteActiveSubscriptionInfoList

Bug: 144791721
Test: make
Merged-In: I6202c4039d858ccfed1d09e8b315d701bb571ccf
Change-Id: I6202c4039d858ccfed1d09e8b315d701bb571ccf
(cherry picked from commit feb6aa47b4)
2020-03-10 20:08:20 +00:00
Sarah Chin
ba01f23e9f Unexpose getDataRoamingFromRegistration API
Test: build
Bug: 148604865
Change-Id: I695645418d2babc1eb524a29b2054c1cd8f74da3
2020-03-10 12:40:40 -07:00
Daniel Bright
5dbd3c3b69 Undo commit "Expose constants in Telephony.Carriers"
Undid carrier constants as @SystemApis.  Also had to move
constants out of annotation.java because any references in
that specific file need to be to public APIs.

Bug: 148170690
Test: make, flash
Change-Id: Ie4b827563dbc373c58ec805bc5400e0950b5b81e
2020-03-10 12:27:16 -07:00
Nate Myren
e9b4b0009b Merge "Add intent for auto revoke UI" into rvc-dev 2020-03-10 18:55:52 +00:00
Philip P. Moltmann
5892a8f7b0 Rename AppOpsCollector -> OnOpNotedCallback
and annotate time values used by this area of code correctly.

Fixes: 150699068
Test: Only renames
Change-Id: Ibd5b08900d6855603e7ce59048587d391a5c5410
2020-03-10 11:50:00 -07:00
Jayachandran C
5e36c82b96 Make TelephonyManager.getCdmaEriInformation and CdmaEriInformation hide@
Bug: 147839123
Test: Basic telephony testing
      atest frameworks/base/packages/SystemUI/tests
Change-Id: I648b9b2acccaf835adab7c5d813c3728b7320d94
2020-03-10 10:56:49 -07:00
Philip P. Moltmann
ad787aa128 Allow to exempt apps from restrictions to RECORD_AUDIO
- Extend the concept if "isPrivilidged" to a generic "RestrictionBypass"
  class so that we can add more variants of bypassing.
- Add a new way of bypassing by using a new permission.
- Always except resolvable UIDs (root, shell, media_uid, audioserver,
  cameraserver, system server) from restrictions.

Fixes: 141210120
Test: atest -m CtsAppOpsTestCases FrameworksMockingServicesTests:AppOpsServiceTest FrameworksMockingServicesTests:AppOpsUpgradeTest
Change-Id: I3ca555e9370aa0003400429ee7ab12e95c62a042
2020-03-10 10:06:02 -07:00
Zimuzo Ezeozue
f46b9c9656 Merge "Add API for apps to query whether they have All Files Access" into rvc-dev 2020-03-10 17:03:16 +00:00
Songchun Fan
a2ef115c0f add permission requirement for java writeData method
Write data to an installation file requires INSTALL_PACKAGES permission.

Test: builds
BUG: 149299379
Change-Id: I8e6d6681cc26b748375cc1a0569033a18c3bb670
2020-03-10 10:00:09 -07:00
Jorim Jaggi
ed35b1779b Add OnControllableInsetsChangedListener
It's useful for apps to know which inset types they can currently
control, as otherwise they have to poll by calling
controlInsetsAnimation repeatedly.

This can be used when apps want to apply a custom animation
immediately during startup as soon as possible.

Fixes: 150780468
Test: InsetsControllerTest
Test: CTS will be added soon
Test: WindowInsetsActivity
Change-Id: Ic0388c11d759843d3ac9edd8ef23904c9ce05c46
2020-03-10 12:23:58 +00:00
Kyunglyul Hyun
dae3eea890 Merge "Add MediaRouter2#stop" into rvc-dev 2020-03-10 11:53:05 +00:00
shafik
8187065889 Add API for apps to query whether they have All Files Access
This is a fix in response to developers' feedback on DP1.
Add Environment API that enables apps to check whether they have All
Files Access special app access. The API encapsulates the actual
mechanics of the check, which are as follows:
    * First check MANAGE_EXTERNAL_STORAGE app-op,
      if it's allowed, return true. If it's denied (ignored or errored),
      return false.
    * If the mode is default, then check for MANAGE_EXTERNAL_STORAGE
      permission, if it's GRANTED (not just declared), then return true,
      else return false.

Also add test.

Test: atest EnvironmentTest # not CTS
Fix: 150115615
Merged-In: I0574827c22960bf8f074313d983f289be7142149
Change-Id: I0574827c22960bf8f074313d983f289be7142149
2020-03-10 11:47:56 +00:00
Robin Lee
e51b6e1cff Rename LightsManager.setLights to requestLights
Per API feedback on clarifying that while we strive our best to provide
excellent service to our customers, we cannot fulfil all of their orders
at once.

Fix: 150332011
Change-Id: Iac156ea5cb312cce16fbaf10fc1f8bcd6743d377
2020-03-10 11:29:25 +01:00