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

Commit f92dc7f9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Return correct results in StatsManager APIs"

parents e1e892d4 aa39bc73
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -731,6 +731,7 @@ Status StatsService::addConfiguration(const String16& key,
        *success = true;
        return Status::ok();
    } else {
        *success = false;
        return Status::fromExceptionCode(binder::Status::EX_SECURITY);
    }
}
@@ -740,6 +741,7 @@ Status StatsService::removeConfiguration(const String16& key, bool* success) {
    if (checkCallingPermission(String16(kPermissionDump))) {
        string keyStr = string(String8(key).string());
        mConfigManager->RemoveConfig(ConfigKey(ipc->getCallingUid(), keyStr));
        *success = true;
        return Status::ok();
    } else {
        *success = false;