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

Commit e57410c1 authored by Raphael Kim's avatar Raphael Kim Committed by Android (Google) Code Review
Browse files

Merge "[CDM] Use proper package name when calling attach/detachSystemDataTransport APIs." into main

parents 0a68f81f 5cb53006
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);
            }