Remove restriction on bands for NW scan
When location services are off, still allow apps with the NETWORK_SCAN
permission to scan for specific bands, since they don't reveal anything
about a user's location.
Test: manual
Fixes: 129800024
Fixes: 129086230
Change-Id: If8e3c3913e78378b29ab3258202ce4eddb7dbbd4
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 70b5e2d..8ead612 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -4459,10 +4459,6 @@
if (request.getSpecifiers() != null && request.getSpecifiers().length > 0) {
for (RadioAccessSpecifier ras : request.getSpecifiers()) {
- if (ras.getBands() != null && ras.getBands().length > 0) {
- return new SecurityException("Specific bands must not be"
- + " scanned without location access.");
- }
if (ras.getChannels() != null && ras.getChannels().length > 0) {
return new SecurityException("Specific channels must not be"
+ " scanned without location access.");