是否可以从应用程序复制/粘贴/键入(例如密码)到Oculus Quest耳机中? [英] Is it possible to copy/paste/type (eg. a password) from an app into the Oculus Quest headset?

查看:1469
本文介绍了是否可以从应用程序复制/粘贴/键入(例如密码)到Oculus Quest耳机中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,似乎没有一种简单的方法可以在Oculus Quest中复制/粘贴文本,也没有键入到配套应用中并将其发送到头戴式耳机中(至少我已经看到)。



我读过一些文章说可能将蓝牙键盘与耳机配对,会稍微好一些,但仍然不允许我从密码管理器复制/粘贴。



有人知道实现此目的的方法吗?

解决方案

使用Google谷歌搜索/ SO后,使用 Android调试桥( adb (Oculus有自己的帮助页面



您的设备需要处于开发人员模式即可:


  1. 创建 /加入 Oculus控制板中的组织

  2. 打开手机上的Oculus应用。

  3. 在设置菜单中,选择要用于开发的Oculus Quest耳机。

  4. 选择更多设置。

  5. 打开开发人员模式。

如果您使用的是自制软件在macOS上,您可以使用以下命令安装 adb

 啤酒桶安装android-platform-tools 

接下来,使用USB-C电缆将耳机插入计算机。然后,您应该能够列出已连接的设备:

  adb设备

如果显示未经授权,请在耳机中签入对话框,询问是否允许连接。勾选始终允许将使以后的操作变得更容易。



在这一点上,我们应该很好地向设备发送文本。在头戴式耳机中,聚焦要输入的字段,然后使用 adb shell输入'键入'您的文本

  adb shell输入文本 sometext 

似乎也有可能使用发送粘贴命令 > adb shell输入keyevent

  adb shell输入keyevent 279 

在较旧的Android设备中,您可以以类似的方式发送 copy命令,但是此后不推荐使用:

 服务呼叫剪贴板2 i32 1 i32 0 s16文本 

似乎在较新的设备上,您需要利用外部服务(例如 Clipper )以复制到剪贴板。使用Clipper,您可以在 adb shell 中发送命令,例如:

 广播-a clipper.set -e文本 text 

我们可以使用这些方法发送许多不同的输入。您可以在 Android开发人员文档中找到KeyEvent的完整列表。 p>

使用这些方法中的一种(或多种),可能应该将存储在计算机密码管理器中的密码复制 /粘贴 /键入 'Oculus Quest耳机。


Currently there doesn't seem to be an easy way to copy/paste text in the Oculus Quest, nor to 'type' into a companion app and have it sent into the headset (at least that I have seen). This makes it extremely challenging to enter complex passwords from password managers, etc.

I have read some articles that say it might be possible to pair a bluetooth keyboard with the headset, which would be slightly better, but still doesn't allow me to copy/paste from my password manager.

Does anyone know of a way to achieve this?

解决方案

After some Googling/SO'ing, it seems like this might be possible using the Android Debug Bridge (adb) (Oculus has their own help page for it as well)

Your device needs to be in developer mode for this to work:

  1. Create/join an organisation in the Oculus Dashboard
  2. Open the Oculus app on your mobile phone.
  3. In the Settings menu, select the Oculus Quest headset that you’re using for development.
  4. Select More Settings.
  5. Toggle Developer Mode on.

If you're using homebrew on macOS, you can install adb with:

brew cask install android-platform-tools

Next, plug your headset into your computer with the USB-C cable. You then should be able to list connected devices:

adb devices

If it says 'unauthorized', check in the headset for a dialog box asking for permission to connect. Ticking 'always allow' will make this easier in future.

At this point, we should be good to send text to the device. In the headset, focus a field that you want to 'type' into, then use adb shell input to 'type' your text:

adb shell input text "sometext"

It seems it is also possible to send a 'paste' command using adb shell input keyevent:

adb shell input keyevent 279

In older Android devices, you could send a 'copy' command in a similar way, but this has since been deprecated:

service call clipboard 2 i32 1 i32 0 s16 "text"

It seems that on newer devices, you need to leverage an external service (eg. Clipper) to 'copy to clipboard'. Using Clipper, you can send a command in adb shell such as:

am broadcast -a clipper.set -e text "text"

There are many different inputs we can send using these methods. You can find a full list of KeyEvent's in the Android Developer Documentation.

Using one (or more) of these methods, it should be possibly to 'copy'/'paste'/'type' passwords stored in a password manager on your computer 'into' the Oculus Quest headset.

这篇关于是否可以从应用程序复制/粘贴/键入(例如密码)到Oculus Quest耳机中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆