diff options
author | Roshan Pius <rpius@google.com> | 2019-04-05 07:44:54 -0700 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2019-04-05 08:20:37 -0700 |
commit | a9e29b6e71ab8a7254a7b0308ac966484bc5b51d (patch) | |
tree | 66e20971aa89d432eb2e5410775fb029d224bad4 /service | |
parent | 89bce6ef926ea42e0b77b9098e8bb41b6568c4da (diff) |
WifiServiceImpl: Log location permission denials
Add permission denail logs for getScanResults & startScan.
Bug: 129459930
Test: Manually verified failure logs from CTS tests
Change-Id: I9594da03f6bcb403df8272fbde46f7de8dee64c3
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/WifiServiceImpl.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiServiceImpl.java b/service/java/com/android/server/wifi/WifiServiceImpl.java index 5a5bc1824..5f0ac3b95 100644 --- a/service/java/com/android/server/wifi/WifiServiceImpl.java +++ b/service/java/com/android/server/wifi/WifiServiceImpl.java @@ -656,6 +656,8 @@ public class WifiServiceImpl extends BaseWifiService { return false; } } catch (SecurityException e) { + Slog.e(TAG, "Permission violation - startScan not allowed for" + + " uid=" + callingUid + ", packageName=" + packageName + ", reason=" + e); return false; } finally { Binder.restoreCallingIdentity(ident); @@ -2264,6 +2266,8 @@ public class WifiServiceImpl extends BaseWifiService { } return scanResults; } catch (SecurityException e) { + Slog.e(TAG, "Permission violation - getScanResults not allowed for uid=" + + uid + ", packageName=" + callingPackage + ", reason=" + e); return new ArrayList<ScanResult>(); } finally { Binder.restoreCallingIdentity(ident); |