Oculus Go と Android アプリ

oka
oka
Sep 4, 2018 · 3 min read

結論から言うと Oculus Go で Android アプリを使うのは難しいっぽい。

素直に adb でインストールするには以下のようにやる。

リンク先に書いてあるように、インストールしても Oculus Go 内からは起動できず、adb 経由で起動するしかない。起動しても、まともには表示されない。

adbで起動するには、リンク先からさらにリンクされている以下のページを参考にする。

自分の環境でやってみたところ、

adb -s デバイスID shell pm list package

するとパッケージ一覧が表示され、

package:com.Oka.VirtualSuperK

と自作のアプリが見つかった。さらに

adb -s デバイスID shell pm dump com.Oka.VirtualSuperK

とすると、出力の最初の方に

com.Oka.VirtualSuperK/com.google.unity.GoogleUnityActivity

とあったので、

adb -s 1KWPH812LY8187 shell am start -n com.Oka.VirtualSuperK/com.google.unity.GoogleUnityActivity

としたら一応は起動したが、頭を動かしても向きが変わらない。慣性センサーのAPIが違う?

一応起動できて Vysor でキャプチャしたところ。

というわけで、 Unity とかでちゃんと Oculus 向けにビルドしないといけないっぽい。ちなみにこのアプリのソースコードは以下。


なお、ステレオじゃない普通のアプリは、Oculus TV を入れると使えるっぽい。上記の自作アプリは起動しても何も表示されなかった。

Oculus TV で AndFTP を動かしている例は以下。

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade