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

Commit 8a2ce3c7 authored by Christopher Tate's avatar Christopher Tate
Browse files

Debug logging for a certain class of binder transaction failures

Bug 21801759

Change-Id: I9973d4ffb9450e510a4e1c64e2eae1489ce93054
parent c20c1eec
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -35,6 +35,9 @@ import android.os.RemoteException;
import android.os.IBinder;
import android.os.Parcel;
import android.os.ParcelFileDescriptor;
import android.os.TransactionTooLargeException;
import android.util.Log;

import com.android.internal.app.IVoiceInteractor;
import com.android.internal.content.ReferrerIntent;

@@ -921,8 +924,13 @@ class ApplicationThreadProxy implements IApplicationThread {
        info.writeToParcel(data, 0);
        compatInfo.writeToParcel(data, 0);
        data.writeInt(processState);
        try {
            mRemote.transact(SCHEDULE_CREATE_SERVICE_TRANSACTION, data, null,
                    IBinder.FLAG_ONEWAY);
        } catch (TransactionTooLargeException e) {
            Log.e("CREATE_SERVICE", "Binder failure starting service; service=" + info);
            throw e;
        }
        data.recycle();
    }