Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6663742 authored by Jiwon Kim's avatar Jiwon Kim
Browse files

Fix converting method for TrafficDescriptor



In AIDL definition, TrafficDescriptor in DataProfileInfo is
non-null. So it's required to make empty object then return it.
This unmatched nullability could make RPC call drop in binder.
SetDataProfile, SetInitialAttachApn, SetupDataCall is affected.

bug: 205849298
bug: 220644035
Test: manually tested on live network with phone type device which
      enabled HAL 2.0 AIDL

Signed-off-by: default avatarJiwon Kim <jiwon.ss.kim@samsung.com>
Change-Id: I8c03e0d9bf0b8ed103937709ae689203bce6d0d3
parent 28f14d91
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1093,7 +1093,7 @@ public class RILUtils {
    public static android.hardware.radio.data.TrafficDescriptor
            convertToHalTrafficDescriptorAidl(@Nullable TrafficDescriptor trafficDescriptor) {
        if (trafficDescriptor == null) {
            return null;
            return new android.hardware.radio.data.TrafficDescriptor();
        }

        android.hardware.radio.data.TrafficDescriptor td =