Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
K3V1991 authored May 24, 2022
0 parents commit 8786ef7
Show file tree
Hide file tree
Showing 9 changed files with 1,682 additions and 0 deletions.
Binary file added AdbWinApi.dll
Binary file not shown.
Binary file added AdbWinUsbApi.dll
Binary file not shown.
216 changes: 216 additions & 0 deletions Commands.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
----------------------------------------------------------------------------------------------------------------------
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).
26 changes: 26 additions & 0 deletions DevAndUSB.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Before you can make use of ADB and Fastboot Commands, you’ll have to enable Developer Options & USB Debugging on your Android Device.

Requirements:
• USB Driver for your Device or Universal Adb Driver (https://androidfilehost.com/?fid=2188818919693784734)

How-To enable Developer Options & USB Debugging:
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.


Unable to connect to ADB:
1. AMD Bug? (https://forum.xda-developers.com/t/fix-fastboot-issues-on-ryzen-based-pcs.4186321/)
2. Switch Device from "Charging" to "File Transfer" Mode
3. Install the latest Device Driver or Universal USB Driver
4. Try another USB Cable
5. Use another USB Port (USB 3.0 Port to USB 2.0)
6. Try to execute Fastboot Command without connecting your Phone, and once it says "waiting for device" plug in your USB Cable
7. Windows: Click "Change advanced power setting" on your chosen Plan and expand "USB Settings". Under "USB Settings" Section, expand "USB selective suspend setting" and change it to "Disabled" for On Battery and Plugged In.
8. Try another PC
4 changes: 4 additions & 0 deletions Open CMD.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@echo off
title ADB and Fastboot++
color 0a
cmd.exe
95 changes: 95 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
<p align="center"><img src="https://i.ibb.co/pj0Pnj7/ADB-and-Fastboot-Plus-Plus.png" width="200"></a>
<h1 align="center"><b>ADB & Fastboot++</b></h1>
<h4 align="center">A small Application for Windows that allows you to install the latest Version of ADB and Fastboot Files on the Computer without installing the entire Android SDK Package + Toolkit & Commands</h4>
<br />

<p align="center">
<a href="https://forum.xda-developers.com/t/tool-windows-adb-fastboot-march-2022.3944288/" alt="XDA Thread"><img src="https://img.shields.io/badge/XDA-Thread-orange.svg"></a>
<a href="" alt="Latest Release"><img src="https://img.shields.io/github/v/release/K3V1991/ADB-and-FastbootPlusPlus?color=blueviolet&label=Latest%20Release"></a>
<a href="" alt="Downloads"><img src="https://img.shields.io/github/downloads/K3V1991/ADB-and-FastbootPlusPlus/total?label=Downloads"></a>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HW8B98TVDLKWA" alt="Donate-PayPal"><img src="https://img.shields.io/badge/Donate-PayPal-blue"></a>
<a href="https://github.com/K3V1991/Donate-Crypto/blob/main/README.md" alt="Donate-Crypto"><img src="https://img.shields.io/badge/Donate-Crypto-yellow"></a>
</p>
<hr>
<br />
<br />

## NFO:
* Versions: Installer & Portable
* Android Debug Bridge & Fastboot updated to latest v1.0.41 (Version 33.0.1-8253317, March 2022)

## Features:
* Installation Folder chooseable (Installer)
* Desktop & Start Menu Shortcuts (Installer)
* Toolkit
* View Commands, How-To enable Developer Options & USB Debugging
* Add to System Path Environment (Installer)
* Optional Universal ADB Driver Installation (Installer)

## Toolkit Features:
* Uninstall Bloatware without Root Access (They are just being uninstalled for the current User)
* Re-install uninstalled Apps
* Install Kernel (Popup Menu, reboots automatically to Bootloader)
* Install Recovery (Popup Menu, reboots automatically to Bootloader)
* Install APKs (Popup Menu)
* Push Files (Popup Menu)
* Check Firmware Version
* Check Android Version
* Check Kernel Version
* Check Firmware Build Date
* Check Kernel Build Date
* Check Security Patch Date
* Check IMEI
* Check IP Adresses
* Check App Packages
* Check Process Activity (Real Time)
* Take Screenshots (PNG Format)
* Video recoding - 30 Seconds (Without Device Sound)
* Video recoding - 60 Seconds (Without Device Sound)
* Video recoding - 120 Seconds (Without Device Sound)
* Video recoding - 180 Seconds (Without Device Sound)
* Reboot the Device
* Reboot to Bootloader
* Exit Bootloader to System
* Reboot to Recovery
* Create Logcat
* Exit (adb kill-server & close Toolkit)

## Requirements:
* Windows OS
* USB Driver for your Device or Universal ADB Driver (Included in the Installer)
* PowerShell for the Toolkit

## Developer Options & USB Debugging:
1. Install the USB Driver for your Phone or Universal Adb Driver.
2. On your Phone, go to Settings > About Phone. Find the Build Number and tap on it 7 times to enable Developer Options.
3. Now enter System > Developer Options and find "USB debugging" and enable it.
4. Plug your Phone into the Computer and change it from "Charge only" to "File Transfer" Mode.
5. On your Computer, browse to the directory where you extracted the Portable Version or use Tiny ADB & Fastboot Shortcut.
6. Launch a Command Prompt with Open CMD.bat or use Tiny ADB & Fastboot Shortcut.
7. Once you’re in the Command Prompt, enter the following Command: adb devices
8. 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.).
9. Succesful enabled USB Debugging.

## Unable to connect to ADB:
1. AMD Bug? - https://forum.xda-developers.com/t/fix-fastboot-issues-on-ryzen-based-pcs.4186321/
2. Switch Device from "Charging" to "File Transfer" Mode
3. Install the latest Device Driver or Universal USB Driver
4. Try another USB Cable
5. Use another USB Port (USB 3.0 Port to USB 2.0)
6. Try to execute Fastboot Command without connecting your Phone,
and once it says "waiting for device" plug in your USB Cable
7. Windows: Click "Change advanced power setting" on your chosen Plan and expand "USB Settings". Under "USB Settings" Section, expand "USB selective suspend setting" and change it to "Disabled" for On Battery and Plugged In.
8. Try another PC

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

## Portable:
1. Download 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
Loading

0 comments on commit 8786ef7

Please sign in to comment.