Revert "[BR07.1] Expose setDataSaverEnabled from ConnectivityManager"
Revert submission 2745215-npmsbpf DroidMonitor: Potential culprit for Bug 307256512 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted. Reason for revert: 307256512 Reverted changes: /q/submissionid:2745215-npmsbpf Change-Id: I27119a7484453d1369bbdf71ad2479edec7d664f
This commit is contained in:
parent
c279f1830e
commit
457ae0f00f
1 changed files with 0 additions and 55 deletions
|
|
@ -12544,20 +12544,6 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDataSaverEnabled(final boolean enable) {
|
||||
enforceNetworkStackOrSettingsPermission();
|
||||
try {
|
||||
final boolean ret = mNetd.bandwidthEnableDataSaver(enable);
|
||||
if (!ret) {
|
||||
throw new IllegalStateException("Error when changing iptables: " + enable);
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
// Lack of permission or binder errors.
|
||||
throw new IllegalStateException(e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateMeteredNetworkAllowList(final int uid, final boolean add) {
|
||||
enforceNetworkStackOrSettingsPermission();
|
||||
|
|
|
|||
Loading…
Reference in a new issue