DO NOT MERGE: Clear calling context when adding UWB default setting.
Bug: 200346828 Test: Manual Change-Id: I12579263fe0edba16c20a8a152688cd671d66858
This commit is contained in:
@@ -236,7 +236,12 @@ public class UwbServiceImpl extends IUwbAdapter.Stub implements IBinder.DeathRec
|
|||||||
throw new IllegalStateException("No vendor service found!");
|
throw new IllegalStateException("No vendor service found!");
|
||||||
}
|
}
|
||||||
Log.i(TAG, "Retrieved vendor service");
|
Log.i(TAG, "Retrieved vendor service");
|
||||||
|
long token = Binder.clearCallingIdentity();
|
||||||
|
try {
|
||||||
mVendorUwbAdapter.setEnabled(mUwbInjector.isPersistedUwbStateEnabled());
|
mVendorUwbAdapter.setEnabled(mUwbInjector.isPersistedUwbStateEnabled());
|
||||||
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(token);
|
||||||
|
}
|
||||||
linkToVendorServiceDeath();
|
linkToVendorServiceDeath();
|
||||||
return mVendorUwbAdapter;
|
return mVendorUwbAdapter;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user