oaid重置上报HA!

Signed-off-by: lipan <lipan111@huawei.com>
This commit is contained in:
lipan 2024-07-31 16:24:21 +08:00
parent 24552105ba
commit 0a1c678ca5
3 changed files with 5 additions and 5 deletions

View File

@ -226,9 +226,9 @@ napi_value ResetOAID(napi_env env, napi_callback_info info)
int32_t errorCode = Cloud::OAIDServiceClient::GetInstance()->ResetOAID();
OAID_HILOGI(OHOS::Cloud::OAID_MODULE_JS_NAPI, "ResetOAID code = %{public}d", errorCode);
if (errorCode == OAID_ERROR_CODE_NOT_SYSTEM_APP) {
napi_throw_error(env,
std::to_string(errorCode).c_str(),
"Permission verification failed. A non-system application calls a system API.");
napi_throw_error( env,
std::to_string( errorCode).c_str(),
"Permission verification failed. A non-system application calls a system API." );
}
if (errorCode == OAID_ERROR_NOT_IN_TRUST_LIST) {

View File

@ -48,7 +48,7 @@ public:
private:
int32_t OnGetOAID(MessageParcel& data, MessageParcel& reply);
int32_t OnResetOAID(MessageParcel& data, MessageParcel& reply);
int32_t sendCode(uint32_t code,MessageParcel& data, MessageParcel& reply);
int32_t sendCode( uint32_t code, MessageParcel& data, MessageParcel& reply);
int32_t HandleRegisterControlConfigObserver(MessageParcel& data, MessageParcel& reply);
bool CheckPermission(const std::string &permissionName);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Copyright (c) 2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at