commit | 7c30c68cc594e4e4d13dca6343b118f998f4eaff | [log] [tgz] |
---|---|---|
author | Lifu Tang <lifu@google.com> | Fri Jan 26 14:55:17 2018 -0800 |
committer | Lifu Tang <lifu@google.com> | Fri Jan 26 16:42:05 2018 -0800 |
tree | 0ce32334b25535b1d159ff62701412f9646bae5b | |
parent | b62c31cdb3525979a4d36daf053b5bc5a56aa5df [diff] |
Move location-related code into client library These first-party only methods can only be called by privileged packages, and Settings.Secure already applies strict permission check to them. Therefore moving the code into client library can save us from unnecessary binder calls, and can also make checking the caller package name much easier. Test: Manual Change-Id: I76a939a660357f87b01ff4ac07ec3f17093d3c41