392511 Commits

Author SHA1 Message Date
Alison Cichowlas
09e5ea3118 Add URI shared by screenshot into extras.
This causes it to be consistently picked up for grantPermissions.

Test: Manual - share to Gmail from screenshot notification.

Change-Id: I194526db97eed4af78d35ef3070eb89c4d5d57d7
2018-11-09 11:01:54 -05:00
Alison Cichowlas
3e34050a42 Re-patching in Sharesheet security model changes.
Previously reverted due to b/72554856, fix for that in topic.

Original commit message:

Security model for moving sharesheet to systemui

ResolverActivity (still in frameworks) now requests a "permission token"
that it hands to a stubbed system ui activity ChooserActivity.

This permission token allows an app (SysUI) with the signed permission
"START_ACTIVITY_AS_CALLER" to call
ActivityManagerService#startActivityAsCaller. Permission tokens are a
one-time use, limited-time offer.

Test: runtest systemui && manual testing
Bug: 69850752
Change-Id: Ia50e21e2f8c6b6d0ed7207625e3b5aef214396bb
2018-11-09 11:01:54 -05:00
TreeHugger Robot
25d07aadb5 Merge "Increasing GPS_LOCK default privacy level" 2018-11-09 16:00:30 +00:00
Gus Prevas
a32264906d Adds an icon to noisy notifications.
Test: manually
Bug: 116622974
Change-Id: I657e81eed9c650f1613caffaea96e6445c2105ef
2018-11-09 10:35:27 -05:00
Robert Snoeberger
ffbe315d43 Add dozeTimeTick method to ClockPlugin interface.
dozeTimeTick implementations provided by clock plugins
should update the time of the clock while the device
is dozing and deal with burn-in related issues.

Bug: 119035943
Test: KeyguardClockSwitchTest passes locally.
Test: Custom clock updates with time on AOD screen.
Change-Id: I5c31e6d856c5a80dc3e501831dda5a62c0be5ba0
2018-11-09 14:21:11 +00:00
Calvin Pan
41ad850c96 Merge "Add CarrierId column in TelephonyProvider" am: 1df5ca6a71
am: dfed97ba6d

Change-Id: I89d20cb9ca28ad4fb26fbbf5cf2ba81985fa71ba
2018-11-09 06:02:41 -08:00
Riddle Hsu
e8b10e3922 Correct synchronized object of pinned stack
Also check for whether the stack is detached in extreme cases
because the synchronized scope is not a continuous block in
the callback of animator.

Bug: 118816763
Test: atest ActivityManagerPinnedStackTests# \
      testRemovePipWithVisibleFullscreenStack

Change-Id: I12d4d507fe08b3bd34eed2b00ac531c2cbb2b561
2018-11-09 22:00:06 +08:00
Paul Duffin
f82d01d16f Merge "Remove android.icu.... classes from light grey list" am: c6b17ad431
am: 1519c387e7

Change-Id: If1d84299aada7dd3f86d4006a781e9af7a1baaa7
2018-11-09 05:51:34 -08:00
WyattRiley
2f2d1294d0 Updating GPS_LOCK to 3 in base carrier files
Bug: 118881345
Test: Builds, and similar to device tested ag/5428497
Change-Id: I5e5998e0fb88d751b21b167ee7d4f040dd411836
2018-11-09 05:50:13 -08:00
Calvin Pan
dfed97ba6d Merge "Add CarrierId column in TelephonyProvider"
am: 1df5ca6a71

Change-Id: I35fc941a9e7b1dace0b1572976dd854227e434a5
2018-11-09 05:49:05 -08:00
Paul Duffin
1519c387e7 Merge "Remove android.icu.... classes from light grey list"
am: c6b17ad431

Change-Id: I932de80765875d860ec69872dc2d9f9a26ffd173
2018-11-09 05:40:42 -08:00
Slava Shklyaev
1fa34b08fb Merge "A11y timeout api: build breaks fixed" 2018-11-09 13:32:47 +00:00
Calvin Pan
1df5ca6a71 Merge "Add CarrierId column in TelephonyProvider" 2018-11-09 13:30:51 +00:00
Paul Duffin
c6b17ad431 Merge "Remove android.icu.... classes from light grey list" 2018-11-09 13:24:17 +00:00
TreeHugger Robot
794bd34b7d Merge "Update ExtService to use suggestConversationActions API to generate replies" 2018-11-09 12:19:16 +00:00
Rhed Jao
33ded61ceb A11y timeout api: build breaks fixed
Test: build pass
Change-Id: I30cb7aa6e219508dc9ca90e0480ff77ff49caf19
2018-11-09 19:49:21 +08:00
Alan Stokes
0a0559c0ce Merge "DexLoadReporter needs to handle arbitrary class loaders." am: f2d5ace011
am: 1e29264790

Change-Id: I41caab25c48d496722ac4d044908dd781df1705d
2018-11-09 03:20:40 -08:00
Alan Stokes
1e29264790 Merge "DexLoadReporter needs to handle arbitrary class loaders."
am: f2d5ace011

Change-Id: Ic54d9729d8a1bd2e24b1ab8ddfa4eeda089e3fbe
2018-11-09 03:10:06 -08:00
Treehugger Robot
f2d5ace011 Merge "DexLoadReporter needs to handle arbitrary class loaders." 2018-11-09 11:02:20 +00:00
lumark
52ea28e059 Fix system crash in Atms.notifyKeyguardFlagsChanged.
The crash happened when the external display removed during relayout and post
message to notify keyguard flags changed for updating transition on
this display, and then got NULL activiy display after message received.

Add a null check in notifyKeyguardFlagsChanged to fix this crash.

Bug: 119285175

Test: All existing tests passed.
Change-Id: I1768b1485d20973049fc92f97dcaccde31510499
2018-11-09 17:35:07 +08:00
Charles Chen
0c9e5fe004 Support multi-display for KEYCODE_HOME event
Thanks Wale for this super clever temp solution. (^_^)
Introduce DisplayHomeButtonHandler to make flags handled per display.
The changes are:
- Extend DoubleTapHomeTimeoutRunnable to DisplayHomeButtonHandler
- Move mHomePressed, mHomeConsumed, mHomeDoubleTapPedding into DisplayHomeButtonHandler to be its members
- Move home handling logic to handleHomeButton, which is a method in DisplayHomeButtonHandler
- Add a displayId - handler map to handle home keys per display

Bug: 115978725
Test: atest com.android.server.policy
Test: Manual - Press home on secondary display and verify if home
      activity launched on secondary display

Change-Id: Ie7b4c72c8f9ff46b20b0a94cf6c36ba7db777128
2018-11-09 17:33:12 +08:00
Junyu Lai
9c10dcc0f1 Merge "Use spy in PermissionMonitorTest." am: df01b11de1
am: 999733c5fa

Change-Id: I9eac5d82c0b5e3eb5593407aa2eb82cb8c71dc2e
2018-11-09 01:11:47 -08:00
Junyu Lai
999733c5fa Merge "Use spy in PermissionMonitorTest."
am: df01b11de1

Change-Id: I6074b6fb2f90821ddad93db18fbb633225b4292f
2018-11-09 01:01:25 -08:00
Junyu Lai
df01b11de1 Merge "Use spy in PermissionMonitorTest." 2018-11-09 08:47:03 +00:00
Martijn Coenen
bc4afc4f60 Merge "Fix getDefaultDisplayHomeActivityForUser." 2018-11-09 08:04:37 +00:00
Wang, ArvinX
3b9dae8c20 Unable to input PIN with hardware keyboard
After typing a wrong PIN, the EditText view will be disabled and lose the focus,
as a result, inputs from hardware keyboard won't be sent to PIN EditText.

Test: 1. Enable PIN lock
Test: 2. Lock the device with Power key
Test: 3. Enter wrong PIN from a physical keyboard
Test: 4. Try to enter PIN again with physical keyboard

Bug: 119287260

Change-Id: I04df523c19c99bef75ea481b44154f7ba2270689
Signed-off-by: Wang, ArvinX <arvinx.wang@intel.com>
Signed-off-by: Guobin Zhang <guobin.zhang@intel.com>
2018-11-09 08:01:58 +00:00
Charles Chen
61325fb32f Introduce DisplayNavigationBarController
DisplayNavigationBarController is a class to control everything related
to external navigation bars. Belows are its tasks:
1. create external nav bars when:
   a. StatusBar.createNavigationBar()
   b. A system decoration supported display added
2. remove external nav bars when display is removed.
3. remove all external nav bars when StatusBar.destroy()

(Following Tasks)
1. Support SystemUiVisualibility for external nav bars
   (corresponding to b/117478341#3)
2. A design doc for refactor

Bug: 115978725
Bug: 117478341
Test: atest SystemUITests
Test: Manual - external nav bars still works

Change-Id: I17084c1be287ae7ccfb94b2d1302072a5d620e29
2018-11-09 16:01:41 +08:00
Sudheer Shanka
f604b8b688 Merge "Fix adb shell cmd activity get-config --proto --device fail" am: c0dd0d6648
am: bb5384dbd0

Change-Id: If3950a91cfa8783fc62c322d2d3911124dc93093
2018-11-08 22:34:33 -08:00
Sudheer Shanka
bb5384dbd0 Merge "Fix adb shell cmd activity get-config --proto --device fail"
am: c0dd0d6648

Change-Id: Ic21b3091d47cd65cfa36b26cfeb00042255b91ec
2018-11-08 22:20:14 -08:00
Sudheer Shanka
c0dd0d6648 Merge "Fix adb shell cmd activity get-config --proto --device fail" 2018-11-09 06:08:23 +00:00
Philip P. Moltmann
230de7db7f Merge "Check if bp.perm is null before resolving it" 2018-11-09 05:56:46 +00:00
Satoshi Niwa
472371c6ad Q Upstream: Use ParcelFileDescriptor for storing large clip data.
This patch enables copy&paste-ing large data for Q and below.
Using content URI is the idiomatic way to transfer large data,
but none of the major editor apps (Docs, Evernote, Word, Gmail, etc.)
support content URI in clipboard as of today.
We will ask app developers to use content: URI and remove this function
in API 30 (R).

Bug: 111577843
Test: ClipboardManagerTest
Test: Manualy tested copying a large HTML text
Change-Id: If1798c5abcec691f4b17a45e583ed314b1c16ac2
2018-11-09 14:35:50 +09:00
Rhed Jao
e222fd9063 Merge "Update a11y recommended timeout api." 2018-11-09 05:28:18 +00:00
Kevin Chyn
a85b4a2d29 Merge "Return correct error when HW there is no biometric hardware" 2018-11-09 04:42:35 +00:00
junyulai
345155e8b4 Use spy in PermissionMonitorTest.
Bug: 118811303
Test: runtest frameworks-net
Change-Id: Id61a9efecf1d1ed5a9045b78ecfec9239e13967b
2018-11-09 12:37:16 +08:00
TreeHugger Robot
c578d38eb7 Merge "Deprecate Drawable#getOpacity" 2018-11-09 03:55:04 +00:00
Suprabh Shukla
3017fe4f51 Calling opChanged on package suspend / unsuspend
checkAudioOperation returned MODE_IGNORED when a package was suspended,
but any AppOpsWatcher registered for audio operation did not callback
when a package got suspended. This lead to inconsistent state for
services that were watching for app op changes.

Test: atest FrameworksServicesTests:SuspendPackagesTest

Bug: 112486945
Bug: 110077884
Change-Id: Ibfc378dd4ea8dd38ef002c1ac668c479afa8fd47
2018-11-08 19:40:13 -08:00
Hugo Benichi
311f0ff0b3 Merge "WiFi: Define a base abstract class for IWifiManager" 2018-11-09 03:28:46 +00:00
Jimmy Chen
53f58bc1c7 Merge "p2p: support factory reset for P2P group" 2018-11-09 02:47:08 +00:00
TreeHugger Robot
cd42d6ebfe Merge "Add constants which can be used by Privacy Setting" 2018-11-09 02:40:59 +00:00
Hall Liu
d96fd15364 Merge "Fix flaky AnalytisTest by locking in EventRecord" am: 0a390095df
am: e90962ff1d

Change-Id: Ifa04c8d827c3ce9c34454115fcb45ed092377dda
2018-11-08 18:40:29 -08:00
TreeHugger Robot
0cc0d229d0 Merge "Fix the icon overlay after density change" into pi-dev 2018-11-09 02:33:59 +00:00
Vishnu Nair
ba8d3d6109 Merge "[DO NOT MERGE] AM: Fix invalid hot launch app metrics seen with quickstep" into pi-dev
am: bdba80d907

Change-Id: Ie12322f3e103fa7fee9eec05b7b4970af6414a82
2018-11-08 18:33:06 -08:00
Hall Liu
e90962ff1d Merge "Fix flaky AnalytisTest by locking in EventRecord"
am: 0a390095df

Change-Id: I81001dc60def2165a8083a457559ec2ea1548d91
2018-11-08 18:31:49 -08:00
Rhed Jao
41118f33b1 Update a11y recommended timeout api.
Update api name to getRecommendedTimeoutMillis.
Api returns timeout for interactive or non-interactive controls.
Also provide the options for a11y service to specify two kinds of
timeout.

Bug: 111210981
Test: atest SettingsBackupTest
Test: atest AccessibilityManagerTest
Test: atest AccessibilityServiceInfoTest
Change-Id: I37d35796fd72bb4d6628a6bb33b111987f321552
2018-11-09 10:24:07 +08:00
TreeHugger Robot
bdba80d907 Merge "[DO NOT MERGE] AM: Fix invalid hot launch app metrics seen with quickstep" into pi-dev 2018-11-09 02:23:35 +00:00
Hall Liu
0a390095df Merge "Fix flaky AnalytisTest by locking in EventRecord" 2018-11-09 02:21:56 +00:00
Svet Ganov
5520368070 Adjust default app op behavior based on feature state
If the CallLog/SMS permission restriction is not enabled we keep
the old default app op state for the relevant ops and if the
feature is enabled we switch to the new default value.

Test: Manual

Change-Id: I93c0e059741f475ebdffce682e1d0d9149b41159
2018-11-08 18:04:49 -08:00
TreeHugger Robot
34f042d290 Merge "Updated ColorDrawable setAlpha/getAlpha documentation" 2018-11-09 01:46:33 +00:00
Eric Holk
b6d1454fe3 Merge "[view_compiler] Add end-to-end DexBuilder tests" am: 60b722a005
am: 66f78192a9

Change-Id: I5e6b5aa9b839206c8d6026d8f96ef90f1d73e80f
2018-11-08 17:30:34 -08:00