From 98c6577c4f7dcb86be4f2d9b08d96c05ce98d8ae Mon Sep 17 00:00:00 2001 From: yichengzhao Date: Wed, 26 Jan 2022 11:51:06 +0800 Subject: [PATCH] add accessibility process Signed-off-by: yichengzhao --- bundle.json | 3 ++- sa_profile/801.xml | 2 +- sa_profile/BUILD.gn | 8 ++++++++ sa_profile/accessibility.cfg | 16 ++++++++++++++++ 4 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 sa_profile/accessibility.cfg diff --git a/bundle.json b/bundle.json index fa53545f..0a59d365 100644 --- a/bundle.json +++ b/bundle.json @@ -33,7 +33,8 @@ "//base/accessibility/interfaces/innerkits/asacfwk:accessibilityclient", "//base/accessibility/interfaces/kits/napi:accessibility", "//base/accessibility/sa_profile:aams_sa_profile", - "//base/accessibility/interfaces/kits/napi:tts" + "//base/accessibility/interfaces/kits/napi:tts", + "//base/accessibility/sa_profile:accessibility_cfg" ], "inner_kits": [ { diff --git a/sa_profile/801.xml b/sa_profile/801.xml index 43a4e49a..a978b6a7 100644 --- a/sa_profile/801.xml +++ b/sa_profile/801.xml @@ -14,7 +14,7 @@ * limitations under the License. --> - foundation + accessibility 801 /system/lib/libaccessibleabilityms.z.so diff --git a/sa_profile/BUILD.gn b/sa_profile/BUILD.gn index 131939b1..31a37c8a 100644 --- a/sa_profile/BUILD.gn +++ b/sa_profile/BUILD.gn @@ -11,6 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +import("//build/ohos.gni") import("//build/ohos/sa_profile/sa_profile.gni") ohos_sa_profile("aams_sa_profile") { @@ -18,3 +19,10 @@ ohos_sa_profile("aams_sa_profile") { part_name = "accessibility" } + +ohos_prebuilt_etc("accessibility_cfg") { + source = "accessibility.cfg" + relative_install_dir = "init" + subsystem_name = "barrierfree" + part_name = "accessibility" +} diff --git a/sa_profile/accessibility.cfg b/sa_profile/accessibility.cfg new file mode 100644 index 00000000..603c4c8c --- /dev/null +++ b/sa_profile/accessibility.cfg @@ -0,0 +1,16 @@ +{ + "jobs" : [{ + "name" : "post-fs-data", + "cmds" : [ + "start accessibility" + ] + } + ], + "services" : [{ + "name" : "accessibility", + "path" : ["/system/bin/sa_main", "/system/profile/accessibility.xml"], + "uid" : "system", + "gid" : ["system", "shell", "root"] + } + ] +} \ No newline at end of file