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

Commit 9a7226f1 authored by Nathan Harold's avatar Nathan Harold
Browse files

Invoke the DebugEventReporter#dump() function

When the TelephonyDebugService initiates a dump,
also dump the DebugEventReporter.

Bug: 120941729
Test: manual - invoke debug service and observe dump
Change-Id: Ieb3e171d10c20f33033a0fa54587fccdc84391bd
parent ac0abf24
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import android.os.ServiceManager;
import android.preference.PreferenceManager;
import android.provider.Settings;
import android.provider.Settings.SettingNotFoundException;
import android.telephony.DebugEventReporter;
import android.telephony.Rlog;
import android.telephony.SubscriptionManager;
import android.telephony.TelephonyManager;
@@ -546,6 +547,16 @@ public class PhoneFactory {
        } catch (Exception e) {
            e.printStackTrace();
        }
        pw.decreaseIndent();
        pw.println("++++++++++++++++++++++++++++++++");
        pw.println("DebugEvents:");
        pw.increaseIndent();
        try {
            DebugEventReporter.dump(fd, pw, args);
        } catch (Exception e) {
            e.printStackTrace();
        }

        pw.flush();
        pw.decreaseIndent();
    }