Loading cmds/incidentd/src/IncidentService.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -82,6 +82,7 @@ static Status checkIncidentPermissions(const IncidentReportArgs& args) { Status::EX_SECURITY, "Calling process does not have permission to get local data."); } break; case DEST_EXPLICIT: if (callingUid != AID_SHELL && callingUid != AID_ROOT && callingUid != AID_STATSD && callingUid != AID_SYSTEM) { Loading @@ -91,6 +92,7 @@ static Status checkIncidentPermissions(const IncidentReportArgs& args) { Status::EX_SECURITY, "Calling process does not have permission to get explicit data."); } break; } return Status::ok(); } Loading Loading @@ -298,7 +300,7 @@ status_t IncidentService::onTransact(uint32_t code, const Parcel& data, Parcel* } return NO_ERROR; } } break; default: { return BnIncidentManager::onTransact(code, data, reply, flags); } } } Loading tools/incident_section_gen/main.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,10 @@ #include <sstream> #include <string> #ifndef FALLTHROUGH_INTENDED #define FALLTHROUGH_INTENDED [[fallthrough]] #endif using namespace android; using namespace android::os; using namespace google::protobuf; Loading Loading @@ -355,6 +359,7 @@ static bool generatePrivacyFlags(const Descriptor* descriptor, const Destination printPrivacy(fieldName, field, "NULL", fieldDest, fieldName + "_patterns"); break; } FALLTHROUGH_INTENDED; // else treat string field as primitive field and goes to default default: if (!hasDefaultFlags[i]) printPrivacy(fieldName, field, "NULL", fieldDest, "NULL"); Loading Loading
cmds/incidentd/src/IncidentService.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -82,6 +82,7 @@ static Status checkIncidentPermissions(const IncidentReportArgs& args) { Status::EX_SECURITY, "Calling process does not have permission to get local data."); } break; case DEST_EXPLICIT: if (callingUid != AID_SHELL && callingUid != AID_ROOT && callingUid != AID_STATSD && callingUid != AID_SYSTEM) { Loading @@ -91,6 +92,7 @@ static Status checkIncidentPermissions(const IncidentReportArgs& args) { Status::EX_SECURITY, "Calling process does not have permission to get explicit data."); } break; } return Status::ok(); } Loading Loading @@ -298,7 +300,7 @@ status_t IncidentService::onTransact(uint32_t code, const Parcel& data, Parcel* } return NO_ERROR; } } break; default: { return BnIncidentManager::onTransact(code, data, reply, flags); } } } Loading
tools/incident_section_gen/main.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,10 @@ #include <sstream> #include <string> #ifndef FALLTHROUGH_INTENDED #define FALLTHROUGH_INTENDED [[fallthrough]] #endif using namespace android; using namespace android::os; using namespace google::protobuf; Loading Loading @@ -355,6 +359,7 @@ static bool generatePrivacyFlags(const Descriptor* descriptor, const Destination printPrivacy(fieldName, field, "NULL", fieldDest, fieldName + "_patterns"); break; } FALLTHROUGH_INTENDED; // else treat string field as primitive field and goes to default default: if (!hasDefaultFlags[i]) printPrivacy(fieldName, field, "NULL", fieldDest, "NULL"); Loading