Merge "DO NOT MERGE: Clear calling context when adding UWB default setting." into sc-qpr1-dev

This commit is contained in:
Joy Babafemi
2021-09-23 16:13:21 +00:00
committed by Android (Google) Code Review

View File

@@ -236,7 +236,12 @@ public class UwbServiceImpl extends IUwbAdapter.Stub implements IBinder.DeathRec
throw new IllegalStateException("No vendor service found!");
}
Log.i(TAG, "Retrieved vendor service");
long token = Binder.clearCallingIdentity();
try {
mVendorUwbAdapter.setEnabled(mUwbInjector.isPersistedUwbStateEnabled());
} finally {
Binder.restoreCallingIdentity(token);
}
linkToVendorServiceDeath();
return mVendorUwbAdapter;
}