summaryrefslogtreecommitdiffstats
path: root/src/com/android/packageinstaller/role/model/ExclusiveDefaultHolderMixin.java
Commit message (Collapse)AuthorAgeFilesLines
* Add visibility config for assistant, home and emergency role.Hai Zhang2019-02-191-1/+7
| | | | | | | | | | Default assistant, home and emergency could be hidden from users, so keep this ability when we migrate to roles. Bug: 124452117 Bug: 124260975 Test: manual Change-Id: I03265d3f19950b603f74f33b18492ede868e6e49
* Add more logging when a package don't qualify for role.Hai Zhang2019-02-151-0/+2
| | | | | | | | | | I was debugging assistant fallback for secondary users, and had a hard time figuring out why assistant lost the role. Adding more log will help us know why things were happening in the future. Bug: 124452117 Test: build Change-Id: I2f21aff2178a4b19df7f9188cc07d9949212cf54
* Make sure a default role holder is a system app.Hai Zhang2019-02-081-0/+15
| | | | | | | | Having a non-system app specified as a default role holder can be dangerous. Test: build Change-Id: I28b30cb1ee9c14c436c492c997be520a64f73675
* Use separate config entries for default role holders.Hai Zhang2019-02-071-9/+21
| | | | | | | | | | Using a single config_defaultRoleHolders turned out to be problematic and error-prone when mixed with multiple overlays, so split it into separate config entries. Bug: 122730135 Test: build Change-Id: I4125781ec1989e0bcf90d503ae97472468cd4fb6
* Fix browser role fallback.Hai Zhang2019-02-061-0/+59
Previously we always return the factory default browser as a fallback (if there is one), however in most cases this will break the previous behavior of clearing the default browser when a new browser is installed. This change changes this behavior to be setting a fallback only if there is only one browser. Test: manual Change-Id: Iac142c2ec0a4fb6eecb55576af817c9589558fe0