├── .github └── FUNDING.yml ├── ADB-and-FastbootPlusPlus.png ├── AdbWinApi.dll ├── AdbWinUsbApi.dll ├── Commands.ico ├── Commands.txt ├── Desktop.ico ├── DevAndUSB.ico ├── DevAndUSB.txt ├── Download_From_Releases_Tab (∩_∩).txt ├── OpenCMD.bat ├── README.md ├── Screenshots ├── ADB-and-Fastboot++.png ├── Completing.png ├── Information.png ├── License.png ├── Shortcuts.png ├── Tasks.png ├── Toolkit-Main.png └── Toolkit-Menu.png ├── Toolkit - Installer.bat ├── Toolkit - Portable.bat ├── Toolkit.ico ├── adb.exe └── fastboot.exe /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | ## Supported 4 | github: K3V1991 5 | 6 | ## Currently unsupported 7 | patreon: 8 | open_collective: 9 | ko_fi: 10 | tidelift: 11 | community_bridge: 12 | liberapay: 13 | issuehunt: 14 | otechie: 15 | lfx_crowdfunding: 16 | custom: 17 | -------------------------------------------------------------------------------- /ADB-and-FastbootPlusPlus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/K3V1991/ADB-and-FastbootPlusPlus/8bb618b93811823a45c4a5311c8908bb8b66265e/ADB-and-FastbootPlusPlus.png -------------------------------------------------------------------------------- /AdbWinApi.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/K3V1991/ADB-and-FastbootPlusPlus/8bb618b93811823a45c4a5311c8908bb8b66265e/AdbWinApi.dll -------------------------------------------------------------------------------- /AdbWinUsbApi.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/K3V1991/ADB-and-FastbootPlusPlus/8bb618b93811823a45c4a5311c8908bb8b66265e/AdbWinUsbApi.dll -------------------------------------------------------------------------------- /Commands.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/K3V1991/ADB-and-FastbootPlusPlus/8bb618b93811823a45c4a5311c8908bb8b66265e/Commands.ico -------------------------------------------------------------------------------- /Commands.txt: -------------------------------------------------------------------------------- 1 | ——————————————————————————————————————————————————————————————————————— 2 | ADB Commands: 3 | ——————————————————————————————————————————————————————————————————————— 4 | 5 | adb help 6 | • Shows ADB Help Documentation. 7 | 8 | adb devices 9 | • Lists all the Android Devices connected via ADB. 10 | 11 | adb reboot 12 | • Reboots your Android Device. 13 | 14 | adb reboot bootloader 15 | • Reboots your Android Device into Fastboot/Bootloader Mode. 16 | 17 | adb reboot recovery 18 | • Reboots your Android device into Recovery Mode. 19 | 20 | adb install 21 | • Helps you install an APK File on your Android Device. 22 | 23 | adb install filename.apk 24 | • Install the APK File. 25 | 26 | adb install -r filename.apk 27 | • Re-installs or updates an App. 28 | 29 | adb install -s filename.apk 30 | • Installs the APK File in SD Card (if the App supports). 31 | 32 | adb uninstall 33 | • Helps you install an App File on your Android Device. 34 | 35 | adb uninstall com.facebook.katana 36 | • Simply uninstalls the App. 37 | 38 | adb uninstall -k com.facebook.katana 39 | • Keeps the Data and Cache Folder after the App is uninstalled. 40 | 41 | adb logcat 42 | • Displays the Log Data onto the Screen. 43 | 44 | adb bugreport 45 | • Displays the Dumpsys, Dumpstate and Logcat Data on the Screen. 46 | 47 | adb jdwp 48 | • Lists the JDWP (Java Debug Wire Protocol) Processes on the Device. 49 | 50 | adb get-serialno 51 | • Shows the adb instance Serial Number String with the Device. 52 | 53 | adb get-state 54 | • Displays the Device Status. 55 | 56 | adb wait-for-device 57 | • Used to set a Delay before the next Command is issued. 58 | It executes when the Device is online but it can be programmed to wait till another Process is done. 59 | 60 | adb start-server 61 | • Starts the ADB Server Process. 62 | 63 | adb kill-server 64 | • Stops the ADB Server Process. 65 | 66 | adb sideload 67 | • Used to flash a Zip File in Recovery Mode when the Zip File is available in the Computer. 68 | 69 | adb pull 70 | • Pulls any File from your Device and saves it on your Computer. 71 | 72 | adb push 73 | • Used to push a File into your Android Device. 74 | 75 | 76 | 77 | ——————————————————————————————————————————————————————————————————————— 78 | ADB Shell Commands: 79 | ——————————————————————————————————————————————————————————————————————— 80 | 81 | adb shell 82 | • Starts the Remote Shell Command Console in the Device. 83 | 84 | adb shell pm uninstall -k –user 0 package.name.com 85 | • Helps you uninstall a System App from your Android Device. 86 | • Replace package.name.com with the actual Package Name. 87 | 88 | adb shell dumpsys 89 | • Dumps all System Data about your Android Device's Dardware and Software Configuration 90 | 91 | adb shell dumpsys display 92 | • Displays all the Hardware and Software Configuration about your Display. 93 | 94 | adb shell dumpsys battery 95 | • Displays all the Hardware and Software Configuration about your Battery. 96 | 97 | adb shell dumpsys batterystats 98 | • Displays all the Info about your Battery Statistics. 99 | 100 | adb shell wm density 101 | • Helps you change the Pixel Density on your Android Device. 102 | 103 | adb shell pm list packages 104 | • Lists all the Apps installed on your Device as Package Names. 105 | 106 | adb shell pm list packages -s 107 | • Lists all the System Apps installed on your Device as Package Names. 108 | 109 | adb shell pm list packages -3 110 | • Lists all the 3rd Party Apps installed on your Device as Package Names. 111 | 112 | adb shell pm list packages -d 113 | • Lists all the disabled Apps on your Device as Package Names. 114 | 115 | adb shell pm list packages -e 116 | • Lists all the enabled Apps on your Device as Package Names. 117 | 118 | adb shell pm list packages -u 119 | • Lists all the uninstalled Apps with installed Pages on your Device as Package Names. 120 | 121 | adb shell screencap /sdcard/screenshot.png 122 | • Takes a Screenshot of your Device Screen and saves it in SDCARD with the name "screenshot.png". 123 | 124 | adb shell screenrecord /sdcard/screenrecord.mp4 125 | • Starts recording your Device Screen and saves the Video in SDCARD with the name "screenrecord.mp4". 126 | • The default Record Time is 180 Seconds (Maximum). You can press CTRL + C to stop the recording any Time. 127 | 128 | adb shell screenrecord –size 1920×1080 /sdcard/screenrecord.mp4 129 | • Screen recording with custom Width and Height for the Video. 130 | 131 | adb shell screenrecord –time-limit 120 /sdcard/screenrecord.mp4 132 | • Screen recording with custom Time Limit for the Video. 133 | • Max value is 180 Seconds. 134 | 135 | adb shell screenrecord –bit-rate 4000000 /sdcard/screenrecord.mp4 136 | • Screen Recording with custom Bit Rate for the Video. 137 | • The Value "4000000" sets the Bitrate to 4Mbmps. 138 | 139 | adb shell cd /system 140 | • Changes the Directory to "/system". 141 | 142 | adb shell rm -f /sdcard/ 143 | • Deletes a File from your Android Device. 144 | 145 | adb shell crm -d /sdcard/example 146 | • Deletes a Folder from your Android Device. 147 | 148 | mkdir /sdcard/Android 149 | • Creates a new Folder named "Android" under "/sdcard" 150 | 151 | cp /sdcard/filename.apk /sdcard/FolderName/ 152 | • To copy a File. 153 | 154 | mv /sdcard/filename.apk /sdcard/FolderName/ 155 | • To move a File. 156 | 157 | mv /sdcard/filename.apk /sdcard/anotherfilename.apk 158 | • To rename a File. 159 | 160 | adb shell netstat 161 | • To check the Network Statistics of your Android Device. 162 | 163 | adb shell ip -f inet addr show wlan0 164 | • Displays your Phone's Wi-Fi IP Address. 165 | 166 | adb shell top 167 | • Displays top CPU Processes running on your Android Device. 168 | 169 | adb shell getprop ro.build.version.sdk 170 | • Used to get the Properties of your Android's build.prop Configuration. 171 | 172 | adb shell setprop net.dns1 1.2.3.4 173 | • Used to set Values to the Properties present in your Android's build.prop Configuration. 174 | 175 | 176 | 177 | ——————————————————————————————————————————————————————————————————————— 178 | Fastboot Commands: 179 | ——————————————————————————————————————————————————————————————————————— 180 | 181 | fastboot devices 182 | • List all the Android Devices that are connected in Fastboot Mode to your Computer. 183 | 184 | fastboot oem unlock 185 | • Unlocks the Bootloader on your Android Device (if the OEM allows). 186 | 187 | fastboot oem lock 188 | • Relocks the Bootloader on your Android Device. 189 | 190 | fastboot reboot bootloader 191 | • Reboots your Device into Fastboot/Bootloader Mode. 192 | 193 | fastboot flash 194 | • Used to flash Files on your Android Device. 195 | 196 | fastboot flash boot filename.img 197 | • Flashes boot Image on your Android Device's Boot Partition. 198 | 199 | fastboot flash recovery filename.img 200 | • Flashes Recovery Image on your Android Device's Recovery Partition. 201 | 202 | fastboot boot filename.img 203 | • Instead of flashing the File, this Command simply boots it (if the File is bootable). 204 | -------------------------------------------------------------------------------- /Desktop.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/K3V1991/ADB-and-FastbootPlusPlus/8bb618b93811823a45c4a5311c8908bb8b66265e/Desktop.ico -------------------------------------------------------------------------------- /DevAndUSB.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/K3V1991/ADB-and-FastbootPlusPlus/8bb618b93811823a45c4a5311c8908bb8b66265e/DevAndUSB.ico -------------------------------------------------------------------------------- /DevAndUSB.txt: -------------------------------------------------------------------------------- 1 | Before you can make use of ADB and Fastboot Commands, you’ll have to enable Developer Options & USB Debugging on your Android Device. 2 | 3 | Requirements: 4 | • USB Driver for your Device or Universal Adb Driver (https://androidfilehost.com/?fid=2188818919693784734) 5 | 6 | How-To enable Developer Options & USB Debugging: 7 | 01. Install the USB Driver for your Phone or Universal Adb Driver. 8 | 02. On your Phone, go to Settings > About Phone. Find the Build Number and tap on it 7 times to enable Developer Options. 9 | 03. Now enter System > Developer Options and find "USB debugging" and enable it. 10 | 04. Plug your Phone into the Computer and change it from "Charge only" to "File Transfer" Mode. 11 | 05. On your Computer, browse to the directory where you extracted the Portable Version or use Tiny ADB & Fastboot Shortcut. 12 | 07. Launch a Command Prompt with Open CMD.bat or use Tiny ADB & Fastboot Shortcut. 13 | 09. Once you’re in the Command Prompt, enter the following Command: adb devices 14 | 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.). 15 | 11. Succesful enabled USB Debugging. 16 | 17 | 18 | Unable to connect to ADB: 19 | 01. AMD Bug? (https://forum.xda-developers.com/t/fix-fastboot-issues-on-ryzen-based-pcs.4186321/) 20 | 02. Switch Device from "Charging" to "File Transfer" Mode 21 | 03. Install the latest Device Driver or Universal USB Driver 22 | 04. Try another USB Cable 23 | 05. Use another USB Port (USB 3.0 Port to USB 2.0) 24 | 06. Try to execute Fastboot Command without connecting your Phone, and once it says "waiting for device" plug in your USB Cable 25 | 07. 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. 26 | 08. Try another PC -------------------------------------------------------------------------------- /Download_From_Releases_Tab (∩_∩).txt: -------------------------------------------------------------------------------- 1 | https://github.com/K3V1991/ADB-and-FastbootPlusPlus/releases -------------------------------------------------------------------------------- /OpenCMD.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | title ADB and Fastboot++ 3 | color 0a 4 | cmd.exe -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 |

ADB & Fastboot++

3 |

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

4 |
5 | 6 |

7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |

16 |
17 |
18 | 19 | ## NFO: 20 | * Versions: Installer & Portable 21 | * Android Debug Bridge & Fastboot updated to latest v1.0.41 (Version 35.0.1-11580240, March 2024) 22 | 23 | ## Requirements: 24 | * Windows OS 25 | * USB Driver for your Device or Universal ADB Driver (Included in the Installer) 26 | * PowerShell for the Toolkit 27 | 28 | ## Features: 29 | * Installation Folder chooseable (Installer) 30 | * Desktop & Start Menu Shortcuts (Installer) 31 | * Toolkit 32 | * View Commands, How-To enable Developer Options & USB Debugging 33 | * Add to System Path Environment (Installer) 34 | * Optional Universal ADB Driver Installation (Installer) 35 | 36 | ## Toolkit Features: 37 | * Uninstall Bloatware without Root Access (They are just being uninstalled for the current User) 38 | * Re-install uninstalled Apps 39 | * Install Kernel (Reboots automatically to Bootloader, Popup Menu) 40 | * Install Recovery (Reboots automatically to Bootloader, Popup Menu) 41 | * Install APKs (Popup Menu) 42 | * Install APK Bundles/Split APKs (Installer: Desktop/ABI Folder, Portable: ABI Folder) 43 | * Push Files (Popup Menu) 44 | * Check Firmware Version 45 | * Check Android Version 46 | * Check Kernel Version 47 | * Check Firmware Build Date 48 | * Check Kernel Build Date 49 | * Check Security Patch Date 50 | * Check IMEI 51 | * Check IP Adresses 52 | * Check App Packages 53 | * Check Process Activity (Real Time) 54 | * Take Screenshots (PNG Format) 55 | * Video recoding - 30, 60, 120 & 180 Seconds (Without Device Sound) 56 | * Reboot the Device 57 | * Reboot to Bootloader 58 | * Exit Bootloader to System 59 | * Reboot to Recovery 60 | * Create Bugreport (Saves on Desktop) 61 | * Create Logcat (Saves on Desktop) 62 | * Exit (adb kill-server & close Toolkit) 63 |
64 | 65 | ## Installer: 66 | 1. Download ADB-and-Fastboot++_vXXX.msi 67 | 2. Follow the Installers Instructions and select where you would like to install ADB & Fastboot++ 68 | 3. After the Installation Wizard has completed you can select to start ADB & Fastboot++ 69 | 4. You should see a Command Window open, now you can use ADB and Fastboot Commands 70 | 71 | ## Portable: 72 | 1. Download ADB-and-Fastboot++_vXXX-Portable.zip 73 | 2. Extract the Zip Archive 74 | 3. Double click on Open CMD.bat 75 | 4. You should see a Command Window open, now you can use ADB and Fastboot Commands 76 |
77 |
78 | 79 | ## Enable Developer Options & USB Debugging: 80 |
81 | Click to expand 82 | 83 | 1. Install the USB Driver for your Device or Universal Adb Driver 84 | 2. On your Device, go to Settings > About. Find the Build Number and tap on it 7 times to enable Developer Options 85 | 3. Now enter System > Developer Options and find "USB debugging" and enable it 86 | 4. Plug your Device into the Computer and change it from "Charge only" to "File Transfer" Mode 87 | 5. On your Computer, browse to the Directory where you extracted the Portable Version or use Tiny ADB & Fastboot++ Shortcut 88 | 6. Launch a Command Prompt with Open CMD.bat or use Tiny ADB & Fastboot++ Shortcut 89 | 7. Once you’re in the Command Prompt, enter the following Command: 90 | ``` 91 | adb devices 92 | ``` 93 | 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.) 94 | 9. Succesful enabled USB Debugging 95 |
96 | 97 | ## Unable to connect to ADB: 98 |
99 | Click to expand 100 | 101 | 1. AMD Bug - [XDA Thread](https://forum.xda-developers.com/t/fix-fastboot-issues-on-ryzen-based-pcs.4186321/) 102 | 2. Switch Device from "Charging" to "File Transfer" Mode 103 | 3. Install the latest Device Driver or Universal USB Driver 104 | 4. Try another USB Cable 105 | 5. Use another USB Port (USB 3.0 Port to USB 2.0) 106 | 6. Try to execute Fastboot Command without connecting your Device, and once it says "waiting for device" plug in your USB Cable 107 | 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 108 | 8. Try another PC 109 |
110 |
111 | 112 | ## Screenshots: 113 | 114 |
115 |
116 | 117 | 118 |
119 |
120 | 121 | 122 |
123 |
124 | 125 | 126 |
127 |
128 | 129 | 130 |
131 |
132 | 133 | 134 |
135 |
136 | 137 | 138 |
139 |
140 | 141 | 142 | -------------------------------------------------------------------------------- /Screenshots/ADB-and-Fastboot++.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/K3V1991/ADB-and-FastbootPlusPlus/8bb618b93811823a45c4a5311c8908bb8b66265e/Screenshots/ADB-and-Fastboot++.png -------------------------------------------------------------------------------- /Screenshots/Completing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/K3V1991/ADB-and-FastbootPlusPlus/8bb618b93811823a45c4a5311c8908bb8b66265e/Screenshots/Completing.png -------------------------------------------------------------------------------- /Screenshots/Information.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/K3V1991/ADB-and-FastbootPlusPlus/8bb618b93811823a45c4a5311c8908bb8b66265e/Screenshots/Information.png -------------------------------------------------------------------------------- /Screenshots/License.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/K3V1991/ADB-and-FastbootPlusPlus/8bb618b93811823a45c4a5311c8908bb8b66265e/Screenshots/License.png -------------------------------------------------------------------------------- /Screenshots/Shortcuts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/K3V1991/ADB-and-FastbootPlusPlus/8bb618b93811823a45c4a5311c8908bb8b66265e/Screenshots/Shortcuts.png -------------------------------------------------------------------------------- /Screenshots/Tasks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/K3V1991/ADB-and-FastbootPlusPlus/8bb618b93811823a45c4a5311c8908bb8b66265e/Screenshots/Tasks.png -------------------------------------------------------------------------------- /Screenshots/Toolkit-Main.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/K3V1991/ADB-and-FastbootPlusPlus/8bb618b93811823a45c4a5311c8908bb8b66265e/Screenshots/Toolkit-Main.png -------------------------------------------------------------------------------- /Screenshots/Toolkit-Menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/K3V1991/ADB-and-FastbootPlusPlus/8bb618b93811823a45c4a5311c8908bb8b66265e/Screenshots/Toolkit-Menu.png -------------------------------------------------------------------------------- /Toolkit - Installer.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | title Toolkit v1.5 3 | color 0a 4 | chcp 65001 >nul 2>&1 5 | echo ╔════════════════════════════════════════════════════════════════════════╗ 6 | echo ║ ║ 7 | echo ║ ║ 8 | echo ║ ████████╗ ██████╗ ██████╗ ██╗ ██╗ ██╗██╗████████╗ ║ 9 | echo ║ ╚══██╔══╝██╔═══██╗██╔═══██╗██║ ██║ ██╔╝██║╚══██╔══╝ ║ 10 | echo ║ ██║ ██║ ██║██║ ██║██║ █████╔╝ ██║ ██║ ║ 11 | echo ║ ██║ ██║ ██║██║ ██║██║ ██╔═██╗ ██║ ██║ ║ 12 | echo ║ ██║ ╚██████╔╝╚██████╔╝███████╗██║ ██╗██║ ██║ ║ 13 | echo ║ ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ║ 14 | echo ║ ║ 15 | echo ╚════════════════════════════════════════════════════════════════════════╝ 16 | echo. 17 | echo. 18 | echo ╔════════════════════════════════════════════════════════════════════════╗ 19 | echo ║ Starting ADB Connection... ║ 20 | echo ╚════════════════════════════════════════════════════════════════════════╝ 21 | adb kill-server 22 | adb start-server 23 | echo. 24 | echo. 25 | echo ╔════════════════════════════════════════════════════════════════════════╗ 26 | echo ║ Checking connected Device(s)... ║ 27 | echo ╚════════════════════════════════════════════════════════════════════════╝ 28 | adb devices > %temp%/devices.txt 29 | if "%1"=="-v" ( 30 | type devices.txt 31 | ) 32 | pushd %temp% 33 | findstr /c:"device" devices.txt | find /c /v "" > %temp%/connected.txt 34 | set /p devicecount="%temp%\c.cs" echo using System;using System.Windows.Forms; 3009 | >>"%temp%\c.cs" echo class dummy{ 3010 | >>"%temp%\c.cs" echo public static void Main^(^){ 3011 | >>"%temp%\c.cs" echo OpenFileDialog f=new OpenFileDialog^(^); 3012 | >>"%temp%\c.cs" echo f.InitialDirectory=Environment.CurrentDirectory; 3013 | >>"%temp%\c.cs" echo f.Filter="App (*.apk)|*.apk"; 3014 | >>"%temp%\c.cs" echo f.ShowHelp=true; 3015 | >>"%temp%\c.cs" echo f.ShowDialog^(^); 3016 | >>"%temp%\c.cs" echo Console.Write^(f.FileName^);}} 3017 | for /f "delims=" %%I in ('dir /b /s "%windir%\microsoft.net\*csc.exe"') do ( 3018 | if not exist "!chooser!" "%%I" /nologo /out:"!chooser!" "%temp%\c.cs" 2>NUL 3019 | ) 3020 | del "%temp%\c.cs" 3021 | ) 3022 | 3023 | :: Capture choice to a variable 3024 | for /f "delims=" %%I in ('%chooser%') do set "filename=%%I" 3025 | echo. 3026 | echo. 3027 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3028 | echo ║ Installing App now... ║ 3029 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3030 | adb install "%filename%" 3031 | 3032 | :: Clean up 3033 | del "%temp%\chooser.exe" 2>NUL 3034 | echo. 3035 | pause 3036 | goto ins: 3037 | 3038 | :abi 3039 | cls 3040 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3041 | echo ║ APK Bundle Installer ║ 3042 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3043 | set "reply=y" 3044 | set /p "reply=Install APKs from ABI Folder (Y/N)?: " 3045 | if /i not "%reply%" == "y" goto :ins 3046 | setlocal enabledelayedexpansion 3047 | set SCRIPT_PATH=%~dps0 3048 | set TARGET_PATH=/data/local/tmp/ 3049 | adb shell mkdir -p %TARGET_PATH% 3050 | cd ABI 3051 | set TOTAL_APK_SIZE_BYTES=0 3052 | for %%A IN (*.apk) DO ( 3053 | set /A "TOTAL_APK_SIZE_BYTES+=%%~zA" 3054 | ) 3055 | echo. 3056 | echo. 3057 | echo ══════════════════════════════════════════════════════════════════════════ 3058 | echo Total APK Size Bytes=[%TOTAL_APK_SIZE_BYTES%] 3059 | set PM_SESSION= 3060 | for /F "tokens=2 delims=[]" %%A IN ('%SCRIPT_PATH%adb shell pm install-create -S %TOTAL_APK_SIZE_BYTES%') DO SET PM_SESSION=%%A 3061 | echo PM Session=[%PM_SESSION%] 3062 | echo ══════════════════════════════════════════════════════════════════════════ 3063 | echo. 3064 | echo. 3065 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3066 | echo ║ Installing App... ║ 3067 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3068 | set APK_INDEX=0 3069 | for %%A IN (*.apk) DO ( 3070 | set APK_SIZE=%%~zA 3071 | echo APK: idx=!APK_INDEX!, size=!APK_SIZE! 3072 | %SCRIPT_PATH%adb shell pm install-write -S !APK_SIZE! %PM_SESSION% !APK_INDEX! %TARGET_PATH%%%A 3073 | set /A "APK_INDEX+=1" 3074 | ) 3075 | adb shell pm install-commit %PM_SESSION% 3076 | echo. 3077 | echo. 3078 | pause 3079 | goto ins: 3080 | 3081 | :insb 3082 | cls 3083 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3084 | echo ║ Device reboots to Bootloader, please wait... ║ 3085 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3086 | adb reboot bootloader 3087 | echo. 3088 | echo. 3089 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3090 | echo ║ Select the Kernel you want to install from the Popup ║ 3091 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3092 | adb start-server 3093 | timeout /t 10 3094 | setlocal enabledelayedexpansion 3095 | :: Does powershell.exe exist within %PATH%? 3096 | for %%I in (`powershell.exe`) do if "%%~$PATH:I" neq "" ( 3097 | set chooser=powershell "Add-Type -AssemblyName System.windows.forms|Out-Null;$f=New-Object System.Windows.Forms.OpenFileDialog;$f.InitialDirectory='%cd%';$f.Filter='All Files (*.*)|*.*';$f.showHelp=$true;$f.ShowDialog()|Out-Null;$f.FileName" 3098 | ) else ( 3099 | rem :: If not, compose and link C# application to open file browser dialog 3100 | set chooser=%temp%\chooser.exe 3101 | >"%temp%\c.cs" echo using System;using System.Windows.Forms; 3102 | >>"%temp%\c.cs" echo class dummy{ 3103 | >>"%temp%\c.cs" echo public static void Main^(^){ 3104 | >>"%temp%\c.cs" echo OpenFileDialog f=new OpenFileDialog^(^); 3105 | >>"%temp%\c.cs" echo f.InitialDirectory=Environment.CurrentDirectory; 3106 | >>"%temp%\c.cs" echo f.Filter="Image (*.img)|*.img"; 3107 | >>"%temp%\c.cs" echo f.ShowHelp=true; 3108 | >>"%temp%\c.cs" echo f.ShowDialog^(^); 3109 | >>"%temp%\c.cs" echo Console.Write^(f.FileName^);}} 3110 | for /f "delims=" %%I in ('dir /b /s "%windir%\microsoft.net\*csc.exe"') do ( 3111 | if not exist "!chooser!" "%%I" /nologo /out:"!chooser!" "%temp%\c.cs" 2>NUL 3112 | ) 3113 | del "%temp%\c.cs" 3114 | ) 3115 | 3116 | :: Capture choice to a variable 3117 | for /f "delims=" %%I in ('%chooser%') do set "filename=%%I" 3118 | echo. 3119 | echo. 3120 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3121 | echo ║ Installing Kernel now... ║ 3122 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3123 | fastboot flash boot "%filename%" 3124 | echo. 3125 | echo. 3126 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3127 | echo ║ Press a Button to restart Device... ║ 3128 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3129 | pause 3130 | fastboot reboot 3131 | :: Clean up 3132 | del "%temp%\chooser.exe" 2>NUL 3133 | echo. 3134 | pause 3135 | goto ins: 3136 | 3137 | :insr 3138 | cls 3139 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3140 | echo ║ Device reboots to Bootloader, please wait... ║ 3141 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3142 | adb reboot bootloader 3143 | echo. 3144 | echo. 3145 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3146 | echo ║ Select the Recovery you want to install from the Popup ║ 3147 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3148 | adb start-server 3149 | timeout /t 10 3150 | setlocal enabledelayedexpansion 3151 | :: Does powershell.exe exist within %PATH%? 3152 | for %%I in (`powershell.exe`) do if "%%~$PATH:I" neq "" ( 3153 | set chooser=powershell "Add-Type -AssemblyName System.windows.forms|Out-Null;$f=New-Object System.Windows.Forms.OpenFileDialog;$f.InitialDirectory='%cd%';$f.Filter='All Files (*.*)|*.*';$f.showHelp=$true;$f.ShowDialog()|Out-Null;$f.FileName" 3154 | ) else ( 3155 | rem :: If not, compose and link C# application to open file browser dialog 3156 | set chooser=%temp%\chooser.exe 3157 | >"%temp%\c.cs" echo using System;using System.Windows.Forms; 3158 | >>"%temp%\c.cs" echo class dummy{ 3159 | >>"%temp%\c.cs" echo public static void Main^(^){ 3160 | >>"%temp%\c.cs" echo OpenFileDialog f=new OpenFileDialog^(^); 3161 | >>"%temp%\c.cs" echo f.InitialDirectory=Environment.CurrentDirectory; 3162 | >>"%temp%\c.cs" echo f.Filter="Image (*.img)|*.img"; 3163 | >>"%temp%\c.cs" echo f.ShowHelp=true; 3164 | >>"%temp%\c.cs" echo f.ShowDialog^(^); 3165 | >>"%temp%\c.cs" echo Console.Write^(f.FileName^);}} 3166 | for /f "delims=" %%I in ('dir /b /s "%windir%\microsoft.net\*csc.exe"') do ( 3167 | if not exist "!chooser!" "%%I" /nologo /out:"!chooser!" "%temp%\c.cs" 2>NUL 3168 | ) 3169 | del "%temp%\c.cs" 3170 | ) 3171 | 3172 | :: Capture choice to a variable 3173 | for /f "delims=" %%I in ('%chooser%') do set "filename=%%I" 3174 | echo. 3175 | echo. 3176 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3177 | echo ║ Installing Recovery now... ║ 3178 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3179 | fastboot flash recovery "%filename%" 3180 | echo. 3181 | echo. 3182 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3183 | echo ║ Press a Button to restart Device... ║ 3184 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3185 | pause 3186 | fastboot reboot 3187 | :: Clean up 3188 | del "%temp%\chooser.exe" 2>NUL 3189 | echo. 3190 | pause 3191 | goto ins: 3192 | 3193 | :psh 3194 | cls 3195 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3196 | echo ║ Select a File you want to push from the Popup ║ 3197 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3198 | setlocal enabledelayedexpansion 3199 | :: Does powershell.exe exist within %PATH%? 3200 | for %%I in (`powershell.exe`) do if "%%~$PATH:I" neq "" ( 3201 | set chooser=powershell "Add-Type -AssemblyName System.windows.forms|Out-Null;$f=New-Object System.Windows.Forms.OpenFileDialog;$f.InitialDirectory='%cd%';$f.Filter='All Files (*.*)|*.*';$f.showHelp=$true;$f.ShowDialog()|Out-Null;$f.FileName" 3202 | ) else ( 3203 | rem :: If not, compose and link C# application to open file browser dialog 3204 | set chooser=%temp%\chooser.exe 3205 | >"%temp%\c.cs" echo using System;using System.Windows.Forms; 3206 | >>"%temp%\c.cs" echo class dummy{ 3207 | >>"%temp%\c.cs" echo public static void Main^(^){ 3208 | >>"%temp%\c.cs" echo OpenFileDialog f=new OpenFileDialog^(^); 3209 | >>"%temp%\c.cs" echo f.InitialDirectory=Environment.CurrentDirectory; 3210 | >>"%temp%\c.cs" echo f.Filter="All Files (*.*)|*.*"; 3211 | >>"%temp%\c.cs" echo f.ShowHelp=true; 3212 | >>"%temp%\c.cs" echo f.ShowDialog^(^); 3213 | >>"%temp%\c.cs" echo Console.Write^(f.FileName^);}} 3214 | for /f "delims=" %%I in ('dir /b /s "%windir%\microsoft.net\*csc.exe"') do ( 3215 | if not exist "!chooser!" "%%I" /nologo /out:"!chooser!" "%temp%\c.cs" 2>NUL 3216 | ) 3217 | del "%temp%\c.cs" 3218 | ) 3219 | 3220 | :: Capture choice to a variable 3221 | for /f "delims=" %%I in ('%chooser%') do set "filename=%%I" 3222 | echo. 3223 | echo. 3224 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3225 | echo ║ Pushing File now... ║ 3226 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3227 | adb push "%filename%" /sdcard/ 3228 | :: Clean up 3229 | del "%temp%\chooser.exe" 2>NUL 3230 | echo. 3231 | pause 3232 | goto ins: 3233 | 3234 | :chk 3235 | color 0e 3236 | cls 3237 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3238 | echo ║ Check Versions, Build Dates, IMEI, IP, Packages and Processes ║ 3239 | echo ║════════════════════════════════════════════════════════════════════════║ 3240 | echo ║ 1 = Firmware Version ║ 3241 | echo ║ 2 = Android Version ║ 3242 | echo ║ 3 = Kernel Version ║ 3243 | echo ║ 4 = Firmware Build Date ║ 3244 | echo ║ 5 = Kernel Build Date ║ 3245 | echo ║ 6 = Security Patch Date ║ 3246 | echo ║ 7 = IMEI ║ 3247 | echo ║ 8 = IP Adresses ║ 3248 | echo ║ 9 = App Packages ║ 3249 | echo ║ 10 = Process Activity (Real Time) ║ 3250 | echo ║————————————————————————————————————————————————————————————————————————║ 3251 | echo ║ 11 = Back to the Main Selection ║ 3252 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3253 | SET /P menunr9=Make your Choice: 3254 | 3255 | IF %menunr9%==1 (goto cfw) 3256 | IF %menunr9%==2 (goto candr) 3257 | IF %menunr9%==3 (goto ckv) 3258 | IF %menunr9%==4 (goto cfbd) 3259 | IF %menunr9%==5 (goto ckbd) 3260 | IF %menunr9%==6 (goto cspd) 3261 | IF %menunr9%==7 (goto cimei) 3262 | IF %menunr9%==8 (goto cipa) 3263 | IF %menunr9%==9 (goto cawp) 3264 | IF %menunr9%==10 (goto cpcs) 3265 | IF %menunr9%==11 (goto menu) 3266 | goto chk: 3267 | 3268 | :cfw 3269 | cls 3270 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3271 | echo ║ Show Firmware Version... ║ 3272 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3273 | adb shell getprop ro.build.id 3274 | echo. 3275 | pause 3276 | goto chk: 3277 | 3278 | :candr 3279 | cls 3280 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3281 | echo ║ Show Android Version... ║ 3282 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3283 | adb shell getprop ro.build.version.release 3284 | echo. 3285 | pause 3286 | goto chk: 3287 | 3288 | :ckv 3289 | cls 3290 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3291 | echo ║ Show Kernel Version... ║ 3292 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3293 | adb shell cat /proc/version 3294 | echo. 3295 | pause 3296 | goto chk: 3297 | 3298 | :cfbd 3299 | cls 3300 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3301 | echo ║ Show Firmware Build Date... ║ 3302 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3303 | adb shell getprop ro.build.date 3304 | echo. 3305 | pause 3306 | goto chk: 3307 | 3308 | :ckbd 3309 | cls 3310 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3311 | echo ║ Show Kernel Build Date... ║ 3312 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3313 | adb shell getprop ro.bootimage.build.date 3314 | echo. 3315 | pause 3316 | goto chk: 3317 | 3318 | :cspd 3319 | cls 3320 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3321 | echo ║ Show Security Patch Date... ║ 3322 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3323 | adb shell getprop ro.build.version.security_patch 3324 | echo. 3325 | pause 3326 | goto chk: 3327 | 3328 | :cimei 3329 | cls 3330 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3331 | echo ║ Show IMEI... ║ 3332 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3333 | adb shell "service call iphonesubinfo 1 | toybox cut -d \"'\" -f2 | toybox grep -Eo '[0-9]' | toybox xargs | toybox sed 's/\ //g'" 3334 | echo. 3335 | pause 3336 | goto chk: 3337 | 3338 | :cipa 3339 | cls 3340 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3341 | echo ║ Show IP Adresses... ║ 3342 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3343 | adb shell ifconfig wlan0 3344 | echo. 3345 | pause 3346 | goto chk: 3347 | 3348 | :cawp 3349 | cls 3350 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3351 | echo ║ Show App Packages... ║ 3352 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3353 | adb shell pm list packages 3354 | echo. 3355 | pause 3356 | goto chk: 3357 | 3358 | :cpcs 3359 | cls 3360 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3361 | echo ║ Show Process Activity... ║ 3362 | echo ║————————————————————————————————————————————————————————————————————————║ 3363 | echo ║ Press Q + Enter to stop ║ 3364 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3365 | echo. 3366 | pause 3367 | adb shell top 3368 | goto chk: 3369 | 3370 | :scrr 3371 | color 0e 3372 | cls 3373 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3374 | echo ║ Screenshots and Video recoding ║ 3375 | echo ║════════════════════════════════════════════════════════════════════════║ 3376 | echo ║ 1 = Screenshot (PNG) ║ 3377 | echo ║ 2 = Record Video - 30 Seconds (Without Device Sound) ║ 3378 | echo ║ 3 = Record Video - 60 Seconds (Without Device Sound) ║ 3379 | echo ║ 4 = Record Video - 120 Seconds (Without Device Sound) ║ 3380 | echo ║ 5 = Record Video - 180 Seconds (Without Device Sound) ║ 3381 | echo ║————————————————————————————————————————————————————————————————————————║ 3382 | echo ║ 6 = Back to the Main Selection ║ 3383 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3384 | SET /P menunr10=Make your Choice: 3385 | 3386 | IF %menunr10%==1 (goto scrs) 3387 | IF %menunr10%==2 (goto scrv30) 3388 | IF %menunr10%==3 (goto scrv60) 3389 | IF %menunr10%==4 (goto scrv120) 3390 | IF %menunr10%==5 (goto scrv180) 3391 | IF %menunr10%==6 (goto menu) 3392 | goto scrr: 3393 | 3394 | :scrs 3395 | cls 3396 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3397 | echo ║ Take a Screenshot... ║ 3398 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3399 | adb exec-out screencap -p > %userprofile%/Desktop/Screenshot.png 3400 | echo. 3401 | pause 3402 | goto scrr: 3403 | 3404 | :scrv30 3405 | cls 3406 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3407 | echo ║ Recording 30 Seconds now... ║ 3408 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3409 | adb shell screenrecord --time-limit=30 /sdcard/Screenrecording-30.mp4 3410 | adb pull /sdcard/Screenrecording-30.mp4 %userprofile%/Desktop/Screenrecording-30.mp4 3411 | adb shell rm sdcard/Screenrecording-30.mp4 3412 | echo. 3413 | pause 3414 | goto scrr: 3415 | 3416 | :scrv60 3417 | cls 3418 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3419 | echo ║ Recording 60 Seconds now... ║ 3420 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3421 | adb shell screenrecord --time-limit=60 /sdcard/Screenrecording-60.mp4 3422 | adb pull /sdcard/Screenrecording-60.mp4 %userprofile%/Desktop/Screenrecording-60.mp4 3423 | adb shell rm sdcard/Screenrecording-60.mp4 3424 | echo. 3425 | pause 3426 | goto scrr: 3427 | 3428 | :scrv120 3429 | cls 3430 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3431 | echo ║ Recording 120 Seconds now... ║ 3432 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3433 | adb shell screenrecord --time-limit=120 /sdcard/Screenrecording-120.mp4 3434 | adb pull /sdcard/Screenrecording-120.mp4 %userprofile%/Desktop/Screenrecording-120.mp4 3435 | adb shell rm sdcard/Screenrecording-120.mp4 3436 | echo. 3437 | pause 3438 | goto scrr: 3439 | 3440 | :scrv180 3441 | cls 3442 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3443 | echo ║ Recording 180 Seconds now... ║ 3444 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3445 | adb shell screenrecord --time-limit=180 /sdcard/Screenrecording-180.mp4 3446 | adb pull /sdcard/Screenrecording-180.mp4 %userprofile%/Desktop/Screenrecording-180.mp4 3447 | adb shell rm sdcard/Screenrecording-180.mp4 3448 | echo. 3449 | pause 3450 | goto scrr: 3451 | 3452 | :rbt 3453 | color 04 3454 | cls 3455 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3456 | echo ║ ║ 3457 | echo ║ Reboot, Reboot to X, Boot Kernel, Bugreport and Logcat ║ 3458 | echo ║ ║ 3459 | echo ║════════════════════════════════════════════════════════════════════════║ 3460 | echo ║ 1 = Reboot the Device ║ 3461 | echo ║ 2 = Reboot to Bootloader ║ 3462 | echo ║ 3 = Exit Bootloader to System ║ 3463 | echo ║ 4 = Reboot to Recovery ║ 3464 | echo ║ 5 = Boot Kernel ║ 3465 | echo ║ 6 = Create Bugreport ║ 3466 | echo ║ 7 = Create Logcat ║ 3467 | echo ║————————————————————————————————————————————————————————————————————————║ 3468 | echo ║ 8 = Back to the Main Selection ║ 3469 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3470 | SET /P menunr11=Make your Choice: 3471 | 3472 | IF %menunr11%==1 (goto rbot) 3473 | IF %menunr11%==2 (goto rbtb) 3474 | IF %menunr11%==3 (goto extb) 3475 | IF %menunr11%==4 (goto rbtr) 3476 | IF %menunr11%==5 (goto bobo) 3477 | IF %menunr11%==6 (goto bugr) 3478 | IF %menunr11%==7 (goto logc) 3479 | IF %menunr11%==8 (goto menu) 3480 | goto rbt 3481 | 3482 | :rbot 3483 | cls 3484 | color 0a 3485 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3486 | echo ║ Your Device will now restart... ║ 3487 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3488 | adb reboot 3489 | echo. 3490 | pause 3491 | goto rbt: 3492 | 3493 | :rbtb 3494 | cls 3495 | color 0a 3496 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3497 | echo ║ Your Device will now boot into Bootloader... ║ 3498 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3499 | adb reboot bootloader 3500 | echo. 3501 | pause 3502 | goto rbt: 3503 | 3504 | :extb 3505 | cls 3506 | color 0a 3507 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3508 | echo ║ Your Device will now boot into System... ║ 3509 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3510 | adb shell start-server 3511 | fastboot reboot 3512 | echo. 3513 | pause 3514 | goto rbt: 3515 | 3516 | :rbtr 3517 | cls 3518 | color 0a 3519 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3520 | echo ║ Your Device will now boot into Recovery... ║ 3521 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3522 | adb reboot recovery 3523 | echo. 3524 | pause 3525 | goto rbt: 3526 | 3527 | :bobo 3528 | cls 3529 | color 0a 3530 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3531 | echo ║ Your Device will now boot into Bootloader... ║ 3532 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3533 | adb reboot bootloader 3534 | echo. 3535 | echo. 3536 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3537 | echo ║ Select the Kernel you want to boot from the Popup ║ 3538 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3539 | adb start-server 3540 | timeout /t 10 3541 | setlocal enabledelayedexpansion 3542 | :: Does powershell.exe exist within %PATH%? 3543 | for %%I in (`powershell.exe`) do if "%%~$PATH:I" neq "" ( 3544 | set chooser=powershell "Add-Type -AssemblyName System.windows.forms|Out-Null;$f=New-Object System.Windows.Forms.OpenFileDialog;$f.InitialDirectory='%cd%';$f.Filter='All Files (*.*)|*.*';$f.showHelp=$true;$f.ShowDialog()|Out-Null;$f.FileName" 3545 | ) else ( 3546 | rem :: If not, compose and link C# application to open file browser dialog 3547 | set chooser=%temp%\chooser.exe 3548 | >"%temp%\c.cs" echo using System;using System.Windows.Forms; 3549 | >>"%temp%\c.cs" echo class dummy{ 3550 | >>"%temp%\c.cs" echo public static void Main^(^){ 3551 | >>"%temp%\c.cs" echo OpenFileDialog f=new OpenFileDialog^(^); 3552 | >>"%temp%\c.cs" echo f.InitialDirectory=Environment.CurrentDirectory; 3553 | >>"%temp%\c.cs" echo f.Filter="Image (*.img)|*.img"; 3554 | >>"%temp%\c.cs" echo f.ShowHelp=true; 3555 | >>"%temp%\c.cs" echo f.ShowDialog^(^); 3556 | >>"%temp%\c.cs" echo Console.Write^(f.FileName^);}} 3557 | for /f "delims=" %%I in ('dir /b /s "%windir%\microsoft.net\*csc.exe"') do ( 3558 | if not exist "!chooser!" "%%I" /nologo /out:"!chooser!" "%temp%\c.cs" 2>NUL 3559 | ) 3560 | del "%temp%\c.cs" 3561 | ) 3562 | 3563 | :: Capture choice to a variable 3564 | for /f "delims=" %%I in ('%chooser%') do set "filename=%%I" 3565 | echo. 3566 | echo. 3567 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3568 | echo ║ Booting Kernel now... ║ 3569 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3570 | fastboot boot "%filename%" 3571 | echo. 3572 | pause 3573 | goto rbt: 3574 | 3575 | :bugr 3576 | cls 3577 | color 0a 3578 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3579 | echo ║ Create Bugreport... ║ 3580 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3581 | adb bugreport %userprofile%/Desktop/ 3582 | echo. 3583 | pause 3584 | goto rbt: 3585 | 3586 | :logc 3587 | cls 3588 | color 0a 3589 | echo ╔════════════════════════════════════════════════════════════════════════╗ 3590 | echo ║ Create Logcat... ║ 3591 | echo ║————————————————————————————————————————————————————————————————————————║ 3592 | echo ║ Press CTRL + C to stop ║ 3593 | echo ╚════════════════════════════════════════════════════════════════════════╝ 3594 | adb shell logcat > %userprofile%/Desktop/Logcat.txt 3595 | echo. 3596 | pause 3597 | goto rbt: 3598 | 3599 | :ext 3600 | cls 3601 | adb kill-server 3602 | exit 3603 | -------------------------------------------------------------------------------- /Toolkit.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/K3V1991/ADB-and-FastbootPlusPlus/8bb618b93811823a45c4a5311c8908bb8b66265e/Toolkit.ico -------------------------------------------------------------------------------- /adb.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/K3V1991/ADB-and-FastbootPlusPlus/8bb618b93811823a45c4a5311c8908bb8b66265e/adb.exe -------------------------------------------------------------------------------- /fastboot.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/K3V1991/ADB-and-FastbootPlusPlus/8bb618b93811823a45c4a5311c8908bb8b66265e/fastboot.exe --------------------------------------------------------------------------------