Search Results for

    Enable Device for Development and Testing

    This section describes how to set up your Play For Dream devices for testing and debugging your apps, and install the output .apk file from the Build Your First App section.

    Enable Android Debug Bridge Debugging

    Android Debug Bridge (ADB) is a command-line tool that helps developers perform various actions, such as installing and debugging apps, running shell commands, and managing files on the devices.

    Note

    For more information about Android Debug Bridge, please refers to Android Debug Bridge of Android Studio.

    ADB should be installed with Android SDK, and located inside the platform-tools subfolder of the Android SDK.

    To use ADB tool in terminal, its path should be configured into the system environment. Once the system environment variable of ADB has been configured correctly, open the terminal on your computer and run adb --version command, the output should look like:

    Android Debug Bridge version 1.0.41
    Version 30.0.5-6877874
    Installed as <adb path>
    

    When your Play For Dream device has been connected to your computer, run adb devices command in the terminal, the ID of the connected device should be shown in the terminal and looks like this:

    List of devices attached
    d13de720        device
    

    Install APK via ADB

    When you build an app in Unity, it creates a .apk file, which is the installation file of Android application. The .apk file can be installed on the devices by using ADB commands. Open the terminal on your computer and run the command adb install -r <apk_Path>, for instance:

    adb install -r .\YVRDemo.apk
    

    Once the application is installed successfully, the following content should be outputted:

    Performing Streamed Install
    Success
    
    In This Article