From 351d3635334aab600c879525ee3bf8e6c9e37311 Mon Sep 17 00:00:00 2001 From: huangxiaolinabc123 Date: Sat, 20 May 2023 07:32:46 +0000 Subject: [PATCH] modify code Signed-off-by: huangxiaolinabc123 Change-Id: I0d0b65c0c5ba2016db42338da949745788b60171 --- services/5203.json | 12 ++++++++++++ services/5203.xml | 30 ------------------------------ services/BUILD.gn | 2 +- services/backup.cfg | 2 +- 4 files changed, 14 insertions(+), 32 deletions(-) create mode 100644 services/5203.json delete mode 100644 services/5203.xml diff --git a/services/5203.json b/services/5203.json new file mode 100644 index 000000000..f2cea23b5 --- /dev/null +++ b/services/5203.json @@ -0,0 +1,12 @@ +{ + "process": "backup_sa", + "systemability": [ + { + "name": 5203, + "libpath": "libbackup_sa.z.so", + "run-on-create": false, + "distributed": false, + "dump_level": 1 + } + ] +} \ No newline at end of file diff --git a/services/5203.xml b/services/5203.xml deleted file mode 100644 index 9e204f7bb..000000000 --- a/services/5203.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - backup_sa - - libbackup_sa.z.so - - - 5203 - libbackup_sa.z.so - - - false - false - 1 - - diff --git a/services/BUILD.gn b/services/BUILD.gn index f1c6028b5..755d2cb58 100644 --- a/services/BUILD.gn +++ b/services/BUILD.gn @@ -19,7 +19,7 @@ group("backup_para_etc") { } ohos_sa_profile("backup_sa_profile") { - sources = [ "5203.xml" ] + sources = [ "5203.json" ] part_name = "app_file_service" } diff --git a/services/backup.cfg b/services/backup.cfg index 40c460399..aa8e15a8b 100644 --- a/services/backup.cfg +++ b/services/backup.cfg @@ -1,7 +1,7 @@ { "services" : [{ "name" : "backup_sa", - "path" : ["/system/bin/sa_main", "/system/profile/backup_sa.xml"], + "path" : ["/system/bin/sa_main", "/system/profile/backup_sa.json"], "ondemand" : true, "uid" : "backup", "gid" : ["backup"], -- Gitee