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

Commit 05a57b6f authored by Hunter Knepshield's avatar Hunter Knepshield
Browse files

Forward IBinder#dump to CarrierService#dump

This will allow CarrierConfigLoader to dump packages' bound carrier
services as part of bug reports when appropriate.

Bug: 146521742
Test: manual with modified CarrierConfigLoader + dumpsys carrier_config
Change-Id: Ie3aef4216e7a42e5e4cc5ba4a3978b9c4dda50dd
parent 677db186
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -25,6 +25,9 @@ import android.os.ResultReceiver;
import android.telephony.TelephonyRegistryManager;
import android.util.Log;

import java.io.FileDescriptor;
import java.io.PrintWriter;

/**
 * A service that exposes carrier-specific functionality to the system.
 * <p>
@@ -156,5 +159,10 @@ public abstract class CarrierService extends Service {
                result.send(RESULT_ERROR, null);
            }
        }

        @Override
        protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
            CarrierService.this.dump(fd, pw, args);
        }
    }
}