How to Run App on Phone on Android Studio on Windows – Nexus 5

While running Android Studio, you can instantly connect an Android device via USB on Mac or Linux, and run a developing app on that device. What about Windows? For Windows, you’ll need to install the Google USB Driver before running your developing app on your Android device, phone, or tablet.

Official docs: http://developer.android.com/tools/extras/oem-usb.html

usbdriver

 

List of steps for Windows 7, 8, and 10

  1. Connect your Android device to the PC.
  2. Open Android Studio, open the SDK Manager, and install the Google USB Driver.
  3. Search and open Device Manager.
  4. Find and expand Other devices section.
  5. Right click the device name (i.e. Nexus 5) and select Update Driver Software.
  6. Browse my computer for driver software and click Next.
  7. Browse for the Google USB driver folder and click next to install the driver.

Connect your Android device to the PC. Easy enough. Plug your Android device via USB to your PC.

Open Android Studio, open the SDK Manager, and install the Google USB Driver. The SDK Manager can be opened by the following Android Studio icon:

sdkmanager

Click on Android SDK. Check off the Google USB Driver and hit OK to install.

googleusbdriver

Search and open Device Manager. You can use Windows search to find the Device Manager.

Find and expand Other devices section. Right click the device name (i.e. Nexus 5) and select Update Driver Software.

devicemanager

Browse my computer for driver software and click Next. Browse for the Google USB driver folder and click next to install the driver. The Google USB driver folder should be inside your C:\Users\*username*\AppData\Local\Android\sdk\extras\google\usb_driver\.

updatedriver

After installing, when running Android studio, you should be able to run any developing app project on your Android device. When you hit the play button on Android Studio, a prompt should pop up and ask what connected or virtual device you want the app to be run on. Select the connected Android device, phone, or tablet and voila! You will need to unlock your Android device to see the app immediately be run.

How to transfer files from Mac to Android

On Mac, Android does not automatically allow you to transfer files. Unfortunately, you’ll need an extra program to transfer files from your Mac to Android devices. One of the programs that allows you to do this is called Android File Transfer.

1) Download Android File Transfer.

Screen Shot 2015-07-28 at 11.08.46 PM

Hit the green Download Now button.

 

2) Open the downloaded androidfiletransfer.dmg

Screen Shot 2015-07-28 at 11.09.49 PMDrag and drop Android File Transfer into the Applications folder.

 

3) Open Android File Transfer.

Screen Shot 2015-07-28 at 11.10.23 PM

At this point, Android File Transfer should be inside the Applications folder. Simply double click the application.

 

4) Connect your Android device to your computer.

Screen Shot 2015-07-28 at 11.12.52 PM

Your Android device should be automatically detected. You can drag and drop files from your Mac to your Android device OR from your Android device to Mac. Simply highlight or hold CTRL and click on the files that you want to transfer. Drag and drop between devices.

Recover Nvidia Android TV Shield Manually

Prerequisites

Files needed:

Recovery Images

This tutorial is for restoring your entire TV Shield in the event something unfortunate happens. In order for this to work, your TV Shield has to be able to boot up and display the Nvidia logo on screen. Otherwise, your TV Shield is bricked, and there is nothing you can do about it.

 

1. Unplug your power cable and connect a USB OTG cable to your computer.

Now, here is the tricky part that requires perfect timing.

 

2. Connect your power cable and almost immediately hold the power button for roughly 3 seconds.

** This may take multiple attempts to get the timing down. You may want to hold the power button for slightly longer than 3 seconds, ~3.1/3.2 seconds.

If successful, you should see the bootloader screen.

Tap the power button to navigate the menu and hold the power button to select.

 

3. Now go to the folder where you downloaded the files and type in the following commands:

./fastboot flash recovery recovery.img
./fastboot flash boot boot.img
./fastboot flash system system.img
./fastboot flash userdata userdata.img
./fastboot flash staging blob
./fastboot flash dtb

** Your device may or may not need to restart after each command, which means repeating the steps above. Also, you may not need to flash all of the above depending on what files are damaged.

How to Root Nvidia Android TV Shield

To start, you will need a few tools and files.

Make sure to back up your device in the event something goes wrong and preserve any of your data.

 

1. Once your TV shield is up and running, head over to the settings.

 

2. Go to About (First Row) and scroll down to “Build Number.”

 

3. Here, click “Build Number” 7 times. This will enable the developer options.

 

4. Now go back to the previous screen (settings). You should now see the developer options in the second row at the end.

If not, you may need to wait a little and reload the settings screen.

 

6. Go to Developer options to enable USB debugging and plug in your OTG cable to your device and computer.

There will be a prompt to connect to your computer. Accept it.

 

7. Navigate to where your adb and fastboot folder and type in:

./adb devices

You should see your device.

8. Once that is working type in:

./adb reboot bootloader

A word of caution – the next steps will erase any data you may have.

 

9. Check if your device is connected.

./fastboot devices

 

10. Type in:

./fastboot oem unlock


A new prompt will be displayed. Click continue by tapping the power button on your shield TV to navigate to “continue” and holding the power button to select.

** On the pro (500 GB) version, the unlock takes more than an hour. For the 16GB version, it takes a few minutes at most.

You may need to repeat steps 1-9 to re-enable the debugger.

 

11. Now navigate to the directory where you downloaded SuperSu and type in:

./adb push supersu.zip /sdcard

Note ** if an error comes up for /sdcard, try sdcard/

 

12. Now type in:

./fastboot boot < path to twrp image>

OR to keep the stock recovery image or you could flash it with:

./fastboot flash boot

 

13. Select “Install” and navigate to the SuperSu.zip file you pushed onto the SD card. Click it.

 

14. Once that is done, click reboot.

Congratulations, your device is now rooted.

If your device becomes unbootable, but is able to boot up to the Nvidia logo screen, please follow this guide.