Fix CDM associate command
Fixes: 175952313 Test: atest android.os.cts.CompanionDeviceManagerTest#testDump Change-Id: I03bb4cc82636dc60a447e20b40c5f46f1a7864ad
This commit is contained in:
@@ -919,9 +919,10 @@ public class CompanionDeviceManagerService extends SystemService implements Bind
|
||||
break;
|
||||
|
||||
case "associate": {
|
||||
int userId = getNextArgInt();
|
||||
String pkg = getNextArgRequired();
|
||||
String address = getNextArgRequired();
|
||||
addAssociation(new Association(getNextArgInt(), address, pkg, null, false));
|
||||
addAssociation(new Association(userId, address, pkg, null, false));
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user