[英]How to switch off explore by touch for some accessibility service
How i can switch off explore by touch for some accessibility service,for example for google talkback,if i know package of this service.如果我知道此服务的 package,我如何关闭某些可访问性服务的触摸探索,例如谷歌对讲。 I try to change preferences of this service,because i know,that in talkback use PreferenceFragment key,which developers of talkback use for it,but it seems,that it creates new preferences xml file.
我尝试更改此服务的首选项,因为我知道,在对讲中使用 PreferenceFragment 键,对讲的开发人员使用它,但它似乎创建了新的首选项 xml 文件。 I tryed to use:
Context c=createPackageContext("com.google.android.marvin.talkback", Context.MODE_PRIVATE); SharedPreferences p =PreferenceManager.getDefaultSharedPreferences(c);\ p.edit().putBoolean("pref_explore_by_touch", false).commit();
我尝试使用:
Context c=createPackageContext("com.google.android.marvin.talkback", Context.MODE_PRIVATE); SharedPreferences p =PreferenceManager.getDefaultSharedPreferences(c);\ p.edit().putBoolean("pref_explore_by_touch", false).commit();
Context c=createPackageContext("com.google.android.marvin.talkback", Context.MODE_PRIVATE); SharedPreferences p =PreferenceManager.getDefaultSharedPreferences(c);\ p.edit().putBoolean("pref_explore_by_touch", false).commit();
But it not works.但它不起作用。 Also i tryed get access to /data/data/com.google.android.marvin.talkback/,but list of files in this directory is null,and file can't read.
我也尝试访问/data/data/com.google.android.marvin.talkback/,但此目录中的文件列表是null,文件无法读取。 I grant write/read_external_storage permissions.
我授予 write/read_external_storage 权限。 My phone is not rooted.
我的手机没有root。 How to modify accessibilityServiceInfo of some service or change it preferences programatically.
如何修改某些服务的accessibilityServiceInfo 或以编程方式更改它的首选项。 At least how to do this for talkback Thanks everybody very much for any help.
至少如何为对讲执行此操作非常感谢大家的帮助。
If any service requests explore by touch, the framework turns it on.如果任何服务请求通过触摸进行探索,框架就会将其打开。 It's not possible to forcibly turn it off from another process.
无法从另一个进程强行将其关闭。
Apps also cannot change one another's preferences.应用程序也无法更改彼此的偏好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.