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

Commit 3d0f0943 authored by Prerepa Viswanadham's avatar Prerepa Viswanadham
Browse files

API for get modem activity info

Change-Id: I4785e1dfce14468de8ba5a376c7c3aa57178ce7b
parent 5c728994
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -4595,7 +4595,22 @@ public class TelephonyManager {
            }
        } catch (RemoteException ex) {
        }
        return null;
    }

    /**
     * Returns the modem activity info.
     * @hide
     */
    public ModemActivityInfo getModemActivityInfo() {
        try {
            ITelephony service = getITelephony();
            if (service != null) {
                return service.getModemActivityInfo();
            }
        } catch (RemoteException e) {
            Log.e(TAG, "Error calling ITelephony#getModemActivityInfo", e);
        }
        return null;
    }
}