diff options
author | nathch <nathch@google.com> | 2020-02-03 17:09:34 +0000 |
---|---|---|
committer | nathch <nathch@google.com> | 2020-02-03 17:09:34 +0000 |
commit | d153d5fd22f5be7c1c7cb16219465d061678f412 (patch) | |
tree | 05fc483898db068419d1157e06efb0d25c88bbe9 /services/backup | |
parent | f96fed1d2b58557d1270e3a57e6a24183915d988 (diff) |
Avoid warning logs on blocking Binder calls out of system_server to IBackupTransport
The implementations of IBackupTransport are whitelisted therefore in the short-term,
its OK to allow these calls and avoid the warning logs which can be distracting when
looking at logs to investigate bugs and are not of any real value since we are already
aware of this.
Bug: 148783926
Test: atest -v CtsBackupTestCases
Test: atest -v CtsBackupHostTestCases
Change-Id: I13e2a638891d0369310bc2c665fa772306a28199
Diffstat (limited to 'services/backup')
-rw-r--r-- | services/backup/backuplib/java/com/android/server/backup/transport/TransportClient.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/services/backup/backuplib/java/com/android/server/backup/transport/TransportClient.java b/services/backup/backuplib/java/com/android/server/backup/transport/TransportClient.java index 7c5a57c004e4..ca89f7f69fbc 100644 --- a/services/backup/backuplib/java/com/android/server/backup/transport/TransportClient.java +++ b/services/backup/backuplib/java/com/android/server/backup/transport/TransportClient.java @@ -26,6 +26,7 @@ import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; +import android.os.Binder; import android.os.DeadObjectException; import android.os.Handler; import android.os.IBinder; @@ -662,6 +663,10 @@ public class TransportClient { referenceLost("TransportConnection.onServiceConnected()"); return; } + // TODO (b/147705255): Remove when binder calls to IBackupTransport are not blocking + // In short-term, blocking calls are OK as the transports come from the whitelist at + // {@link SystemConfig#getBackupTransportWhitelist()} + Binder.allowBlocking(binder); transportClient.onServiceConnected(binder); } |