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

Commit 5cb53006 authored by Raphael Kim's avatar Raphael Kim
Browse files

[CDM] Use proper package name when calling attach/detachSystemDataTransport APIs.

Bug: 332909678
Test: atest CtsCompanionDeviceManagerMultiDeviceTestCases
Change-Id: If6d4f42e6461e2b59efcfe48fa2b5451212091d2
parent f7f5f52b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1884,7 +1884,7 @@ public final class CompanionDeviceManager {
            mLocalOut = new ParcelFileDescriptor.AutoCloseOutputStream(localFd);

            try {
                mService.attachSystemDataTransport(mContext.getPackageName(),
                mService.attachSystemDataTransport(mContext.getOpPackageName(),
                        mContext.getUserId(), mAssociationId, remoteFd);
            } catch (RemoteException e) {
                throw new IOException("Failed to configure transport", e);
@@ -1921,9 +1921,9 @@ public final class CompanionDeviceManager {
            mStopped = true;

            try {
                mService.detachSystemDataTransport(mContext.getPackageName(),
                mService.detachSystemDataTransport(mContext.getOpPackageName(),
                        mContext.getUserId(), mAssociationId);
            } catch (RemoteException e) {
            } catch (RemoteException | IllegalArgumentException e) {
                Log.w(TAG, "Failed to detach transport", e);
            }