Merge "Clear binder calling identity before calling callback" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
520eb40850
@@ -111,7 +111,12 @@ public class TelephonyRegistryManager {
|
||||
IOnSubscriptionsChangedListener callback = new IOnSubscriptionsChangedListener.Stub() {
|
||||
@Override
|
||||
public void onSubscriptionsChanged () {
|
||||
executor.execute(() -> listener.onSubscriptionsChanged());
|
||||
final long identity = Binder.clearCallingIdentity();
|
||||
try {
|
||||
executor.execute(() -> listener.onSubscriptionsChanged());
|
||||
} finally {
|
||||
Binder.restoreCallingIdentity(identity);
|
||||
}
|
||||
}
|
||||
};
|
||||
mSubscriptionChangedListenerMap.put(listener, callback);
|
||||
|
||||
Reference in New Issue
Block a user