OSDN Git Service

Fixed null callback issue
authorJack Yu <jackyu@google.com>
Mon, 19 Aug 2019 01:51:30 +0000 (18:51 -0700)
committerJack Yu <jackyu@google.com>
Mon, 19 Aug 2019 17:02:11 +0000 (10:02 -0700)
commit09ef1cb126ee59dcb4eacfc3a8afefcb0f991945
tree09d7a55733b15adb4829a9d612ffad6a13a6b739
parent1ac726e71857a01edbfcc3be2349c56fa44b5187
Fixed null callback issue

Fixed the vendor data/network service non-responsive
issue. The callback binder passed from frameworks
might be GC'd so that vendor data/network service skipped
calling the callback. This eventually caused data
connection state machine messed up.

Fixed by turning the weak refernce to the callback into
a strong reference. This ensure the binder alive when
vendor service needs to invoke the callback.

Test: Telephony sanity tests
Bug: 139076980
Change-Id: Ica0b7b810ffd5416ffd1b2b61f7ebc4af0dcb8ce
telephony/java/android/telephony/NetworkServiceCallback.java
telephony/java/android/telephony/data/DataServiceCallback.java