Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
panelIconIdatlassian-info
panelIcon:info:
bgColor#E3FCEF

Please read the Terms of Use for Materials on ZennoLab

Table of contents

Expand
titleClick here to expand the table of contents
Table of Contents

...

Description

Expand
titleHow to add action

Through the context menu Add Action → Android → Utils

Image RemovedImage Added

Or use smart search.

...

Approximately the same as execution of commands in the Terminal Emulator for Android

Warning

This action is not the ADB command! It is worth perceiving as a console or an emulator terminal.

...

In the Windows Search panel, enter cmd.exe(1), Right click on the command line (2) and select Run as administrator (3):

Expand
titleScreenshot
Image RemovedImage Added

Enter the commands

...

Expand
titleExample

"D:\Program Files\Microvirt\MEmu\memuc.exe" -i 0 adb shell

Quotes around the path are mandatory because there are gaps in it.

Image RemovedImage Added

After that, you can only enter commands:

Image RemovedImage Added

To exit, type the command exit

Image RemovedImage Added
  • Second: perform one command at a time without going into the context of the emulator console

    • format - <path_to_the_file_memuc.exe> -i <index_bested_VM> adb shell ”<text_command>” (quotes around the command are required!)

Expand
titleExample

"D:\Program Files\Microvirt\MEmu\memuc.exe" -i 0 adb shell ”ls -la /sdcarcd/Download”

Image RemovedImage Added

The result of execution will be immediately displayed in the window, after which you will still be in the context of the Windows command line.

...

This information can be found in the Multi-Memu window, in the left column.

Expand
titleScreenshot
Image RemovedImage Added

Commands

All sorts of commands a large number and to describe each of them, you need a separate reference. Here I will try to describe the most common of them.

...

BusyBox - a set of unix-utilities of the command line. More details you can read in Wikipedia.

Almost every command has additional arguments that can be as negligible and dramatically influence it work.
For information, it is worth referring to the documentation of the relevant command.

...

Expand
titleExample

mkdir --help

Image RemovedImage Added

Because All this is the basic Linux commands, then on the Internet a huge amount of information, instructions and explanations to work with them.
Just enter a species request in the search string linux <command_name> примерor linux команда <command_name> пример , where <command_name> - the name of the required command.

List of popular commands

Команда

Описание

Пример

clear

Clear console window

clear

exit

Exit from the console of the emulator

exit

cp

Copy files

cp /path/where/copy/file.txt /where/file.txt

ls

Displays the contents of the directory on the specified path

ls /path/to/directory

mv

Moving files and directories

mv /source/path/file.txt /finite/file.txt

rm

Deleting files

rm /path/to/file.txt

rmdir

Removal of an empty directory

rmdir /path/to/directory/

touch

Creating a file

touch /sdcard/Alarms/alarm.txt

mkdir

Creating a directory

mkdir /sdcard/newFolder

pwd

Path of the current directory

pwd

date

Displays the current date and time

date

du

File size

du /путь/к/файлу.txt

service list

List of working services

service list

Specific Android commands - am and pm

...

Info

This subsection is based on the article How Android works, part 3 (rus)

Official documentation of the am command - Call activity manager

Command am- this wrapper over the class ActivityManager.

...

Like pages on one site, activities of one application can be run both from each other and independently of each other (by other applications). If on the web another page is accessed by a URL (link), then in Android activities are run through intents.

Intent — it is a message that tells the system what to "do" (for example, open a given URL, write an email to a given address, call a given phone number, or take a photo).

...

Official documentation for the team pm - Call package manager

This command allows you to install and uninstall applications, interact with packages of installed applications (delete data, enable / disable an application), get a list of installed applications, etc.

Expand
titleExamples
  • Delete application - pm uninstall com.example.MyApp

  • Get a list of all applications - pm list packages (this list can also be obtained using the Installed Applications tool )

    • list of third party applications - pm list packages -3

    • list of system applications - pm list packages -s

...