summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikhil Kumar <nykkumar@google.com>2023-06-15 15:37:19 +0100
committerNikhil Kumar <nykkumar@google.com>2023-06-15 14:42:54 +0000
commitb70622a45d17f6bfe7357bebfc59a5871fba5b9e (patch)
tree0b1684fa16be0e598b61d5707ed5991b81e8b361
parent92745f7aebcb25584b97d3c29bc94148d03ad5db (diff)
downloadnative-b70622a45d17f6bfe7357bebfc59a5871fba5b9e.tar.gz
Use unsigned calling_uid in case of bug report triggered from adb
The utility method to extract user_id and app_id from calling_uid takes unsigned int_32. Changed the default value of calling_uid to 0 from -1 for the case when bug report is triggered by adb and calling_uid is not relevant. Bug: 260989962 Test: tested manually by initiating a bug report through adb and observing the BUGREPORT_STARTED broadcast in logcat. Ignore-AOSP-First: will do it later with other headless changes. Change-Id: I1c410853ef99c6292039382714394066a72318f7
-rw-r--r--cmds/dumpstate/dumpstate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index 5dbf7ac715..8a337569c4 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -3586,7 +3586,7 @@ Dumpstate::RunStatus Dumpstate::ParseCommandlineAndRun(int argc, char* argv[]) {
// an app; they are irrelevant here because bugreport is triggered via command line.
// Update Last ID before calling Run().
Initialize();
- status = Run(-1 /* calling_uid */, "" /* calling_package */);
+ status = Run(0 /* calling_uid */, "" /* calling_package */);
}
return status;
}