Commit Graph

19997 Commits

Author SHA1 Message Date
Nathan Harold
f273033220 Merge "Add MANAGE_IPSEC_TUNNELS Permission" into pi-dev am: 0205fd1064
am: 4ca771aa5c

Change-Id: I60dcb191a9aea3ff513a4c46c2c59d7f068e843c
2018-03-23 03:18:25 +00:00
Nathan Harold
4ca771aa5c Merge "Add MANAGE_IPSEC_TUNNELS Permission" into pi-dev
am: 0205fd1064

Change-Id: I7f1c987901c3634fb81d93402d5cb0af80fff11e
2018-03-23 01:57:41 +00:00
Felipe Leme
a8ef3b7a1e Merge "Removed urlBarResourceId." into pi-dev am: 3a31f6c5cc
am: e40a0838ba

Change-Id: I13688d0b8ce95910eae74e814030b78e28054be8
2018-03-23 01:38:29 +00:00
Suprabh Shukla
075541707a Merge "APIs to suspend packages with SUSPEND_APPS permission" into pi-dev am: 6affc07065
am: 31b5990893

Change-Id: Ib95745ca26362a9624b704b217b4d9078d0ade7c
2018-03-23 01:17:09 +00:00
Leon Scroggins
547a528421 Merge changes from topics "DecodeException_ERROR", "AID_autoStart", "onPartialImage" into pi-dev am: ceb14e015b
am: fbe597e850

Change-Id: I2a70864001a9e6cf21692bcbcb5c2cc81361f0bf
2018-03-23 00:57:54 +00:00
Leon Scroggins III
1564d3070f Re-write onPartialImage API am: 1d2bf2b846
am: 1a82348834

Change-Id: Icd8be0239571f543ae815f51d162eb1485567eec
2018-03-23 00:51:26 +00:00
Felipe Leme
e40a0838ba Merge "Removed urlBarResourceId." into pi-dev
am: 3a31f6c5cc

Change-Id: Ic039210e17b1f49d4232b97acdd46befcbd896d3
2018-03-23 00:39:16 +00:00
Suprabh Shukla
31b5990893 Merge "APIs to suspend packages with SUSPEND_APPS permission" into pi-dev
am: 6affc07065

Change-Id: Icd9ccea90cac3b367b74915f76d39d7f5f740687
2018-03-23 00:09:48 +00:00
Ivan Podogov
ad27d2caa4 Merge "HIDD: Address API Review concerns" am: 8085d6f247 am: 6c64e83577
am: 153592fa3c

Change-Id: Idbb7a31a9de8092e91743c3806d6a0dba509eec6
2018-03-23 00:07:36 +00:00
Leon Scroggins
fbe597e850 Merge changes from topics "DecodeException_ERROR", "AID_autoStart", "onPartialImage" into pi-dev
am: ceb14e015b

Change-Id: I92ffd12b6e8df360a86733ca99676cd8f470addb
2018-03-22 23:43:38 +00:00
Leon Scroggins III
1a82348834 Re-write onPartialImage API
am: 1d2bf2b846

Change-Id: I7436bbe89b9efd9a406958b14f79294e982c5b3a
2018-03-22 23:34:41 +00:00
Ivan Podogov
153592fa3c Merge "HIDD: Address API Review concerns" am: 8085d6f247
am: 6c64e83577

Change-Id: Ibcdc31fcb01a583ca05c056b2063f77c0f4dbeb6
2018-03-22 23:13:16 +00:00
TreeHugger Robot
0205fd1064 Merge "Add MANAGE_IPSEC_TUNNELS Permission" into pi-dev 2018-03-22 23:10:11 +00:00
TreeHugger Robot
3a31f6c5cc Merge "Removed urlBarResourceId." into pi-dev 2018-03-22 22:22:30 +00:00
Nathan Harold
c3eb60cec6 Merge "Add AppOp for IpSec Tunnels" into pi-dev am: 8a047a0c52
am: e9ae13cabe

Change-Id: I9197eb54de99c9f5274d722cd25c35c654fa6137
2018-03-22 22:17:26 +00:00
TreeHugger Robot
6affc07065 Merge "APIs to suspend packages with SUSPEND_APPS permission" into pi-dev 2018-03-22 22:15:31 +00:00
Leon Scroggins
ceb14e015b Merge changes from topics "DecodeException_ERROR", "AID_autoStart", "onPartialImage" into pi-dev
* changes:
  Rename ImageDecoder.ERRORs
  Add the ability to autoStart AID from xml
  Re-write onPartialImage API
2018-03-22 21:53:05 +00:00
Treehugger Robot
8085d6f247 Merge "HIDD: Address API Review concerns" 2018-03-22 21:50:57 +00:00
Nathan Harold
159788455c Add MANAGE_IPSEC_TUNNELS Permission
Add a new MANAGE_IPSEC_TUNNELS permission and
protect all IPsec Tunnel mode APIs with it.
This permission is only granted to the system or
through an AppOp.

Bug: 66955045
Test: compilation
Change-Id: I0f618373b500c493ef2211bece681f74652a1833
2018-03-22 14:16:50 -07:00
Nathan Harold
8a047a0c52 Merge "Add AppOp for IpSec Tunnels" into pi-dev 2018-03-22 21:14:36 +00:00
Tyler Gunn
3a4d495733 Merge "Rename handover failure constant per API review comments." into pi-dev 2018-03-22 20:22:20 +00:00
Suprabh Shukla
021b57ab8d APIs to suspend packages with SUSPEND_APPS permission
Changed the existing hidden api setPackagesSuspendedAsUser to a system
api setPackagesSuspended that can be called by apps with either
MANAGE_USERS or SUSPEND_APPS permission. Additionally, the suspending
app can now specify optional extra information meant to be used by the
suspended apps and the launcher to deal with this state.

The following other APIs are added:
 - isPackageSuspended(): Apps can query whether they are in a suspended
 state
 - @SystemApi getPackageSuspendedAppExtras(String): Apps with permission
 SUSPEND_APPS can get the appExtras passed to PM when suspending the
 app.
 - @SystemApi setPackageSuspendedAppExtras(String, PersistableBundle):
 Apps with permission SUSPEND_APPS can update app extras for a
 suspended package.
 - getPackageSuspendedAppExtras(): Apps can call to get the appExtras
 passed in to PM when they were suspended.

Test: Can be run via:
atest com.android.server.pm.PackageManagerSettingsTests
atest com.android.server.pm.PackageUserStateTest
atest com.android.server.pm.SuspendPackagesTest

Bug: 74336673
Change-Id: I3b9ed2c8478b34ee2e8986f5f5fddb2839d102e3
2018-03-22 12:59:57 -07:00
Felipe Leme
88b745cce3 Removed urlBarResourceId.
It will be removed before the final P build.

Test: atest FrameworksServicesTests:AutofillManagerServiceTest CtsAutoFillServiceTestCases
Fixes: 74445943

Change-Id: I9bc243a3c1ae78f2c385dbb907d362d8ab16b34c
2018-03-22 11:44:06 -07:00
Robert Berry
d76a3d2716 Merge "Unhide RecoveryController#getRootCertificates()" into pi-dev am: c6bd185565
am: be910a789e

Change-Id: I5fdaf507def6a7f679b2ce4569f5787864e31f45
2018-03-22 18:13:14 +00:00
Robert Berry
bdafd55ff0 Merge "Unhide RecoverySession#recoverKeyChainSnapshot() method" into pi-dev am: 3818de595b
am: 986afbd959

Change-Id: Id38a53ef38e7d493e715cff747ebd2b0a9880a98
2018-03-22 18:07:58 +00:00
Robert Berry
be910a789e Merge "Unhide RecoveryController#getRootCertificates()" into pi-dev
am: c6bd185565

Change-Id: Ib81d1997ee46034dff4c8b9c45836f434f660f1a
2018-03-22 17:50:46 +00:00
Robert Berry
986afbd959 Merge "Unhide RecoverySession#recoverKeyChainSnapshot() method" into pi-dev
am: 3818de595b

Change-Id: Ie3aad7e53a3e359bd83602db3a85cf1ab497e7c2
2018-03-22 17:45:01 +00:00
Robert Berry
c6bd185565 Merge "Unhide RecoveryController#getRootCertificates()" into pi-dev 2018-03-22 17:23:05 +00:00
Felipe Leme
40f787ec18 Merge "Renamed AUTOFILL_COMPAT_MODE_ALLOWED_PACKAGES." into pi-dev am: 4e561f83cb
am: 16f6c77d95

Change-Id: Ifce1e7799f71fa1952ab490d5504275b702cf931
2018-03-22 17:19:52 +00:00
Robert Berry
3818de595b Merge "Unhide RecoverySession#recoverKeyChainSnapshot() method" into pi-dev 2018-03-22 17:19:33 +00:00
Leon Scroggins III
cf7294fda6 Rename ImageDecoder.ERRORs
Bug: 73788969
Test: I501e8b76aacd785cb994165ab01dc1b39fea3a1c

Move them into ImageDecoder.DecodeException, which is where they are
actually used. This also provides some more context, so that the prefix
"ERROR_" is no longer necessary, fixing the redundancy/awkwardness in
ERROR_SOURCE_ERROR. Further rename that to SOURCE_MALFORMED_DATA, which
is more descriptive, and does not imply a Java Error.

Change-Id: Ied17ad343650f9c33d9a35b0f9d00ccc22264bd6
2018-03-22 13:09:02 -04:00
Felipe Leme
16f6c77d95 Merge "Renamed AUTOFILL_COMPAT_MODE_ALLOWED_PACKAGES." into pi-dev
am: 4e561f83cb

Change-Id: Id6e661b49cc9a28bb6464930210eac41f061d61a
2018-03-22 17:05:36 +00:00
Wyatt Riley
0d909e574f Merge "GNSS Model Name constant string and comment updates" into pi-dev am: aa8cbab151
am: c0b6f1db3e

Change-Id: Ife249a2ce6508299199042b38612df3092c13502
2018-03-22 16:33:08 +00:00
Felipe Leme
4e561f83cb Merge "Renamed AUTOFILL_COMPAT_MODE_ALLOWED_PACKAGES." into pi-dev 2018-03-22 16:24:53 +00:00
Wyatt Riley
c0b6f1db3e Merge "GNSS Model Name constant string and comment updates" into pi-dev
am: aa8cbab151

Change-Id: Idafb74af51dccbfe754f7dfc6a667fa13b310582
2018-03-22 16:24:51 +00:00
Wyatt Riley
aa8cbab151 Merge "GNSS Model Name constant string and comment updates" into pi-dev 2018-03-22 16:10:08 +00:00
Tyler Gunn
0ab380166d Rename handover failure constant per API review comments.
Expanding EMERG to EMERGENCY.

Test: Build code
Bug: 74831393
Merged-In: Ic0555b20dc508d022c0165a5d9dc3b40b33db70e
Change-Id: Ic0555b20dc508d022c0165a5d9dc3b40b33db70e
(cherry picked from commit a4ef504bdc)
2018-03-22 15:34:32 +00:00
Robert Berry
ce50efa321 Merge "Unhide the new RecoverySession#start with the alias for root cert" into pi-dev am: 98ea60c427
am: 60efe8379d

Change-Id: I5b04c097bb5f26fe031191bcc208db9408f998a3
2018-03-22 14:20:27 +00:00
Robert Berry
60efe8379d Merge "Unhide the new RecoverySession#start with the alias for root cert" into pi-dev
am: 98ea60c427

Change-Id: Ibd8338f5568478b207e660aaaa03d11bde8fcfeb
2018-03-22 14:06:42 +00:00
Robert Berry
750b71c651 Unhide RecoverySession#recoverKeyChainSnapshot() method
The other methods expose raw key materials, which is a security flaw. This
new API is already being used by GMSCore, via reflection (although falling
back to the old methods if it is not available). Would be good to switch it
on ASAP.

Bug: 74345822
Test: Tested with GMSCore
Change-Id: I30d53c9e825888d1122c72d23b7c1c10c6edb1e9
2018-03-22 13:49:54 +00:00
Robert Berry
93d002ca5f Unhide RecoveryController#getRootCertificates()
This is so we can add a GTS test to affirm that GMS devices include the
Google Cloud Key Vault root certificate.

Test: runtest frameworks-core -p android.security.keystore.recovery
Bug: 74621045
Change-Id: Ib6431f5739f3dff066832e6aa300dd9da5bc0727
2018-03-22 13:49:20 +00:00
Holly Jiuyu Sun
a99b258049 Merge "Mark eraseSubscriptions as @SystemApi." 2018-03-22 03:45:55 +00:00
Bo Zhu
e7997a3ea7 Unhide the new RecoverySession#start with the alias for root cert
Bug: 76033708
Test: none, it's just unhiding APIs
Change-Id: Iec1e44d24bb1704da082404566233ada83b8eb81
2018-03-21 19:50:50 -07:00
Felipe Leme
fd4003bf09 Renamed AUTOFILL_COMPAT_MODE_ALLOWED_PACKAGES.
The syntax of that setting changed from P Developer Preview1 to the final P, so
it's safer to use a new name than risk breaking devices during the update.

Bug: 74458004
Test: atest CtsAutoFillServiceTestCases:VirtualContainerActivityCompatModeTest\
FrameworksCoreTests:SettingsBackupTest

Change-Id: I1c507e8eae20f598dfe259178667ae6c2bc892ff
2018-03-21 16:36:25 -07:00
Nathan Harold
1bb42067f0 Add AppOp for IpSec Tunnels
Add a new AppOp to allow bound system services
such as TelephonyDataServices and potentially
VPN providers to access the IPsec tunnel
management APIs. Since this is not directly
user-facing, and not all System apps should have
this privilege, the access is only granted via
an AppOp or to the system itself.

Bug: 66955045
Test: compilation (still WIP)
Change-Id: I0b0528c75c622d8538baeec019c3672cbed5d899
2018-03-21 15:23:39 -07:00
Lenka Trochtova
2c06f14104 Merge "Return a boolean from the mandatory backup transport setter." into pi-dev am: 2f81559d29
am: bc9f74c83e

Change-Id: I7448a88114201e78056d3cc75153c2deebb61bb3
2018-03-21 21:24:26 +00:00
Nathan Harold
095b9e8e1c Merge changes I4c26aea7,I79911434 into pi-dev
* changes:
  Check mOwnedByTransform to avoid DELSA on SPI
  Expose add/removeAddress for IpSecInterfaces
2018-03-21 20:59:02 +00:00
Lenka Trochtova
bc9f74c83e Merge "Return a boolean from the mandatory backup transport setter." into pi-dev
am: 2f81559d29

Change-Id: Ibb77d5f16312f03504e7ced961b92e48f37342bc
2018-03-21 20:13:51 +00:00
TreeHugger Robot
2f81559d29 Merge "Return a boolean from the mandatory backup transport setter." into pi-dev 2018-03-21 19:34:52 +00:00
Tim Volodine
0b851859fa Merge "WebView Tracing API: remove LARGE_BUFFER, make RECORD_CONTINUOUSLY the default mode" into pi-dev am: 158a18108b
am: 03d64cdd9e

Change-Id: I98ab1007f8a597d337bfabfea14b0bf26be231e3
2018-03-21 18:46:47 +00:00