# Installing a Custom App

## Installing SDK Platform-Tools

Ensure you have latest [platform-tools](https://developer.android.com/studio/releases/platform-tools) installed on your computer system.

If you do not have the SDK "platform-tools" installed on your computer, download it from this link and keep track where the the "platform-tools" folder is located:

{% embed url="<https://developer.android.com/studio/releases/platform-tools>" %}

## Connect the HereLink Blue to a computer

Enable "Developer Mode" on the DataLink by navigating to `Settings`->`About Phone`->`Build Number` and tap at least 7 times on "Build Number."

![](https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2FNe0mNAiiLUuMBagsPqow%2FScreen%20Shot%202021-02-14%20at%201.07.56%20PM.png?alt=media\&token=b61fb208-10db-4ce1-9517-711f052b8f2c)

![](https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2FYf6H83TuSJT9eTRfPyOE%2FScreen%20Shot%202021-02-14%20at%201.09.10%20PM.png?alt=media\&token=34abdb39-6848-43d6-874d-f153ac3ea9d5)

![](https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2F7dwgVLn44ZDMxXmKJj37%2FScreen%20Shot%202021-02-14%20at%201.10.10%20PM.png?alt=media\&token=c3088fbf-ae4d-4e1d-a94c-fee70cbba9b5)

Enable `Settings`->`Developer options`->`USB debugging`

![](https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2FcbJkdwxo5ohumppeCeHj%2FScreen%20Shot%202021-02-14%20at%201.11.47%20PM.png?alt=media\&token=3046863a-0e75-40ad-9bd0-ba5341808591)

![](https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2FGRc2HWjc3u6G8gWdqsw7%2FScreen%20Shot%202021-02-14%20at%201.13.17%20PM.png?alt=media\&token=b4008617-1d10-4709-9196-cb79cc781ccb)

Using a USB to Micro USB cable, plug the HereLink Blue into a computer and open the computer's terminal command line

![](https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2F7FAcRmXDO33h6N9R7oKK%2Fherelink-computer.jpeg?alt=media\&token=605018e6-5ad4-4cc1-a06a-e6b5963a29fb)

## Open the Terminal <a href="#open-the-terminal" id="open-the-terminal"></a>

For Windows, navigate to the "platform-tools" folder. In this folder, hold **down Shift and then right-click**. From the menu select the “**Open Command window here**” option. If the option to open the command window is not available, then click on the "open PowerShell window here".<br>

![](https://docs.union-robotics.com/~/files/v0/b/gitbook-28427.appspot.com/o/assets%2F-MTS1Xx6Kx3fwJFjqpWk%2F-MUUbr0dnuRHkGpp73qV%2F-MUUkDY9A-6Upvid92Q7%2FClick-on-the-%E2%80%9COpen-PowerShell-window-here%E2%80%9D-1024x731-1.png?alt=media\&token=28273723-a0ed-48ce-9f01-9c486bfe446d)

For Mac, navigate to the "platform-tools" folder. **Right Click** the folder and select  `Services`->`New Terminal at Folder`

![](https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2FCyTDpBprpJbW5bflHcpA%2FScreen%20Shot%202021-02-26%20at%2011.14.36%20AM.png?alt=media\&token=c5e664eb-2a71-45b8-9d14-eb4492fd1cb2)

## Check if the unit is connected

Using the computer's terminal, check it the device is connected via the adb command protocol:

Mac:

```
adb devices

```

![](https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2FQP33BaXkoksdDvm6qHtk%2FScreen%20Shot%202021-02-26%20at%2011.42.10%20AM.png?alt=media\&token=1113d9db-6804-47b8-af75-8c4cefa211d4)

Windows:

```
.\adb devices

```

![](https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2FYe9iefISZdg6FusHCGZX%2FIn-the-command-windowPowerShell-window-type-the-following-code.png?alt=media\&token=c70b8c22-6b52-44dc-97ca-b0869b6f3738)

## Installing .apk using adb

Move the .apk file to the SDK "platform-tools" folder on your computer

![](https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2FTmvgLrVk34cNaGcGdb6g%2FScreen%20Shot%202021-02-26%20at%2011.19.47%20AM.jpg?alt=media\&token=526fed05-3c23-4600-880b-6b0433188859)

##

Install the .apk using `adb install <app_name>.apk` in your computers terminal

Mac:

```
adb install <app_name>.apk

```

![Mac adb install](https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2FrKv1yMS5M46qd7qVxtnS%2FScreen%20Shot%202021-02-26%20at%2011.17.43%20AM.png?alt=media\&token=6c1f092a-1dda-44c4-bef1-b84232023b38)

Windows:

```
.\adb install <app_name>.apk

```

![Windows .\adb install](https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2FUdnL9YGpeNdiMGMeKlZo%2FCapture.png?alt=media\&token=2e3b87db-9442-4da9-830c-1f84a33e650a)

The new app should now appear in the app launcher's list.

![](https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2Fqht5LiMq7jtBfSTdLD0z%2F110.png?alt=media\&token=b9a3a1af-2df7-471e-a97e-21304dc45f24)

![](https://3175993181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LUhw7cdLeWVORgnTA3i%2Fuploads%2FPUefB7qGF9I3hsSChlln%2F111.png?alt=media\&token=cdbe24b2-7b91-46c0-a783-27d345dd7e3d)

## Uninstall an app using adb

To remove the app use `adb remove org.myorg.appname`

```
$ adb remove org.myorg.appname
Success
```
