Commit Graph

21561 Commits

Author SHA1 Message Date
Neil Fuller
9347978d5f Merge "API for retrieving time zone IDs by country" 2018-11-20 09:33:24 +00:00
Zimuzo Ezeozue
621a683ea7 Merge "Add privileged API to control keyguard secure notifications" 2018-11-20 04:50:52 +00:00
Felipe Leme
2eadd14d5a Merge "Minor changes on IntelligenceManager APIs." 2018-11-20 00:09:31 +00:00
TreeHugger Robot
5a31e0e77d Merge "Add Intent#EXTRA_CONTENT_QUERY." 2018-11-19 22:52:11 +00:00
TreeHugger Robot
c8a685abf9 Merge "Add MATCH_APEX flag to getInstalledPackages." 2018-11-19 22:00:19 +00:00
Hongming Jin
c796e17aa8 Merge "Add AppOps entries for read sms operation for financial apps." 2018-11-19 21:47:12 +00:00
Dario Freni
cb7a68d29a Add MATCH_APEX flag to getInstalledPackages.
If set, PackageManager will query apexservice and ask for activated
packages.

Test: wrote a small app to test the new query.
Bug: 117589375
Change-Id: I498bd97896f3eab65c88e9684874a30713be585e
2018-11-19 18:51:21 +00:00
TreeHugger Robot
5798ef6a96 Merge "public eSIM APIs created in Android P" 2018-11-19 18:26:23 +00:00
Amin Shaikh
710d123010 Add Intent#EXTRA_CONTENT_QUERY.
Fixes: 119269845
Test: make
Change-Id: I849d0ca62a222b8cabb8cb0e71eb6b016026cc0c
2018-11-19 12:51:13 -05:00
David Brazdil
984d991e3b Merge "Create AppComponentFactory.instantiateClassLoader API" 2018-11-19 17:35:26 +00:00
TreeHugger Robot
271339ffdf Merge "API: Make implicit APIs from type usage explicit" 2018-11-19 17:21:27 +00:00
Roshan Pius
b8054120f8 Merge "AndroidManifest.xml: Add new network permission for managed provisioning" 2018-11-19 16:08:12 +00:00
TreeHugger Robot
ba1c017456 Merge "Support set/get carrier id from ApnSetting" 2018-11-19 02:35:28 +00:00
Roshan Pius
eb9f8195db Merge changes from topics "abort_network_request", "untrused_network", "on_match_scan_results", "network_suggestions_impl"
* changes:
  WifiManager: Add abort callback for network request
  WifiNetworkAgentSpecifier: Allow satisfiedBy call for 2 instances
  WifiConfiguration: Add a field to mark network as trusted
  WifiManager: Send list of matching scan results for network request
  WifiManager: Implement network suggestion API
  wifi(API): Send directed broadcast post connection for suggestions
2018-11-17 03:52:04 +00:00
Andy Hung
9e950d937b Merge changes from topic "getAudioAttributes"
* changes:
  AudioTrack: Add getAudioAttributes public method
  AudioTrack: Fix import order lint warnings
2018-11-16 23:21:51 +00:00
Jordan Liu
64b4925059 Merge "Expose ApnService as a SystemApi and use subId arg" 2018-11-16 23:01:43 +00:00
TreeHugger Robot
992cd354fc Merge "passpoint-r2: define getMatchingOsuProviders(List<ScanResult>) API" 2018-11-16 22:32:53 +00:00
Nathan Harold
6ef595468c Merge "Add Support for Async requestCellInfoUpdate()" am: 992aafb2bd am: f3d183108b
am: 247f4e292f

Change-Id: Ic65f1d1c929b22371e827d63281a3447ca29e8bc
2018-11-16 14:07:13 -08:00
Zimuzo
b3b9c26543 Add privileged API to control keyguard secure notifications
I688e87cf09ad206f4f517a7be960c2aa01af8fc4, restricted privileged apps from silently becoming Device Admins.

Ia4e1ce9b81756e7f84ed0aa22d97e0b968cd8d89 added privileged APIs for locking the device and resetting the password.
We continue that work by providing an alternative for DevicePolicyManager#setKeyguardDisabledFeatures guarded by android.permission.CONTROL_KEYGUARD_SECURE_NOTIFICATIONS

Bug: 111153365
Bug: 112601004
Test: Secure notifications can be redacted on keyguard
Change-Id: If81cecf6e74f7abcff581a122c4b68cc04ff57c6
2018-11-16 22:00:43 +00:00
TreeHugger Robot
f16a3537b6 Merge "[Magnifier-55] Add API for content clamping" 2018-11-16 21:45:40 +00:00
Oleg Kibirev
2d281dfe63 Merge "Add a PowerManager @SystemApi to start a dream" 2018-11-16 21:38:34 +00:00
TreeHugger Robot
e2dc21e1a3 Merge "Exposing canSuspendPackage as SystemApi" 2018-11-16 21:05:46 +00:00
Nathan Harold
247f4e292f Merge "Add Support for Async requestCellInfoUpdate()" am: 992aafb2bd
am: f3d183108b

Change-Id: Iee76a8ee4cd04cf5847ab33320635f7dab29d9e2
2018-11-16 12:58:31 -08:00
Roshan Pius
6a554a54b5 wifi(API): Send directed broadcast post connection for suggestions
Based on feedback received, moving away from using a PendingIntent for
post connection action (PendingIntent's are impossible to persist &
maybe too heavy for our use-case). We'll now send out a simple directed
broadcast to the app that added the network suggestion.

Also, added annotation indicating the permission requirement for using
the new API.

Bug: 115504887
Test: make api-stubs-docs-update-current-api -j128
Change-Id: Ide169b139ca16d43bd250de4d0447807d85a60ed
2018-11-16 12:13:01 -08:00
Nathan Harold
992aafb2bd Merge "Add Support for Async requestCellInfoUpdate()" 2018-11-16 19:13:36 +00:00
TreeHugger Robot
14805a777d Merge "[WPA3] Make WPA3/OWE capability query API public 2/2" 2018-11-16 18:27:33 +00:00
Xiangyu/Malcolm Chen
544a84e01c Merge "Remove parentSubId and define API to set groupSubId" 2018-11-16 18:05:16 +00:00
Mihai Popa
3e1aed1272 [Magnifier-55] Add API for content clamping
The CL adds API to customize the bounds relative to a view where the
magnifier content is allowed to be copied from.

Bug: 72211470
Test: manual testing
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: I3016a34929acf029f5251d03812f17e4da4cb948
2018-11-16 16:29:44 +00:00
Chong Zhang
258274714d Merge "Retrieve CA_Descriptor private data for scrambled stream" 2018-11-16 15:30:00 +00:00
Ecco Park
8561aa3281 passpoint-r2: define getMatchingOsuProviders(List<ScanResult>) API
This API is required to support control of OSU Service Providers with
scan results on Setting UI.
Internally, previous API is merged into new API to take a list of
ScanResult Objects instead of a single ScanResult.

Bug: 119514793
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: Ib2f2e406c8c295c83924e7884657b4088dd23bb3
Signed-off-by: Ecco Park <eccopark@google.com>
2018-11-16 15:23:48 +00:00
Ecco Park
33ac9a434e Merge "passpoint-r2: define getAllMatchingWifiConfigs(List<ScanResult>) API" 2018-11-16 15:12:48 +00:00
David Brazdil
fd6dcc21d9 Create AppComponentFactory.instantiateClassLoader API
Adds a hook to AppComponentFactory to allow control over the
instantiation of the main app class loader. LoadedApk creates
the default class loader and uses it to load the base APK. If
AppComponentFactory is declared in the manifest, its new method
instantiateClassLoader is called and its result becomes the
class loader used by LoadedApk to instantiate other classes
declared in the manifest. By default this is simply the class
loader created by LoadedApk.

Second method provides AppComponentFactory with a copy of
ApplicationInfo. The factory otherwise cannot locate any of the
app's resources, including its APK or the data folder.

Bug: 111342996
Test: atest CtsClassLoaderFactoryPathClassLoaderTestCases
Test: atest CtsClassLoaderFactoryInMemoryDexClassLoaderTestCases
Change-Id: Id21d9afaf00b9cb64a107bc9893b952407cff0b5
2018-11-16 11:45:47 +00:00
Ecco Park
f035a04f59 passpoint-r2: define getAllMatchingWifiConfigs(List<ScanResult>) API
This API is required to support control of Passpoint configurations with
scan results on Setting UI.
Internally, previous API is merged into new API to take a list of
ScanResult Objects instead of a single ScanResult.

Bug: 119514793
Test: ./frameworks/base/wifi/tests/runtests.sh
Signed-off-by: Ecco Park <eccopark@google.com>

Change-Id: I1b9e1499081a8b005f10c249163185d0dc817b46
2018-11-16 03:19:21 -08:00
Gustav Sennton
413ce3b609 Merge "Add a Notifications API for contextual (smart) actions." 2018-11-16 10:22:39 +00:00
Hai Shalom
dc6f7af9a9 [WPA3] Make WPA3/OWE capability query API public 2/2
Remove owe and wpa3 methods from system-current.txt, since these methods
are now public.

Bug: 112195778
Test: No code changes
Change-Id: I76907a783f946640e0191823c52b17826d751603
2018-11-15 19:32:21 -08:00
Malcolm Chen
dc3a733062 Remove parentSubId and define API to set groupSubId
Bug: 118349116
Test: unittest
Change-Id: I539a67df8f30c2f58d87a3417f78fef8b43ff56d
2018-11-15 17:31:50 -08:00
Jordan Liu
d60a4c00b3 Expose ApnService as a SystemApi and use subId arg
IApnSourceService#getApns now takes a subId argument, and can be
implemented by extending ApnService.

Bug: 113075153
Test: unit tests and manual
Change-Id: I9cfcf977c20f33abd2d773393780f9e54d75fe21
2018-11-15 15:39:03 -08:00
Hongming Jin
228cd01733 Add AppOps entries for read sms operation for financial apps.
Bug: 111207447
Test: atest -m CtsPermission2TestCases
Change-Id: Ie106be00102cd31c2c5014fee1131748e10edfc5
2018-11-15 15:30:01 -08:00
Brad Ebinger
9ca7a38d29 Merge "Expose ProvisioningManager API for IMS configurations" am: 082bf0ccca am: 5ffd9747af
am: 81e18816f9

Change-Id: I99b9a5dec01e51426f923d24eceacd2f719c2fcd
2018-11-15 14:51:27 -08:00
Andy Hung
4c19137b22 AudioTrack: Add getAudioAttributes public method
Bug: 116735841
Test: AudioTrackTest#testBuilderAttributesStream
Change-Id: I09c69ed42a7a76d3d85694dd120a54f5567fb164
2018-11-15 14:47:56 -08:00
Brad Ebinger
81e18816f9 Merge "Expose ProvisioningManager API for IMS configurations" am: 082bf0ccca
am: 5ffd9747af

Change-Id: I51307a4658b63823da79567130b0425bc5695555
2018-11-15 14:34:50 -08:00
Brad Ebinger
082bf0ccca Merge "Expose ProvisioningManager API for IMS configurations" 2018-11-15 22:07:29 +00:00
TreeHugger Robot
102ecc032b Merge "Expose all dangerous permission to Permission controller" 2018-11-15 21:43:30 +00:00
Oleg Kibirev
2385b5ef7e Add a PowerManager @SystemApi to start a dream
go/startdream

This is a simplier alternative to ag/5460565

Bug: 119130690
Test: Use of API from launcherX
Change-Id: I9b8e1dc04095045077c37014290120efec9dc331
2018-11-15 12:54:02 -08:00
Nathan Harold
2aa2cc1b75 Add Support for Async requestCellInfoUpdate()
Add asynchronous calls to request CellInfo updates.
-Add a request for CellInfo
-Add a request for CellInfo that allows system apps
 such as the LocationProvider to bill the work to
 the app that initiated the location fix.
-Update the behavioral language for getAllCellInfo
 to indicate that depending on the API level of the
 caller, this API will only provide cached info, which
 means that apps can always request an update without
 possibly triggering a call to the modem. This also
 means that the binder will not block due to modem
 delay.

Bug: 37100068
Bug: 63737292
Bug: 26569588
Test: manual (via SL4A)
Change-Id: I25cbc3cecd5d396fc3baa21457c05cd6e273c9c3
2018-11-15 10:53:05 -08:00
Philip P. Moltmann
de9510d95a Expose all dangerous permission to Permission controller
The permission controller is built agains @system-api. It needs to be
able to access all dangerous system-permissions as it needs to manage
them.

Test: Built
Bug: 110953302
Change-Id: I41f5e60bf53888039fa1fd1060a27f29e9418009
2018-11-15 18:35:59 +00:00
Chen Xu
7a3a606985 Merge "new Systeam API for CarrierConfig#KEY_CARRIER_SETUP_APP_STRING" am: 8715c1545e am: 2db64c2f55
am: bc9e3a0d16

Change-Id: I8602091b25698e194ab0e6d860689edce85012d5
2018-11-15 09:58:00 -08:00
Chen Xu
4ed9b6da82 Merge "new System API for sim voice activation state." am: 16533c35d3 am: b332c39954
am: c078fd99dd

Change-Id: Iadf3b3a21a1c20b18ef07ee3ca54ccf7c61ba981
2018-11-15 09:49:33 -08:00
Chen Xu
bc9e3a0d16 Merge "new Systeam API for CarrierConfig#KEY_CARRIER_SETUP_APP_STRING" am: 8715c1545e
am: 2db64c2f55

Change-Id: I9eca28cd2d5388424dd432e4fb1ae15a49e00107
2018-11-15 09:44:06 -08:00
Chen Xu
c078fd99dd Merge "new System API for sim voice activation state." am: 16533c35d3
am: b332c39954

Change-Id: I18346531c31e9a8a593da18c1d07ee33f1650784
2018-11-15 09:36:07 -08:00