今天坐动车的时候,无意间看到一个 安卓 手机上的类 linux 的启动器,各种炫吧,然后看了介绍,有广告,就这样拾起了很久没用的 T-UI,看到了以前设置的快捷键有个 google assistant 。

怎么折腾就是启动不起来,因为现在是一个 google 应用,包含了 助理 的功能,google 包名是 com.google.android.googlequicksearchbox, 直接包名只能启动 google 搜索,试了一下类名 com.google.android.apps.gsa.assistant.handoff.AssistantHandoffActivity,当然是失败了。

google 了一下,这里给出了答案: How to launch Google assistant

#Try one of this actions:

#Execute Root command > Command
am start -n "com.google.android.googlequicksearchbox/com.google.android.apps.gsa.staticplugins.opa.OpaActivity"

#or:
#Execute Root command > Command
input keyevent 219

#or:
#Start Activity > Action
android.intent.action.VOICE_COMMAND

关键的是要 ROOT ,然尔我的手机并没有,如果运行会提示没有用户权限 android.permission.INTERACT_ACROSS_USERS_FULL

这边有说明 Bug+: 拒绝权限:这需要android.permission.INTERACT_ACROSS_USERS_FULL ,文中说最佳答案 android.permission.INTERACT_ACROSS_USERS_FULL is a signature level permission .

您的应用程序将无法使用它,除非它具有与系统相同的签名.

除非您是创建者或系统构建者,或者与他们合作以使他们愿意用其证书签署apk,否则您将无法实现.换句话说,对于大多数开发人员来说这是不可行的.

所以我放弃了,安装了单独的 Google Assistant 应用.

毕竟还要折腾其它的。

Like this post? Share on:


doobom Avatar doobom is write a bug.
Comments

So what do you think? Did I miss something? Is any part unclear? Leave your comments below.

comments powered by Disqus

Keep Reading


Published

Category

Shell

Tags

Stay in Touch

Get New Release Alert