49562 Commits

Author SHA1 Message Date
TreeHugger Robot
b202b5c35c Merge "Forward package removed broadcast to KeyChainService" 2017-03-23 21:37:00 +00:00
TreeHugger Robot
e219aaae85 Merge "Delete preloadsFileCache when the cache has expired" 2017-03-23 21:19:48 +00:00
TreeHugger Robot
9817060b7c Merge "Allow Instant Apps to show toasts" 2017-03-23 20:58:37 +00:00
Dmitry Dementyev
db61e6ff44 Merge "Remove conversion from uid to package name getAccountsFromCacheLocked" 2017-03-23 19:30:11 +00:00
TreeHugger Robot
ac0ceb037c Merge "Clean up dead objects when detected in the SoundTriggerHelper" 2017-03-23 19:01:54 +00:00
Chad Brubaker
d16cc68018 Allow Instant Apps to show toasts
Toasts are used by framework/supportlib code, so don't block them
outright.

Bug: 36539171
Test: manual
Change-Id: Ic5e1c599021224c3727cb18554ea04e6833fef2a
2017-03-23 11:26:10 -07:00
TreeHugger Robot
ecf23a03a5 Merge "finished implementation of fingerprintservice enumerate" 2017-03-23 18:07:11 +00:00
TreeHugger Robot
2152ed923b Merge "Allow the Instant App installer to be dynamic" 2017-03-23 17:44:17 +00:00
Fyodor Kupolov
935618a2c5 Delete preloadsFileCache when the cache has expired
Added deletePreloadsFileCache that can be called from settings app.

Modified freeStorageAndNotify to call deletePreloadsFileCache if the
cache has expired, or aggressive flag is set.

Bug: 34690396
Test: Manual
Change-Id: Ia097cd2f62ad501644be1c2cc573c249d8cfbf55
2017-03-23 10:12:55 -07:00
Dianne Hackborn
52c46a5fd6 Merge "A little cleanup of activity manager dumpsys output." 2017-03-23 16:53:17 +00:00
Robin Lee
139354905d Forward package removed broadcast to KeyChainService
Test: Cts Verifier > Security > KeyChain Test
Test: Manually uninstall and reinstalling Chrome
Bug: 35968281
Change-Id: I1692f7042f081d1a743e0e64ea24fe1dbe63192d
2017-03-23 15:36:16 +00:00
Przemyslaw Szczepaniak
bc7875144f Merge "Default 'persist.sys.timezone' property to GMT if not set on init." am: 302b7a7075 am: 2f5a9febf4
am: 0276998354

Change-Id: I31eb2810b3cbc8a9ce5bf7c23ab821d68c8edbcc
2017-03-23 14:35:30 +00:00
Przemyslaw Szczepaniak
0276998354 Merge "Default 'persist.sys.timezone' property to GMT if not set on init." am: 302b7a7075
am: 2f5a9febf4

Change-Id: I43c05ca3f139fce4e08c7c40cc3823821341d176
2017-03-23 14:29:17 +00:00
Przemyslaw Szczepaniak
2f5a9febf4 Merge "Default 'persist.sys.timezone' property to GMT if not set on init."
am: 302b7a7075

Change-Id: I3eba21ec64878deda2d3465fcac96384241f27aa
2017-03-23 14:23:53 +00:00
Treehugger Robot
302b7a7075 Merge "Default 'persist.sys.timezone' property to GMT if not set on init." 2017-03-23 14:14:19 +00:00
Todd Kennedy
749b26abe5 Allow the Instant App installer to be dynamic
Change-Id: I58e81f5f473ac1cffb8947cd713bb1249ce00305
Fixes: 33072933
Test: add/remove/update the instant app installer and see that it changes dynamically
2017-03-23 06:57:35 -07:00
TreeHugger Robot
fbd54b4263 Merge "Revert "Allow the Instant App installer to be dynamic"" 2017-03-23 13:26:34 +00:00
Naveen Kalla
ca3d5434e8 Add API to request Bug Report with a certain title and description
ActivityManagerService will send the details to dumpstate and
BugreportProgressService will get the details from dumpstate and use
that for the notification.

Bug: 33561517
Test: Modify TelephonyMonitor to use this API and ensure that the
      notification uses that the title and description sent as arguments
      to the API. File a bug using betterBug and ensure that the
      information gets populated automatically.

Change-Id: I455f1df2278e5d569dd19c74245a0704dcf5a321
2017-03-23 12:06:04 +00:00
Esteban Talavera
829ea130bf Revert "Allow the Instant App installer to be dynamic"
Breaks work profile creation among other multi user issues

Bug: 36530935

This reverts commit 85942c2bc69385eb326cfe0e15ad9223bf1cffb5.

Change-Id: I0b5901a02ca590b7e8121aa8babe5b1c5819eca7
2017-03-23 11:25:52 +00:00
TreeHugger Robot
f3d8d3bd58 Merge "Refactor cache behavior from "atmoic" to "group"." 2017-03-23 06:04:55 +00:00
TreeHugger Robot
d45040ffc7 Merge "Added a UserManager.DISALLOW_AUTOFILL restriction." 2017-03-23 04:44:45 +00:00
Chris Thornton
2411a2c38e Clean up dead objects when detected in the SoundTriggerHelper
If an app has died while being connected to the sound trigger helper/the
binder goes away, we should stop and unload the model since there's no
way to get a handle on it again (without reloading the same UUID at some
point).

Test: Force stop the SoundTriggerTestApp while it has a model started,
trigger the sound model, then watch it get unloaded when the helper
notices that the binder is dead.

Change-Id: Iddfaaa03482d56e71f23e5982d4bd579f386b51d
2017-03-22 21:28:31 -07:00
Jeff Sharkey
b5a35b8181 Refactor cache behavior from "atmoic" to "group".
Using the word "atomic" has too much baggage relating to locking
guarantees, so move to something softer.

Add isQuotaSupported() for CTS tests.

Move CacheQuotaStrategy over to using SparseLongArray, which has a
more efficient memory footprint inside the system server.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Bug: 35812899, 35684969, 36482620
Change-Id: I894f53e6f3bc76c77d1bb18c51db14833df14a49
2017-03-22 21:33:53 -06:00
TreeHugger Robot
0f04917d21 Merge "Revisit logging in MediaRouter and MediaSessionRecord" 2017-03-23 02:34:31 +00:00
TreeHugger Robot
c7798c4f00 Merge "Add more robust handling of daemon crashes" 2017-03-23 02:22:26 +00:00
Kevin Chyn
f8ff36c47f finished implementation of fingerprintservice enumerate
fixes bug 35358801
Test: manual

Change-Id: I890148dd82484890d135532ac8f3344e6ea7fcd7
2017-03-22 18:21:52 -07:00
TreeHugger Robot
85843be89c Merge "Fix onCurrentVrActivityChanged callbacks." 2017-03-23 01:02:13 +00:00
Marie Janssen
7dc8f29f1f Merge "Bluetooth: log unexpected crashes and restarts" am: 25b6f08ece am: 3d4c1fd1fb
am: e2967d4de3

Change-Id: I74a892c8455f40f73bc19d684c5f58e840ddbe68
2017-03-23 00:57:33 +00:00
Marie Janssen
e2967d4de3 Merge "Bluetooth: log unexpected crashes and restarts" am: 25b6f08ece
am: 3d4c1fd1fb

Change-Id: I423f7fb78ffdb2b72a1db780abf9119e6718c8ad
2017-03-23 00:52:33 +00:00
Ajay Panicker
84743eeed8 Bluetooth: Use content observer for airplane mode
am: 400279def2

Change-Id: I16d88bbe5e0326223b74903804ee1f40d367035d
2017-03-23 00:47:22 +00:00
Marie Janssen
3d4c1fd1fb Merge "Bluetooth: log unexpected crashes and restarts"
am: 25b6f08ece

Change-Id: I1a0bfa2c8aba75dd60437680c5726f8c4e6c88ab
2017-03-23 00:42:53 +00:00
Jaewan Kim
742e379863 Revisit logging in MediaRouter and MediaSessionRecord
This limits excessive logs from MediaRouter and MediaSessionRecord
- MediaRouter: Leave log only if there's change in the audio route.
- MediaSessionRecord: Leave log for the controller callback instead of
    dumping verbose stack traces.

Bug: 36497125
Test: Manual test
Change-Id: Ie0fe9f33388d1aa9f25c26b3b3f7c71fec409ba8
2017-03-23 09:39:35 +09:00
Felipe Leme
24d5893b25 Added a UserManager.DISALLOW_AUTOFILL restriction.
bug: 35710740

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.LoginActivityTest#testUserRestriction
Test: cts-tradefed run commandAndExit cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDisallowAutofill_allowed
Test: cts-tradefed run commandAndExit cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedProfileOwnerTest#testDisallowAutofill_allowed
Test: cts-tradefed run commandAndExit cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testDisallowAutofill_allowed

Change-Id: I41b2bf9fe3bc8df627c6650960bd11346c430a7e
2017-03-22 17:20:48 -07:00
TreeHugger Robot
f2f2def4ce Merge "Expose ACTION_STORAGE_LOW and ACTION_STORAGE_OK to Instant Apps" 2017-03-22 23:50:40 +00:00
Julia Reynolds
3457e534e5 Merge "Don't bind incorrect services." 2017-03-22 23:47:12 +00:00
Jim Miller
8eddd33a01 Add more robust handling of daemon crashes
It seems the new fingerprint daemon doesn't recover as quickly as before
and there's a finite chance reconnecting immediately will fail.

This changes the framework to be more robust about recovering by:

1. explicitly connecting to the daemon in isHardwareDetected()
2. ensuring we remove the current client when daemon death is detected
3. reset the daemon whenever we get HW_UNAVAILABLE so we try again

Test: manually kill daemon and verify FingerprintService reconnects

Partial fix for bug 36181191

Change-Id: Id530ed62be58b33af5b5b60083f3a69e4e8cd8bf
2017-03-22 16:46:07 -07:00
Dianne Hackborn
0aa4313ec4 A little cleanup of activity manager dumpsys output.
Test: manually ran dumpsys

Change-Id: I0c3a523c501576beba2bf85c61faa026eb2a0440
2017-03-22 16:45:19 -07:00
TreeHugger Robot
fb92c738df Merge "Fix launching installer on missing split" 2017-03-22 23:41:39 +00:00
TreeHugger Robot
09f052587f Merge "Notification cleanup" 2017-03-22 23:28:12 +00:00
Ruben Brunk
7196a6bff6 Fix onCurrentVrActivityChanged callbacks.
Bug: 36503317

Test: Use controller in a 3P VR application.

Change-Id: I1b11785077183c719e19f4f496677dba79e42dab
2017-03-22 15:43:31 -07:00
Rob Carr
aa79aa1055 Merge "Amend "Fix various flashes when..." CL" 2017-03-22 22:31:26 +00:00
Andrii Kulian
38691e9d8f Merge "Revert "Update display contents when metrics change"" 2017-03-22 21:57:31 +00:00
Andrii Kulian
b6c5c0d902 Revert "Update display contents when metrics change"
This reverts commit eddb7c0985e1fac8bdbeaaed40c678c0dc9da321.

Reason for revert: b/36518752

Bug: 36518752
Change-Id: I39773db7b8d02aec360ca80d02b3c161ccf02786
2017-03-22 21:50:52 +00:00
TreeHugger Robot
57064b0d46 Merge "Do not check targetSdkVersion if only one package" 2017-03-22 21:48:55 +00:00
Todd Kennedy
40199e3d4c Fix launching installer on missing split
Bonehead mistake; we were applying the post-resolution filters twice.
Don't do that!

Test: build and see that the installer runs when trying to launch a split that's not on the device
Change-Id: Ice65cdd7cc85d0394422009ba42f388f0ec2595c
2017-03-22 14:42:38 -07:00
Chad Brubaker
6e392ed17a Expose ACTION_STORAGE_LOW and ACTION_STORAGE_OK to Instant Apps
Instant Apps wont be started by these broadcasts, but if they're running
it gives them a chance to be good citizens on the device and help out
with a space crunch.

Test: manual
Bug: 33350280
Change-Id: I1700153b1c698a29e1e35535f64062544d071cab
2017-03-22 14:37:36 -07:00
TreeHugger Robot
dbbebbc3fe Merge "Adding source bounds hint to support better PiP transition." 2017-03-22 21:27:41 +00:00
Geoffrey Pitsch
cf0341ec5d Merge "AccountManagerService send pkg uid when creating notification channel" 2017-03-22 21:16:05 +00:00
TreeHugger Robot
ab2bc07e5f Merge "Prevent downgrade of targetSandboxVersion" 2017-03-22 21:14:05 +00:00
Fyodor Kupolov
707af7c57b Merge "Added concurrency test" 2017-03-22 21:02:13 +00:00