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
This commit is contained in:
Badhri Jagan Sridharan
2017-06-22 16:39:47 -07:00
parent 745bbf758d
commit 4641fc3e2a

View File

@@ -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) {