mirror of
https://gitee.com/openharmony/account_os_account
synced 2024-11-23 02:00:01 +00:00
modify code
Signed-off-by: huangxiaolinabc123 <huangxiaolin12@huawei.com> Change-Id: I86dcab9b37c584b57fc483ee67faba99a0ff82d4
This commit is contained in:
parent
d1031c45b5
commit
31cdacf81e
@ -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>
|
@ -14,6 +14,6 @@
|
||||
import("//build/ohos/sa_profile/sa_profile.gni")
|
||||
|
||||
ohos_sa_profile("account_sa_profile") {
|
||||
sources = [ "200.xml" ]
|
||||
sources = [ "accountmgr.json" ]
|
||||
part_name = "os_account"
|
||||
}
|
||||
|
12
sa_profile/accountmgr.json
Normal file
12
sa_profile/accountmgr.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"process": "accountmgr",
|
||||
"systemability": [
|
||||
{
|
||||
"name": 200,
|
||||
"libpath": "libaccountmgr.z.so",
|
||||
"run-on-create": true,
|
||||
"distributed": false,
|
||||
"dump_level": 1
|
||||
}
|
||||
]
|
||||
}
|
@ -15,7 +15,7 @@
|
||||
],
|
||||
"services" : [{
|
||||
"name" : "accountmgr",
|
||||
"path" : ["/system/bin/sa_main", "/system/profile/accountmgr.xml"],
|
||||
"path" : ["/system/bin/sa_main", "/system/profile/accountmgr.json"],
|
||||
"permission" : [
|
||||
"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
|
||||
"ohos.permission.ENFORCE_USER_IDM",
|
||||
|
@ -14,7 +14,7 @@
|
||||
on post-fs-data
|
||||
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
|
||||
user system
|
||||
group system shell
|
||||
|
Loading…
Reference in New Issue
Block a user