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

This commit is contained in:
TreeHugger Robot
2020-02-18 08:13:23 +00:00
committed by Android (Google) Code Review

View File

@@ -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;
}