Commit Graph

101819 Commits

Author SHA1 Message Date
Dmitry Dementyev
cdec79367d Merge "Check that Account Parcel has name and type." into qt-dev 2019-04-09 17:55:13 +00:00
Adam He
168f7e48ac Merge "Added documentation to note onDisconnected() should not make calls to their respective managers." into qt-dev 2019-04-09 17:37:07 +00:00
TreeHugger Robot
8edbcf8c32 Merge "Sharesheet - Add support for sunshine" into qt-dev 2019-04-09 14:42:31 +00:00
Matt Pietal
a4b30072a0 Sharesheet - Add support for sunshine
Set apps/targets to be visually disabled when in suspended state. Do
not auto launch when the only app is suspended.

Bug: 112553778
Test: Manually inspect colors on app suspension
Change-Id: Ief9faba831c4f3676f02f84b0174b74d4103f940
2019-04-09 07:57:04 -04:00
Chiachang Wang
6839f419de Merge "Move data stall definitions out from Setting" into qt-dev 2019-04-09 11:52:54 +00:00
TreeHugger Robot
5a56c2d9cc Merge "Sharesheet: Rank the first N apps, then show the rest alphabetically." into qt-dev 2019-04-09 11:10:00 +00:00
TreeHugger Robot
1ed8d8109f Merge "DynamicSystem string review followup" into qt-dev 2019-04-09 10:22:19 +00:00
Chiachang Wang
0b98441205 Move data stall definitions out from Setting
From mainline perspective, we should use android flag api
instead of using Settings. Thus, move the definitions into
NetworkStack.

Bug:120013793
Test: atest NetworkStackTests SettingsBackupTest
Change-Id: I8e1fb5b47fff3bf624131ba1f5732daabd991e6d
2019-04-09 08:32:55 +00:00
Po-Chien Hsueh
9a1627f521 DynamicSystem string review followup
Some changes to follow string review suggestions:
- Simplify some messages.
- Replace 'Reboot' with 'Restart'.
- Notification action button order: 'Restart' button on the right.

Bug: 129100345
Test: verified with test app
Change-Id: I1ee97b0adbf74add68d3561fc647dc4923ee7237
2019-04-09 14:26:38 +08:00
TreeHugger Robot
16f682cac6 Merge "Fix InsetsSourceConsumer visibility" into qt-dev 2019-04-09 05:34:11 +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
7fe981bf9e Merge "Fixed IFillCallback to be oneway calls." into qt-dev 2019-04-09 04:20:19 +00:00
TreeHugger Robot
b7cbb87e90 Merge "Adds annotations in response to API feedback." into qt-dev 2019-04-09 03:10:37 +00:00
TreeHugger Robot
e3aa7b9ac3 Merge "Fixes crash due to assigning service before linking death recipient." into qt-dev 2019-04-09 02:06:17 +00:00
Ching-Sung Li
f8d48b0316 DO NOT MERGE Add feature flag for PixelLiveWallpaper dogfood in Settings
Add feature flag (settings_pixel_wallpaper_category_switch) in developer
option for PixelLiveWallpaper's dogfood user to turn downloadable Live
wallpaper's category on or off. Expected expiration on: 2019/07/31.

Bug: 128962566
Test: Manual check this feature flag in developer option
Change-Id: Ie9d9180605cf92cf5618999d5a76f4fd87875859
2019-04-09 01:14:47 +00:00
Rob Carr
f8f5f0290e Merge "Careful with screenshots containing secure layers!" into qt-dev 2019-04-09 00:45:22 +00:00
Dmitry Dementyev
32e8579638 Check that Account Parcel has name and type.
Bug: 129287265
Test: manual
Change-Id: I8431eb27cc4c6dfd3048b28ff635474f14433308
2019-04-08 17:30:05 -07:00
TreeHugger Robot
351b1e8b60 Merge "Document runtime exception being thrown on afs.getFillEvents()." into qt-dev 2019-04-09 00:11:36 +00:00
Alison Cichowlas
1c8816c3ad Sharesheet: Rank the first N apps, then show the rest alphabetically.
Bug: 126566208
Test: atest ChooserListControllerTest
Change-Id: I4277a28cc7ad8a1f08c9a08ec018726161e5d596
(cherry picked from commit 363ed278fb)
2019-04-09 00:02:13 +00:00
Andrew Sapperstein
1bde3e7473 Adds annotations in response to API feedback.
Fixes: 126699535
Test: is annotation change
Change-Id: Iba61b36386db78e568a5dfc5720646904c75b989
2019-04-08 16:58:04 -07:00
Adam He
2dbba23540 Document runtime exception being thrown on afs.getFillEvents().
Fixes: 128029710
Test: atest CtsAutoFillServiceTestCases
Change-Id: I65936671e5d12a5c6b597bd6f4c7c97cd66f0b95
2019-04-08 15:33:24 -07:00
Robert Carr
66b5664f2d Careful with screenshots containing secure layers!
For purposes of	the screen rotation animation the system server	is allowed
to capture secure (not protected) layers and trusted not to persist screenshots
which may contain secure layers. However when displaying the screen rotation animation,
the layer the screenshot is placed on will itself not be secure, so if we record
the animation the recording will contain persisted versions of the secure content. Make sure
we use the new API from SurfaceFlinger to set FLAG_SECURE if our screenshot contains secure
content.

Bug: 69703445
Test: Transaction_test#SetFlagsSecureEuidSystem
Change-Id: I1b016fb1ad56eccd712442a71cc134e5fa3b1ac6
2019-04-08 15:22:46 -07:00
Adam He
967cb0aed7 Fixes crash due to assigning service before linking death recipient.
Fixes: 129686274
Test: atest CtsAutoFillServiceTestCases
Change-Id: I052ca9a13947f0ad25da70747e8db2be22af742b
2019-04-08 14:37:58 -07:00
Howard Ro
2470fdb507 Merge "More description on logBinaryPushStateChanged" into qt-dev 2019-04-08 21:19:35 +00:00
Tarandeep Singh
fb1689f1be Fix InsetsSourceConsumer visibility
It seems we mistakenly removed[1] leash visbility transaction from
InsetsSourceConsumer#setVisible() method causing tests to fail.

[1] I47b3d3b430fa38f80203276b9984df1f71008f6e

Change-Id: I370805a5a5bdceda4bd363c66376a8975c5ea669
Merged-In: I370805a5a5bdceda4bd363c66376a8975c5ea669
Fix: 128537917
Test: atest InsetsSourceConsumerTest
(cherry picked from commit 9602bd62bd)
2019-04-08 20:43:12 +00:00
Adam He
90134b2ac5 Fixed IFillCallback to be oneway calls.
Fixes: 77587065
Test: atest CtsAutoFillServiceTestCases
Change-Id: Ifab9bdcb142af4280580c412239c2c72b5f5fda6
2019-04-08 13:35:24 -07:00
TreeHugger Robot
353c5cc16a Merge "Allow themeing of icon in SuspendedAppActivity" into qt-dev 2019-04-08 20:17:28 +00:00
Bryan Mawhinney
cf1eee71f0 Allow themeing of icon in SuspendedAppActivity
By passing the current theme to getDrawable, we allow the suspending app
to provide, e.g., a vector drawable tinted according to the system theme
(note, *not* the suspending app theme).

Test: manual
Bug: 129995419
Change-Id: Id9d4e3292baa324856dd817fe9ac979c07339fb0
2019-04-08 20:17:01 +00:00
Adam He
5023abdf30 Added documentation to note onDisconnected() should not make calls to
their respective managers.

Test: manual verification
Fixes: 128911682
Change-Id: I780c6f78a1acd675aa13dcfc6222e220069bf611
2019-04-08 13:10:39 -07:00
Winson Chung
f883ea697e Merge "Defer broadcasting ACTION_DEFERRED_ACTIVITY_CHANGED until actual change" into qt-dev 2019-04-08 19:05:27 +00:00
TreeHugger Robot
85e35eb118 Merge "Protect against null drawable" into qt-dev 2019-04-08 17:27:52 +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
658312b51c Merge "Sharesheet - Fix scroll behavior moving past bounds" into qt-dev 2019-04-08 15:27:12 +00:00
TreeHugger Robot
e9d146ec9a Merge "Remove DELEGATION_PACKAGE_INSTALLATION" into qt-dev 2019-04-08 15:10:59 +00:00
Svetoslav Ganov
9dfc48d06e Merge "Restricted permission mechanism - framework" into qt-dev 2019-04-08 14:54:03 +00:00
Jorim Jaggi
1ed6889243 Protect against null drawable
Test: App with no background drawable doesn't crash
Fixes: 130015147
Change-Id: I28e3605aa84240979f9a04108be98d6e3006e470
2019-04-08 16:35:34 +02:00
Matt Pietal
d568294c1a Sharesheet - Fix scroll behavior moving past bounds
ResolverDrawerLayout is tracking fractions of pixels, but just drops
these fractions when offsetting the child views. When scrolling up and
down continuously, this can lead to the view scrolling past the window
bounds. Do not discard these fractions. Track the remainders and add
them in when the sum to >= 1px.

Bug: 129979914
Test: Manual scrolling test
Change-Id: I0e8ea04baca341c6b6e0573e086f3f2f8c2b39b5
2019-04-08 09:57:07 -04:00
Anthony Tripaldi
8c1ebec4f1 Remove OPTED_OUT Secure Setting based on API Council feedback.
Bug:129768185
Test: manual
Change-Id: I51d47142cfb2abeb17d6ad5e99b8f7d1ea585fc7
2019-04-08 08:35:38 +00:00
Remi NGUYEN VAN
28fd318974 Merge "Remove SocketUtils#setSocketTimeValueOption" into qt-dev 2019-04-08 08:27:49 +00:00
Remi NGUYEN VAN
7d4a9b5b26 Merge "Move attach*Filter() and addArpEntry() methods to NetworkStack" into qt-dev 2019-04-08 08:27:19 +00:00
TreeHugger Robot
aaae9b2426 Merge "Revert "Depecrate flags, and try to match them to actions"" into qt-dev 2019-04-08 08:15:12 +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
Remi NGUYEN VAN
909dfd1352 Remove SocketUtils#setSocketTimeValueOption
This API was added in Q but is not necessary anymore as
Os#setsockoptTimeval was exposed as public API.

Test: m
Fixes: 129433363
Merged-In: If4a75f23c6c0589c23cadce3b088966649062463
(cherry picked from commit 77f9d85f12)

Change-Id: I4669eb2f9fa073d765be6bcb5863a5887eaf1ab5
2019-04-08 04:38:37 +00: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
Remi NGUYEN VAN
995aada788 Move attach*Filter() and addArpEntry() methods to NetworkStack
The SocketUtils.attach*Filter and SocketUtils.addArpEntry methods
were added there because they could not be added as JNI inside
the NetworkStack. This was not possible because on Go devices,
the NetworkStack was a jar library. But now, Go also uses an APK.
Hence, move these methods to the NetworkStack.

Fixes: 129433183
Merged-In: I66d7b3e4fbfa32bb0bc853e8cf9399031daff8a9
(cherry picked from commit fe71be2b04)

Change-Id: Ice433a41469e784385f19498c154345d7b9c69b5
2019-04-08 01:41:39 +00:00
Howard Ro
74ac91a932 More description on logBinaryPushStateChanged
Provides more descriptive documentation for 'options' and 'state'
parameters when calling StatsLog#logBinaryPushStateChanged

Bug: 129768469
Fix: 129768469
Test: n/a
Change-Id: I4b06cc2618258e8e24a26c4616658ce8f146e133
2019-04-07 18:34:37 -07:00
TreeHugger Robot
986f1f4e5f Merge "Add provisioning extra definition to skip education screens" into qt-dev 2019-04-07 10:33:28 +00:00
Mathieu Chartier
5d6c852211 Merge "Enabled the USAP Pool by default." into qt-dev 2019-04-06 19:21:30 +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