Commit Graph

309172 Commits

Author SHA1 Message Date
Christopher Tate
860d8b9a7c Put package verifier on the power whitelist when invoked
Give the package verifier the right to run services while we're asking
it to do its thing.

Bug 31025833

Change-Id: If6a593d95fe37d4c2c7ab6d59aa2661c1e5df6b3
2017-02-15 16:44:07 -08:00
Selim Cinek
9ce3285dc3 Fixes a bug where children could have a colored background
Because notifications can have had an override color and could
then become children, the color could stick around.

Test: runtest systemui
Change-Id: Ie89807c41a12b2d4a405c77d6da1c4e4ac78b325
Fixes: 34740139
2017-02-15 16:37:36 -08:00
Manu Cornet
512bbdde69 DO NOT MERGE - Ensuring that there are per-user last stack active times.
- This fixes an issue where the last stack active time would be clobbered
  when switching between users.  With the policy in the phone/stack
  recents, this is fine, but with the grid recents, it no longer only
  applies when out of the historical window, so it is always wrong (it
  would normally be wrong if switching back from another user after the
  historical time of six hours).

  This CL will migrate the last stack active time to a per-user secure
  setting, which will be used going forward.

[This is a manual merge of change 1913535]

Bug: 35375206
Test: On the Ryu, launch some tasks, switch users, launch more tasks, and
      return to the original user

Change-Id: Idc72920240093d15f822f5d9e3ee11b12a56edae
2017-02-15 16:37:19 -08:00
Winson Chung
6e35ee1ff5 Removing PiP from SysUI tuner.
Bug: 35143109
Test: Go to tuner, observe
Change-Id: I5c4eadc33a303e7bf7d99aa772296405d39ee251
2017-02-15 16:32:45 -08:00
TreeHugger Robot
0b6b10d1ee Merge "Fail safely on invalid ScanResults when creating NetworkKey" 2017-02-16 00:27:14 +00:00
Meng Wang
0506299343 Add carrierconfig KEY_CARRIER_VOLTE_OVERRIDE_WFC_PROVISIONING_BOOL
Bug: 28709116
Change-Id: I19673ef092ebbd655e3d687fc8d92bd9f67c5645
2017-02-15 16:22:15 -08:00
Adrian Roos
7a1654e8e4 AOD: Add toggle for waking up instead of ambient display on sensors
Bug: 30876804
Test: Open SysUI tuner -> Ambient Display -> Toggle wake up on sensors setting, verify that double tap and lift wake up phone instead of triggering ambient display.
Change-Id: Ia33ab1ab5ed532f239262d70e00dac3fec0330e2
2017-02-16 01:21:13 +01:00
Adrian Roos
4fb1f51978 AOD: Refactor DozeMachine to allow waking up
Bug: 30876804
Test: runtest -x $ANDROID_BUILD_TOP/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/DozeMachineTest.java
Change-Id: I1d01ab5d8ba3c1bf7b11b0b4911b25f3416ca6e9
2017-02-16 01:19:38 +01:00
Felipe Leme
92aaaa21ee Moved bugreport intents to the com.android.internal namespace.
Change-Id: I5ad53668b9393188cee4d8b0382f9c303ff95777
Fixes: 35275802
Test: manual verification
2017-02-15 16:08:53 -08:00
Calin Juravle
4b7a7bede8 Merge "Skip class path checking for secondary dex files" 2017-02-16 00:04:47 +00:00
Adrian Roos
2a7e2deb57 Merge "AOD: Show fingerprint error messages" 2017-02-15 23:59:51 +00:00
Aaron Whyte
89625d3547 Unhide InputDevice.SOURCE_ROTARY_ENCODER
Test: Treehugger
Bug: 27314061
Bug: 22836852
Bug: 18707397
Change-Id: Icfb5b09533b7fa785b16251accfd24a10daee034
2017-02-15 15:57:39 -08:00
Adrian Roos
09ed8f6cfc SystemUI: Disable LeakReporterTest
Those tests are slow because they dump the
heap multiple times.

Disable until the code is refactored such that
it does not actually dump and write to disk
when under test.

Test: runtest systemui
Bug: 35398375
Change-Id: I7cf945687900424dc1460367fbef5f36ed75da82
2017-02-16 00:56:45 +01:00
Antony Sargent
67952e94a9 Add "Instant apps" filter to app listing
Bug: 35098444
Test: new test added in ApplicationsStateTest.java ; run it by doing the
following commands:
 make SettingsLibTests -j40
 adb install -r $OUT/data/app/SettingsLibTests/SettingsLibTests.apk
 adb shell am instrument -w com.android.settingslib

In Settings->Apps&Notifications->Apps, the list of filters before this CL is:

 All | Enabled | Disabled

With this CL, the filter list becomes:

 All apps | Installed apps | Disabled apps | Instant apps

Change-Id: Ia2ec099f758901839a2aa84fe155ae032990092f
2017-02-15 15:52:33 -08:00
fionaxu
b80c879c91 renaming telephony internal hidden intents
The "android.*" namespace for intent constants is reserved for public
Android API in AOSP. (Whether public to the full SDK, @SystemApi or
defined in AOSP support libraries.) Implementation details of AOSP
components (subject to change by OEMs at will) should use the
"com.android.internal.*" as per CDD

Bug: 33679454
Test: manual
Change-Id: I72ed2760a6ddb0bba61cc8041cea57d5f28b7c15
2017-02-15 15:42:23 -08:00
Andrii Kulian
7d95df4971 Always check front stack on its current display
Previously checks for front stacks were looking among
stack on primary display only. This doesn't make any
sense for stacks on secondary screens, so let's always
check among other stacks on its current display.

Bug: 34862802
Test: Manual.
Change-Id: I29ee160d455719d75f4a5981a6ba9c60f3d90084
2017-02-15 15:15:03 -08:00
Nick Kralevich
3082eb7c72 system_server: add CAP_SYS_PTRACE
Commit https://android.googlesource.com/kernel/common/+/f0ce0eee added
CAP_SYS_RESOURCE as a capability check which would allow access to
sensitive /proc/PID files. system_server uses this capability to collect
smaps from managed processes. Presumably this was done to avoid the
implications of granting CAP_SYS_PTRACE to system_server.

However, with SELinux enforcement, we can grant CAP_SYS_PTRACE but not
allow ptrace attach() to other processes. The net result of this is that
CAP_SYS_PTRACE and CAP_SYS_RESOURCE have identical security controls, as
long as system_server:process ptrace is never granted.

Add CAP_SYS_PTRACE to the set of capabilities granted to system_server.

Don't delete CAP_SYS_RESOURCE for now. SELinux has blocked the use of
CAP_SYS_RESOURCE, but we still want to generate audit logs if it's
triggered. CAP_SYS_RESOURCE can be deleted in a future commit.

Bug: 34951864
Test: Device boots, functionality remains identical, no sys_resource
denials from system_server.

Change-Id: I2570266165396dba2b600eac7c42c94800d9c65b
2017-02-15 15:12:31 -08:00
Winson Chung
c3c62b3072 Merge "Apply minimized offset when fetching new aspect ratio bounds." 2017-02-15 23:05:50 +00:00
Hassan Shojania
18d58d81b4 Merge "New setDataSource API for accepting cookies" 2017-02-15 23:03:02 +00:00
Hall Liu
c788f3e15c Merge "Add extra key for app-specified outgoing call timeout" am: decc6c9d56 am: 2bc24e252e am: 38f5001c10
am: b521143aa1

Change-Id: I416d7ad1a12a6b8ddb2ea2958356a487e7f10aef
2017-02-15 22:56:31 +00:00
Jason Monk
f13413e2f3 Various QS fixes and cleanup
Test: runtest systemui
Change-Id: If87f58f2af00b23c5e1a8e38a63a6a63d903002c
2017-02-15 17:48:27 -05:00
Todd Kennedy
8094e09089 Revert "Revert "remove app-ephemeral""
This reverts commit c2f0d886f4.

Test: Manual
2017-02-15 14:43:17 -08:00
Rubin Xu
b9382c23a8 Merge "Add escrow token support to synthetic password flow" 2017-02-15 22:41:54 +00:00
Hall Liu
67c708bed8 Add extra key for app-specified outgoing call timeout
Bug: 34474757
Test: manual
Merged-In: I6e7e67c946205b28440a4daeeab3a002f8d6bccc
Change-Id: Ia93d68d6a01308b0b93b88977daf983a0ed3a22c
2017-02-15 14:39:43 -08:00
Rubin Xu
5ccd8291ed Merge "Add synthetic password to authentication flow" 2017-02-15 22:37:42 +00:00
Hall Liu
b521143aa1 Merge "Add extra key for app-specified outgoing call timeout" am: decc6c9d56 am: 2bc24e252e
am: 38f5001c10

Change-Id: I6e7e67c946205b28440a4daeeab3a002f8d6bccc
2017-02-15 22:35:52 +00:00
Hall Liu
38f5001c10 Merge "Add extra key for app-specified outgoing call timeout" am: decc6c9d56
am: 2bc24e252e

Change-Id: I1912bfa8856e78f375587d94bf589ef2fd25bee8
2017-02-15 22:30:44 +00:00
Hall Liu
2bc24e252e Merge "Add extra key for app-specified outgoing call timeout"
am: decc6c9d56

Change-Id: I58a70b265f4b5af735e93c9004616bd44d5c51de
2017-02-15 22:24:23 +00:00
Paul Lawrence
0490912184 Use bionic's autogenerated whitelist policy
Bug: 35392119
Test: Check boots, same syscalls blocked as before
Change-Id: I4f9276938663f5b82c82eeea45de317b96b2de84
2017-02-15 14:14:33 -08:00
Adrian Roos
dcdaaec8d5 Merge "AOD: Show High notifications on AOD" 2017-02-15 21:56:40 +00:00
Badhri Jagan Sridharan
efad4e0d6a Merge changes from topic 'dual_role_chargers' am: 37b939a180 am: 0a3efc2622 am: d4a847495e
am: ac0bb1f7b2

Change-Id: I9647bbeea800b9e7d73748474f8c5bb83620df39
2017-02-15 21:49:17 +00:00
Guang Zhu
d80ba8abc8 Merge "Revert "remove app-ephemeral"" 2017-02-15 21:47:34 +00:00
Guang Zhu
626ffb4556 Merge "Revert "Per user setting for instant app"" 2017-02-15 21:47:34 +00:00
Winson Chung
28217a4ca2 Ensuring that there are per-user last stack active times.
- This fixes an issue where the last stack active time would be clobbered
  when switching between users.  With the policy in the phone/stack
  recents, this is fine, but with the grid recents, it no longer only
  applies when out of the historical window, so it is always wrong (it
  would normally be wrong if switching back from another user after the
  historical time of six hours).

  This CL will migrate the last stack active time to a per-user secure
  setting, which will be used going forward.

Bug: 35375206
Test: On the Ryu, launch some tasks, switch users, launch more tasks, and
      return to the original user

Change-Id: I9941526de5d1dd52d1f9003e795995389064b19d
2017-02-15 13:46:52 -08:00
Guang Zhu
be9ffa15af Revert "Per user setting for instant app"
Bug: 35390781

This reverts commit 2f5811dcfd.

Change-Id: Ibb1c8dacbdc6908fc7fa2bc5dca664f2455162bf
2017-02-15 21:43:48 +00:00
Guang Zhu
c2f0d886f4 Revert "remove app-ephemeral"
Bug: 35390781

This reverts commit 4eb7cea562.

Change-Id: I94567d333b40f99f7a2573125259f4ab575a0519
2017-02-15 21:43:38 +00:00
Soonil Nagarkar
2b565df367 Use SystemConfig to control background location throttling whitelist.
Test: manual

Change-Id: I51285f9a463381855f2bb3fa9af34af1930b8ebd
2017-02-15 13:43:11 -08:00
Hall Liu
decc6c9d56 Merge "Add extra key for app-specified outgoing call timeout" 2017-02-15 21:41:23 +00:00
Philip P. Moltmann
9a044dad00 Merge changes from topic 'revert-anr-revert'
* changes:
  Process queuedWork on main thread and add logging
  Revert accidential merge 492a058d58
2017-02-15 21:37:34 +00:00
Conrad Chen
485c9f7ede TIF: Add internal provider ID field to channels
Test: build
Bug: 35101383
Change-Id: Ic725da964a287a2aa434998dd4e5879ea1f8e6bd
2017-02-15 13:23:18 -08:00
Fan Zhang
d95dcb4fe7 Add logging for advanced button expand action
Change-Id: I648984686e2dda053f3d0648954c252edd805342
Fix: 35356464
Test: Builds
2017-02-15 13:22:04 -08:00
Fan Zhang
65899436fc Add FIELD_CONTEXT to track source of action in eventlog.
Change-Id: Id32aaab4b4445e5db318d2b48d198b2a815b7cd4
Fix: 35359289
Bug: 35356464
Test: builds
2017-02-15 13:21:35 -08:00
Selim Cinek
74841fb59f Merge "Fixed that an icon could become invisible" 2017-02-15 21:17:56 +00:00
Jason Monk
d7937b3488 Merge "New system for versioning sysui plugins" 2017-02-15 20:49:05 +00:00
Adam Lesinski
c8f71aa67e Add ResTable_sparseTypeEntry support
Benchmarks on bullhead-userdebug show that there is a negligent
performance impact when using sparse entries on a 30% loaded
sparse type of 1000 resources.

Benchmark                                             Time           CPU Iterations
-----------------------------------------------------------------------------------
BM_SparseEntryGetResourceSparseLarge                255 ns        254 ns    2751408
BM_SparseEntryGetResourceNotSparseLarge             254 ns        254 ns    2756534

Bug: 27381711
Test: make libandroidfw_tests aapt2_tests
Change-Id: I051ea22f2f6b2bc3696e446adc9e2a34be18009f
2017-02-15 12:40:02 -08:00
Julia Reynolds
dc71f6c268 Merge "Add logs, reorder bugreport." 2017-02-15 20:36:49 +00:00
Badhri Jagan Sridharan
ac0bb1f7b2 Merge changes from topic 'dual_role_chargers' am: 37b939a180 am: 0a3efc2622
am: d4a847495e

Change-Id: Icadc77cb7630e61166ab3c9608f60736c24e52c1
2017-02-15 20:27:18 +00:00
Jason Monk
6650e89dbc Merge "Tuner updates" 2017-02-15 20:24:44 +00:00
Badhri Jagan Sridharan
d4a847495e Merge changes from topic 'dual_role_chargers' am: 37b939a180
am: 0a3efc2622

Change-Id: I2c0ba36c46674ff7f9a0b963543e271eec93858c
2017-02-15 20:20:15 +00:00
Badhri Jagan Sridharan
0a3efc2622 Merge changes from topic 'dual_role_chargers'
am: 37b939a180

Change-Id: I2b9eda605ae85347eb2e3e4202a6c7ec176778af
2017-02-15 20:13:53 +00:00