Cách thiết lập adb/usb drivers và fastboot cho thiết bị android

      23

Several features of the Android platkhung can be accessed only through paths và methods that are hidden away from the average user. These have generally been done with the help of some commvà line Android Debug Bridge (ADB) commands, a tool that Google offers for developers to debug various parts of their applications or the system, but which we can use for all kinds of neat & hidden tricks. A prerequisite to lớn these tricks is installing ADB on your computer. So, in this guide, we will show you how to install ADB on Windows, macOS, and Linux in quichồng and easy-to-follow steps.

Bạn đang xem: Cách thiết lập adb/usb drivers và fastboot cho thiết bị android

How lớn Setup the Android Debug Bridge (ADB)


Note: Setting up ADB on the computer is just half the equation since you’ll also need to lớn vày some things on the điện thoại thông minh or tablet khổng lồ accept the ADB commands.


Phone Setup

Launch the Settings application on your phone.Tap the About Phone option generally near the bottom of the menu.Then tap the Build Number option 7 times to lớn enable Developer Mode. You will see a toast message when it is done.Now go baông chồng to the main Settings screen and you should see a new Developer Options menu you can access.Go in there and enable the USB Debugging mode option. You are partially done with the phone cài đặt process. Next up, you will need lớn scroll below and follow the rest of the instructions for your particular operating system.

Follow along for the operating system on your computer.

How lớn setup ADB on Microsoft Windows

Extract the contents of this ZIP.. file into lớn an easily accessible thư mục (such as C:platform-tools)mở cửa Windows explorer và browse khổng lồ where you extracted the contents of this ZIPhường. fileThen open up a Comm& Prompt from the same directory as this ADB binary. This can be done by holding Shift and Right-clicking within the folder then click the “xuất hiện commvà window here” option. (Some Windows 10 users may see “PowerShell” instead of “commvà window”.)
*
Connect your smartphone or tablet to lớn your computer with a USB cable. Change the USB mode to “tệp tin transfer (MTP)” mode. Some OEMs may or may not require this, but it’s best lớn just leave sầu it in this mode for general compatibility.In the Command Prompt window, enter the following command khổng lồ launch the ADB daemon: adb devicesOn your phone’s screen, you should see a prompt to allow or deny USB Debugging access. Naturally, you will want khổng lồ grant USB Debugging access when prompted (và tap the always allow kiểm tra box if you never want khổng lồ see that prompt again).Finally, re-enter the commvà from step #6. If everything was successful, you should now see your device’s serial number in the comm& prompt (or the PowerShell window).
*

Yay! You can now run any ADB commvà on your device! Now go forth và start modding your phone by following our extensive danh sách of tutorials!

How to lớn setup ADB on macOS

Extract the ZIPhường lớn an easily-accessible location (like the Desktop for example).Open Terminal.To browse khổng lồ the thư mục you extracted ADB inlớn, enter the following command: cd /path/to/extracted/folder/For example, on my Mac it was this: cd /Users/Doug/Desktop/platform-tools/Connect your device to your Mac with a compatible USB cable. Change the USB connection mode to “tệp tin transfer (MTP)” mode. This is not always required for every device, but it’s best to just leave it in this mode so you don’t run inkhổng lồ any issues.Once the Terminal is in the same thư mục your ADB tools are in, you can exeđáng yêu the following command khổng lồ launch the ADB daemon: ./adb devicesOn your device, you’ll see an “Allow USB debugging” prompt. Allow the connection.Finally, re-enter the comm& from step #7. If everything was successful, you should now see your device’s serial number in macOS’s Terminal window.

Xem thêm: Mua Iphone 6 Nhật Bản Giá Dưới 3 Triệu Đồng Tràn Về Vn, Iphone 6S 64Gb Cũ Nhật Bản Uy Tín Nhất

*

Congratulations! You can now run any ADB command on your device! Now go forth and start modding your phone by following our extensive sầu các mục of tutorials!

While the guide above will certainly work, some seasoned macOS users should be aware that there can be an easier way to lớn install ADB on their Macs using an unofficial package manager such as Homebrew or MacPorts.

How lớn thiết lập ADB on Linux

Extract the ZIPhường lớn an easily-accessible location (like the Desktop for example).xuất hiện a Terminal window.Enter the following command: cd /path/to/extracted/folder/This will change the directory khổng lồ where you extracted the ADB files.So for example: cd /Users/Doug/Desktop/platform-tools/Connect your device to your Linux machine with your USB cable. Change the connection mode to “tệp tin transfer (MTP)” mode. This is not always necessary for every device, but it’s recommended so you don’t run inkhổng lồ any issues.Once the Terminal is in the same thư mục your ADB tools are in, you can exexinh tươi the following comm& to launch the ADB daemon: ./adb devicesBaông chồng on your điện thoại thông minh or tablet device, you’ll see a prompt asking you lớn allow USB debugging. Go ahead & grant it.Finally, re-enter the commvà from step #8. If everything was successful, you should now see your device’s serial number in the Terminal window output.
*

Congrats! You can now run any ADB command on your device! Now go forth & start modding your phone by following our extensive sầu các mục of tutorials!

Some Linux users should be aware that there can be an easier way khổng lồ install ADB on their computer. The guide above sầu will certainly work for you, but those own a Debian or Fedora/SUSE-based distro of Linux can skip steps 1 and 2 of the guide above and use one of the following commands:

Debian-based Linux users can type the following commvà to lớn install ADB:

subởi apt-get install android-tools-adbFedora/SUSE-based Linux users can type the following comm& to lớn install ADB:subởi yum install android-toolsHowever, it is always better to opt for the lademo binary from the Android SDK Platkhung Tools release, since the distro-specific packages often contain outdated builds.

Just to lớn cover all of our bases here, users may need to put a ./ in front of the ADB commands we các mục in future tutorials, especially when they are using the extracted binaries directly from the Platform Tools ZIPhường. This is something that is likely known by any *nix user (or Windows user running PowerShell) already, but again, we want as many people as possible to lớn understand how to vì these tweaks for Android no matter how much of your operating system you know.

Next Steps

To check if you have sầu successfully installed ADB, connect your device khổng lồ your PC/Mac with your USB cable, & run the adb devices comm& as described above sầu. It should display your device listed in the Commvà Prompt/PowerShell/Terminal window. If you get a different output, we recommend starting over with the steps.

Xem thêm: Phim Đội Bóng Thiếu Lâm (Châu Tinh Trì) Lồng Tiếng, Đội Bóng Thiếu Lâm Hd

Bonus

For those who want to take this a step further, you can follow this new tutorial we put together that will walk you through how to mix up ADB so that you can use the comm& from any directory on a Windows or Linux desktop.


Chuyên mục: Tin Tức