Merge "Fix bug in StatsService which prevents any shell command from execution."
This commit is contained in:
committed by
Android (Google) Code Review
commit
48b2f06621
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user