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

Commit 4641fc3e authored by Badhri Jagan Sridharan's avatar Badhri Jagan Sridharan
Browse files

Log call to setPortRoles

Came of bunch of bugs, for instance b/62912250 where some app is
forcing the port role. Logging which package is doing this

Change-Id: I234db3292326d247c82723989b46160fcbd59c10
parent 745bbf75
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -654,6 +654,7 @@ public class UsbManager {
        Preconditions.checkNotNull(port, "port must not be null");
        UsbPort.checkRoles(powerRole, dataRole);

        Log.d(TAG, "setPortRoles Package:" + mContext.getPackageName());
        try {
            mService.setPortRoles(port.getId(), powerRole, dataRole);
        } catch (RemoteException e) {