From 23affec35998cf053a3b78fea9b8423d5ee6985a Mon Sep 17 00:00:00 2001 From: wangdantong Date: Tue, 23 May 2023 08:03:24 +0000 Subject: [PATCH] modify code Signed-off-by: wangdantong Change-Id: I381e702c1ee95aa7d188f579857ae88760ab2b8b --- etc/init/inputmethodservice.cfg | 2 +- etc/init/inputmethodservice.rc | 2 +- profile/3703.json | 12 ++++++++++++ profile/3703.xml | 24 ------------------------ profile/BUILD.gn | 2 +- 5 files changed, 15 insertions(+), 27 deletions(-) create mode 100644 profile/3703.json delete mode 100644 profile/3703.xml diff --git a/etc/init/inputmethodservice.cfg b/etc/init/inputmethodservice.cfg index ffac028c..dcfe96cf 100644 --- a/etc/init/inputmethodservice.cfg +++ b/etc/init/inputmethodservice.cfg @@ -8,7 +8,7 @@ ], "services" : [{ "name" : "inputmethod_service", - "path" : ["/system/bin/sa_main", "/system/profile/inputmethod_service.xml"], + "path" : ["/system/bin/sa_main", "/system/profile/inputmethod_service.json"], "uid" : "inputmethod", "gid" : ["inputmethod", "shell"], "permission" : ["ohos.permission.INPUT_MONITORING", "ohos.permission.MANAGE_USERS permission"], diff --git a/etc/init/inputmethodservice.rc b/etc/init/inputmethodservice.rc index fbfbcc44..e2b991b6 100644 --- a/etc/init/inputmethodservice.rc +++ b/etc/init/inputmethodservice.rc @@ -13,7 +13,7 @@ on boot start inputmethod_service -service inputmethod_service /system/bin/sa_main /system/profile/inputmethod_service.xml +service inputmethod_service /system/bin/sa_main /system/profile/inputmethod_service.json class z_core user system group system shell diff --git a/profile/3703.json b/profile/3703.json new file mode 100644 index 00000000..b18a5458 --- /dev/null +++ b/profile/3703.json @@ -0,0 +1,12 @@ +{ + "process": "inputmethod_service", + "systemability": [ + { + "name": 3703, + "libpath": "libinputmethod_service.z.so", + "run-on-create": true, + "distributed": false, + "dump_level": 1 + } + ] +} \ No newline at end of file diff --git a/profile/3703.xml b/profile/3703.xml deleted file mode 100644 index d7736f4d..00000000 --- a/profile/3703.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - inputmethod_service - - 3703 - libinputmethod_service.z.so - true - false - 1 - - \ No newline at end of file diff --git a/profile/BUILD.gn b/profile/BUILD.gn index d9dec3a4..30276175 100644 --- a/profile/BUILD.gn +++ b/profile/BUILD.gn @@ -14,6 +14,6 @@ import("//build/ohos/sa_profile/sa_profile.gni") ohos_sa_profile("inputmethod_inputmethod_sa_profiles") { - sources = [ "3703.xml" ] + sources = [ "3703.json" ] part_name = "imf" }