Commit Graph

26004 Commits

Author SHA1 Message Date
Soonil Nagarkar
68e6b3af88 Merge "Add Executor APIs to LocationManager" 2019-09-25 22:08:07 +00:00
Eran Messeri
3acf4a3e2d Merge "API for individual attestation" 2019-09-25 22:02:31 +00:00
Soonil Nagarkar
4551405b93 Add Executor APIs to LocationManager
Add executor support for all LM APIs and consolidate various GNSS
listeners. Also fixes some edge cases around multithreaded listener
callback delivery.

Bug: 136212299
Test: Manual
Change-Id: I2e863e41de846e739654362e859b58a5ed45c673
2019-09-25 20:56:48 +00:00
Rhed Jao
5fe60ddc58 Merge "Accessibility shortcut improvement (1/n)" 2019-09-25 03:45:48 +00:00
Jack Yu
01977b05e8 Merge "Added slot index version of getNetworkCountryIso" 2019-09-24 22:40:02 +00:00
Jayant Chowdhary
7f9a4c9e8c Merge changes from topic "system-camera-cts"
* changes:
  Allow com.android.shell to get RECORD_AUDIO permissions.
  CameraManager: Add @TestApi method getCameraIdListNoLazy().
2019-09-24 20:05:18 +00:00
Chen Xu
a56786981e Merge "new TelephonyRegistryManager" 2019-09-24 18:32:48 +00:00
Eran Messeri
da05c80d6b API for individual attestation
Introduce a new API to request use of individual attestation
certificate for attesting keys generated by the
DevicePolicyManager.generateKeyPair method.

It builds on existing device ID attestation capabilities in two ways:
(1) Eligibility check: Assuming similar privacy requirements for the use
    of individual attestation certificates, enforce the same conditions
    for using them as the conditions for requesting device identifiers
    in the attestation record.
(2) Keymaster interaction: Passing the right Keymaster tag to the
    attestKey call, which is easily done in AttestationUtils.

Bug: 136494773
Test: CTS test to be added.
Change-Id: Idb5cee66d986a521c17e1955532d0bfae66c035d
2019-09-24 18:14:05 +01:00
Roshan Pius
718a048728 Merge changes from topics "clientmodeimpl_api_cleanup", "remove_wifi_set_country_code_api", "wifimanager_async_remove"
* changes:
  TestLooper: Some changes to test looper behavior
  WifiManager: Remove setCountryCode API
  WifiManager: Remove async channel usage
2019-09-24 13:32:11 +00:00
Rhed Jao
a22da1b205 Accessibility shortcut improvement (1/n)
Adds ACCESSIBILITY_SHORTCUT_TARGET permission. The permission allows
an app to define the accessibility shortcut target.

Bug: 136293963
Test: atest PermissionPolicyTest
Change-Id: Ic400305c1cc52a26bfee740a2a0773e1e46beeec
2019-09-24 17:05:50 +08:00
Philip P. Moltmann
e30ed0599d Merge "Run RuntimePermissionProperty tests when runtime permissions change" 2019-09-24 03:48:06 +00:00
Hai Zhang
a4322fa166 Merge "Add FLAG_PERMISSION_REVOKED_COMPAT." 2019-09-23 22:46:42 +00:00
TreeHugger Robot
a886cd3fd9 Merge "Added new constructor to AudioGroup." 2019-09-23 20:46:07 +00:00
Hai Zhang
50a5a9bb64 Add FLAG_PERMISSION_REVOKED_COMPAT.
We used to store the actual permission state for pre-M apps in app
ops, which creates two different sources of permission state and is
hard to handle correctly. This change will allow us to store the
permission state for pre-M apps within permission as
FLAG_PERMISSION_REVOKED_COMPAT (and syncing app op state based on it),
and is part of the effort to support rollback of runtime permission
state managed by PermissionController.

Actually, we do set a REVOKE_ON_UPGRADE flag properly when user
grants/revokes a runtime permission for pre-M apps, so it can be used
for computing app op state. In the case where app ops are incorrectly
set to denied without setting this flag, the app won't get the
permission revoked upon upgrade to support runtime permissions, and is
stuck with the denied app op, so overriding the app op state in this
case is arguably fixing a bad state.

Since the proposed new flag will cover whatever REVOKE_ON_UPGRADE does
currently, and REVOKE_ON_UPGRADE did imply denying app op in its
javadoc, this change is simply adding our new flag by renaming
REVOKE_ON_UPGRADE.

Bug: 136503238
Test: manual
Change-Id: Ib910f4df543d2fd8de259a6675f043d870a6f4c1
2019-09-23 10:57:00 -07:00
Chen Xu
288b71c8c1 new TelephonyRegistryManager
today telephonyRegistry lives in system process
this is intended to persists all telephony listeners when
phone process crash. Telephony today notify system server by
using AIDL APIs directly. Instead, we are exposing a proper API
surface: telephonyRegistryManager where only phone app and
carrier privileged apps are allowed to use APIs in
TelephonyRegistryManger to notify telephony related status update.

Bug: 140908357
Test: Build & Manaul
Change-Id: I1b750751148925b4a7bd94553318907654012fc1
2019-09-22 19:56:39 -07:00
Brad Ebinger
10ad8b6353 Merge "Deprecate redundant IMS APIs in TelephonyManager." am: 8012f3df57 am: 2c8a876fd2 am: cf7c905b2e
am: 5e73ae3271

Change-Id: I74a00843013c032dcca9989892fa2b25f812fbcd
2019-09-21 02:07:18 -07:00
Brad Ebinger
5e73ae3271 Merge "Deprecate redundant IMS APIs in TelephonyManager." am: 8012f3df57 am: 2c8a876fd2
am: cf7c905b2e

Change-Id: I4b7de50f9c68ae0ac160e894027afc870c45bc8e
2019-09-21 02:00:42 -07:00
Brad Ebinger
cf7c905b2e Merge "Deprecate redundant IMS APIs in TelephonyManager." am: 8012f3df57
am: 2c8a876fd2

Change-Id: Ic5a4a4fd1fd411da8d88db50564bc3fcd5ee5a9c
2019-09-21 01:53:37 -07:00
Brad Ebinger
2c8a876fd2 Merge "Deprecate redundant IMS APIs in TelephonyManager."
am: 8012f3df57

Change-Id: Id940ff738b08d25a09efd2b624596c75ea90297f
2019-09-21 01:46:44 -07:00
Treehugger Robot
8012f3df57 Merge "Deprecate redundant IMS APIs in TelephonyManager." 2019-09-21 08:27:35 +00:00
Yunfan Chen
e7a1ac48f7 Merge "Remove animation background color" 2019-09-20 03:31:43 +00:00
Brad Ebinger
09494fc5f4 Merge "Allow ImsService to return network error codes" am: ba2cdfb222 am: 626b8b066c
am: 23a93d392e

Change-Id: Icfc2adb871ec7b079daa1d1099dd5fa5f9330333
2019-09-19 17:26:41 -07:00
Brad Ebinger
23a93d392e Merge "Allow ImsService to return network error codes" am: ba2cdfb222
am: 626b8b066c

Change-Id: I570a3946f1afcc8398c4bc689b443997056a571f
2019-09-19 17:12:08 -07:00
Brad Ebinger
626b8b066c Merge "Allow ImsService to return network error codes"
am: ba2cdfb222

Change-Id: I1bd120e8f799529f5cebee8489961eff5eb3342a
2019-09-19 16:51:34 -07:00
Rob Carr
9b1731f276 Merge "Fix WindowlessWm null check" 2019-09-19 23:42:12 +00:00
Robert Carr
8833ae89d5 Fix WindowlessWm null check
Fix careless mistake and also add end-to-end tests so that it doesn't happen again.

Bug: 134365580
Test: WindowlessWmTests
Change-Id: I4b22498faeb19d28f9f40daa8777f69efe6899ba
2019-09-19 16:39:24 -07:00
Brad Ebinger
8d1f9f55b0 Allow ImsService to return network error codes
Adds new API for SMS over IMS that allows the ImsService
to pass 3GPP TS 24.011 error codes from the network for
better debugging/metrics collection.

Test: manual
Bug: 138239529
Merged-In: I5d1f41b90595238011eb0d1dc0ae0415157bb469
Change-Id: I5d1f41b90595238011eb0d1dc0ae0415157bb469
2019-09-19 21:15:27 +00:00
Brad Ebinger
c8647b206e Merge "Allow ImsService to return network error codes" 2019-09-19 21:00:40 +00:00
Tyler Gunn
e6319649a8 Merge "Add Verstat support for incoming call number verification." 2019-09-19 17:25:53 +00:00
Yunfan Chen
93d522496d Remove animation background color
The background color was used to show while animating window transition.
This is no longer used, and it's safe to remove it.

Bug: 140913423
Test: go/wm-smoke

Change-Id: Ib8dc40c9762f4566ca21947579deb0d50990e8a5
2019-09-19 17:31:59 +09:00
TreeHugger Robot
5814cca135 Merge "Add notifySessionLifecycle() to ContentCaptureSession." 2019-09-19 01:01:51 +00:00
Jack Yu
a5fedc5c02 Added slot index version of getNetworkCountryIso
Added this API to get network country ISO so in SIM
absent case, we can get the information from the 2nd
phone.

Bug: 141128426
Test: CTS
Change-Id: Ib02e4d145cb39683bcb13d39715003095ad93eef
2019-09-18 16:30:07 -07:00
Brad Ebinger
30347b2f9d Allow ImsService to return network error codes
Adds new API for SMS over IMS that allows the ImsService
to pass 3GPP TS 24.011 error codes from the network for
better debugging/metrics collection.

Test: manual
Bug: 138239529
Change-Id: I5d1f41b90595238011eb0d1dc0ae0415157bb469
2019-09-18 15:25:38 -07:00
Tyler Gunn
db46fa3cb7 Add Verstat support for incoming call number verification.
Update ImsCallProfile to indicate the verstat for incoming calls.

Test: Run new GTS tests.
Bug: 135929421
Change-Id: I712a42836382e8929e40b887fd01c450a4096bab
2019-09-18 13:49:58 -07:00
Jayant Chowdhary
556815d71c CameraManager: Add @TestApi method getCameraIdListNoLazy().
Add getCameraIdListNoLazy() - a test method which necessarily makes a
call to cameraserver in order to get an updated list of camera ids. This
is needed since camera cts tests use SYSTEM_CAMERA permissions in a way
which are not permitted to happen in real world scenarios : processes
cannot gain and lose SYSTEM_CAMERA permissions for permission checking
purposes (through UiAutomation adopt(drop)ShellPermissionIdentity(). In
that case cameraserver doesn't send callback to the client app informing
it that system cameras aren't available.

Bug: 138130599

Test: camera CTS

Change-Id: Ic00951828ea289a1a04b1d655506ef6474336b91
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2019-09-18 12:44:33 -07:00
Ryan Lin
a5cd980c37 Merge "Rename AccessibilityGestureInfo" 2019-09-18 08:53:06 +00:00
Hyungjun Park
6cc6909b30 Merge "Add isApplicationOnUicc API" am: 3dc68a9585 am: 2f3eb5d88f am: 5d7734c64e
am: 3b70d93efc

Change-Id: I65f26e60e79562b19cf4940bcbe64b73b92cba62
2019-09-17 19:59:35 -07:00
Hyungjun Park
3b70d93efc Merge "Add isApplicationOnUicc API" am: 3dc68a9585 am: 2f3eb5d88f
am: 5d7734c64e

Change-Id: I8b620acbebe8081630a7f0b2f2fa739066b7c30b
2019-09-17 19:45:26 -07:00
Jin Seok Park
0a2366d805 Merge "Add API to check if specified mime type is supported" 2019-09-18 02:34:40 +00:00
Hyungjun Park
5d7734c64e Merge "Add isApplicationOnUicc API" am: 3dc68a9585
am: 2f3eb5d88f

Change-Id: I2deb2fbfba218f50a24656ec9e9f636335749a34
2019-09-17 19:31:36 -07:00
Hyungjun Park
2f3eb5d88f Merge "Add isApplicationOnUicc API"
am: 3dc68a9585

Change-Id: I995d6b61d43a39ad5e52c99e62ac292540a0be7e
2019-09-17 19:17:24 -07:00
Treehugger Robot
3dc68a9585 Merge "Add isApplicationOnUicc API" 2019-09-18 02:00:54 +00:00
Taesu Lee
c49dcd98b6 Merge "Add new onSmsStatusReportReceived() without message reference" am: e6901bc862 am: 79aaff47c6 am: 793c72e6f8
am: 3e812c1d12

Change-Id: I5fc06c6302da32ff250492fb4c870d0a2dafe562
2019-09-17 16:29:37 -07:00
Taesu Lee
3e812c1d12 Merge "Add new onSmsStatusReportReceived() without message reference" am: e6901bc862 am: 79aaff47c6
am: 793c72e6f8

Change-Id: Idb5fe0c42619faf0a161de4c9591a0139043183a
2019-09-17 16:10:00 -07:00
Taesu Lee
793c72e6f8 Merge "Add new onSmsStatusReportReceived() without message reference" am: e6901bc862
am: 79aaff47c6

Change-Id: Ic2afea7122025166a2462e6345dd6f3cc0980f83
2019-09-17 15:54:46 -07:00
Taesu Lee
79aaff47c6 Merge "Add new onSmsStatusReportReceived() without message reference"
am: e6901bc862

Change-Id: I47b4ad0a13930b4a4080d8a8ac0f0cf657ea91a0
2019-09-17 15:48:04 -07:00
Roshan Pius
641a6834ba WifiManager: Remove async channel usage
Changes:
a) Migrate existing async channel methods to tracked binder calls.
b) Migrate existing async channel responses to tracked binder callbacks.
c) Deprecate WifiManager.disable() (Use public WifiManager.disableNetwork()
instead). Don't see any external users of this API.
d) Removed unnecessary RssiPacketInfo class (only the total pkt count is
necessary in the public API, so remove this class and only pass the
total count in the callback).

Bug: 130039719
Test: atest android.net.wifi
Test: Manual tests
a) Able to connect to networks from settings.
b) Able to remove network from setttings.

Change-Id: Ie82a9fce2f9e32e48a2da77477893427863fb460
2019-09-17 14:52:29 -07:00
Taesu Lee
61e826d576 Add new onSmsStatusReportReceived() without message reference
IMS providers must generate unique token and don't need to parse the PDU
to get the message reference for new onSmsStatusReportReceived() API.
The platform will extract the message reference from the PDU and return
it to the IMS providers via acknowledgeSmsReport(). And @Deprecated tag
is added on existing onSmsStatusReportReceived() API.
This CL includes some fixing doc bug and description for APIs also.

Test: atest FrameworksTelephonyTests:ImsSmsDispatcherTest

Change-Id: Ib788e291f2e70c3e062319e17e2c9efe33f31164
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2019-09-16 16:42:19 +09:00
Jin Seok Park
f0851b2704 Add API to check if specified mime type is supported
Bug: 138845596
Test: N/A
Change-Id: I082f1d63b85a786214316fa00fa14522fc822b20
2019-09-16 08:19:55 +09:00
Philip P. Moltmann
889ecd2739 Run RuntimePermissionProperty tests when runtime permissions change
So that runtime permisions are less likely to be incorrectly declared.

Bug: 141033226
Test: atest --test-mapping frameworks/base/data/etc/platform.xml:presubmit
      atest --test-mapping frameworks/base/core/res/AndroidManifest.xml:presubmit
      atest --test-mapping frameworks/base/core/java/android/app/AppOpsManager.java:presubmit
Change-Id: I4cf58d2041b5fda6360ef148edb76c048371cca6
2019-09-13 21:21:25 -07:00