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

Commit d7674c2b authored by Stanislav Zholnin's avatar Stanislav Zholnin
Browse files

Fix bug in StatsService which prevents any shell command from execution.

Bug: 149691126
Test: adb shell cmd stats
Change-Id: I71befdd02e61de0f39cdff9694d4ab07abb1799c
parent 8cde2c81
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -280,7 +280,7 @@ void StatsService::dumpIncidentSection(int out) {
status_t StatsService::handleShellCommand(int in, int out, int err, const char** argv,
                                          uint32_t argc) {
    uid_t uid = AIBinder_getCallingUid();
    if (uid != AID_ROOT || uid != AID_SHELL) {
    if (uid != AID_ROOT && uid != AID_SHELL) {
        return PERMISSION_DENIED;
    }