# avdmanager

Находится по пути $ANDROID\_SDK/tools/bin

```
Фулл док: https://developer.android.com/studio/command-line/avdmanager

Общий синтаксис:
avdmanager [global options] command [command options]

Global options
-s 	Silent mode: only errors are printed out
-h 	Usage help
-v 	Verbose mode: errors, warnings and informational messages are printed. 

Commands & Command options
1. Create AVD
create avd -n name -k "sdk_id" [-c {path|size}] [-f] [-p path]
    -n - name 
    
    -c {path|size}: The path to the SD card image for this AVD or the size of a new SD card image to create for this AVD, in KB or MB, denoted with K or M. For example, -c path/to/sdcard/ or -c 1000M.
    -f: Force creation of the AVD. Use this option if you need to overwrite an existing AVD with a new AVD using the same name.
    -p path: Path to the location where the directory for this AVD's files will be created. If you do not specify a path, the AVD will be created in ~/.android/avd/.

ex: avdmanager create avd -n test -k "system-images;android-25;google_apis;x86"
Из опыта: не использовать другие ключи: там какие-то проблемы с путями будут
По дефолту, создаться образ в ~/.android/avd/<name>.avd/*

2. Delete AVD
delete avd -n name

3. Move Or/And Rename
move avd -n name [-p path] [-r new-name]
-p - куда перенести
-r - новое имя

4. List AVD, Device Definitions, targets
list [target|device|avd] [-c]
-c - для компактного вывода (не работает, если выводить все три категории)
```


---

# 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://appsecurity.gitbook.io/offensive/administration/instrumenty/android/avdmanager.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.
