2. Android Debug Bridge (ADB) for ThirdEye’s OS
2.1 Android Debug Bridge (ADB) is a useful tool to communicate between Android devices and Windows/Mac computers. ADB is a command-line utility included with Google’s Android SDK. ADB can control your device over USB from a computer, copy files back and forth, install and uninstall apps, run shell commands, and more. ADB can be used to identify apps or services that may be consuming too much battery power and other use cases.
2.2 Make sure to first set up the Android SDK if you have not already. Head to the Android SDK download page at https://developer.android.com/studio/index.html and scroll down to “SDK Tools Only”, which is a set of tools that includes ADB. Download the ZIP file for your platform and unzip it wherever you want to store the ADB files — they’re portable, so you can put them anywhere you want.
Start the SDK Manager EXE and deselect everything except “Android SDK Platform-tools”. Click the Install button. This downloads and installs the platform-tools package, which contains ADB and other utilities.
2.3 For more info on USB debugging in Android Studio check out https://developer.android.com/studio/run/device.html#setting-up
2.4 Enable USB Debugging on Smart glass
To enable USB Debugging on Android 5.0+ is the same as Android 4.2.x.
Settings > About Phone > Build number > Tap it 7 times to become developer; click on “enable USB debugging”
Settings > Developer Options > USB Debugging.
3.5 Setting up ADB on Windows
- Turn on X1
- Connect the X1 to your computer via USB.
- Navigate to ThirdEyeGen/Developers directory and copy the windows_adb folder to the folder on the computer where you want the drivers to be installed (choose folder for where to install).
- Open the Device Manager and locate the X1 smartglass. Right click on it and select Update Driver Software
- Choose “Browse my computer” for driver software.
- Browse to the path usb_driver folder located in the windows_adb folder.
- Ensure “Include subfolders” is checked.
- Press Next.
- If Windows warns of an unverified publisher, choose “Install this driver software anyway”.
- Open up command and navigate to the usb-driver folder.
- Run the command adb.exe X1 to test if ADB recognizes the device.
- ADB should detect the X1 and display its serial number.
3.6 Setting up ADB on Mac
- Turn on X1.
- Download and Install Android File Transfer per step 1.4.
- Connect X1 and open Android File Transfer.
- Browse to ThirdEyeGen/Developers and copy the mac_adb folder to the desired location on computer.
- Launch terminal and navigate to the mac_adb directory.
- Run the following command adb devices.
- ADB should detect the X1 and display its serial number