mirror of
https://gitee.com/openharmony/useriam_user_auth_framework
synced 2025-02-16 22:57:59 +00:00
Add framework ready param dac permission
Signed-off-by: wangxu43 <wangxu43@huawei.com> Change-Id: Ic7744974eb0f6a0f8b88dd5f599b2df43a7b8c9d
This commit is contained in:
parent
1416cf060e
commit
0fe7cf0abc
@ -51,7 +51,8 @@
|
||||
"//base/useriam/user_auth_framework/sa_profile:useriam.init",
|
||||
"//base/useriam/user_auth_framework/services:userauthservice",
|
||||
"//base/useriam/user_auth_framework/common/executors:userauth_executors",
|
||||
"//base/useriam/user_auth_framework/sa_profile:userauth_sa_profile"
|
||||
"//base/useriam/user_auth_framework/sa_profile:userauth_sa_profile",
|
||||
"//base/useriam/user_auth_framework/param:param_files"
|
||||
]
|
||||
},
|
||||
"inner_kits": [
|
||||
|
38
param/BUILD.gn
Normal file
38
param/BUILD.gn
Normal file
@ -0,0 +1,38 @@
|
||||
# Copyright (c) 2022 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
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/ohos.gni")
|
||||
|
||||
## Install useriam.para to /system/etc/param/useriam.para
|
||||
## Install useriam.para.dac to /system/etc/param/useriam.para.dac
|
||||
|
||||
group("param_files") {
|
||||
deps = [
|
||||
":useriam.para",
|
||||
":useriam.para.dac",
|
||||
]
|
||||
}
|
||||
|
||||
ohos_prebuilt_etc("useriam.para") {
|
||||
source = "useriam.para"
|
||||
relative_install_dir = "param"
|
||||
part_name = "user_auth_framework"
|
||||
subsystem_name = "useriam"
|
||||
}
|
||||
|
||||
ohos_prebuilt_etc("useriam.para.dac") {
|
||||
source = "useriam.para.dac"
|
||||
relative_install_dir = "param"
|
||||
part_name = "user_auth_framework"
|
||||
subsystem_name = "useriam"
|
||||
}
|
14
param/useriam.para
Normal file
14
param/useriam.para
Normal file
@ -0,0 +1,14 @@
|
||||
# Copyright (c) 2022 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
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
bootevent.useriam.fwkready=false
|
14
param/useriam.para.dac
Normal file
14
param/useriam.para.dac
Normal file
@ -0,0 +1,14 @@
|
||||
# Copyright (c) 2022 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
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
bootevent.useriam.fwkready="useriam:useriam:755"
|
@ -119,6 +119,7 @@ void CoAuthService::Init()
|
||||
UserIam::UserAuth::ReportSystemFault(Common::GetNowTimeString(), "user_auth_hdi host");
|
||||
}));
|
||||
IAM_LOGI("set fwk ready parameter");
|
||||
SetParameter("bootevent.useriam.fwkready", "false");
|
||||
SetParameter("bootevent.useriam.fwkready", "true");
|
||||
} else {
|
||||
RelativeTimer::GetInstance().Register(Init, DEFER_TIME);
|
||||
|
Loading…
x
Reference in New Issue
Block a user