modify code

Signed-off-by: huangxiaolinabc123 <huangxiaolin12@huawei.com>
Change-Id: I86dcab9b37c584b57fc483ee67faba99a0ff82d4
This commit is contained in:
huangxiaolinabc123 2023-05-20 06:47:16 +00:00
parent d1031c45b5
commit 31cdacf81e
5 changed files with 15 additions and 27 deletions

View File

@ -1,24 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2021-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.
-->
<info>
<process>accountmgr</process>
<systemability> <!-- Declare a system ability and its profile -->
<name>200</name> <!-- Declare the name of system ability -->
<libpath>libaccountmgr.z.so</libpath>
<run-on-create>true</run-on-create>
<distributed>false</distributed>
<dump-level>1</dump-level> <!-- Declare the dump level. 1-high; 2-media; 3-low -->
</systemability>
</info>

View File

@ -14,6 +14,6 @@
import("//build/ohos/sa_profile/sa_profile.gni") import("//build/ohos/sa_profile/sa_profile.gni")
ohos_sa_profile("account_sa_profile") { ohos_sa_profile("account_sa_profile") {
sources = [ "200.xml" ] sources = [ "accountmgr.json" ]
part_name = "os_account" part_name = "os_account"
} }

View File

@ -0,0 +1,12 @@
{
"process": "accountmgr",
"systemability": [
{
"name": 200,
"libpath": "libaccountmgr.z.so",
"run-on-create": true,
"distributed": false,
"dump_level": 1
}
]
}

View File

@ -15,7 +15,7 @@
], ],
"services" : [{ "services" : [{
"name" : "accountmgr", "name" : "accountmgr",
"path" : ["/system/bin/sa_main", "/system/profile/accountmgr.xml"], "path" : ["/system/bin/sa_main", "/system/profile/accountmgr.json"],
"permission" : [ "permission" : [
"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED", "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"ohos.permission.ENFORCE_USER_IDM", "ohos.permission.ENFORCE_USER_IDM",

View File

@ -14,7 +14,7 @@
on post-fs-data on post-fs-data
start accountmgr start accountmgr
service accountmgr /system/bin/sa_main /system/profile/accountmgr.xml service accountmgr /system/bin/sa_main /system/profile/accountmgr.json
class z_core class z_core
user system user system
group system shell group system shell