# Learn ADB Commands

### Basic ADB Command Guide for POS Terminals

1. Listing Connected Devices:
   * Command: 'adb devices'
   * Function: Displays a list of all devices currently attached.
2. Installing an APK:
   * Command: 'adb install path\_to\_apk'
   * Function: Installs the specified APK file onto the connected POS terminal.
3. Copying Files from the POS Terminal to PC:
   * Command: 'adb pull remote local'
   * 'remote': The path to the target file or directory on the POS terminal.
   * 'local': The path to the target file or directory on the PC.
   * Example: 'adb pull sdcard/wpmonitor/logcat/ ./'
     * This copies files from sdcard/wpmonitor/logcat/ on the POS terminal to the current folder on the PC.
4. Copying Files from PC to the POS Terminal:
   * Command: 'adb push local remote'
   * 'local': The path to the target file or directory on the PC.
   * 'remote': The path to the target file or directory on the POS terminal.
   * Function: This command allows you to transfer files or directories (and their sub-directories) from your PC to the POS terminal.
   *


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/learn-adb-commands.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
