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

Commit 444f96a9 authored by Eugene Susla's avatar Eugene Susla
Browse files

Fix CDM associate command

Fixes: 175952313
Test: atest android.os.cts.CompanionDeviceManagerTest#testDump
Change-Id: I03bb4cc82636dc60a447e20b40c5f46f1a7864ad
parent dba641eb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;