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

Commit 15a87744 authored by Nikhil Kumar's avatar Nikhil Kumar
Browse files

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
parent 5c02a719
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}