commit | ed401cc16d27d90c78b9744b580f00529e391e9a | [log] [tgz] |
---|---|---|
author | Galia Peycheva <galinap@google.com> | Thu Mar 19 20:28:09 2020 +0100 |
committer | Galia Peycheva <galinap@google.com> | Mon Mar 30 16:34:20 2020 +0000 |
tree | 837bf26bf71ee45d1e9d19e2dc3a6f1df6cf472e | |
parent | 480275a1977bcace74963d83c70c4c9e53d3a029 [diff] |
Introduce security checks to startDreamActivity This CL checks that the caller is the dream package and that the device is dreaming when the activity is started. isDream was instroduced in order to exempt the DreamActivity from background start check. setAllowBackgroundActivityStart does that more cleanly. Bug: 152281628 Test: m && flashall && verify dream works Change-Id: Id6161f923f3350d482b3452a78a792a541dcf1a1