Wrap whole onTransact (#2740)
This commit is contained in:
parent
8d73414d2d
commit
134cd71fa0
|
|
@ -100,6 +100,7 @@ public class BridgeService {
|
|||
public static boolean onTransact(@NonNull Parcel data, @Nullable Parcel reply, int flags) {
|
||||
if (!ParcelUtils.safeEnforceInterface(data, DESCRIPTOR)) return false;
|
||||
|
||||
try {
|
||||
ACTION action = ACTION.values()[data.readInt()];
|
||||
|
||||
Log.d(TAG, "onTransact: action=" + action + ", callingUid=" + Binder.getCallingUid() + ", callingPid=" + Binder.getCallingPid());
|
||||
|
|
@ -134,6 +135,9 @@ public class BridgeService {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
Log.e(TAG, "onTransact", e);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue