Darbots-DriverStation-Utilities Starter Guide
1.0 Get Started
1.1 Enable USB Debugging on your DS Phone
To enable the computer to install APK files on the phone, you need to activate the USB Debugging on your DS Phone. We highly recommend that you enable the USB Debugging functionality on the RC Phone as well since a lot of times Android Studio Programmers need that functionality for them to write their programs into the RC phone.
To turn on USB Debugging, first you need to activate Developer Options on your phone. Here are the steps to do so.
- Open up
Settings
App - Find a tab called
About This Phone
orThis Device
- Click 7 times on the System Version Information Tab. As you are clicking, a bulletin should show something like
You are X clicks away from being a developer
- Now go to the home page of your settings app, there should be an added tab called
Developer Options
Now since we have activated Developer Options on our phone, we can enable USB Debugging.
- Go to the
Developer Options
tab on yourSettings
APP. - Find the switch that says
USB Debugging
on the left side, turn the switch on and we are done!
1.2 Install Android Toolchains on Your Computer
1.2.1 Install Platform Tools
If you have your Android Studio Installed, skip this step, and go to step 1.2.2.
Download Android Platform Tools, Unzip them to a folder.
1.2.2 Make ADB command accessible everywhere
Windows
You need to add your platform-tools folder Path into Your PATH Variable.
- open up
Windows Explorer
, right click onThis Computer
, selectProperties
. - On the very left of the new page that just showed, click
Advanced System Settings
- On the new panel, click
Environment Variables
- On the new panel, go to
System Variables
and findPath
in the list below. - Select
Path
and click onEdit
- Here you are going to add a new item that has the URL of your folder
platform-tools
, for example, mine isD:\APP\Android\SDK\platform-tools\
. - Save everything and you are good to go.
Linux / Mac
You need to create a Soft Link / Symbolic Link for your ADB executive file.
- Start a shell at your user folder. You can start by either opening up the terminal and type
cd ~\
or right click at the folder and selectstart shell here
. - Find the
platform-tools
folder, if you are using Android Studio, click onTools
->SDK Manager
, theplatform-tools
folder will be in yourAndroid SDK Location
. - execute
sudo ln -s PATH_TO_PLATFORM_TOOLS_FOLDER/platform-tools/adb /usr/bin/adb
, it might prompt you to enter your password or so, just do it. - If the console said “permission denied”, execute
sudo ln -s PATH_TO_PLATFORM_TOOLS_FOLDER/platform-tools/adb /usr/local/bin/adb
instead. - You are good to go!
1.3 Executing the Script!
Connect your DS phone to the computer via a USB cable. If it prompts permission request on your phone, click Yes
then…
- If you have
Windows
, just double click on theUtilities\install_newest_ds_windows.bat
file. - If you have
Mac
/Linux
, start shell in theUtilities Folder
and runsh install_newest_ds_mac.sh