commit | 5f0139d2e8bc8b5819e2c5ef4440f766a4af8813 | [log] [tgz] |
---|---|---|
author | Jerry Zhang <zhangjerry@google.com> | Tue Aug 22 17:42:54 2017 -0700 |
committer | Jerry Zhang <zhangjerry@google.com> | Wed Aug 23 11:10:51 2017 -0700 |
tree | e8f4577c028875f6ed03b722cbe5b4948a7cab03 | |
parent | e537a8313987bd10208281c4fa5c6834b4fd1d15 [diff] |
Add additional context to MtpDatabase MtpService has been changed to a singleton service running in user 0, so the original context will be that of user 0. Accesses to MediaProvider and MediaScanner should use the new passed in user context in order to access user data, while the broadcast receiver for battery data will use the original context. Bug: 64822515 Test: Use Mtp and switch users. Change-Id: Ic181258337944db7dc6f6097c967cb104df938d3