Rotate applications in Android Studio via mobile phone via USB

7

Does anyone know how I can configure Android Studio to run applications on USB connected on the mobile? I currently use GenyMotion and wanted to know if there is any compatibility problem. I tried to change it inside "run configurations" where I added a new USB device, but when I click "run" it is not displayed.

    
asked by anonymous 28.12.2014 / 01:29

2 answers

12

You do not need root to debug your application on a physical device.

To enable debug mode by clicking 7 times in Build Number in the phone options.

After enabling, just check the USB Debugging option on the Developer Options menu. These names may vary depending on the model and language of the device.

With this setting made. The simplest test is the devices of adb command. The devices is a command to list devices connected via USB and accessible to the adb server , that is, they are available for use for any adb command, including debug .

Sample execution:

wakim@wakim-Inspiron-5420:~$ adb devices
List of devices attached 
0432772433  device
    
27.02.2015 / 02:54
1

It's basically debbug enabled and the usb drive installed on the PC, and when you connect the device the Android Debug Bridge ( adb ) recognizes it as the device for debbug. More info in English: link

    
28.12.2014 / 04:24