Merge "Fix compile time warning." am: 5c6e4acbe1

am: 317da495e0

Change-Id: I00c265e52ce90d59c9210057ad77ab44b806d59c
This commit is contained in:
Xin Li
2019-01-10 14:59:46 -08:00
committed by android-build-merger

View File

@@ -82,6 +82,7 @@ static Status checkIncidentPermissions(const IncidentReportArgs& args) {
Status::EX_SECURITY, Status::EX_SECURITY,
"Calling process does not have permission to get local data."); "Calling process does not have permission to get local data.");
} }
break;
case DEST_EXPLICIT: case DEST_EXPLICIT:
if (callingUid != AID_SHELL && callingUid != AID_ROOT && callingUid != AID_STATSD && if (callingUid != AID_SHELL && callingUid != AID_ROOT && callingUid != AID_STATSD &&
callingUid != AID_SYSTEM) { callingUid != AID_SYSTEM) {
@@ -91,6 +92,7 @@ static Status checkIncidentPermissions(const IncidentReportArgs& args) {
Status::EX_SECURITY, Status::EX_SECURITY,
"Calling process does not have permission to get explicit data."); "Calling process does not have permission to get explicit data.");
} }
break;
} }
return Status::ok(); return Status::ok();
} }