diff --git a/sa_profile/200.xml b/sa_profile/200.xml deleted file mode 100644 index fa6f42553..000000000 --- a/sa_profile/200.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - accountmgr - - 200 - libaccountmgr.z.so - true - false - 1 - - diff --git a/sa_profile/BUILD.gn b/sa_profile/BUILD.gn index cdc76b179..43b5ec38e 100644 --- a/sa_profile/BUILD.gn +++ b/sa_profile/BUILD.gn @@ -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" } diff --git a/sa_profile/accountmgr.json b/sa_profile/accountmgr.json new file mode 100644 index 000000000..58285918e --- /dev/null +++ b/sa_profile/accountmgr.json @@ -0,0 +1,12 @@ +{ + "process": "accountmgr", + "systemability": [ + { + "name": 200, + "libpath": "libaccountmgr.z.so", + "run-on-create": true, + "distributed": false, + "dump_level": 1 + } + ] +} \ No newline at end of file diff --git a/services/accountmgr/accountmgr.cfg b/services/accountmgr/accountmgr.cfg index 647e8cd56..aac6354c6 100644 --- a/services/accountmgr/accountmgr.cfg +++ b/services/accountmgr/accountmgr.cfg @@ -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", diff --git a/services/accountmgr/accountmgr.rc b/services/accountmgr/accountmgr.rc index 19dbf1c15..c9e2e5fe5 100644 --- a/services/accountmgr/accountmgr.rc +++ b/services/accountmgr/accountmgr.rc @@ -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