Merge "Change factoryReset to succeed for Settings"

This commit is contained in:
Treehugger Robot
2019-06-14 07:02:17 +00:00
committed by Gerrit Code Review

View File

@@ -6892,8 +6892,10 @@ public class ConnectivityService extends IConnectivityManager.Stub
final int userId = UserHandle.getCallingUserId();
final IpMemoryStore ipMemoryStore = IpMemoryStore.getMemoryStore(mContext);
ipMemoryStore.factoryReset();
Binder.withCleanCallingIdentity(() -> {
final IpMemoryStore ipMemoryStore = IpMemoryStore.getMemoryStore(mContext);
ipMemoryStore.factoryReset();
});
// Turn airplane mode off
setAirplaneMode(false);