28074 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
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
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
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
Geoffrey Pitsch
3560f847fb AccountManagerService send pkg uid when creating notification channel
AccountManager needs to pass the app's uid explicitly in order for the
channel lookup to not fail. Requires separate API that only system can
call.

Bug: 36511867
Test: Install Clankium and reboot device, observe Notification
Change-Id: I6ddd87d755b4b2129565dd275e799b0349a80936
2017-03-22 16:49:05 -04:00
Robert Carr
e7cc44d814 Amend "Fix various flashes when..." CL
Missing cosmetic changes from last patch set due to
a rebase error on my part.

Test: Cosmetic
Change-Id: I3a8a68e8cecd1947cd9e54d5fcfe8bb4a792265b
2017-03-22 13:30:41 -07:00
Dmitry Dementyev
16e3789172 Remove conversion from uid to package name getAccountsFromCacheLocked
Conversion should happen in filerAccounts method to preserve
filterSharedAccounts logic.
Bug: 36485175
Test: cts

Change-Id: I4c7fd086de5883e68894c42476e2fe12f1adb97a
2017-03-22 13:19:43 -07:00
Julia Reynolds
e071abda78 Notification cleanup
- remove EXTRA_ORIGINATING_USER_ID
- deprecate two icon extra fields; use the getters instead
- rename badge icon methods
- update some unclear documentation

Test: make, cts
Fixes: 33666468
Fixes: 36128288
Change-Id: Ic477259aab5f267fb72ab715d72195d6364cedae
2017-03-22 20:15:20 +00:00
Fyodor Kupolov
892fc8d067 Do not check targetSdkVersion if only one package
Bug: 36485175
Test: AccountManagerServiceTest
Change-Id: Icef2a292dbf5119a5c2bb184aa2da7bcf8e7bd11
2017-03-22 12:57:04 -07:00
Winson Chung
08f81890bc Adding source bounds hint to support better PiP transition.
Bug: 35396882
Test: Start a transition with source bounds hint.
Change-Id: I4897242af84744bc05a093111a15ea52e49815e8
2017-03-22 12:48:07 -07:00
Winson Chung
2423c13507 Merge "Removing per-user PiP component." 2017-03-22 18:56:07 +00:00