Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I open the android emulator's terminal window?

In order to enable logging for medailytics plug in, I need to enter this into the emulator's terminal

adb shell

setprop log.tag.MMT DEBUG

Unfortunatly I don't have a clue how to open the terminal and the developer resource didn't seem to mention the subject.

Also I won't be surprised if anyone tells me that there are in fact 150 more steps in this task because the medialytics documentation is really very poor.

like image 659
Jack Avatar asked Feb 06 '11 15:02

Jack


People also ask

How do I open Android Studio in terminal?

To launch Android Studio, open a terminal, navigate to the android-studio/bin/ directory, and execute studio.sh . Select whether you want to import previous Android Studio settings or not, then click OK.

How do I open a Terminal Emulator?

Starting the emulator Use the emulator command to start the emulator, as an alternative to running your project or starting it through the AVD Manager. Here's the basic command-line syntax for starting a virtual device from a terminal prompt: emulator -avd avd_name [ {- option [ value ]} … ]


3 Answers

On Windows, it's called the Command Prompt and can be found in your Start menu.

On OS X, it's called the Terminal and can be found in your Apple menu.

On Linux, it's called the Terminal...and if you're on Linux and don't know where that is, may $DEITY have mercy on your soul.

like image 151
CommonsWare Avatar answered Oct 06 '22 00:10

CommonsWare


You need to ensure 'adb' is installed on your machine (Windows/Linux/Mac).
Follow the steps mentioned here and here for configuring your android device and readying 'adb'.
You can try adb devices to confirm you have the setup ready.
Then find your terminal/command prompt as per your machine OS for running 'adb shell' and next 'setprop' commands!

All the best!

like image 28
TheCottonSilk Avatar answered Oct 06 '22 00:10

TheCottonSilk


ADB could be in either one of those two locations:

~/android-sdk-linux/tools
~/android-sdk-linux/platform-tools

This is considering you already have the Android SDK installed.

You can run adb from that directory. Alternatively you can add the path variable to your .bashrc file to run it from anywhere:

$ nano ~/.bashrc

[or other text editor you prefer]

Then add the following:

#AndroidDev PATH
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools

If you have adb located elsewhere but don't know where it is, then this could help:

locate adb | grep bin

Source: https://help.ubuntu.com/community/AndroidSDK

like image 25
Rani Kheir Avatar answered Oct 06 '22 00:10

Rani Kheir