Commit Graph

9463 Commits

Author SHA1 Message Date
David Brazdil
bef718ff1b Merge "Revert "More flexible API enforcement policy."" 2018-03-20 20:26:45 +00:00
David Brazdil
1bc41d4c7d Revert "More flexible API enforcement policy."
This reverts commit 8bf10c74d4.

Reason for revert: Breaks run-test 674-hiddenapi

Change-Id: I014b29bf502d98d3e4134c16302008de085f64e2
2018-03-20 20:20:44 +00:00
Eugene Susla
866361b023 Merge "Make TCMS multi-user-aware" 2018-03-20 19:39:31 +00:00
TreeHugger Robot
27c92a6efc Merge "More flexible API enforcement policy." 2018-03-20 18:21:43 +00:00
Julia Reynolds
7d133ba39c Merge "Update system notification channels" into pi-dev am: 374b86a743
am: cf00d0c2ac

Change-Id: I1d5ae92a7ef78f9917c4fe8fc74c2a1328f2814c
2018-03-20 13:41:40 +00:00
TreeHugger Robot
374b86a743 Merge "Update system notification channels" into pi-dev 2018-03-20 13:13:36 +00:00
Mathew Inwood
8bf10c74d4 More flexible API enforcement policy.
This CL adds the basics to set black, dark gray or light gray list
enforcement, rather than just black as before. It's not possible to
actually set the policy per-package yet.

PackageDexOptimizer still uses a single bit, for API checks on/off, rather
than the new enum. It assumes blacklist enforcement internally. This can
be improved in a follow up CL.

Test: m
Test: Boot device

BUG: 73337509
Change-Id: I582bbb3ae63b4ef1c1f2af78930d153df7936075
2018-03-20 13:04:38 +00:00
Tej Singh
b52d6f14aa Merge "Merge "Atoms: Mobile Connection" into pi-dev am: dba47fcd09" into pi-dev-plus-aosp
am: 0a4a9248b5

Change-Id: I6c028678eb91627ae3c36db76e23f5237abf4c28
2018-03-20 01:12:26 +00:00
Tracy Zhou
8002e7f96c Merge "Move default pip position to right above the shelf." into pi-dev am: 017f44be88
am: 6f9ebab4ed

Change-Id: I65e587befec2dcba43b95fe6c6d8775a918fd332
2018-03-20 00:34:39 +00:00
TreeHugger Robot
dba47fcd09 Merge "Atoms: Mobile Connection" into pi-dev 2018-03-19 20:45:55 +00:00
Tracy Zhou
017f44be88 Merge "Move default pip position to right above the shelf." into pi-dev 2018-03-19 20:15:14 +00:00
Mike Ma
a5312bc235 Merge "Resolve STATSD and batterystats race condition" into pi-dev am: 1639c330fc
am: a2a3d4ceb6

Change-Id: I2eb4b3c1406be38021b262d424910a9af6a020af
2018-03-19 19:35:57 +00:00
Eugene Susla
835c8b3962 Make TCMS multi-user-aware
Bug: 74392619
Fixes: 72481438
Test: presubmit
Change-Id: I1a04fe59216ac94ade8db0c2f56b83ca648db1e7
2018-03-19 11:07:05 -07:00
TreeHugger Robot
1639c330fc Merge "Resolve STATSD and batterystats race condition" into pi-dev 2018-03-19 18:00:40 +00:00
Tracy Zhou
43513086d2 Move default pip position to right above the shelf.
This change takes care of the flow from WindowManagerService to
PinnedStackController, all the way to PipTouchHandler. It also
introduces a WindowManager hook that allows Launcher to pass in
shelf visibility and height. A separate change is made to send
signals from Launcher to SysUI. (ag/3724896)

Bug: 73961893
Change-Id: I2ff54e78bc2dc35c806b902464048b051a4d6394
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerPinnedStackTests
2018-03-19 17:41:08 +00:00
Tej Singh
eee317b7b6 Atoms: Mobile Connection
Atom definitions for MobileConnectionStateChanged and
MobileRadioTechnologyChanged

Also cleans up batterystats.

Bug: b/72320589
Test: verified logs appear in adb logcat -b stats
Change-Id: I9feb258cf6dd4a8c8bf1cffc9566b5d0a851a9fa
2018-03-19 09:48:22 -07:00
Julia Reynolds
fd80cff8e8 Update system notification channels
Allow some channels to be blocked, and most to
bypass DND.

Test: make
Change-Id: I135ef6f32a15bb2fc9c859ab087b2dc7477d67e1
Fixes: 75429403
2018-03-19 12:34:08 -04:00
Chad Brubaker
a953a4aacb Merge "Hide notifications when in Lockdown mode" into pi-dev am: 36b0b60e40
am: aee0b80abf

Change-Id: I07f7d05332a894582e52da06d3ba3085144c9ca8
2018-03-17 01:57:08 +00:00
Mike Ma
234d1828ca Resolve STATSD and batterystats race condition
Both STATSD and batterystats need to read uid cpu info. However, uid cpu
stats needs to be cleared from time to time to conserve memory. To
resolve this race condition, only batterystats will remove uid stats,
both from readers and from the kernel, also with a delay, so that STATSD
can access such info before it is removed.

Refactored readers to reuse some common code. Also removed string reader
from KernelUidCpuFreqTimeReader completely since binary reader has been
working fine for a while.

Change-Id: I209bdcec642e1a29a44b566ce98ebbfaaacb4e6a
Fixes: 72172569
Test: BatteryStatsCpuTimesTest
Test: KernelUidCpuActiveTimeReaderTest
Test: KernelUidCpuClusterTimeReaderTest
Test: KernelUidCpuFreqTimeReaderTest
2018-03-16 17:19:15 -07:00
Chad Brubaker
36b0b60e40 Merge "Hide notifications when in Lockdown mode" into pi-dev 2018-03-17 00:16:34 +00:00
Ryo Hashimoto
71d36aa327 Merge "Change FUSE_MAX_WRITE's value to 128KB" into pi-dev am: ebc30594e0
am: 583d8962a4

Change-Id: I74a85f3c8a4a5d8a427d0aa2c1d4ebabdb7997df
2018-03-16 06:21:01 +00:00
TreeHugger Robot
ebc30594e0 Merge "Change FUSE_MAX_WRITE's value to 128KB" into pi-dev 2018-03-16 03:00:44 +00:00
Chad Brubaker
ea8c5ef2b8 Hide notifications when in Lockdown mode
When the user triggers lockdown the device is put into a secure state,
beyond disabling less secure unlock modalities this should also disable
notifications so that data is not leaked despite the device being
strongly locked.

Fixes: 74564088
Test: Entered lockdown, verified notifications are no longer displayed
on the lockscreen

Change-Id: I4188c36b11a1b0cd496b8032bd246f0413c911c5
2018-03-15 16:37:43 -07:00
Ryo Hashimoto
5c14d498ff Change FUSE_MAX_WRITE's value to 128KB
In the kernel code, there is a constant FUSE_MAX_PAGES_PER_REQ which
limits the size of requests to 128KB.

Bug: 74725300
Test: atest android.os.storage.cts.StorageManagerTest
Change-Id: I6776a409ea68da946bb58e1a933f51c68cb1a99a
2018-03-15 14:20:49 +09:00
Julia Reynolds
fbf851b473 Merge changes Iaf63b4e8,Ie76044d4 into pi-dev am: a60e6f81df
am: e8a6b12f01

Change-Id: I7d48d3e13887897904d7a4a537c8624be10272f2
2018-03-14 22:02:10 +00:00
Julia Reynolds
0b8455d4d8 Change DND upgrade noti text and channel
Test: manual
Bug: 74075050
Change-Id: Iaf63b4e8691ba42ac4d1ddccf8f2368bfc0b74d7
2018-03-14 11:40:12 -04:00
Annie Meng
d3b6e9fe22 Merge "DO NOT MERGE Create a key value settings observer for backup parameters" into pi-dev 2018-03-14 13:40:46 +00:00
Annie Meng
21c1f35c1a Merge "Create a key value settings observer for backup parameters" 2018-03-14 10:38:36 +00:00
TreeHugger Robot
2801bf00de Merge "Display shortcut modifiers in menu" into pi-dev 2018-03-14 02:48:57 +00:00
Annie Meng
7d3033b11f DO NOT MERGE Create a key value settings observer for backup parameters
Extracts an abstract class to observe changes in backup parameter settings that
are stored as a comma-separated key value list. This class is
responsible for registering and unregistering a content observer on the
setting and updating local references to the parameters.

Refactor BackupManagerConstants and LocalTransportParameters to use this
implementation. This will also be used for the new backup timeout
setting.

Bug: 74346317
Test: 1) m -j RunFrameworksServicesRoboTests ROBOTEST_FILTER=BackupManagerConstantsTest
2) gts-tradefed run commandAndExit gts-dev -m GtsBackupHostTestCases -t com.google.android.gts.backup.TransportFlagsHostSideTest

Change-Id: Id4c50fbcf7479c925515887e3fa70e166dd9955c
2018-03-13 18:47:46 +00:00
Annie Meng
48b2ecae52 Create a key value settings observer for backup parameters
Extracts an abstract class to observe changes in backup parameter settings that
are stored as a comma-separated key value list. This class is
responsible for registering and unregistering a content observer on the
setting and updating local references to the parameters.

Refactor BackupManagerConstants and LocalTransportParameters to use this
implementation. This will also be used for the new backup timeout
setting.

Bug: 74346317
Test: 1) m -j RunFrameworksServicesRoboTests ROBOTEST_FILTER=BackupManagerConstantsTest
2) gts-tradefed run commandAndExit gts-dev -m GtsBackupHostTestCases -t com.google.android.gts.backup.TransportFlagsHostSideTest

Change-Id: Id4c50fbcf7479c925515887e3fa70e166dd9955c
(cherry picked from commit 16ef6ffb3cbea77637ad99c2b0c79cbfd8f03c9a)
2018-03-13 18:24:12 +00:00
TreeHugger Robot
1774a14d88 Merge "Migrate from config.xml to SystemConfig for disabled carrier apps" 2018-03-13 17:19:35 +00:00
dalyk
21d15049f4 Add new netd event callback for changes to private DNS validation state.
Test: None.
Bug: 71828272
Merged-In: Ib6824606b95deb23da2edd7aa4b96a0de66b12d1
Merged-In: Id88a4e846ae50536ac7b1541cf10c1fad1b1eeca
Change-Id: Ibf2683b9ff7c6cb69d7f4ad12b8bdff7cf7008f0
(cherry picked from commit 99c5029b91)
2018-03-13 22:39:59 +09:00
Erik Kline
15b77dafd9 Merge "Add new netd event callback for changes to private DNS validation state." am: 40ca5a06bf am: 5e9725bdc7
am: be5e9b4257

Change-Id: Id88a4e846ae50536ac7b1541cf10c1fad1b1eeca
2018-03-13 13:35:49 +00:00
Erik Kline
be5e9b4257 Merge "Add new netd event callback for changes to private DNS validation state." am: 40ca5a06bf
am: 5e9725bdc7

Change-Id: Ib6824606b95deb23da2edd7aa4b96a0de66b12d1
2018-03-13 13:23:08 +00:00
Erik Kline
5e9725bdc7 Merge "Add new netd event callback for changes to private DNS validation state."
am: 40ca5a06bf

Change-Id: I504148b6a508b6f5e4b5dfa0976362496b91c15c
2018-03-13 13:11:37 +00:00
Jiyong Park
7ceb0bd7b6 Merge "Limit the systemconfig tags allowed to vendors" into pi-dev am: 75029d0dbc
am: d174695734

Change-Id: I5ceb5478d10efb28a4ebf143d33be94c7cf06ba9
2018-03-13 06:50:11 +00:00
TreeHugger Robot
75029d0dbc Merge "Limit the systemconfig tags allowed to vendors" into pi-dev 2018-03-13 04:08:33 +00:00
Vladislav Kaznacheev
d842533f22 Display shortcut modifiers in menu
Prepend relevant meta key names (such as Ctrl+) to the shortcut
displayed in a menu.

Do not prepend "Menu+" if the device does not have a hardware Menu key.

Bug: 31045453
Test: run ApiDemos (MenuInflateFromXml), select "Shortcuts", observe
  Ctrl+ prepended to shortcuts.

Change-Id: I1a38bd1baf069dd1adb24a26f89c6db6390b8b8d
(cherry picked from commit 0cc2c6b190)
2018-03-12 17:53:57 -07:00
Rubin Xu
5bc5678e9c Merge "Move escrow APIs into LockSettingsInternal" into pi-dev am: e40dcabbc8
am: 3f85ad8abd

Change-Id: I03aec40928d4c22ea8b668d70b61cc0b75507b87
2018-03-12 21:13:10 +00:00
Vadim Tryshev
67a9abf4ad Merge "Adding generation of ACTION_TOGGLE_RECENTS to shared lib" into pi-dev am: 82bc5baeb5
am: 2eedba70d4

Change-Id: I8282727838e637421d35eaf4a023c721436bee85
2018-03-12 20:01:58 +00:00
dalyk
99c5029b91 Add new netd event callback for changes to private DNS validation state.
Test: None.
Bug: 71828272
Change-Id: Ibf2683b9ff7c6cb69d7f4ad12b8bdff7cf7008f0
2018-03-12 15:00:55 -04:00
TreeHugger Robot
e40dcabbc8 Merge "Move escrow APIs into LockSettingsInternal" into pi-dev 2018-03-12 18:51:28 +00:00
TreeHugger Robot
82bc5baeb5 Merge "Adding generation of ACTION_TOGGLE_RECENTS to shared lib" into pi-dev 2018-03-12 18:13:16 +00:00
Rubin Xu
fcd49f993e Move escrow APIs into LockSettingsInternal
Remove the IPC interfaces so these APIs are only available to other
services running inside system server process only.

Bug: 62264551
Test: runtest frameworks-services -p com.android.server.locksettings
Change-Id: Ic7ac5df5fb977bc68a2c4daafaa3cdaf3ba66fcd
2018-03-12 11:57:34 +00:00
Mihai Popa
fb4b6b8fd2 [Magnifier-28] Set corner radius
This CL updates both the magnifier and the floating toolbar to use the
dialogCornerRadius attribute for the corner radius of their windows. In
both we use its value defined in the default device theme, rather than
the value defined in the application's custom theme.

Bug: 70848492
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: Ifcf4cff1f38fd18b7dbb4c1802390e3beb92cd3c
(cherry picked from commit 3dcbc2112d)
Merged-In: Ifcf4cff1f38fd18b7dbb4c1802390e3beb92cd3c
2018-03-12 11:49:23 +00:00
Mihai Popa
05934a4e7e Merge "[Magnifier-28] Set corner radius" 2018-03-12 11:47:08 +00:00
Jiyong Park
50eae0f452 Merge "Allow apps in /odm/app and /odm/priv-app" into pi-dev am: f85de9616f
am: 2530078d58

Change-Id: Ib7184fcee32a16036c39ececf2ab736064ecdbec
2018-03-12 05:35:52 +00:00
TreeHugger Robot
f85de9616f Merge "Allow apps in /odm/app and /odm/priv-app" into pi-dev 2018-03-12 05:07:32 +00:00
Jiyong Park
fad9944e7e Limit the systemconfig tags allowed to vendors
Vendors are allowed to customize these systemconfig tags only.

<library>
<feature>
<privapp-permissions>

This is because the systemconfig tags are essentially the part of system
<-> vendor interface and thus need to be stable (or evolve in a backward
compatible manner) across several Android releases and we would like to
keep the interface as small as as possible.

However, since vendors were allowed to use more tags (like <permission>,
<app-link>, <default-enabled-vr-app>) in Oreo and Oreo-MR1, this
limitation is applied only for newly launching devices whose first API
level is equal to or greater than P.

Bug: 70821981
Test: wahoo is bootable (launched with Oreo)
Test: crosshatch is bootable (launched with P)
Test: adb logcat -s SystemConfig does not show that a tag is not
supported

Change-Id: I371b93a80f3d9728ea6d35022081776a8658d9f3
2018-03-12 12:05:50 +09:00