commit | 71e728e934bec9c5d121b285e5c0089f658723d2 | [log] [tgz] |
---|---|---|
author | Weng Su <wengsu@google.com> | Fri Jul 02 21:27:21 2021 +0800 |
committer | Weng Su <wengsu@google.com> | Fri Jul 02 23:10:11 2021 +0800 |
tree | ec881472db775eddfc67ac9148c97af5608f61be | |
parent | f421525d2cbb2132a1da4f87db8af3b62b9c8ce4 [diff] |
Add permission checking to WifiDialogActivity - Use getCallingPackage() to get calling package. - Check if the calling package has ACCESS_COARSE_LOCATION or ACCESS_COARSE_LOCATION permission. - Only set result data to permission granted callers Bug: 185126813 Test: manual test make RunSettingsRoboTests ROBOTEST_FILTER=WifiDialogActivityTest Change-Id: If7ca069c842ed2bd1aed23f9d4041473c68a4dad