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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user