aidl: ISehRadioNetworkIndication: Add missing function
authorTim Zimmermann <tim@linux4.de>
Sat, 16 Mar 2024 19:47:06 +0000 (20:47 +0100)
committerJan Altensen (Stricted) <info@stricted.net>
Fri, 21 Jun 2024 04:02:30 +0000 (04:02 +0000)
* Without this all the transaction IDs after this function are shifted by one
* When libril_sem tries to call vendorConfigurationChanged() which is the last
  function in the interface, previously the AIDL lib would not have any transaction
  matching it, causing it to call the very last function (getInterfaceVersion)
  which, due to different parameters, causes a segmentation fault

Change-Id: Ic6e9b740313d96c0c645fc54a0804d348892718a

interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/.hash
interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/ISehRadioNetworkIndication.aidl
interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/ISehRadioNetworkIndication.aidl
interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/ISehRadioNetworkIndication.aidl
ril/sehradiomanager/aidl/SehRadioNetworkIndication.cpp
ril/sehradiomanager/aidl/SehRadioNetworkIndication.h

index a5669a1dbd1bf9dc5ae7e852c5ae93b4e131b29e..807cf987122e084f1a357f2830cdb0eebc5abd4d 100644 (file)
@@ -30,6 +30,7 @@ interface ISehRadioNetworkIndication {
   oneway void needTurnOnRadioIndication(int type);
   oneway void nrBearerAllocationChanged(int type, int status);
   oneway void nrIconTypeChanged(int type, int nrIconType);
+  oneway void nrNetworkTypeAdded(int type, int nrNetworkType);
   oneway void roamingNetworkScanIsRequested(int type, in byte[] scanData);
   oneway void signalLevelInfoChanged(int type, in vendor.samsung.hardware.radio.network.SehSignalBar signalBarInfo);
   oneway void vendorConfigurationChanged(int type, in vendor.samsung.hardware.radio.network.SehVendorConfiguration[] configurations);
index a5669a1dbd1bf9dc5ae7e852c5ae93b4e131b29e..807cf987122e084f1a357f2830cdb0eebc5abd4d 100644 (file)
@@ -30,6 +30,7 @@ interface ISehRadioNetworkIndication {
   oneway void needTurnOnRadioIndication(int type);
   oneway void nrBearerAllocationChanged(int type, int status);
   oneway void nrIconTypeChanged(int type, int nrIconType);
+  oneway void nrNetworkTypeAdded(int type, int nrNetworkType);
   oneway void roamingNetworkScanIsRequested(int type, in byte[] scanData);
   oneway void signalLevelInfoChanged(int type, in vendor.samsung.hardware.radio.network.SehSignalBar signalBarInfo);
   oneway void vendorConfigurationChanged(int type, in vendor.samsung.hardware.radio.network.SehVendorConfiguration[] configurations);
index 812541506a300a78856084442ba24b4296c7f1aa..1c9ad6699a5b2dbb7275d96a471f73207e4ea248 100644 (file)
@@ -19,6 +19,7 @@ interface ISehRadioNetworkIndication {
     oneway void needTurnOnRadioIndication(int type);
     oneway void nrBearerAllocationChanged(int type, int status);
     oneway void nrIconTypeChanged(int type, int nrIconType);
+    oneway void nrNetworkTypeAdded(int type, int nrNetworkType);
     oneway void roamingNetworkScanIsRequested(int type, in byte[] scanData);
     oneway void signalLevelInfoChanged(int type, in SehSignalBar signalBarInfo);
     oneway void vendorConfigurationChanged(int type, in SehVendorConfiguration[] configurations);
index 62f1b3001f39af54d3f17f3090ad3984a1f3f0ae..9b76c41db97edf9054799adf0ea0f672b063da56 100644 (file)
@@ -88,6 +88,12 @@ ndk::ScopedAStatus SehRadioNetworkIndication::nrIconTypeChanged(int32_t type, in
     return ndk::ScopedAStatus::ok();
 }
 
+ndk::ScopedAStatus SehRadioNetworkIndication::nrNetworkTypeAdded(int32_t type,
+                                                                 int32_t nrNetworkType) {
+    l(__func__);
+    return ndk::ScopedAStatus::ok();
+}
+
 ndk::ScopedAStatus SehRadioNetworkIndication::roamingNetworkScanIsRequested(
         int32_t type, const std::vector<uint8_t>& scanData) {
     l(__func__);
index 5140db915410df506d634d97ec04b3f013458e83..e8d1edae643636d9691004779c95103cf7947d79 100644 (file)
@@ -32,6 +32,7 @@ class SehRadioNetworkIndication : public BnSehRadioNetworkIndication {
     ndk::ScopedAStatus needTurnOnRadioIndication(int32_t type) override;
     ndk::ScopedAStatus nrBearerAllocationChanged(int32_t type, int32_t status) override;
     ndk::ScopedAStatus nrIconTypeChanged(int32_t type, int32_t nrIconType) override;
+    ndk::ScopedAStatus nrNetworkTypeAdded(int32_t type, int32_t nrNetworkType) override;
     ndk::ScopedAStatus roamingNetworkScanIsRequested(int32_t type,
                                                      const std::vector<uint8_t>& scanData) override;
     ndk::ScopedAStatus signalLevelInfoChanged(int32_t type,