OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Disable APF memory clear on pre-APFv4 devices" into pi-dev
TreeHugger Robot [Thu, 10 May 2018 15:14:20 +0000 (15:14 +0000)]
Merge "Disable APF memory clear on pre-APFv4 devices" into pi-dev

6 years agoDisable APF memory clear on pre-APFv4 devices
Bernie Innocenti [Wed, 9 May 2018 08:58:50 +0000 (17:58 +0900)]
Disable APF memory clear on pre-APFv4 devices

Fixes a system crash on HU when connecting to a wifi AP.

Change-Id: I8b71323985b6c5fc8a75f99470c9f86343d57f90
Bug: 78905546
Test: manually on android auto device

6 years agoMerge "Fix colorized messaging layout and smart replies." into pi-dev
Kenny Guy [Thu, 10 May 2018 11:37:38 +0000 (11:37 +0000)]
Merge "Fix colorized messaging layout and smart replies." into pi-dev

6 years agoMerge "Add navbar magnification to critical accessibility check" into pi-dev
Annie Meng [Thu, 10 May 2018 09:47:29 +0000 (09:47 +0000)]
Merge "Add navbar magnification to critical accessibility check" into pi-dev

6 years agoFix colorized messaging layout and smart replies.
Kenny Guy [Wed, 2 May 2018 18:10:36 +0000 (19:10 +0100)]
Fix colorized messaging layout and smart replies.

Modify messaging style and smart replies view to
cope with colorized backgrounds.

Bug: 78928664
Bug: 77927019
Test: atest SystemUITests (with patch from ag/3992401)
Test: visual - see bug for screenshots

Change-Id: Iee66931574fb48d0340986bf520532f798ef59fc

6 years agoMerge "Fixing a couple crashes in the SoundTriggerTestApp" into pi-dev
TreeHugger Robot [Thu, 10 May 2018 06:57:32 +0000 (06:57 +0000)]
Merge "Fixing a couple crashes in the SoundTriggerTestApp" into pi-dev

6 years agoMerge "AOD group notification style" into pi-dev
Lucas Dupin [Thu, 10 May 2018 06:49:42 +0000 (06:49 +0000)]
Merge "AOD group notification style" into pi-dev

6 years agoMerge "Dismiss Quickstep onboarding tip sooner." into pi-dev
Tracy Zhou [Thu, 10 May 2018 06:45:02 +0000 (06:45 +0000)]
Merge "Dismiss Quickstep onboarding tip sooner." into pi-dev

6 years agoMerge "Make system server profiling an explicit runtime intent" into pi-dev
Calin Juravle [Thu, 10 May 2018 06:03:08 +0000 (06:03 +0000)]
Merge "Make system server profiling an explicit runtime intent" into pi-dev

6 years agoMerge "Fix SSID not being logged by the validation logs" into pi-dev
Chalard Jean [Thu, 10 May 2018 05:58:24 +0000 (05:58 +0000)]
Merge "Fix SSID not being logged by the validation logs" into pi-dev

6 years agoMerge "Further flesh out app ops foreground state." into pi-dev
Dianne Hackborn [Thu, 10 May 2018 05:49:08 +0000 (05:49 +0000)]
Merge "Further flesh out app ops foreground state." into pi-dev

6 years agoMerge "Allow keep showing to bypass bouncer" into pi-dev
TreeHugger Robot [Thu, 10 May 2018 05:43:33 +0000 (05:43 +0000)]
Merge "Allow keep showing to bypass bouncer" into pi-dev

6 years agoDismiss Quickstep onboarding tip sooner.
Tracy Zhou [Tue, 8 May 2018 22:24:17 +0000 (15:24 -0700)]
Dismiss Quickstep onboarding tip sooner.

We want to dismiss the quickstep tip immediately after swipe up gesture
crosses threshold.

Bug: 70180942
Test: Manual test
Change-Id: I760e2b5cad4b38c84b1199729f9d5f2a8827af4c

6 years agoMerge "MediaSessionService: Provide caller information for media key events" into...
Jaewan Kim [Thu, 10 May 2018 04:48:35 +0000 (04:48 +0000)]
Merge "MediaSessionService: Provide caller information for media key events" into pi-dev

6 years agoMerge "Enhance adding subscription logs" into pi-dev
Shuo Qian [Thu, 10 May 2018 04:32:36 +0000 (04:32 +0000)]
Merge "Enhance adding subscription logs" into pi-dev

6 years agoAllow keep showing to bypass bouncer
Rohan Shah [Thu, 10 May 2018 03:32:15 +0000 (20:32 -0700)]
Allow keep showing to bypass bouncer

User experience improvement that alleviates the current bouncer bug with
the blocking helper (where users can't swipe after interacting with the
blocking helper).

Bug: 78222122
Test: Added test case, verified on device with lock screen pin + helper
Change-Id: I54806df8b960ea305b120aef6217a6b90f30590b

6 years agoMerge "Fix the gauge metric data size estimation." into pi-dev
TreeHugger Robot [Thu, 10 May 2018 02:43:20 +0000 (02:43 +0000)]
Merge "Fix the gauge metric data size estimation." into pi-dev

6 years agoMerge "Add a sampling method to pull gauge when condition changes to true." into...
Yang Lu [Thu, 10 May 2018 02:37:49 +0000 (02:37 +0000)]
Merge "Add a sampling method to pull gauge when condition changes to true." into pi-dev

6 years agoMerge "Skip writing metrics to disk if it's entirely composed of no_report_metric...
TreeHugger Robot [Thu, 10 May 2018 02:02:37 +0000 (02:02 +0000)]
Merge "Skip writing metrics to disk if it's entirely composed of no_report_metric" into pi-dev

6 years agoFurther flesh out app ops foreground state.
Dianne Hackborn [Wed, 9 May 2018 00:30:48 +0000 (17:30 -0700)]
Further flesh out app ops foreground state.

Fix some bugs, add the ability to monitor state changes, improve
dumpsys output to help debugging, add a new check API that allows
the caller to get the real state.

Bug: 78480444
Test: atest FrameworksServicesTests:AppOpsServiceTest
Test: atest CtsPermissionTestCases:AppOpsTest
Change-Id: I3d41be9968c1d95a1456f4052da958ea64aa068d

6 years agoMerge "Fix an accidentally reverted condition" into pi-dev
Svetoslav Ganov [Thu, 10 May 2018 01:02:17 +0000 (01:02 +0000)]
Merge "Fix an accidentally reverted condition" into pi-dev

6 years agoMerge "Fix the flaky gauge/value e2e test due to cached events." into pi-dev
TreeHugger Robot [Thu, 10 May 2018 01:02:10 +0000 (01:02 +0000)]
Merge "Fix the flaky gauge/value e2e test due to cached events." into pi-dev

6 years agoFix an accidentally reverted condition
Svet Ganov [Wed, 9 May 2018 22:27:43 +0000 (15:27 -0700)]
Fix an accidentally reverted condition

The conditional was accidentally reversed so bringing it
back to the correct state and also bringing back the security
exception being thrown on violation.

Test: manual

bug:67773960

Change-Id: I1223297b8662e94413cc0bdcbe86089d1af296c2

6 years agoMerge "Adds overlay field for Swipe Up gesture's default opt-in value" into pi-dev
Mehdi Alizadeh [Thu, 10 May 2018 00:38:50 +0000 (00:38 +0000)]
Merge "Adds overlay field for Swipe Up gesture's default opt-in value" into pi-dev

6 years agoMerge "Fixed name of autofill service on save UI." into pi-dev
Felipe Leme [Wed, 9 May 2018 23:48:50 +0000 (23:48 +0000)]
Merge "Fixed name of autofill service on save UI." into pi-dev

6 years agoFix the gauge metric data size estimation.
Yangster-mac [Wed, 11 Apr 2018 20:55:04 +0000 (13:55 -0700)]
Fix the gauge metric data size estimation.

Test: statsd test
BUG: b/77906846
Change-Id: Ie5ab54771acadde1e825289fe5ec491cc2225458

6 years agoSkip writing metrics to disk if it's entirely composed of
yro [Wed, 9 May 2018 23:03:27 +0000 (16:03 -0700)]
Skip writing metrics to disk if it's entirely composed of
no_report_metric

Test: unit test, cts
Bug: 79488249
Change-Id: I3e13a6271cc36665a43d0f09d8663e5996224477

6 years agoAdd a sampling method to pull gauge when condition changes to true.
Yangster [Wed, 9 May 2018 22:51:07 +0000 (15:51 -0700)]
Add a sampling method to pull gauge when condition changes to true.

Test: statsd test

BUG: b/79490890
Change-Id: I82ed6681151f8a217e74bd0d855f817b4fa0619c

6 years agoMerge "add install action for carrier id to system API" into pi-dev
TreeHugger Robot [Wed, 9 May 2018 22:47:40 +0000 (22:47 +0000)]
Merge "add install action for carrier id to system API" into pi-dev

6 years agoMerge "Allow ImageDecoder to read SkFILEStream directly" into pi-dev
Leon Scroggins [Wed, 9 May 2018 22:44:39 +0000 (22:44 +0000)]
Merge "Allow ImageDecoder to read SkFILEStream directly" into pi-dev

6 years agoMerge "Add full unlock gesture to FalsingManager" into pi-dev
TreeHugger Robot [Wed, 9 May 2018 22:09:20 +0000 (22:09 +0000)]
Merge "Add full unlock gesture to FalsingManager" into pi-dev

6 years agoMerge "Added unit test for activity start interceptor" into pi-dev
TreeHugger Robot [Wed, 9 May 2018 21:52:53 +0000 (21:52 +0000)]
Merge "Added unit test for activity start interceptor" into pi-dev

6 years agoMake system server profiling an explicit runtime intent
Calin Juravle [Fri, 4 May 2018 02:51:18 +0000 (19:51 -0700)]
Make system server profiling an explicit runtime intent

Pass an explicit flag to the runtime when we need to profile the system
server. This ensures that we only start the ProfileSaver and allocate the
code cache when needed.

Test: manual, on a device with system server profiling enabled
Bug: 74081010

(cherry picked from commit 8eb891be6f53118cb4b116fe29d131de166957c1)

Merged-In: I756682a9644796afb53f0c010d2bd2764ea5a828
Change-Id: I756682a9644796afb53f0c010d2bd2764ea5a828

6 years agoMerge "ActivityManagerService: explicitly break connection cycles" into pi-dev
TreeHugger Robot [Wed, 9 May 2018 21:34:00 +0000 (21:34 +0000)]
Merge "ActivityManagerService: explicitly break connection cycles" into pi-dev

6 years agoMerge "Allows disk reads when adding native paths to classloader" into pi-dev
TreeHugger Robot [Wed, 9 May 2018 21:19:53 +0000 (21:19 +0000)]
Merge "Allows disk reads when adding native paths to classloader" into pi-dev

6 years agoMerge "DO NOT MERGE: Allow to control behavior of loadSafeLabel" into pi-dev
TreeHugger Robot [Wed, 9 May 2018 21:17:51 +0000 (21:17 +0000)]
Merge "DO NOT MERGE: Allow to control behavior of loadSafeLabel" into pi-dev

6 years agoMerge "Fix night light and COLOR_MODE_AUTOMATIC" into pi-dev
Chia-I Wu [Wed, 9 May 2018 21:04:08 +0000 (21:04 +0000)]
Merge "Fix night light and COLOR_MODE_AUTOMATIC" into pi-dev

6 years agoMerge "Fix shutter sound cannot enable." into pi-dev
Jiabin Huang [Wed, 9 May 2018 20:43:14 +0000 (20:43 +0000)]
Merge "Fix shutter sound cannot enable." into pi-dev

6 years agoMerge "Add cmd package shell command for taking profile snapshots" into pi-dev
Calin Juravle [Wed, 9 May 2018 20:39:25 +0000 (20:39 +0000)]
Merge "Add cmd package shell command for taking profile snapshots" into pi-dev

6 years agoMerge "Process "dalvik.vm.profilebootimage" system property" into pi-dev
Calin Juravle [Wed, 9 May 2018 19:56:59 +0000 (19:56 +0000)]
Merge "Process "dalvik.vm.profilebootimage" system property" into pi-dev

6 years agoFixed name of autofill service on save UI.
Felipe Leme [Wed, 9 May 2018 19:42:53 +0000 (12:42 -0700)]
Fixed name of autofill service on save UI.

Test: atest CtsAutoFillServiceTestCases
Bug: 62537081
Fixes: 79201521

Change-Id: I9ae7137719390b61c38da1e52fcb13fd59333792

6 years agoDO NOT MERGE: Allow to control behavior of loadSafeLabel
Philip P. Moltmann [Wed, 9 May 2018 16:13:24 +0000 (09:13 -0700)]
DO NOT MERGE: Allow to control behavior of loadSafeLabel

(Minimal change for P, full change already in master)

Test: looked at package installer UI and saw that labels are not
truncated anymore.
Bug: 77964730

Change-Id: Ia181288a90501f4f563d24dacd6edb0c81406b82

6 years agoMerge "Log wipe failure" into pi-dev
Pavel Grafov [Wed, 9 May 2018 19:46:05 +0000 (19:46 +0000)]
Merge "Log wipe failure" into pi-dev

6 years agoMerge "Acquire lock before calling getDeviceOwnerAdminLocked" into pi-dev
Pavel Grafov [Wed, 9 May 2018 19:46:00 +0000 (19:46 +0000)]
Merge "Acquire lock before calling getDeviceOwnerAdminLocked" into pi-dev

6 years agoAdd cmd package shell command for taking profile snapshots
Calin Juravle [Sat, 5 May 2018 00:35:29 +0000 (17:35 -0700)]
Add cmd package shell command for taking profile snapshots

Test: adb shell cmd package snapshot-profile pkgname
Bug: 74081010

(cherry picked from commit 21216c6a0323b0b63c9c5712f98fc8f7879dd8c1)

Merged-In: I96d73959cb46194667c7801767a9ebd44fd72d90
Change-Id: I96d73959cb46194667c7801767a9ebd44fd72d90

6 years agoFix night light and COLOR_MODE_AUTOMATIC
Chia-I Wu [Mon, 7 May 2018 20:17:04 +0000 (13:17 -0700)]
Fix night light and COLOR_MODE_AUTOMATIC

The native mode methods in DisplayTransformManager were used to
decide whether the color matrix works in linear or gamma space.  For
COLOR_MODE_AUTOMATIC, the color matrix works in lienar instead of
gamma space.

Fix the native mode methods to be more clear about the intention to
avoid future breakage.

Bug: 79257138
Test: manual and atest FrameworksServicesTests:ColorDisplayServiceTest
Change-Id: Ied60a62bd7330e87c3207f2183d7e83af9e51fb7

6 years agoMerge "Allow only selected priv apps to run OOB" into pi-dev
Victor Hsieh [Wed, 9 May 2018 19:21:22 +0000 (19:21 +0000)]
Merge "Allow only selected priv apps to run OOB" into pi-dev

6 years agoMerge "Add DIALOG_UPDATABLE_LIST_PREFERENCE into metrics_constants.proto" into pi-dev
android-build-team Robot [Wed, 9 May 2018 19:18:28 +0000 (19:18 +0000)]
Merge "Add DIALOG_UPDATABLE_LIST_PREFERENCE into metrics_constants.proto" into pi-dev

6 years agoMerge "Reset password field instead of keyguard" into pi-dev
android-build-team Robot [Wed, 9 May 2018 18:35:53 +0000 (18:35 +0000)]
Merge "Reset password field instead of keyguard" into pi-dev

6 years agoMerge "Update the Open Mobile API version" into pi-dev
android-build-team Robot [Wed, 9 May 2018 18:35:47 +0000 (18:35 +0000)]
Merge "Update the Open Mobile API version" into pi-dev

6 years agoMerge "Lock profiles when lockdown is invoked." into pi-dev
Pavel Grafov [Wed, 9 May 2018 18:29:24 +0000 (18:29 +0000)]
Merge "Lock profiles when lockdown is invoked." into pi-dev

6 years agoAllows disk reads when adding native paths to classloader
Patrick Baumann [Wed, 9 May 2018 18:12:49 +0000 (11:12 -0700)]
Allows disk reads when adding native paths to classloader

In the cases that the classloader is being updated on the main thread,
temporarily allows disk reads so that native paths can be checked for
directory vs. APK.

Change-Id: I89cab9c7fcb71b8eff8891db974285844affe220
Fixes: 79425683
Test: atest WebViewHostSideStartupTest

6 years agoAdds overlay field for Swipe Up gesture's default opt-in value
Mehdi Alizadeh [Fri, 4 May 2018 22:51:56 +0000 (15:51 -0700)]
Adds overlay field for Swipe Up gesture's default opt-in value

Bug: 78641268
Test: Manual test
Change-Id: I0386629ee55a3752fdf211b36cacdcc10ac00f97

6 years agoAOD group notification style
Lucas Dupin [Mon, 7 May 2018 22:32:13 +0000 (15:32 -0700)]
AOD group notification style

Change-Id: Ibcabb20f6d4eb48bf36204f8068f48176844f88d
Fixes: 76110106
Test: visual

6 years agoMerge "Move libstatssocket to system/ so that lmkd can build on PDK." into pi-dev
android-build-team Robot [Wed, 9 May 2018 18:08:46 +0000 (18:08 +0000)]
Merge "Move libstatssocket to system/ so that lmkd can build on PDK." into pi-dev

6 years agoMerge "Fix partial bucket unit tests." into pi-dev
android-build-team Robot [Wed, 9 May 2018 18:07:24 +0000 (18:07 +0000)]
Merge "Fix partial bucket unit tests." into pi-dev

6 years agoUpdate the snap targets in minimized mode to reflect the correct targets
Matthew Ng [Fri, 4 May 2018 22:42:54 +0000 (15:42 -0700)]
Update the snap targets in minimized mode to reflect the correct targets

In minimized mode there is only 1 split snap target compared to regular
portrait that has 30%, 50%, 70% targets. Update the accessibility options
for minimized mode to reflect the correct targets. Also removed the
middle target if there is only 1 split snap target.

Test: using talkback, see custom options on divider handle in minimized
mode
Fixes: 78304300

Change-Id: I8421499616cf0fe503c1f6a081a2151098640a9c

6 years agoMerge "Allow the shell user to snapshot profiles for debuggable apps" into pi-dev
Calin Juravle [Wed, 9 May 2018 17:41:00 +0000 (17:41 +0000)]
Merge "Allow the shell user to snapshot profiles for debuggable apps" into pi-dev

6 years agoMerge "Change the root of trust for CryptAuth Vault Service" into pi-dev
android-build-team Robot [Wed, 9 May 2018 17:29:06 +0000 (17:29 +0000)]
Merge "Change the root of trust for CryptAuth Vault Service" into pi-dev

6 years agoLog wipe failure
Pavel Grafov [Tue, 8 May 2018 17:06:22 +0000 (18:06 +0100)]
Log wipe failure

Test: injected an error into RecoverySystem.rebootWipeUserData
Fixes: 79417596
Change-Id: I3fef4bdd2f6357b08be4976c35c651908e9b3599

6 years agoMerge "[DO NOT MERGE] Use INetd Constant for IpSec Interface Prefix" into pi-dev
Nathan Harold [Wed, 9 May 2018 17:27:13 +0000 (17:27 +0000)]
Merge "[DO NOT MERGE] Use INetd Constant for IpSec Interface Prefix" into pi-dev

6 years agoActivityManagerService: explicitly break connection cycles
Tim Murray [Wed, 2 May 2018 22:14:35 +0000 (15:14 -0700)]
ActivityManagerService: explicitly break connection cycles

Currently, it is possible for two services to bind to each other and
receive each other's oom_adj, even if there are no other bindings that
would cause either process to be promoted. This causes a pair of
services to remain at a higher oom_adj level than they intended if
one service was promoted by a binding that was later destroyed.

To fix this, any process that encounters a cycle will be marked for a
later adjustment, and those bindings that encounter a cycle will not be
used to promote processes. After the initial oom_adj adjustments, all
processes that encountered a cycle will be retried. These retries will
continue until no process that encountered a cycle changes its process
state, at which point the process states should be stable.

Test: CTS; boots; runs normally
bug 78894563

Change-Id: I7cb2aa2fc461c08bc8e7f687a673249aef78351b

6 years agoMerge "Set app name when notification is updated" into pi-dev
android-build-team Robot [Wed, 9 May 2018 17:20:02 +0000 (17:20 +0000)]
Merge "Set app name when notification is updated" into pi-dev

6 years agoLock profiles when lockdown is invoked.
Pavel Grafov [Wed, 2 May 2018 12:44:46 +0000 (13:44 +0100)]
Lock profiles when lockdown is invoked.

Change-Id: I3abfa464255b0fc04a09657b8ca43bcc154621c0
Bug: 76208903
Test: manually invoked lockdown in all combinations.

6 years agoMerge "Greylist updates, Wednesday edition." into pi-dev
android-build-team Robot [Wed, 9 May 2018 17:13:26 +0000 (17:13 +0000)]
Merge "Greylist updates, Wednesday edition." into pi-dev

6 years agoMerge "Fix a typo in the API doc of TextView#setKeyListener()" into pi-dev
android-build-team Robot [Wed, 9 May 2018 17:06:33 +0000 (17:06 +0000)]
Merge "Fix a typo in the API doc of TextView#setKeyListener()" into pi-dev

6 years agoMerge "Print correct version code when skipping outdated system packages" into pi-dev
android-build-team Robot [Wed, 9 May 2018 17:01:27 +0000 (17:01 +0000)]
Merge "Print correct version code when skipping outdated system packages" into pi-dev

6 years agoMerge changes I5851dd16,Id196307f into pi-dev
android-build-team Robot [Wed, 9 May 2018 16:55:26 +0000 (16:55 +0000)]
Merge changes I5851dd16,Id196307f into pi-dev

* changes:
  OMS: harden permission checks
  Add missing fields to OverlayInfo.hashCode

6 years agoMerge "Changed doze-light timeouts" into pi-dev
android-build-team Robot [Wed, 9 May 2018 16:54:17 +0000 (16:54 +0000)]
Merge "Changed doze-light timeouts" into pi-dev

6 years agoAcquire lock before calling getDeviceOwnerAdminLocked
Pavel Grafov [Wed, 9 May 2018 16:19:04 +0000 (17:19 +0100)]
Acquire lock before calling getDeviceOwnerAdminLocked

Change-Id: I318c7cea8e9b7de2dc9fa05f786524848c9c76dd
Fixes: 79418618
Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.DeviceOwnerTest#testKeyManagement

6 years agoMerge "Allow AssetStreamAdaptor to be seekable" into pi-dev
Leon Scroggins [Wed, 9 May 2018 16:40:01 +0000 (16:40 +0000)]
Merge "Allow AssetStreamAdaptor to be seekable" into pi-dev

6 years agoMerge "Use filtering when drawing nine-patches" into pi-dev
Leon Scroggins [Wed, 9 May 2018 16:38:41 +0000 (16:38 +0000)]
Merge "Use filtering when drawing nine-patches" into pi-dev

6 years agoReset password field instead of keyguard
Lucas Dupin [Wed, 9 May 2018 00:06:06 +0000 (17:06 -0700)]
Reset password field instead of keyguard

Reseting the keyguard has bigger implications, like hiding the bouncer
and resetting the StatusBarKeyguardViewManager.

Change-Id: Ib17e292c8c95ba19f4149ee04fc9680c69029a42
Fixes: 79187948
Test: go/sysui-bouncer-tests

6 years agoMerge "AudioService: Do not disconnect SCO started externally" into pi-dev
android-build-team Robot [Wed, 9 May 2018 16:20:20 +0000 (16:20 +0000)]
Merge "AudioService: Do not disconnect SCO started externally" into pi-dev

6 years agoMerge "Fix NPE in package manager when asserting overlays" into pi-dev
android-build-team Robot [Wed, 9 May 2018 16:15:45 +0000 (16:15 +0000)]
Merge "Fix NPE in package manager when asserting overlays" into pi-dev

6 years agoMerge "Allow profile owner to disable iris/face on personal keyguard" into pi-dev
Rubin Xu [Wed, 9 May 2018 16:06:43 +0000 (16:06 +0000)]
Merge "Allow profile owner to disable iris/face on personal keyguard" into pi-dev

6 years agoMerge "[Notif] Rename/reset blocking helper stats file" into pi-dev
Rohan Shah [Wed, 9 May 2018 15:33:04 +0000 (15:33 +0000)]
Merge "[Notif] Rename/reset blocking helper stats file" into pi-dev

6 years agoMerge "[Notif] Revert dismiss-to-view threshold to .8" into pi-dev
android-build-team Robot [Wed, 9 May 2018 15:30:44 +0000 (15:30 +0000)]
Merge "[Notif] Revert dismiss-to-view threshold to .8" into pi-dev

6 years agoMerge "Basedir of a bundled app is added to the permitted paths" into pi-dev
Jiyong Park [Wed, 9 May 2018 14:48:45 +0000 (14:48 +0000)]
Merge "Basedir of a bundled app is added to the permitted paths" into pi-dev

6 years agoAllow only selected priv apps to run OOB
Victor Hsieh [Thu, 19 Apr 2018 21:26:28 +0000 (14:26 -0700)]
Allow only selected priv apps to run OOB

- Add pm.dexopt.priv-apps-oob-list to allow selecting specific packages
  to run OOB, in a comma-separated string of package names. When set to
  "ALL" (default), all priv apps will run in OOB.
- Add a global config priv_app_oob_list to persist the state for
  experiment.
- Also make background dexopt to respect the config.

Test: 0. Reset previous OOB settings.
      1. settings put global priv_app_oob_list \
         com.google.android.gms,com.android.vending
      2. cmd package compile -m speed -f com.google.android.gms (then
         com.android.vending, com.google.android.googlequicksearchbox)
      3. dumpsys package dexopt
         # .vending and .gms are "verify", .googlequicksearchbox is
         # "speed".
Test: settings put global priv_app_oob_list 'ALL'  # see the same result
Test: settings delete global priv_app_oob_list  # see the same result
Test: atest SettingsBackupTest
Bug: 30972906
Bug: 63920015
Change-Id: Iba47b4763a026cdc94939db0a743822278917269

6 years agoGreylist updates, Wednesday edition.
Mathew Inwood [Wed, 9 May 2018 13:58:03 +0000 (14:58 +0100)]
Greylist updates, Wednesday edition.

Bug: 74002300
Bug: 79199145
Test: m
Change-Id: If21248dafb69423edeb04b7763a63433f40d832a

6 years agoAdd navbar magnification to critical accessibility check
Annie Meng [Thu, 3 May 2018 15:24:03 +0000 (16:24 +0100)]
Add navbar magnification to critical accessibility check

If a user enables navbar magnification on their new device and the
setting was disabled on their old device, we don't want to overwrite
this setting and disable it on their new device during d2d restore.

Bug: 79189332
Test: 1) atest SettingsHelperRestoreTest
2) manual:
- Source device setting off -> target device turns setting on in SUW
-> d2d restore does not overwrite
- Source device setting on -> target device does not turn setting on
in SUW -> d2d restores setting properly

Merged-In: I58648010a9d4d3380c1c01cdaaab03828e3ea2c4
Change-Id: I58648010a9d4d3380c1c01cdaaab03828e3ea2c4

6 years agoAdd DIALOG_UPDATABLE_LIST_PREFERENCE into metrics_constants.proto
timhypeng [Fri, 4 May 2018 07:28:42 +0000 (15:28 +0800)]
Add DIALOG_UPDATABLE_LIST_PREFERENCE into metrics_constants.proto

* This is for a new dialog which is able to update content instantly when connected devices change

Bug: 77783217
Test: make -j50 RunSettingsLibRoboTests
Change-Id: I8c70eb93b8bfd39d295fa326df8372ee4b146834

6 years agoMerge "Introduce hidden constant EXTRA_PROVISIONING_USE_MOBILE_DATA" into pi-dev
android-build-team Robot [Wed, 9 May 2018 11:55:26 +0000 (11:55 +0000)]
Merge "Introduce hidden constant EXTRA_PROVISIONING_USE_MOBILE_DATA" into pi-dev

6 years agoFix SSID not being logged by the validation logs
Chalard Jean [Thu, 26 Apr 2018 07:16:10 +0000 (16:16 +0900)]
Fix SSID not being logged by the validation logs

Also add it in the logs of the notification manager.

Bug: 78547904
Test: manual
Change-Id: I262e65efadb00e1efce5056771978053f304ca6f

6 years agoMerge "More light grey additions." into pi-dev
Nicolas Geoffray [Wed, 9 May 2018 08:35:56 +0000 (08:35 +0000)]
Merge "More light grey additions." into pi-dev

6 years agoMerge "Increase timemout for dumpsys meminfo --unreachable" into pi-dev
android-build-team Robot [Wed, 9 May 2018 08:10:32 +0000 (08:10 +0000)]
Merge "Increase timemout for dumpsys meminfo --unreachable" into pi-dev

6 years agoMerge "Camera: Specify session parameter build requirements" into pi-dev
android-build-team Robot [Wed, 9 May 2018 08:07:50 +0000 (08:07 +0000)]
Merge "Camera: Specify session parameter build requirements" into pi-dev

6 years agoAllow the shell user to snapshot profiles for debuggable apps
Calin Juravle [Sat, 28 Apr 2018 00:47:24 +0000 (17:47 -0700)]
Allow the shell user to snapshot profiles for debuggable apps

This is needed in order to be able to CTS test the profile infrastructure
via adb shell commands.

Test: atest ArtManagerHostTest
Bug: 74081010
Change-Id: I116dee2c36d712c0cd067d42994149c734f9edcd

6 years agoFix Clock flickers after reboot with strong authentication
felkachang [Fri, 4 May 2018 08:25:45 +0000 (16:25 +0800)]
Fix Clock flickers after reboot with strong authentication

After boot, the device request the strong authentication but
finger print is not strong. The keyguard will appear after collapsing
NotificationPanelView.

Because StatusBarKeyguardViewManager.mExpansionCallback.onFullyShown
->updateStates should call mStatusBar.setBouncerShowing(true)
before PanelBar.mExpanded = false but
StatusBarKeyguardViewManager.mBouncer.isShowing() return false,
StatusBarKeyguardViewManager.updateStates doesn't call
mStatusBar.setBouncerShowing.

After PanelBar.mExpanded = false, PhoneStatusBarView post runnable
mHideExpandedRunnable to show the Bouncer and make the Bouncer to be
showing and then change the NotificationPanelView to be VISIBLE.

The solution is to call
mStatusBarKeyguardViewManager.showBouncer(false) before calling
mStatusBarKeyguardViewManager.animateCollapsePanels(
FINGERPRINT_COLLAPSE_SPEEDUP_FACTOR). To make the
KeyguardBouncer.mRoot to be VISIBLE by KeyguardBouncer.mShowRunnable.

Bug: 78490344
Test: atest SystemUITests
Change-Id: Ia8770cd3ca98007574c0ba18c0464fc2f58b7973

6 years agoProcess "dalvik.vm.profilebootimage" system property
Calin Juravle [Tue, 8 May 2018 19:42:30 +0000 (12:42 -0700)]
Process "dalvik.vm.profilebootimage" system property

Read the profile boot image property and pass the appropriate flags to the
android runtime.

Test: build, flash and check properties
Bug: 73313191

(cherry picked from commit 62cd4bbcaaedf512286c21475389bfbd3caba685)

Merged-In: Ife7da810aa9b1bc6aa5ca14a0d937f4829942391
Change-Id: Ife7da810aa9b1bc6aa5ca14a0d937f4829942391

6 years agoMerge "Add watch specific tweaks to global actions layouts." into pi-dev
Michael Kwan [Wed, 9 May 2018 01:53:50 +0000 (01:53 +0000)]
Merge "Add watch specific tweaks to global actions layouts." into pi-dev

6 years ago[DO NOT MERGE] Use INetd Constant for IpSec Interface Prefix
Nathan Harold [Thu, 26 Apr 2018 18:47:14 +0000 (11:47 -0700)]
[DO NOT MERGE] Use INetd Constant for IpSec Interface Prefix

Convert to using a constant in INetd to ensure
that there is a consistent tunnel prefix  between
Java and native code.

Bug: 74560705
Test: atest FramworksNetTest; atest CtsNetTestCases
Change-Id: Ida233aac2e6c6b26567463964e0ebac9d52eff1e

6 years agoAudioService: Do not disconnect SCO started externally
Jack He [Tue, 8 May 2018 21:51:07 +0000 (14:51 -0700)]
AudioService: Do not disconnect SCO started externally

* AudioService should not disconnect Bluetooth SCO if it is started
  externally
* When SCO has already started externally, all SCO connection attempts
  through AudioManager API will fail with SCO_AUDIO_STATE_DISCONNECTED
  intent
* Remove SCO_STATE_DEACTIVATE_EXT_REQ state since AudioService could no
  longer disconnect SCO audio that is started externally
* Change SCO_STATE_* values so that they are consecutive

Bug: 79407565
Test: With Bluetooth HFP device connected:
      Test1: make a outgoing call
      Test2: make VoIP call during cellular call
      Test3: make a VoIP call during another VoIP call

Change-Id: I1e0a10aeb0eac59d4826f9defa595aebd85f534c

6 years agoMerge "fix cts error on x86 simulator" into pi-dev
Chenjie Yu [Wed, 9 May 2018 00:53:09 +0000 (00:53 +0000)]
Merge "fix cts error on x86 simulator" into pi-dev

6 years agoChanged doze-light timeouts
Suprabh Shukla [Wed, 9 May 2018 00:39:24 +0000 (17:39 -0700)]
Changed doze-light timeouts

Being more aggressive while entering doze light.

Test: "adb shell dumpsys deviceidle" should show
light_after_inactive_to=+3m0s0ms
light_pre_idle_to=+3m0s0ms

Bug: 79418894
Change-Id: I58c854e191f488f71830272ae36642acb5305999

6 years agoMerge "Fix statsd returning uidmap with empty reports." into pi-dev
android-build-team Robot [Wed, 9 May 2018 00:25:31 +0000 (00:25 +0000)]
Merge "Fix statsd returning uidmap with empty reports." into pi-dev

6 years agoFix a typo in the API doc of TextView#setKeyListener()
Yohei Yukawa [Wed, 9 May 2018 00:11:33 +0000 (17:11 -0700)]
Fix a typo in the API doc of TextView#setKeyListener()

Fix: 79436805
Test: make -j docs
      Then check out/target/common/docs/offline-sdk/reference/android/widget/TextView.html#setKeyListener(android.text.method.KeyListener)
Change-Id: I6c0d2a3af9434240c4e6e931185bc4f21b2e2b52

6 years agoAdd full unlock gesture to FalsingManager
Siarhei Vishniakou [Fri, 4 May 2018 23:08:22 +0000 (16:08 -0700)]
Add full unlock gesture to FalsingManager

When FalsingManager.onBouncerShown() is called, this will cause the
MotionEvents to no longer be added to the HumanInteractionClassifier,
which means that the classifier will have to work with only partial
gesture, and will not be able to make a proper decision on unlock. This
would cause many valid unlock gestures to fail.

Instead, record the state of the bouncer visibility at the beginning of
each MotionEvent (on ACTION_DOWN). Then, if the bouncer was not visible,
add the full gesture to the HumanInteractionClassifier.

Test: recorded a valid unlock event with inputstudio, then replayed it
with and without the change. Consistently succeeded with unlock with
this patch, and failed many times (but not always) before the change.
Bug: 71762354

Change-Id: Ib93f21bff19c36aa296ddf6ed9a0a3e879eeb69c

6 years agoChange the root of trust for CryptAuth Vault Service
Bo Zhu [Tue, 1 May 2018 00:15:56 +0000 (17:15 -0700)]
Change the root of trust for CryptAuth Vault Service

Change-Id: I99899e7e6c090cf22cf31b0b4d5fd3e33dcb2f8f
Bug: 78920513
Test: adb shell am instrument -w -e package
com.android.server.locksettings.recoverablekeystore
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner