Commit Graph

14861 Commits

Author SHA1 Message Date
Tiger Huang
54caefd531 Merge "Let the activity embedded in ActivityView can be directly touched" 2019-01-30 10:36:02 +00:00
Chavi Weingarten
e82defc28e Merge "Make WindowContainer surfaces container layers by default." 2019-01-30 01:12:39 +00:00
Evan Laird
a194630221 Merge "Add StatusBarManager#disableForSetup(boolean) @SystemApi" 2019-01-30 00:20:19 +00:00
Evan Laird
3cc59ebe93 Merge "Remove @hide from top-level StatusBarManager" 2019-01-30 00:19:19 +00:00
TreeHugger Robot
895ce08d6b Merge "Migrate dialer to RoleManager" 2019-01-29 23:28:16 +00:00
Pavel Grafov
0c0af4b0cc Merge "Whitelist packages from VPN lockdown: DPM API." into pi-dev-plus-aosp
am: 299f825678

Change-Id: I3deb4a865e109e2b2e67dc7d8ffc775747f34303
2019-01-29 14:13:19 -08:00
Amith Yamasani
173af94d25 Merge "Introduce a new process state for location fg service" 2019-01-29 20:07:13 +00:00
Pavel Grafov
5cba336daf Whitelist packages from VPN lockdown: DPM API.
Bug: 77468593
Test: atest MixedDeviceOwnerTest#testAlwaysOnVpn
Test: atest MixedDeviceOwnerTest#testAlwaysOnVpnAcrossReboot
Change-Id: I7508070f828fb7150df5d9e34846535d57c6a7c3
2019-01-29 19:37:21 +00:00
Joe Onorato
5a15b55107 Added a new "incidentReportApprover" permission protection flag.
This gives the ONE app installed on the system the permission to
authorize the sharing of incident and bug reports with an app.

Currently that app is PermissionController.  Package Manager
enforces that there is only one installed, and refused to boot
if that isn't the case.

Bug: 123543706
Test: bit GooglePermissionControllerTest:*
Change-Id: I76a7fad0ea36359bbb0ff09669df46202d059dab
2019-01-29 09:59:28 -08:00
Tiger Huang
04dc4cc64b Let the activity embedded in ActivityView can be directly touched
The goal is to eliminate the latency caused by forwarding the event.

In this CL, we put an input portal window behind an ActivityView, and
subtract the touchable region of the the ActivityView, so that the user
can touch through the portal window, and let the touch arrive on the
embedded activity.

Bug: 120675821
Test: Manual test with ActivityViewTest
Test: atest CtsActivityManagerDeviceTestCases:ActivityViewTest
Change-Id: I6776387b65cf6a7d2ea60cb00ffdd38be22081ac
2019-01-30 00:52:51 +08:00
Nadav Bar
6d79ab7547 Add microphone pemrission on default to content catprue service package
This is required for capturing playback audio for Tap2Captions. (Live
Captions).
Read the content capture service package name from the content capture
service name defined in the resources.

Change-Id: I6190e1eddf67a9f1d3d3718f61b22a0f235a05e9
Bug: 120408493
Test: manually that actions services has the permissions granted.
2019-01-29 13:50:40 +02:00
Jackal Guo
bfaeaf3607 Merge "Adding AppOps data for Accessibility" 2019-01-29 03:17:23 +00:00
Sudheer Shanka
ca923a9aab Merge "Update DownloadStorageProvider to include MediaStore.Downloads." 2019-01-29 02:57:44 +00:00
TreeHugger Robot
49db8e034b Merge "Add way to check if user has locked the bubble allowed field" 2019-01-29 02:49:24 +00:00
chaviw
139c77763b Make WindowContainer surfaces container layers by default.
WindowContainers surfaces will never have a buffer so change them to be
container layers to avoid confusion on the buffer count in
SurfaceFlinger.

Also restrict SurfaceControl Builder to set a single surface type to
avoid confusion.

Test: go/wm-smoke
Bug: 122561221
Change-Id: I26b5810675ef3a3cc1a33533b6afcb0d0489d5ba
2019-01-28 17:51:43 -08:00
Julia Reynolds
7c7f18b9b1 Merge "Add API for checking paused packages." 2019-01-29 00:46:32 +00:00
Mady Mellor
9db685ad0f Add way to check if user has locked the bubble allowed field
Also removes an extra s from a method whoooooops

Bug: 111236845
Test: atest NotificationManagerServiceTest
Change-Id: I1f77afd10b322088aa9cb39b65d70cbd84fb6dc4
2019-01-28 15:56:05 -08:00
Varun Shah
9b23e4f42b Merge "Removed AppUsageLimit#isGroupLimit API." 2019-01-28 23:53:01 +00:00
Chris Tate
d10f95dcef Merge "Defer broadcasts to slow-handling apps" 2019-01-28 22:30:26 +00:00
Christopher Tate
2f558d2659 Defer broadcasts to slow-handling apps
When an app takes a long time to handle broadcasts, we start deferring
further broadcasts to it to make sure that other broadcast traffic in
the system can continue to make progress.  Global delivery order is
technically rearranged, but delivery order from the point of view of any
given app remains consistent with issuance order.

When alarm broadcasts are issued, we prioritize delivery of deferred
alarms to the alarm recipients (i.e. we suspend the deferral policy and
catch up as promptly as possible) in order to minimize wake time spent
waiting for the alarm broadcast to be delivered.  Once an app with a
deferred broadcast backlog is no longer the target of an in-flight
alarm, we re-impose deferral policy on it.

This policy intentionally trades off increased broadcast delivery
latency to apps that take a "long" time to handle broadcasts, in
exchange for lowering delivery latency to all other apps in the system
that would previously have had to wait behind the slow app.

In addition, broadcast dispatch policy parameters can now be overlaid
via the usual global Settings mechanism.  In particular, configuring the
"bcast_slow_time" parameter to a value in milliseconds higher than the
queue's broadcast timeout period will disable the new slow-receiver
policies.

Bug: 111404343
Test: device boots & runs
Test: tests/ActivityTests
Change-Id: I76ac79bdf41ca3cfcc48515bca779ea0f5744c0b
2019-01-28 12:32:41 -08:00
Andrii Kulian
341ddc79c5 Merge "Report top resumed activity state change" 2019-01-28 20:22:47 +00:00
Philip P. Moltmann
87969723fc Merge "Reset per-pkg app-ops for runtime permissions" 2019-01-28 17:04:24 +00:00
Sudheer Shanka
e93db5123b Update DownloadStorageProvider to include MediaStore.Downloads.
Bug: 120879205
Test: manual
Test: atest DownloadProviderTests
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Test: atest MediaProviderTests
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I44be836899437d87fc1a00e5fe316c6b68488643
2019-01-28 08:20:47 -08:00
Hongming Jin
175e2f24a2 Merge "Add API in SmsManager to return sms messages for financial app." 2019-01-28 15:57:32 +00:00
Remi NGUYEN VAN
a6ee9704a3 Merge "Add INetd to SystemServiceRegistry" am: e3f18bd77c am: 9268c0be32
am: 50c95ba67c

Change-Id: I10cbfc198a0713dc53bfca611c082bbb387c1194
2019-01-28 00:59:28 -08:00
Remi NGUYEN VAN
50c95ba67c Merge "Add INetd to SystemServiceRegistry" am: e3f18bd77c
am: 9268c0be32

Change-Id: I92cd23a587ab0f7df2db92918011a9a488c31668
2019-01-28 00:47:45 -08:00
Jackal Guo
8dc791e678 Adding AppOps data for Accessibility
Support to expose the apps accessing accessibility features in the
permission hub. Start logging each time any data goes to services.

Bug: 122615167
Test: a11y CTS & unit test
Change-Id: I21f92dad8b3ec2e59a8ad6d180dc466357347784
2019-01-28 15:54:24 +08:00
Philip P. Moltmann
dde0785228 Reset per-pkg app-ops for runtime permissions
... on every boot.

These should never have been set, but we allow settings them via the
shell.

- Also previously a bug set per-pkg app-ops.
- Also set the app-op correctly when a fg/bg permission looses it's bg
permission.

Test: Set per-pkg app-opp. Rebooted and saw log message.
      atest --test-mapping frameworks/base/services/core/java/com/android/server/pm/permission/:presubmit
Change-Id: If3b56fc08783ea99b4dba70c5fa275b94411ce94
Fixes: 123177944
2019-01-27 20:47:02 -08:00
Remi NGUYEN VAN
3193598566 Add INetd to SystemServiceRegistry
Includes @SystemApi for Context.NETD_SERVICE so system apps (including
the network stack) can obtain the service.

Test: m
Bug: 112869080
Change-Id: Ida63747cd30abb7b3c19559803353eb0e42e6efa
2019-01-28 12:13:08 +09:00
Tej Singh
bd37b5f8b3 Merge "APIs for registering config activation broadcasts" 2019-01-27 02:32:37 +00:00
Hongming Jin
08496b0e98 Add API in SmsManager to return sms messages for financial app.
Test: atest android.telephony.cts.SmsManagerTest
Bug: 111207447
Change-Id: I1571cb005f7c1374a9acbec27041bca291fa7153
2019-01-26 14:26:47 -08:00
Varun Shah
9c6f72bae3 Removed AppUsageLimit#isGroupLimit API.
Bug: 123354775
Test: atest FrameworksServicesTests:AppTimeLimitControllerTests
Change-Id: I7082aaac0071be8d5bc444c6f8521576bf513cff
2019-01-25 21:13:56 -08:00
Kevin Chyn
1b2137cf42 Deprecate CC and add BP#buildIntent()
To ensure future BP builder changes don't require a 1:1 addition to the
CC API, we're deprecating CC and moving the API to BP.

Since CDC is an activity, and BP can't receive onActivityResult from CDC,
we need to have BiometricService launch CDC. CDC will return auth/reject
results to BiometricService using a private protected aidl method, which
can then forward the reuslt to BP/app.

Bug: 111461540

Test: builds
Test: demo app, receives correct callbacks

Change-Id: I7111ca2842534a596302fe0eb7338fbfaca72eec
2019-01-25 18:09:03 -08:00
Tej Singh
2c9ef2a92e APIs for registering config activation broadcasts
Creates a StatsManager API to register a pending intent that is invoked
whenever the active status of any of any config sent by that uid
changes.

ag/6112554 and further cls are needed to properly send back the pending
intent.

Bug: 123372077
Test: build success on blueline-eng. More thorough testing should be
done once ag/6112554 is submitted.

Change-Id: I36985c9820d4e7ac178064924190af88ea822254
2019-01-25 17:58:02 -08:00
Kevin Chyn
6a2121763c Revert "Add plumbing for setRequireConfirmation to CC"
This reverts commit d75a03b722.

Reason for revert: Adding functionality differently

Change-Id: I90ac64c89566589797f1ad0bf69fefee3fbd04e1
2019-01-25 17:49:14 -08:00
Eugene Susla
92b88c7fab Migrate dialer to RoleManager
Test: ensure settings UI is ok, ensure stock dialer can still make a call
Change-Id: Iab835939fbb92af06d9440910fbde2725ca66f70
2019-01-25 17:20:39 -08:00
Andrii Kulian
d70cdb93b8 Report top resumed activity state change
Some system resources can only be accessed exclusively by a single
client at a time. Previously there was only one resumed activity in
the system at any point, so apps were usually trying to obtain such
access in onResume. With multi-resume this is no longer a good place
to do so, because:
- onResume may be called for activity that is not on top;
- top resumed status may be switched between different resumed
  activities in multi-window mode by tapping on them.

This adds a separate callback to inform apps about top resumed state
gain and loss events. The following rules apply:
- both callbacks can only be delivered between onResume and onPause;
- top resumed state loss always follows top resumed state gain;
- the callbacks are optional, activity can go from onResume to
  onPause without obtaining top position.

Bug: 117135575
Test: atest CtsActivityManagerDeviceTestCases:ActivityLifecyclePositionTests
Change-Id: I45797afe47b166b22cfb75b64132b22d3fb4ecc7
2019-01-25 12:32:35 -08:00
Mady Mellor
b091bc9431 Merge "BubbleMetadata flags: suppress initial notif & auto expand when posted" 2019-01-25 17:26:38 +00:00
Julia Reynolds
b40cd09df0 Add API for checking paused packages.
Test: gts
Change-Id: I00e057791c7430505386b6d9e6d488368d5bf3df
Fixes: 112558358
2019-01-25 12:08:50 -05:00
Evan Laird
edd016fa3f Add StatusBarManager#disableForSetup(boolean) @SystemApi
Allows a system app with the STATUS_BAR permission to toggle a default
set of disable flags during device setup.

Test: adb shell cmd disable-for-setup [true/false]
Bug: 114003699
Change-Id: Ieebcf7f8b101e408efe461ca64ad1114d96729c9
2019-01-25 10:41:07 -05:00
Evan Laird
2732324100 Remove @hide from top-level StatusBarManager
So an API can be added in future commits, remote the top level @hide in
favor of @hide-ing every public method/field

Test: API is unchanged
Bug: 114003699
Change-Id: If1b101e0629ac50bbc8042b5dc3c50f6e44f7a52
2019-01-24 21:00:55 -05:00
TreeHugger Robot
90deb1cfe9 Merge "Fixes an issue where the ambient layout could be null" 2019-01-25 02:00:45 +00:00
Chad Brubaker
22d8f8d41d Merge "Add temp debug logging for app ops" 2019-01-25 01:15:33 +00:00
Selim Cinek
0e06994b73 Fixes an issue where the ambient layout could be null
Change-Id: I0dd190b2349445fbaafe4a5b612619e2dd002539
Fixes: 123247127
2019-01-24 16:09:41 -08:00
Mady Mellor
0157ff27e2 BubbleMetadata flags: suppress initial notif & auto expand when posted
Test: atest NotificationTest
Bug: 111236845
Change-Id: Idd1d23a91f2bf45454d1598637c8d7979b7f5287
2019-01-24 15:49:21 -08:00
Dan Albert
fe1cdd047f resolve merge conflicts of fb54fde402 to master
Bug: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I7256999a13b713607cfb4c844bf1bc7b37b827a7
2019-01-24 14:46:02 -08:00
Dan Albert
fb54fde402 Merge "Revert "Whitelist packages from VPN lockdown."" am: 9f73671651
am: 2f94ef95c4

Change-Id: I933a58f97b48f7a2db372cff6fb43318c840c6f8
2019-01-24 13:58:15 -08:00
Zak Cohen
d8e2cc5308 Merge "Add documentation for ContentSuggestionsManager classes." 2019-01-24 21:48:59 +00:00
Evan Rosky
1af8494f70 Merge "Add per-display RemoteAnimation overrides and flag to disable snapshots" 2019-01-24 21:46:37 +00:00
Mark Renouf
86f6ec6ea0 Merge "Adds callbacks for task creation and removal" 2019-01-24 21:28:32 +00:00