Pass the package of caller to getPasspointConfigurations into WifiService
The package information of caller is needed to check the SDK version in WifiService layer. Bug: 124301934 Test: ./frameworks/base/wifi/tests/runtests.sh Change-Id: I07020da22f044bdd32d376787fc14690bf926513 Signed-off-by: Ecco Park <eccopark@google.com>
This commit is contained in:
@@ -75,7 +75,7 @@ interface IWifiManager
|
||||
|
||||
boolean removePasspointConfiguration(in String fqdn, String packageName);
|
||||
|
||||
List<PasspointConfiguration> getPasspointConfigurations();
|
||||
List<PasspointConfiguration> getPasspointConfigurations(in String packageName);
|
||||
|
||||
List<WifiConfiguration> getWifiConfigsForPasspointProfiles(in List<String> fqdnList);
|
||||
|
||||
|
||||
@@ -1778,7 +1778,7 @@ public class WifiManager {
|
||||
})
|
||||
public List<PasspointConfiguration> getPasspointConfigurations() {
|
||||
try {
|
||||
return mService.getPasspointConfigurations();
|
||||
return mService.getPasspointConfigurations(mContext.getOpPackageName());
|
||||
} catch (RemoteException e) {
|
||||
throw e.rethrowFromSystemServer();
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ public class BaseWifiService extends IWifiManager.Stub {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PasspointConfiguration> getPasspointConfigurations() {
|
||||
public List<PasspointConfiguration> getPasspointConfigurations(String packageName) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user