Commit Graph

15443 Commits

Author SHA1 Message Date
Adrian Roos
928a1a1826 Merge "System Bars: API to ensure contrast when app requested transparent bar" into qt-dev
am: 76d2f52e3f

Change-Id: I24f9a8d0c94a4b99a80b1439051b220a41cf4576
2019-04-12 06:46:52 -07:00
Adrian Roos
76d2f52e3f Merge "System Bars: API to ensure contrast when app requested transparent bar" into qt-dev 2019-04-12 09:43:57 +00:00
Kiyoung Kim
be955e81b1 DO NOT MERGE Do not check product unbundled from Q
This code should be enabled from R, but for some devices it just works
because of target SDK + no /product/lib directory. To avoid confusion
this code should be removed from Q release

Bug: 129011845
Test: m -j
Change-Id: I4d85cbcb5e2cbe694ec065f4e3d060eb74f542ba
2019-04-12 10:52:43 +09:00
TreeHugger Robot
6ce0a59623 Merge changes I98573a5c,Ic7394f24 into qt-dev
* changes:
  Enable checks for MANAGE_TEST_NETWORKS in TestNetworkService
  Cleanup of Test Network service
2019-04-12 00:54:45 +00:00
Winson
084e29c48c Merge "Update LoadedApk instead of re-creating on outdated cache" into qt-dev
am: 1d66b0b0d0

Change-Id: Idc8dbb691c5f4f8ee2f3bdd3513fd3dbc56cc35d
2019-04-11 17:53:06 -07:00
TreeHugger Robot
1d66b0b0d0 Merge "Update LoadedApk instead of re-creating on outdated cache" into qt-dev 2019-04-12 00:08:22 +00:00
Sunny Goyal
02b167e7f5 Merge "Fixing HardwareBuffer leak when creating a bitmap" into qt-dev
am: 73913e3bf6

Change-Id: I52571b19934a3855b089c4f7562364b20da44abf
2019-04-11 14:24:07 -07:00
TreeHugger Robot
73913e3bf6 Merge "Fixing HardwareBuffer leak when creating a bitmap" into qt-dev 2019-04-11 21:06:40 +00:00
David Brazdil
618940c95f Merge "Update AppComponentFactory.instantiateClassLoader docs" into qt-dev 2019-04-11 20:46:24 +00:00
Benedict Wong
b4e98f3b0b Cleanup of Test Network service
This follow-up change performs some cleanup changes without affecting
functionality

Bug: 72950854
Test: Compiles, CTS tests using this pass
Change-Id: Ic7394f24f11d713c9374b438182e29d2a02ea236
Merged-In: Ic7394f24f11d713c9374b438182e29d2a02ea236
(cherry picked from commit 7df36ed96a)
2019-04-11 20:04:06 +00:00
Winson
71cf350f8e Update LoadedApk instead of re-creating on outdated cache
Recreating the entire object drops the mApplication inside,
so multiple Application instances are unexpectedly created.

Instead, call into updateApplicationInfo to replace
the Resources object manually.

Bug: 129890769

Test: device boots, applies overlay paths correctly; was unable
to reproduce a case where the overlays are missing from the
system itself, other Resources/caching changes may have
decreased the occurrence rate

Change-Id: Ib5e7d6ca79ac5b37d5691ce327e3b66cc4672335
2019-04-11 11:36:04 -07:00
David Brazdil
67ded11b7b Merge "Update AppComponentFactory.instantiateClassLoader docs" am: 352021b4aa
am: 469fb50385

Change-Id: Ice6805ac3e84176f4de1a16972de693c043149bd
2019-04-11 10:14:53 -07:00
Benedict Wong
41d0d656f1 Merge changes I98573a5c,Ic7394f24 am: c6ce6fc841
am: ed4f59e264

Change-Id: I279765199a80b0639dde31302778a95c0f9fd705
2019-04-11 10:05:20 -07:00
Mady Mellor
ed4117aca8 Merge "Drop the 'initial' of suppressInitialNotification API" into qt-dev
am: d8913d7eac

Change-Id: I6096370bee4970c3aaa369430d50207233d22d98
2019-04-11 09:56:57 -07:00
Mady Mellor
d8913d7eac Merge "Drop the 'initial' of suppressInitialNotification API" into qt-dev 2019-04-11 16:28:34 +00:00
Adrian Roos
6eb1ed3a61 System Bars: API to ensure contrast when app requested transparent bar
Bug: 129533768
Test: atest EnsureBarContrastTest
Change-Id: I42facefc15dce227193a4db5f368184e1b5ebd32
2019-04-11 16:50:32 +02:00
Ricky Wai
3ca53a8e5c Merge "Do not allow moveToFront() and moveTaskToFront() when app is in background" into qt-dev
am: bbde1150c5

Change-Id: Id0555f82d152d24f282e8adb01c6248a9b515460
2019-04-11 06:53:34 -07:00
Ricky Wai
bbde1150c5 Merge "Do not allow moveToFront() and moveTaskToFront() when app is in background" into qt-dev 2019-04-11 13:33:04 +00:00
David Brazdil
1fe58ea321 Update AppComponentFactory.instantiateClassLoader docs
Clarify the intended use and properties of the default class loader.

Bug: 128524313
Test: n/a
Merged-In: Iae82554f9294d5248b98f1fa72fc1a47993e86fd
Change-Id: Iae82554f9294d5248b98f1fa72fc1a47993e86fd
(cherry picked from commit 59a97141c8)
2019-04-11 12:04:52 +01:00
Julia Reynolds
1276a2f4f3 Merge "Rename capabilities to adjustments" into qt-dev
am: e8c5311cb0

Change-Id: I256858b328252248bf8d09890d491a20f715cd95
2019-04-10 18:53:05 -07:00
Adrian Roos
e37d83d844 Merge "System Bars: Ensure contrast when app requested transparent bar" into qt-dev
am: b5258351ea

Change-Id: I9294c60d22458f84d3afae034a9f9d56e018c795
2019-04-10 18:34:09 -07:00
David Brazdil
469fb50385 Merge "Update AppComponentFactory.instantiateClassLoader docs"
am: 352021b4aa

Change-Id: I467b2db20f58adddcfe785abf317d1de6bdc43ba
2019-04-10 16:47:32 -07:00
TreeHugger Robot
e8c5311cb0 Merge "Rename capabilities to adjustments" into qt-dev 2019-04-10 22:22:25 +00:00
David Brazdil
352021b4aa Merge "Update AppComponentFactory.instantiateClassLoader docs" 2019-04-10 22:18:02 +00:00
Sunny Goyal
62915b28e0 Fixing HardwareBuffer leak when creating a bitmap
Callers are supposed to close the hardware buffer themselves. Creating
a utility method around this

Bug: 123874711
Test: No more leak warning on device
Change-Id: I2cf215f0646222f63e564a58edab1ffffa396ff3
2019-04-10 21:59:57 +00:00
TreeHugger Robot
b5258351ea Merge "System Bars: Ensure contrast when app requested transparent bar" into qt-dev 2019-04-10 21:58:42 +00:00
David Brazdil
59a97141c8 Update AppComponentFactory.instantiateClassLoader docs
Clarify the intended use and properties of the default class loader.

Bug: 128524313
Test: n/a
Change-Id: Iae82554f9294d5248b98f1fa72fc1a47993e86fd
2019-04-10 19:50:18 +01:00
Mady Mellor
57db0312c8 Merge "Make FLAG_BUBBLE public; update some documentation" into qt-dev
am: b78bc92ed3

Change-Id: I8b29c92275dfa5fa790390809d91363737ab1ec5
2019-04-10 11:49:48 -07:00
Julia Reynolds
088c448e79 Rename capabilities to adjustments
To match existing API

Test: make, cts
Fixes: 130224929
Change-Id: I881ce11b583b389ee43bad6b45f837c85f949aa5
2019-04-10 14:05:39 -04:00
Benedict Wong
ed4f59e264 Merge changes I98573a5c,Ic7394f24
am: c6ce6fc841

Change-Id: I2ffeb6ef1a19f7b2982c3631fe2c040024fb53cb
2019-04-10 11:00:10 -07:00
Mady Mellor
b78bc92ed3 Merge "Make FLAG_BUBBLE public; update some documentation" into qt-dev 2019-04-10 17:33:20 +00:00
Benedict Wong
c6ce6fc841 Merge changes I98573a5c,Ic7394f24
* changes:
  Enable checks for MANAGE_TEST_NETWORKS in TestNetworkService
  Cleanup of Test Network service
2019-04-10 17:06:17 +00:00
Ricky Wai
aca8a770cd Do not allow moveToFront() and moveTaskToFront() when app is in background
Bug: 129063631
Test: Unable to start activity / move task in background
Change-Id: Icb5ebad3567b911719341f221483df1a1512109b
2019-04-10 17:24:30 +01:00
Adrian Roos
4c864595bd System Bars: Ensure contrast when app requested transparent bar
Bug: 129533768
Test: atest EnsureBarContrastTest
Change-Id: Ib8f4045b9e8e7bf65c13437133f114d91d0cb050
2019-04-10 18:16:25 +02:00
Julia Reynolds
a36ab826fb Merge "Adjust testapis/permissions for CTS tests" into qt-dev
am: a2c50b1da8

Change-Id: I58bcf5943ba823e2ea3f208e35a36dd5477a67e0
2019-04-09 20:30:28 -07:00
Kiyoung Kim
dcdfdb9008 Merge "Check if product app is unbundled from property." am: 2ed229287d
am: b3d1599e29

Change-Id: Iaf120c77b80b16a34920241341872d1ab8a8f5f0
2019-04-09 19:01:33 -07:00
Kiyoung Kim
b3d1599e29 Merge "Check if product app is unbundled from property."
am: 2ed229287d

Change-Id: I26d106c372f584939e012dd6c2a1eaa5dfcef8c3
2019-04-09 17:51:24 -07:00
Kiyoung Kim
2ed229287d Merge "Check if product app is unbundled from property." 2019-04-10 00:34:54 +00:00
Benedict Wong
7df36ed96a Cleanup of Test Network service
This follow-up change performs some cleanup changes without affecting
functionality

Bug: 72950854
Test: Compiles, CTS tests using this pass
Change-Id: Ic7394f24f11d713c9374b438182e29d2a02ea236
2019-04-09 16:34:35 -07:00
Julia Reynolds
dc6adc6ca8 Adjust testapis/permissions for CTS tests
Test: cts
Bug: 127341023
Change-Id: Ice19dc337a06a3f20edca583ecbe5ef3148fd96d
2019-04-09 17:55:39 +00:00
TreeHugger Robot
c007b7f50e Merge "Remove custom lifecycle transitions for onNewIntent callback" into qt-dev 2019-04-09 04:35:20 +00:00
TreeHugger Robot
ac54e30fe5 Merge "Fix job persistence & re-inflation" into qt-dev 2019-04-08 17:17:12 +00:00
Steven Moreland
623b90d65e Merge "ApplicationLoaders: hard failures & tests" into qt-dev 2019-04-08 16:27:21 +00:00
TreeHugger Robot
e9d146ec9a Merge "Remove DELEGATION_PACKAGE_INSTALLATION" into qt-dev 2019-04-08 15:10:59 +00:00
Svet Ganov
d8eb8b2690 Restricted permission mechanism - framework
This change adds a mechanism for restricting permissions (only runtime
for now), so that an app cannot hold the permission if it is not white
listed. The whitelisting can happen at install or at any later point.

There are three whitelists: system: OS managed with default grants
and role holders being on it; upgrade: only OS puts on this list
apps when upgrading from a pre to post restriction permission database
version and OS and installer on record can remove; installer: only
the installer on record can add and remove (and the system of course).

Added a permission policy service that sits on top of permissions
and app ops and is responsible to sync between permissions and app
ops when there is an interdependecy in any direction.

Added versioning to the runtime permissions database to allow operations
that need to be done once on upgrade such as adding all permissions held
by apps pre upgrade to the upgrade whitelist if the new permisison version
inctroduces a new restricted permission. The upgrade logic is in the
permission controller and we will eventually put the default grants there.

NOTE: This change is reacting to a VP feedback for how we would handle
SMS/CallLog restriction as we pivoted from role based approach to roles
for things the user would understand plus whitelist for everything else.
This would also help us roll out softly the storage permisison as there
is too much churm coming from developer feedback.

Exempt-From-Owner-Approval: trivial change due to APi adjustment

Test: atest CtsAppSecurityHostTestCases:android.appsecurity.cts.PermissionsHostTest
Test: atest CtsPermissionTestCases
Test: atest CtsPermission2TestCases
Test: atest RoleManagerTestCases

bug:124769181

Change-Id: Ic48e3c728387ecf02f89d517ba1fe785ab9c75fd
2019-04-07 22:39:54 -07:00
Louis Chang
92d1652fa6 Remove custom lifecycle transitions for onNewIntent callback
Rebased from ag/3785659. This CL switches to using post-execution
state resolution for new intent delivery. Also removes some
unnecessary code needed for old logic.

Bug: 65236456
Bug: 77974794
Test: atest ActivityLifecycleTests
Change-Id: I734ad50de498cd2a6b9514c8ef6cb1eeb08e4ec5
2019-04-08 04:37:50 +00:00
TreeHugger Robot
986f1f4e5f Merge "Add provisioning extra definition to skip education screens" into qt-dev 2019-04-07 10:33:28 +00:00
TreeHugger Robot
b24094f373 Merge "Do not start jit profile in app zygote" into qt-dev 2019-04-06 11:55:48 +00:00
Christopher Tate
7f6acc05db Fix job persistence & re-inflation
We were persisting jobs' battery-not-low constraints but were not
properly restoring that constraint when the job was inflated at boot.
This could result in a runtime bootloop (!) if the job had no other
constraints, requiring a factory reset to restore the device to
usability.

We now:

* properly inflate the battery-not-low constraint;
* persist & inflate the storage-not-low constraint, which previously was
being stripped entirely and could result in a similar crash-at-boot;
* ignore the job rather than crash the system if one is inflated into
a non-viable state; and
* formally test previously-untested constraint persistence

Bug: 130012063
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/job/JobStoreTest.java
Test: atest CtsJobSchedulerTestCases
Test: JobStoreTest with forced throw in JobInfo.Builder#build()
Change-Id: Ia3ab1eb16aeaa85336409368b4340622cec19f4c
2019-04-05 17:12:28 -07:00
Bo Liu
6c504aebe8 Do not start jit profile in app zygote
Bug: 130031692
Test: Scenario in bug works.
Change-Id: Ia28e8fc60cdf4afd2215b9f2239ca215694fc76c
2019-04-05 14:58:03 -04:00