Commit Graph

16023 Commits

Author SHA1 Message Date
Mathew Inwood
085b1a5c44 Merge "Compatibility API implementation for app processes." 2019-07-17 14:07:41 +00:00
Adrian Roos
e3edd21eec Merge "Merge "AM: make isHighEndGfx TestApi" into qt-dev am: 2ac934280c am: 1b027edda1" into qt-r1-dev-plus-aosp
am: 04824c59f4

Change-Id: I291f1704bbc760e786da6f90f9681d79a9cd7915
2019-07-16 09:57:25 -07:00
Adrian Roos
56b89eff84 Merge "AM: make isHighEndGfx TestApi" into qt-dev am: 2ac934280c
am: 1b027edda1

Change-Id: I2ac2395e2c2814285e940f937c80f641fac31e44
2019-07-16 09:41:21 -07:00
Adrian Roos
1b027edda1 Merge "AM: make isHighEndGfx TestApi" into qt-dev
am: 2ac934280c

Change-Id: Ib531628ddd2fe1f4f5231f3892740b5dcbcfaf0d
2019-07-16 09:30:05 -07:00
TreeHugger Robot
2ac934280c Merge "AM: make isHighEndGfx TestApi" into qt-dev 2019-07-16 16:11:19 +00:00
Jeff Sharkey
ee50d80842 Merge "Detailed ContentProvider permissions checks." 2019-07-16 15:03:32 +00:00
Mathew Inwood
80652db77e Compatibility API implementation for app processes.
Pass the set of disabled changes from the system server into the app in the
bindApplication() call. Use this to instantiate an implementation of
Compatibility.Callbacks() to implement the API.

Test: Manual.
Bug: 135010838
Change-Id: I2fcf25264c62acc801f9e62967072cd04e4641e7
2019-07-16 11:58:49 +01:00
TreeHugger Robot
cf804144c7 Merge "Add a broadcast for automatic zen rule status" 2019-07-15 17:11:06 +00:00
Adrian Roos
5af40871ea AM: make isHighEndGfx TestApi
Bug: 136784434
Test: n/a
Change-Id: Ie26de8dcf64a02b7757d4f705485cdcb7470f511
2019-07-15 12:05:54 +02:00
Brad Ebinger
55f7a2c065 Merge "Make RcsMessageStore a top level API" am: bac258f22e am: 53f6c34039 am: 36cc070c24
am: 545a4c369e

Change-Id: I8588b6035f16ed52da6b5e61675a266998e748a1
2019-07-12 15:33:27 -07:00
Brad Ebinger
545a4c369e Merge "Make RcsMessageStore a top level API" am: bac258f22e am: 53f6c34039
am: 36cc070c24

Change-Id: Iaf09d213817a8df251e1d846bd50d7a571960b5c
2019-07-12 15:23:16 -07:00
Brad Ebinger
36cc070c24 Merge "Make RcsMessageStore a top level API" am: bac258f22e
am: 53f6c34039

Change-Id: Id6eba925aef3a1af812039372bf5e2e87fcbb35e
2019-07-12 15:01:58 -07:00
Julia Reynolds
3ec93304e2 Add a broadcast for automatic zen rule status
This allows apps to unregister potentially expensive device
monitoring systems when rules are disabled or removed, and provides
parity with ConditionProviderService.onUnsubscribe().

Test: cts
Fixes: 131812774
Change-Id: I2b359ca3262ccc6098bafa1611172b99f158c0c8
2019-07-12 21:59:54 +00:00
Brad Ebinger
53f6c34039 Merge "Make RcsMessageStore a top level API"
am: bac258f22e

Change-Id: If235ead8a75dc080e1e129d83bf7f24c3c996d8c
2019-07-12 14:53:26 -07:00
Brad Ebinger
bac258f22e Merge "Make RcsMessageStore a top level API" 2019-07-12 21:40:40 +00:00
Jeff Sharkey
9edef25ede Detailed ContentProvider permissions checks.
The new MediaProvider design has an internal dynamic security model
based on the value stored in OWNER_PACKAGE_NAME, so the OS always
needs to consult the provider when resolving Uri permission grants.

Blocking calls from the system process like this are typically
discouraged, but this is the best we can do with the limited time
left, and there is existing precident with getType().

For now, use "forceUriPermissions" as a proxy for determining when
we need to consult the provider directly.

Bug: 115619667
Test: atest --test-mapping packages/providers/MediaProvider
Test: atest android.appsecurity.cts.ExternalStorageHostTest
Change-Id: I1d54feeec93fbb4cf5ff55240ef4eae3a35ed068
2019-07-12 09:27:41 -06:00
Todd Kennedy
c971a45e65 Move grant/revoke permission APIs
These were the last few APIs that used the permission callback.
Completely remove it from the package manager and full implement
in the permission manager.

Bug: 135279435
Test: atest PermissionUpdateListenerTest
Test: android.content.pm.cts.PackageManagerTest
Test: android.permission2.cts.RestrictedPermissionsTest
Change-Id: Iab7c20215c907f4718f78a98fb96afec9fef6780
2019-07-11 14:14:02 -07:00
Todd Kennedy
7e3dd3afe2 Move whitelist permissions to permission manager
Also while doing this, it made sense to move the permission change
listener to the permission manager [it resulted in fewer hacks to
get the two sides to talk to one another].

Bug: 135279435
Test: atest PermissionUpdateListenerTest
Test: android.content.pm.cts.PackageManagerTest
Test: android.permission2.cts.RestrictedPermissionsTest
Change-Id: Ie08701dfe999cd435335103f4b4daeaa0b31ef10
2019-07-11 14:14:02 -07:00
Todd Kennedy
ca1ea17a3e Move check permission methods
Bug: 135279435
Test: atest android.content.pm.PackageManagerTests
Test: atest CtsCameraApi25TestCases
Change-Id: Id96093e4106edcd5302fd8aaa020d1ab83f68258
2019-07-11 14:14:02 -07:00
Todd Kennedy
230c0a7e60 Move permission flag methods
Bug: 135279435
Test: atest android.content.pm.cts.PackageManagerTest
Test: atest android.permission2.cts.RestrictedPermissionsTest
Change-Id: I3a5a7d8d3a3ba9d0b3e0e62d178a18903a94ec26
2019-07-11 14:13:53 -07:00
Treehugger Robot
f0d921c41a Merge "Replace HashMap with ArrayMap for services" 2019-07-11 20:41:31 +00:00
Kweku Adams
37f389c6ac Remove @Deprecated && @removed methods from DevicePolicyManager.
They were marked for removal in Nougat.

Bug: 135214188
Test: Android builds
Change-Id: I2c5fc0a8264bd67dbd7e583ebb687e771c873378
2019-07-09 14:30:48 -07:00
Svet Ganov
c0c4fba462 Merge "Merge "Update docs for UID_STATE" into qt-dev am: 261a2d62e2 am: f821b5df70" into qt-r1-dev-plus-aosp
am: 7b744075f6

Change-Id: If3f6227956f58f95d1d0dfcee0b5f7ecea79f0c3
2019-07-09 11:24:00 -07:00
Svet Ganov
78de8a10cc Merge "Update docs for UID_STATE" into qt-dev am: 261a2d62e2
am: f821b5df70

Change-Id: Ia293f2ea0fb56d8b03eadbedb831895fdb3e80bd
2019-07-09 11:08:44 -07:00
Svet Ganov
f3c177cc86 Merge "Update docs for UID_STATE" into qt-dev
am: 261a2d62e2

Change-Id: I259b70dc290ee1dccfb5768496e362965a75dadf
2019-07-09 11:01:30 -07:00
Svet Ganov
f821b5df70 Merge "Update docs for UID_STATE" into qt-dev
am: 261a2d62e2

Change-Id: Ibdca805d9105e60955b8258409752f13305b57ed
2019-07-09 10:55:59 -07:00
TreeHugger Robot
261a2d62e2 Merge "Update docs for UID_STATE" into qt-dev 2019-07-09 17:25:49 +00:00
Svet Ganov
66840aecdc Specify the duration time base am: 6f672a3835 am: 947aeb09d9
am: b83d9c1c2d

Change-Id: Ie9be7c943908dae0e335df99345815b76874f306
2019-07-08 19:55:07 -07:00
Svet Ganov
b83d9c1c2d Specify the duration time base am: 6f672a3835
am: 947aeb09d9

Change-Id: Ibf0123753fe765deb1d2c6942ca8f5bf8926cb7c
2019-07-08 19:44:58 -07:00
Svet Ganov
947aeb09d9 Specify the duration time base
am: 6f672a3835

Change-Id: I647068b041eb06a3814cface4b4dce50bc7ff2e7
2019-07-08 19:33:03 -07:00
Svet Ganov
7922ef60fc Specify the duration time base
am: 6f672a3835

Change-Id: I55a7866ab35c6c652b378ced6cea8c63c1a14016
2019-07-08 19:32:25 -07:00
Shivam Agrawal
12f27f0b69 Merge "Refactor ATMS and WMS methods" 2019-07-09 00:02:02 +00:00
Svet Ganov
6f672a3835 Specify the duration time base
Test: N/A

Bug: 128316830

Change-Id: Idd8f1aaf1a8e0013c01fdf4d668f9d5e81101559
2019-07-08 16:40:45 -07:00
Svet Ganov
05fcd228b5 Update docs for UID_STATE
Test: N/A

Bug: 128919932

Change-Id: Ibac690db3b58293082f762800bbbff0f832a16b2
2019-07-08 16:30:48 -07:00
Shivam Agrawal
1d3db65758 Refactor ATMS and WMS methods
Moved updateDisplayOverrideConfiguration
updateDisplayOverrideConfigurationLocked, and
performDisplayOverrideConfigUpdate from ATMS to ActivityDisplay
because all calls to these methods have a reference to either a
DisplayContent or ActivityDisplay, so it is better that the methods
are called directly rather than going through a service that uses
displayId to get access to an object it already could have had access
to. Similarly, sendNewConfiguration has been moved from
WindowManagerService to DisplayContent. These changes are
necessary for situations where methods in ATMS and WMS want
to process ActivityDisplay and DisplayContent objects before they
are added to either hierarchy. These situations will arise when sending
new configurations happens synchronously as opposed to posting to a
handler (as is the current situation with
DisplayContent#sendNewConfiguration).

Bug: 130807132
Test: go/wm-smoke
Change-Id: Ie2bd6c32b2adc2c4c5d585e361defd6c98652f01
2019-07-08 11:25:26 -07:00
Issei Suzuki
006b71f401 Support alpha value in SurfaceView.
For backward compatibility, SurfaceView ignores alpha value by
default. In order to reflect alpha value set on the SurfaceView
to its underlying surface, setUseAlpha() needs to be called.

Translucent alpha only works when the surface is placed z-above.
Otherwise only fully opaque and transparent status are supported.

Bug: 130442248
Test: Manual, use BubblesTest app and checks if alpha is set.
Change-Id: I86847de59109b2adf12a2c7c50c988c2cbcf0450
2019-07-04 09:49:23 +02:00
Louis Chang
0572586935 Merge "Avoid making post state to RESUMED for a PAUSING activity" into qt-dev am: ae80cf399a am: d75d59e276
am: 2b1d0b0bd5

Change-Id: I01a328a7a1b5ed7f7a72a4d93c54f5a8ef32e216
2019-07-03 19:49:27 -07:00
Louis Chang
2b1d0b0bd5 Merge "Avoid making post state to RESUMED for a PAUSING activity" into qt-dev am: ae80cf399a
am: d75d59e276

Change-Id: I4d4fca8ed694827d3090b97869fc8eb6bec22fca
2019-07-03 17:29:12 -07:00
Louis Chang
d75d59e276 Merge "Avoid making post state to RESUMED for a PAUSING activity" into qt-dev
am: ae80cf399a

Change-Id: I555a5a142e9edb6b6242a831561754082b750b54
2019-07-03 16:40:13 -07:00
Louis Chang
026aacbe71 Merge "Avoid making post state to RESUMED for a PAUSING activity" into qt-dev
am: ae80cf399a

Change-Id: I4e9ee3631b0e2fd76c6af24390150d3421bbf6be
2019-07-03 16:39:36 -07:00
TreeHugger Robot
f10a78ceaf Merge changes from topic "perm_query"
* changes:
  Move add/remove permission
  Move permission info queries
2019-07-03 19:46:44 +00:00
Todd Kennedy
6ffc5a6eee Move add/remove permission
Bug: 135279435
Test: atest android.content.pm.cts.PackageManagerTest
Change-Id: I40a6d592031483a6dfe61906f6fa011c91910328
2019-07-03 10:14:19 -07:00
Todd Kennedy
1d29b4af0b Move permission info queries
Now begins the parade of methods that can be migrated to the
permission manager service and be removed from the package
manager service.

We will still need to maintain some sub-set of APIs in the
package manager service due to unsupported app usage. When
we finally no longer support these AIDL methods, they can
be removed from package manager service.

Bug: 135279435
Test: Manual. Builds and runs
Change-Id: If12609ffdaeb75445d3ec9bcc7f946b8829ba769
2019-07-03 10:14:09 -07:00
Louis Chang
ea203cdbdf Avoid making post state to RESUMED for a PAUSING activity
Make sure the client post execution lifecycle state to RESUMED
only if the activity was RESUMED while delivering new intent.

Bug: 135715788
Test: making skype calls
Test: atest ActivityThreadTest

Change-Id: I1e3054e1d1611aecf6ddf6d482abf2cb3ebdf9a4
2019-07-03 09:44:12 +08:00
TreeHugger Robot
9e63c33f9e Merge "Create permission manager AIDL" 2019-07-02 23:26:07 +00:00
Todd Kennedy
8f135982a8 Create permission manager AIDL
Today, the package manager largely routes any permission related
method to the PermissionManagerService. But, PermissionManagerService
is a service in name only. Instead, we will make the
PermissionManagerService a real service and direct API calls directly
to it.

We will likely need to maintain all of the public permission APIs
that already exist on PackageManager. However, the public -> private
implementation will go directly to PermissionManagerService.

Bug: 135279435
Test: Manual. Device boots
Change-Id: Ia4992ba6d1f4b9050db98c7d7647d51a5d45fcbe
2019-07-02 13:17:05 -07:00
TreeHugger Robot
498cc58a7c Merge "Print activity event log with token identity" 2019-07-02 08:28:52 +00:00
Michael Groover
94672cea7c Add device identifier permission checks to TelephonyPermissions
Bug: 131916175
Fixes: 136305129
Test: atest PhoneSubInfoControllerTest
Change-Id: Icca98347ab76b7c3468b95756a33a758a3abde37
Merged-In: I3c82c53ec89cd17b34a61166ccc9e9747388efac
2019-07-01 17:53:11 +00:00
Riddle Hsu
9a5bb3bbc5 Print activity event log with token identity
The log information will be clearer when there are multiple
activities use the same class.

The user id field is replaced because it can be easily read by
the printed uid (logcat -v uid) or mapped to the corresponding
log printed by system server that contains user id.

Bug: 136456023
Test: The server and client am_* lifecycle related event logs
      print the same identity.

Change-Id: Iaf82041bc8b4e6690e3aee822c91389bd166b6df
2019-07-01 20:16:12 +08:00
Mathew Inwood
46f7f16a4d Merge "Restore some greylist entries." into qt-dev am: f76bdce6e0 am: 13ffa87a6d
am: 89f02cc81c

Change-Id: Ib5bc4e76d81ad69f7c3293e6cb72393e1aee7ed9
2019-06-28 09:36:40 -07:00