Developer android com studio releases platform tools html

Download Android SDK Platform-Tools (Windows/Mac/Linux)

ADB and Fastboot are essential command-line tools for Android that facilitate a range of tasks including flashing factory images or custom recovery or kernel images (.img), sideload APK, etc. Using ADB and Fastboot commands, we can perform countless tasks on Android devices and even debug them. Thanks to Android SDK Platform-tools that pack together all required files to execute ADB and Fastboot commands using a command prompt. Below, you can download the latest SDK platform-tools Zip for Windows, Linux, and Mac OS X directly from the Google servers.

What is SDK Platform-Tools?

Essentially, the ‘platform-tools” is a command-line tool meant for developers only. They are a part of the Android SDK Manager and Android Studio and are used to perform more complicated tasks like developing, analyzing, and debugging Android apps APK (Android Application Package file). Using them you can emulate apps, edit the visual layouts, and test them without a real Android device.

Not too long ago, we had to download a full Android SDK suite or Android Studio and get the Platform-tools. Google then decided to release the Android SDK Platform-tools separately. Now, we can download the latest version of Android SDK Platform-tools for Windows, Linux, and Mac in an easy-to-download Zip package.

Download ADB and Fastboot SDK Platform-Tools

Below you can download the Android SDK Tools for all three major operating systems for computers.

Android SDK Tools (Windows)

Having downloaded the latest version of Android SDK Platform-tools for Windows, you can follow the steps given below to set it up.

Android SDK Platform Tools (Mac OS X)

ADB Platform Tools (Linux & Ubuntu)

I wrote a detailed guide on installing ADB and Fastboot on Linux to help you with using ADB commands easily.

How to Use SDK Platform-Tools

Now that you have already downloaded the SDK Platform-tools, you need to install it or set it up on your computer. If you don’t know what to do with the zip file you just downloaded and how to execute the ADB and Fastboot commands, I am going to explain everything you need to know.

First of all, you need to unzip the “platform-tools-latest.zip“. You can extract it anywhere on your computer but I prefer saving the files to a folder created as “Android” on the C drive on my Windows PC. Having extracted the zip file, you need to launch a command prompt window before you can execute an ADB or Fastboot command.

How to Launch a Command Window?

It’s very easy to launch a command prompt window on a Windows PC. Click the Search icon next to the Windows menu icon on the taskbar and hit the Enter key. In case you need to launch the Command or CMD window from inside the Platform-tools folder, there are 2 ways to do that.

Method 1

  1. Open the folder in which you extracted the content of the Platform-tool.zip file.
  2. While pressing the Shift key on the keyboard, perform a right-click on your mouse at an empty place inside the folder window.
  3. From the context menu pop-up, select the “Open command prompt here” option.
  4. You can now execute any ADB or Fastboot command.
Читайте также:  Super mario run android mod

Method 2

Well, this method is far easier than the one I described above. You can simply launch a command window from inside the platform-tools folder by typing “cmd” in the Windows file explorer address bar as shown below and hitting the Enter key on your PC’s keyboard.

Note: Make sure to enable the USB debugging option on your Android device. You can find it under Settings> Developer options. In case you don’t see Developer Options listed under device Settings, open About device> Software Information and tap the Build number 7 times to unlock the hidden Developer options on your Android device.

You need to allow the debugging option so that your devices and computer can communicate and interact with each other. When you execute a command in the cmd window, you’ll get a pop-up on your Android’s screen asking you to Allow USB debugging.

Verify ADB Connection

Note: Make sure you have already installed the proper Android USB Driver from your device’s manufacturer on your computer.

  1. Having enabled USB Debugging from Developer options, connect your phone or tablet to the computer using a compatible USB cable.
  2. Now launch a command window and type the following command and click the Enter key on the keyboard.
  3. You’ll see the list of the IDs of attached devices in the Command Prompt window represented by a string of alphanumeric values as shown below.

Please note that to sideload and APK on your Android phone via ADB or to flash a system image (.img) file using Fastboot commands, you need to place those files inside the “platform-tools” folder first. You can also enable system-wide ADB and fastboot so that you can execute commands without navigating to the “platform-tools” directory every time. If you encounter any problem while running commands, read my tutorial on fixing ADB or Fastboot is not recognized error.

That’s all for now! I’ve also prepared a very exhaustive list of useful ADB, ADB Shell, and Fastboot commands in a dedicated tutorial. Don’t forget to check that.

Now that you have set up SDK Platform tools on your computer, here are a few things that you should start with.

Источник

Download Android SDK Platform Tools- ADB and Fastboot For Windows/Mac/Linux

There are various tools available on the Android Software Development Kit, popularly referred to as Android SDK or Android Devkit. The many tools you will find on this devkit are all unique and designed to serve various specific purposes in Android development. Talking about Android SDK Platform-Tools; this is one of the components of the Android SDK, which includes some essential tools for Android development; the tools included are ADB, Fastboot, and Systrace. These tools are useful in the hands of Android app developers. That is to say, if you’re not an app developer for Android mobile OS, it does not mean it will not use for you. Nevertheless, these tools can be employed by ROM, Root, Recovery developers and phone technicians to root Android devices, unlock bootloaders, as well as flash new custom files.

Table of Contents

What Platform Can It support? Where Can It be used?

As said above, the platform-tools is a component of Android SDK containing what are considered to be the essential tools for Android app development, viz, ADB, Fastboot, and Systrace. These tools are available for Windows, Linux, and macOS computers. So, if you’re an Android developer, these tools are vital to you, and you can get the version for your computer OS.

Читайте также:  Андроид для лексус рх 330

Please refer Android License regarding the software before download.

How to use Android SDK Platform Tools?

  • Firstly, you have to download the tools in its ZIP format and extract it to your computer. Make sure you download the version for your OS.
  • You should boot your mobile into fastboot/recovery mode and connect with your PC.
  • Navigate to the extracted folder using Command Prompt or Terminal. Use the following ADB and Fastboot commands as per your requirements.

Minimal ADB and Fastboot

If you are a regular user who uses adb and fastboot for simple usage like a flash, bootloader unlocks, you can use this software. It is a Windows version. All you have to do is download, extract, and install the executable file.

  • Download the ADB drivers.

Installation Steps

  • Download and extract the files. Select the adb setup file and run this as Administrator.
  • The installation window will open press “Y” twice to install adb system-wide.
  • Now you can find the adb files in your installed folder. You can access the command anywhere within your PC. But, it is better to copy the flash and boot files in this folder for the process.

How to use ADB

There are various things you can do with ADB; this tool supports a lot of commands to trigger most functions. Most of them deal with the recovery mode. I try to cover some essential commands.

Note: you must activate “Developer Options” on the device and turn on “USB Debugging” on the Android device before running ADB commands.

ADB commands

adb reboot – bootloader

Reboots Android device in bootloader mode

Reboots Android phone in normal mode

Move a file from local system to an Android phone’s location

Displays all connected ADB compatible devices

Moves a file from Android to your PC

Installs an app from your system’s .apk file location to your Android device

Use ADB commands over Wi-Fi Network

Backs up the Android device

adb shell screencap

Captures a screenshot of the device

adb sideload file

Push the file to your mobile device and Install it.

Launching ADB requires you know about CMD – Command Prompt. This is because you need to start CMD and use commands to access the folder where you extracted the Platform Tools and launch adb.exe.

How to use Fastboot

Fastboot installs alongside ADB when you extract the ZIP file. Fastboot allows you to run commands on and Android device that is in bootloader mode. There are, however, other ways to use an Android device in bootloader mode, but using Fastboot is the best option. Also, it is possible to unlock an Android device bootloader using Fastboot to install a custom system file.

However, before Fastboot commands can work on an Android device, you must activate “Developer Options” on the device and turn on “USB Debugging.”

Fastboot commands

fastboot oem lock

re-locks the bootloader of an unlocked device

Shows the serial number of a connected Android device

fastboot flash recovery (filename)

Flash the file from PC

fastboot boot recovery (filename)

Boot the data from PC

fastboot oem unlock

Unlock the bootloader of connected Android device

What is Systrace?

We can say it is an in-built advanced tool in Android Studio to understand your app performance in your Android mobile. It can give you an overview of background process performance, How much CPU it is accessing to do things like that. It also needs ADB to perform the commands. Refer- Systrace Commands.

Читайте также:  Create pull request android studio

What More?

The use of these tools is infinite. Our ideas limit it. I try to give some ideas about how to use them. I can say I gave 0.1%. There is plenty of add ons are available, and you can use them as per your requirement. These SDK tools are essential to interact with your mobile with the Android commands. You can do plenty of customizations using these commands. If you hear about the country restriction pixel 4 soli, Yes, you can also lift the restriction. You can also disable bloatware apps in Samsung devices. If you face any problem, or you need additional adb commands, comment below.

Selva Ganesh is a Chief Editor of this Blog. He is a Computer Engineer, An experienced Android Developer, Professional Blogger & addicted Web Developer. He runs Android Infotech which offers Problem Solving Articles around the globe.

Источник

Developer android com studio releases platform tools html

This is a fully self contained module that wraps the Android SDK platform tools

Fully multi platform and tested on windows, Linux and Mac OS. Please let me know if your OS does not work.

It will Also store the Android platform tools locally and check it exists at runtime so it does not download each time.

  • NodeJs 8+ recommended NodeJs 4/6 should also work but are unsupported

Version 3 changes

  • BREAKING: change logic for issue #1 to default to __dirname but can be overridden instead
    • Doesn’t make sense to have the CLI install to every directory you call it in.
    • The functions getToolPaths , downloadTools and downloadAndReturnToolPaths take a second parameter of base directory, defaults to __dirname of the package installation dir
  • The following syntax is an example to use the previous behaviour adb.downloadAndReturnToolPaths(‘custom-path3’, process.cwd())

Command Line Interface Usage

  • npm install -g android-platform-tools
  • This provides an alias for adb adbn or adb
  • For example: adbn devices or adb devices
    Returns the usual: List of devices attached
  • adbn to avoid path conflicts with any existing android sdk installation with adb
  • Version 1.0.0+ Now provides aliases for fastboot, etc1tool, dmtracedump, hprof-conv and sqlite3
  • As with adb they have their respective n suffixes (fastbootn, etc1tooln, dmtracedumpn, hprof-convn and sqlite3n)

The following environment variables are available

  • ADB_HIGHLIGHT_ERRORS (Highlights the word error in stdout in red)
  • ADB_RAINBOW (Makes each line in stdout a different color and windows environment friendly)

With Version 1.0.0 downloadAndReturnToolPaths now returns an object with the following properties:

  • more customisation of the platform tools path, currently defaults to __dirname and «platform-tools»
  • Also consult TODO.txt
  • EACCESS errors on unix: Error: EACCES: permission denied https://docs.npmjs.com/getting-started/fixing-npm-permissions
  • Be careful with option one because doing a chown on usr/bin can override the sudo command on unix systems
  • EPERM: operation not permitted, unlink ‘C:%HOMEPATH%\AppData\Roaming\npm\node_modules\android-platform-tools\platform-tools\AdbWinApi.dll’ On windows to, to fix it means adb is still running try a adb kill-server
  • adb shell is a bit sluggish for input and will look into this
  • Please add any issues you find to github
  • linting doesn’t work under node 11 due to graceful-fs sub dependency

Checking code style

  • Write tests
  • Check linting
  • Do a Pull request
  • By using this module you agree to any terms and conditions outlined by Google, documented in the NOTICE.txt under the platform tools installation
  • Feel free to contact me on github

About

Self contained node module that wraps the Android SDK platform tools

Источник

Оцените статью