Skip to content
Snippets Groups Projects
Commit 6134198b authored by Hunsuk Choi's avatar Hunsuk Choi
Browse files

Make binder call non-blocked in DomainSelectionService

Decrease the possibility for DomainSelectionService
to block the telephony process.
If a binder call should be blocked, executeMethodAsync
shall be used instead of executeMethodAsyncNoException.

Bug: 324406469
Test: atest DomainSelectionServiceTestOnMockModem
Change-Id: I18167a4dbfa79a61048b0d5df6dca05b2cc946ff
parent 74bd6d36
No related branches found
No related tags found
No related merge requests found
......@@ -831,7 +831,7 @@ public abstract class DomainSelectionService extends Service {
@NonNull String tag, @NonNull String errorLogName) {
try {
CompletableFuture.runAsync(
() -> TelephonyUtils.runWithCleanCallingIdentity(r), executor).join();
() -> TelephonyUtils.runWithCleanCallingIdentity(r), executor);
} catch (CancellationException | CompletionException e) {
Rlog.w(tag, "Binder - " + errorLogName + " exception: " + e.getMessage());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment