mirror of
https://gitee.com/openharmony/advertising_oaid
synced 2025-02-07 16:36:09 +00:00
oaid重置上报HA!
Signed-off-by: lipan <lipan111@huawei.com>
This commit is contained in:
parent
24552105ba
commit
0a1c678ca5
@ -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) {
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user