Fix: update Binder#getCallingUidOrWtf to use wtfStack

Change I11ea3fdf889689d76211506e81420e694238ee68 introduced
Binder#getCallingUidOrWtf.

It should have used Log.wtfStack instead of Log.wtf.  The stack trace is
important for diagnosing the origin of a given binder call.

Bug: 252975769
Test: TH
Change-Id: I6946b1aea536f4b662ffffe8024dbc54d3dc36e0
This commit is contained in:
mattgilbride
2022-12-05 15:32:53 +00:00
parent e5a82fc9a2
commit 85930a321d

View File

@@ -366,7 +366,7 @@ public class Binder implements IBinder {
*/
public static final int getCallingUidOrWtf() {
if (!isDirectlyHandlingTransaction() && !hasExplicitIdentity()) {
Log.wtf(TAG,
Log.wtfStack(TAG,
"Thread is not in a binder transaction, "
+ "and the calling identity has not been "
+ "explicitly set with clearCallingIdentity");