• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[TOOL][WINDOWS] Tiny ADB & Fastboot | August 2021

Search This thread

K3V1991

Senior Member
Sep 23, 2016
866
1,406
Wonderland
OnePlus 7T Pro
sc86orow.png



NFO:
Code:
• Installer & Portable
• Android Debug Bridge & Fastboot updated to latest v1.0.41 (Version 31.0.3-7562133, August 2021)
• Installation Folder chooseable
• Creates Desktop Shortcut & Start Menu Shortcut
• Add to System Path Environment
• View Commands List & Shortcut
• Size: ~3MB (installed ~10MB)


Requirements:
Code:
• Windows OS
• USB Driver for your Device or Universal ADB Driver

Developer Options & USB Debugging:
Code:
01. Install the USB Driver for your Phone or Universal Adb Driver.
02. On your Phone, go to Settings > About Phone. Find the Build Number and tap on it 7 times to enable Developer Options.
03. Now enter System > Developer Options and find "USB debugging" and enable it.
04. Plug your Phone into the Computer and change it from "Charge only" to "File Transfer" Mode.
05. On your Computer, browse to the directory where you extracted the Portable Version or use Tiny ADB & Fastboot Shortcut.
07. Launch a Command Prompt with Open CMD.bat or use Tiny ADB & Fastboot Shortcut.
09. Once you’re in the Command Prompt, enter the following Command: adb devices
10. System is starting the ADB Daemon (If this is your first Time running ADB, you will see a Prompt on your Phone asking you to authorize a Connection with the Computer. Click OK.).
11. Succesful enabled USB Debugging.


Installer:
Code:
1. Download Tiny_ADB_&_Fastboot_vXXX.exe
2. Follow the Installers Instructions and select where you would like to install Tiny ADB & Fastboot
3. After the Installation Wizard has completed you can select to start Tiny ADB & Fastboot
4. You should see a Command Window open, now you can use ADB and Fastboot Commands


Portable:
Code:
1. Download Tiny_ADB_&_Fastboot_vXXX_Portable.zip
2. Extract the Zip Archive
3. Double click on Open CMD.bat
4. You should see a Command Window open, now you can use ADB and Fastboot Commands


Downloads:
• Installer
• Portable
• Universal Adb Driver
 

Attachments

  • 2.png
    2.png
    4.3 MB · Views: 172
  • 1.png
    1.png
    4.3 MB · Views: 149
  • 3.png
    3.png
    4.3 MB · Views: 113
  • 4.png
    4.png
    4.3 MB · Views: 106
  • 5.png
    5.png
    4.3 MB · Views: 117
  • 6.png
    6.png
    1.7 MB · Views: 177
Last edited:

K3V1991

Senior Member
Sep 23, 2016
866
1,406
Wonderland
OnePlus 7T Pro
ADB & Fastboot Commands:
----------------------------------------------------------------------------------------------------------------------
ADB Commands:
----------------------------------------------------------------------------------------------------------------------


adb help
Shows ADB Help Documentation.

adb devices
Lists all the Android Devices connected via ADB.

adb reboot
Reboots your Android Device.

adb reboot bootloader
Reboots your Android Device into Fastboot / Bootloader Mode.

adb reboot recovery
Reboots your Android device into Recovery Mode.

adb install
Helps you install an APK File on your Android Device.

adb install filename.apk
Install the APK File.

adb install -r filename.apk
Re-installs or updates an App.

adb install -s filename.apk
Installs the APK File in SD Card (if the App supports).

adb uninstall
Helps you install an App File on your Android Device.

adb uninstall com.facebook.katana
Simply uninstalls the App.

adb uninstall -k com.facebook.katana
Keeps the Data and Cache Folder after the App is uninstalled.

adb logcat
Displays the Log Data onto the Screen.
adb bugreport
Displays the Dumpsys, Dumpstate and Logcat Data on the Screen.

adb jdwp
Lists the JDWP (Java Debug Wire Protocol) Processes on the Device.

adb get-serialno
Shows the adb instance Serial Number String with the Device.

adb get-state
Displays the Device Status.

adb wait-for-device
Used to set a delay before the next Command is issued.
It executes when the Device is online but it can be programmed to wait till another Process is done.

adb start-server
Starts the ADB Server Process.

adb kill-server
Stops the ADB Server Process.

adb sideload <filename.zip>
Used to flash a Zip File in Recovery Mode when the Zip File is available in the Computer.

adb pull </path/filename>
Pulls any File from your Device and saves it on your Computer.

adb push <source-path> <target-path>
Used to push a File into your Android Device.


----------------------------------------------------------------------------------------------------------------------
ADB Shell Commands:
----------------------------------------------------------------------------------------------------------------------


adb shell
Starts the Remote Shell Command Console in the Device.

adb shell pm uninstall -k –user 0 package.name.com
Helps you uninstall a System App from your Android Device.
Replace package.name.com with the actual Package Name.

adb shell dumpsys
Dumps all System Data about your Android Device’s Dardware and Software Configuration

adb shell dumpsys display
Displays all the Hardware and Software Configuration about your Display.

adb shell dumpsys battery
Displays all the Hardware and Software Configuration about your Battery.

adb shell dumpsys batterystats
Displays all the Info about your Battery Statistics.

adb shell wm density
Helps you change the Pixel Density on your Android Device.

adb shell pm list packages
Lists all the Apps installed on your Device as Package Names.

adb shell pm list packages -s
Lists all the System Apps installed on your Device as Package Names.

adb shell pm list packages -3
Lists all the 3rd Party Apps installed on your Device as Package Names.

adb shell pm list packages -d
Lists all the disabled Apps on your Device as Package Names.

adb shell pm list packages -e
Lists all the enabled Apps on your Device as Package Names.

adb shell pm list packages -u
Lists all the uninstalled Apps with installed Pages on your Device as Package Names.

adb shell screencap /sdcard/screenshot.png
Takes a Screenshot of your Device Screen and saves it in SDCARD with the name "screenshot.png".

adb shell screenrecord /sdcard/screenrecord.mp4
Starts recording your Device Screen and saves the Video in SDCARD with the name "screenrecord.mp4".
The default Record Time is 180 Seconds (Maximum). You can press CTRL + C to stop the recording any Time.

adb shell screenrecord –size 1920×1080 /sdcard/screenrecord.mp4
Screen recording with custom Width and Height for the Video.

adb shell screenrecord –time-limit 120 /sdcard/screenrecord.mp4
Screen recording with custom Time Limit for the Video.
Max value is 180.

adb shell screenrecord –bit-rate 4000000 /sdcard/screenrecord.mp4
Screen Recording with custom Bit Rate for the Video.
The Value "4000000" sets the Bitrate to 4Mbmps.

adb shell
<Hit Enter and then execute the following command>
cd /system
Changes the Directory to "/system".

adb shell
<Hit Enter and then execute the following command>
rm -f /sdcard/<filename.zip>
Deletes a File from your Android Device.

adb shell
<Hit Enter and then execute the following command>
crm -d /sdcard/example
Deletes a Folder from your Android Device.

mkdir /sdcard/Android
Creates a new Folder named "Android" under "/sdcard"

cp /sdcard/filename.apk /sdcard/FolderName/
To copy a File.

mv /sdcard/filename.apk /sdcard/FolderName/
To move a File.

mv /sdcard/filename.apk /sdcard/anotherfilename.apk
To rename a File.

adb shell
<Hit Enter and then execute the following command>
netstat
To check the Network Statistics of your Android Device.

adb shell
<Hit Enter and then execute the following command>
ip -f inet addr show wlan0
Displays your Phone’s Wi-Fi IP Address.

adb shell
<Hit Enter and then execute the following command>
top
Displays top CPU Processes running on your Android Device.

adb shell
<Hit Enter and then execute the following command>
getprop ro.build.version.sdk
Used to get the Properties of your Android’s build.prop Configuration.

adb shell
<Hit Enter and then execute the following command>
setprop net.dns1 1.2.3.4
Used to set Values to the Properties present in your Android’s build.prop Configuration.


----------------------------------------------------------------------------------------------------------------------
Fastboot Commands:
----------------------------------------------------------------------------------------------------------------------


fastboot devices
List all the Android Devices that are connected in Fastboot Mode to your Computer.

fastboot oem unlock
Unlocks the Bootloader on your Android Device (if the OEM allows).

fastboot oem lock
Relocks the Bootloader on your Android Device.

fastboot reboot bootloader
Reboots your Device into Fastboot/Bootloader Mode.

fastboot flash
Used to flash Files on your Android Device.

fastboot flash boot filename.img
Flashes boot Image on your Android Device’s Boot Partition.

fastboot flash recovery filename.img
Flashes Recovery Image on your Android Device’s Recovery Partition.

fastboot boot filename.img
Instead of flashing the File, this Command simply boots it (if the file is bootable).



What else can I do with ADB?

Below is a List of XDA Tutorials for various Devices that detail many Applications of ADB Commands in order to modify hidden Settings, customize OEM Features or User Interfaces and much more




Source:
https://www.xda-developers.com/what-is-adb/
 
Last edited:

K3V1991

Senior Member
Sep 23, 2016
866
1,406
Wonderland
OnePlus 7T Pro
Last edited:

K3V1991

Senior Member
Sep 23, 2016
866
1,406
Wonderland
OnePlus 7T Pro
OP upated with v1.1.3

Changelog:

Updated to r29.0.3 (September)
• adb forward --list works with multiple devices connected
• Fix devices going offline on Windows
• Improve adb install output and help text.Restore previous behavior of adb connect <host> without specifying port
 
  • Like
Reactions: spocko

Top Liked Posts