[GUIDE]List all installed apps that don't allow adb backup - Android Software/Hacking General [Developers Only]

Some apps can't be backed up using adb backup. It is mainly because on its AndroidManifest.xml the flag android:allowBackup is either not set or set to "false". This tutorial will get you a list of apps that are currently installed on your device but will not be backed up, either using the official adb backup, LG Backup, Sony Backup and Restore, etc. (because they all use adb backup internally). So you can be cautious on advance and you are aware that the backup methods used officially have its flaws.
1) REQUIREMENTS
I will make the list of apps using a computer, so you need several things set up on the computer and the android phone.
1.1) SMARTPHONE REQUIREMENTS
-> USB Debugging enabled: How to enable USB Debugging on Android [Youtube]
1.2) COMPUTER REQUIREMENTS
-> aapt.exe and adb.exe installed. I recommend to install the Android Studio Bundle. The binaries will be installed in a path similar to this:
Code:
C:\Users\YourUser\AppData\Local\Android\sdk\build-tools\24.0.3\aapt.exe
Code:
C:\Users\YourUser\AppData\Local\Android\sdk\platform-tools\adb.exe
-> Add the paths of aapt.exe and adb.exe to your current PATH in Windows: How to Edit Your System PATH for Easy Command Line Access in Windows
-> Cygwin is mandatory to run bash commands on Windows. The x86 version is recommended because it has more commands than the 64bit version. This is where you will actually type the commands.
-> adb drivers for your smartphone. Windows 10 usually will install them flawlessly.
2) GETTING THE LIST OF APPS THAT DON'T ALLOW ADB BACKUP
2.2) CHECKING FOR SOFTWARE AND SMARTPHONE
Go into cygwin to a working directory to store there your temporary files:
Code:
cd /cygdrive/c/Temp/
Check with Cygwin that you PATH is currently set and that adb.exe and aapt.exe are usable:
Code:
which adb
/cygdrive/c/Users/Admin/AppData/Local/Android/sdk/platform-tools/adb
which aapt
/cygdrive/c/Users/Admin/AppData/Local/Android/sdk/build-tools/24.0.3/aapt
Now connect your android smartphone to the computer with the screen unlocked, accept any data connection (use MTP method if asked or from notifications panel), authorize the computer and run on Cygwin:
Code:
adb devices
List of devices attached
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
LGH815b4b2c42e unauthorized
adb devices
List of devices attached
LGH815b4b2c42e device
2.3) GETTING THE LIST OF ALL APPS ON THE DEVICE
On this step, a list of all apps on the smartphone, will be saved to a file called all_packages.txt in the format of package name. That string that appears at the end of the url when you browse an app on the Play Store.
Code:
adb shell pm list packages | grep -v '^$' > all_packages.txt
UNDER CONSTRUCTION. WILL REPLY WHEN FINISHED. SUBSCRIBE IF YOU ARE INSTERESTED

It looks like somebody released an application for that and works great:
No ADB backup app lister

Related

[TUTORIAL/HOW TO] Basics of ADB

Feel free to contribute - Creating this at toast's request
Will do my best to update this with everybody's experience and knowledge to help out the new comers. Welcome to the world of Android!!
Definition of ADB - http://developer.android.com/guide/developing/tools/adb.html
1. Install Drivers
Win 7 drivers - http://depositfiles.com/en/files/yd61xorii - thanks shep211.
Win 7 64bit, Vista and XP - Confirmed works with HTC Sync - thanks to crackerstyle OR use HTC Sync.exe from the stock MicroSD card shipped with the phone. Myn also used these drivers - http://member.america.htc.com/download/Driver/HTC EVO (Sprint)/HTC_Sync_2.0.40.exe
Mac OS X drivers -
Linux drivers -
2. Install ADB (part of Android SDK)
Google's Main page - on the Android SDK which contains the adb binary inside the tools folder - http://developer.android.com/sdk/index.html
Windows Specific Android SDK installer (contains ADB binary inside tools folder) - http://developer.android.com/sdk/download.html?v=android-sdk_r06-windows.zip
Linux Specific Android SDK installer (contains ADB binary inside tools folder) - http://developer.android.com/sdk/download.html?v=android-sdk_r06-linux_86.tgz
Mac Specific Android SDK installer (contains ADB binary inside tools folder) - http://developer.android.com/sdk/download.html?v=android-sdk_r06-mac_86.zip
3. Enabling ADB support on EVO
If using completely stock EVO, adb will be disabled in recovery and can't be enabled.
If using the PC36IMG.zip (userdebug RUU) automatically turns on adb in recovery mode.
If in normal android mode, adb can be enabled by Settings->Applications->USB Debugging.
4. Running (Executing) ADB on Host computer
Windows - start->run->cmd . Navigate to the extracted the Android SDK folder and into the subfolder called tools.
cd c:\android-sdk\tools\
Now simply execute the commands in Step 5 and 6.
5. Learn basic ADB commands
adb push - sends a file to the phone over ADB thru USB - adb push c:\test.apk /sdcard/test.apk
adb pull - receives a file from the phone over ADB thru USB - adb pull /system/app/Test.apk c:\Test.apk
adb shell - starts a shell connection with the phone
adb reboot - restarts the phone
adb reboot recovery - restarts the phone into recovery
adb reboot bootloader - restarts the phone into the bootloader (white screen)
adb remount - remounts the file system
adb install <path to .apk file> - installs an application - adb install c:\swype.apk
adb uninstall <package name> - uninstalls an application - package name is usually in the format, com.android.browser
6. Learn basic Linux commands to run through ADB shell
cd - changes directories - works through stock android toolbox - cd /system/app
ls - lists all files in the directory - works through stock android toolbox - ls /system/app/
cat - copies files - works through stock android toolbox - cat /system/app/Test.apk > /sdcard/Test.apk
rm - removes files - works through stock android toolbox - rm /system/app/Test.apk
mv - moves files from one location to another - works through stock android toolbox - mv /system/app/Test.apk /sdcard/Test.apk
cp - copies files - functions similar to cat - uses busybox installed by the EVO-recovery.zip into recovery mode - cp /system/app/Test.apk /sdcard/Test.apk
mount - loads the file system (usually auto loaded except sometimes in recovery) - mount /dev/block/mtdblock4 /system
unmount - unloads the file system - umount /system
joeykrim said:
Feel free to contribute - Creating this at toast's request
Will do my best to update this with everybody's experience and knowledge to help out the new comers. Welcome to the world of Android!!
1. Install Drivers
Win 7 drivers - http://depositfiles.com/en/files/yd61xorii - thanks shep211
2. Install ADB (part of Android SDK)
Google's Main page on the Android SDK which contains the adb binary inside the tools folder - http://developer.android.com/sdk/index.html
Windows Specific Android SDK installer (contains ADB) - http://developer.android.com/sdk/download.html?v=android-sdk_r06-windows.zip
Linux Specific Android SDK installer (contains ADB) - http://developer.android.com/sdk/download.html?v=android-sdk_r06-linux_86.tgz
Mac Specific Android SDK installer (contains ADB) - http://developer.android.com/sdk/download.html?v=android-sdk_r06-mac_86.zip
3. Learn basic ADB commands
adb shell - starts a shell connection with the phone
adb reboot - restarts the phone
adb remount - remounts the file system
4. Learn basic Linux commands to run through ADB shell
cat - works through stock android toolbox - copies files - cat /system/app/Test.apk > /sdcard/Test.apk
rm - works through stock android toolbox - removes files - rm /system/app/Test.apk
mv - works through stock android toolbox - moves a file from one location to another - mv /system/app/Test.apk /sdcard/Test.apk
cp - uses busybox installed by the EVO-recovery.zip into recovery mode - functions similar to cat - cp /system/app/Test.apk /sdcard/Test.apk
Click to expand...
Click to collapse
Thanks a ton joeykrim!!!!!!!!!!!!!!! Really helpful!!!!!!!
Yeah, super handy. I know enough linux to make my way around moving files and what not... but this saved me a few googles for download links and figuring out what adb was.
Danke danke.
how do you install the drivers?..it's just folders
jayv1717 said:
how do you install the drivers?..it's just folders
Click to expand...
Click to collapse
download file is blocked for me and i dont have win7 or the evo yet, so you'll have to help and hopefully others will chime in.
i would assume once you plug the phone in, it will prompt/ask for drivers, simply navigate to the folders from the download file.
jayv1717 said:
how do you install the drivers?..it's just folders
Click to expand...
Click to collapse
Just found this, read about halfway through the first post, under Installing Drivers
http://forum.xda-developers.com/showthread.php?t=532719
joeykrim said:
Feel free to contribute - Creating this at toast's request
Will do my best to update this with everybody's experience and knowledge to help out the new comers. Welcome to the world of Android!!
1. Install Drivers
Win 7 drivers - http://depositfiles.com/en/files/yd61xorii - thanks shep211
Win XP drivers -
Win Vista drivers -
Mac OS X drivers -
Linux drivers -
Click to expand...
Click to collapse
Aren't the drivers available through Android SDK. I know I just downloaded an usb_driver with the SDK Setup.
eddy g said:
Just found this, read about halfway through the first post, under Installing Drivers
http://forum.xda-developers.com/showthread.php?t=532719
Click to expand...
Click to collapse
That helped alot..thanks
finebrian224 said:
Aren't the drivers available through Android SDK. I know I just downloaded an usb_driver with the SDK Setup.
Click to expand...
Click to collapse
some drivers are.
did they work? what OS are you using?
For the record, I don't know about mac but I know linux doesnt need drivers.
forgot about ADB push?
dmc971989 said:
forgot about ADB push?
Click to expand...
Click to collapse
Also might want to add adb pull and install and devices. Also remember if it says it cannot find your device make sure usb debugging is set in Settings->Applications and type in adb kill-server and adb remount.
chuckhriczko said:
Also might want to add adb pull and install and devices. Also remember if it says it cannot find your device make sure usb debugging is set in Settings->Applications and type in adb kill-server and adb remount.
Click to expand...
Click to collapse
i was assuming push/pull went together... but i forgot about adb remount, good call
finebrian224 said:
Aren't the drivers available through Android SDK. I know I just downloaded an usb_driver with the SDK Setup.
Click to expand...
Click to collapse
No just fastboot drivers.
chuckhriczko said:
Also might want to add adb pull and install and devices. Also remember if it says it cannot find your device make sure usb debugging is set in Settings->Applications and type in adb kill-server and adb remount.
Click to expand...
Click to collapse
added path to enabling ADB from normal android mode.
dmc971989 said:
i was assuming push/pull went together... but i forgot about adb remount, good call
Click to expand...
Click to collapse
added adb push/pull and adb remount was already added.
thanks guys!
I just installed ADB USB driver, and I had to use the tip found below because the driver downloaded by the SDK setup didn't support the HTC EVO natively.
**couldn't post url so google "FYI EVO/Incredible ADB How-To - Android Developers | Google Groups" and open the first link **
forceOnature said:
I just installed ADB USB driver, and I had to use the tip found below because the driver downloaded by the SDK setup didn't support the HTC EVO natively.
**couldn't post url so google "FYI EVO/Incredible ADB How-To - Android Developers | Google Groups" and open the first link **
Click to expand...
Click to collapse
what version of windows are you using?
is this the correct link? http://groups.google.com/group/andr...4a2ddfef884?show_docid=649444a2ddfef884&pli=1
joeykrim said:
Feel free to contribute - Creating this at toast's request
Will do my best to update this with everybody's experience and knowledge to help out the new comers. Welcome to the world of Android!!
1. Install Drivers
Win 7 drivers - http://depositfiles.com/en/files/yd61xorii - thanks shep211
Win XP drivers -
Win Vista drivers -
Click to expand...
Click to collapse
anyone using a REAL version of windows (Win7 64bit) will need these drivers... pulled from the SDK autodownloader... was a ***** to find... prob need to disable sign enforcement... mine is. when asked which of the 3 to select press the first Android ADB Interface.
yea your welcome...
That file doesn't work for me :-(
It just says that it can't install the drivers when I try to update/reinstall driver for the device "ADB" in device manager. I have tried the drivers from the SDK, the set in the post from the OP and the one a couple posts above me. What gives?

quake 3 install help

Can someone please give me detailed instructions how to install quake 3 on the samsung captivate
You have to be able to sideload applications and/or install non market apps. There are multiple threads on how to do this, which typically also include rooting. Anyway I would
1. Root the phone
2. Install the Phones drivers on PC
3. Download Qwaak3 Arena for your device
4. Unpack the rar file to somewhere on your PC
5. Copy the quake3 folder to sdcard/ (this is the internal SD card NOT the external sdcard/sd)
6. Put your phone in Debug Mode (Settings > Applications > Development > USB debugging)
7. Fire up Droid Explorer and load the APK file (Tools > Manage Packages > Install Package)
I cant install it using a powermac.
I download the apk
I cant open on my mac
I tried to install the apk onto my sd card
The file is there but when i install it and try to open it the game force closes.
Im a noob so I figure Im doing something wrong. I have some experience with installing files like this onto mobiles but new to android. any ideas?
*EDIT: This is for vanilla kwaak3. Not the kwaak3 arena that was pasted in the Captivate Apps forum*
I just got it working on my Captivate. I'm using Win7 64 bit though. You do not need to root to install and play Kwaak3.
Download adb - I got it through the Android SDK (you would only need to install the tools, nothing else unless you were going to develop). Then use adb to install Kwaak3.
List devices:
Code:
adb devices
If you don't have any Android emulators running, it should be the only thing that shows up. It'll be a bunch of letters and numbers followed by the word "device".
Then use adb to install the kwaak3.apk file. The '-s' flag designates which device to use - if you have multiple Android devices plugged in or emulators running.
Code:
adb -s <put your device ID here. It's the string of letters and numbers from above without the brackets> install kwaak3.apk
Then use adb to push each individual .pk3 file onto the sdcard. Use pak0.pk3 from the quake3 demo or from your cd if you own it. Take pak1-pak8 from the Quake3 1.32 point release.
You have to do it individually for each .pk3, for example, pak0.pk3...
Code:
adb -s <device> push <full path to pak0.pk3 without brackets> /sdcard/quake3/baseq3/
Once all .pk3's are in that folder, you're good to go.
Hope that helps.
Link to Android SDK:
http://developer.android.com/sdk/index.html
Link to adb instructions for your reference:
http://developer.android.com/guide/developing/tools/adb.html

[GUIDE] MTP doesn't work for you on GNU/Linux? Use adb.

In this guide I will show you how to use adb to move files to or from your device. Especially helpful if your device has MTP and you can't get it to work with mtpfs on GNU/Linux.
What do you need?
Computer with GNU/Linux.
Connection to the Internet.
The 32bit adb binary or the 64bit adb binary, they are added as attachment to this post. (1)
An Android phone with USB debugging on.
Steps:
Connect your phone with a USB cable to your computer. Make sure you have USB debugging on! (2) Put the adb binary in a folder where you can open a terminal. With the terminal open type:
Code:
./adb devices
Make sure it says something like this:
Code:
List of devices attached
XXXXXXXXXXXXXdevice
Now you know you properly connected your device type:
Code:
./adb pull /sdcard/
or
Code:
./adb push /sdcard/
More info on adb commands you can find here:
http://developer.android.com/tools/help/adb.html
(1): If you are using the Debian or Ubuntu distro (or another wich allows you to install *.deb files) you can install the 32- or 64 bit adb packages and use adb from every folder. Download them from the attachments. If you use this type adb instead of ./adb.
(2): Don't know how to turn on USB debugging? Go to settings, scroll down to the About phone menu item. Tap it and scroll down again to Build number and tap it many times! Then go to settings, and tap developer options and find the USB debugging option.
I hope this was helpful, but I think not, because I get no replies...
AW: [GUIDE] MTP doesn't work for you on GNU/Linux? Use adb.
http://www.webupd8.org/2012/12/how-to-mount-android-40-ubuntu-go-mtpfs.html
I usually use sftp to transfer files. No cable and shell access included.
Sent from my GT-I9100 using xda app-developers app
If you want to copy lots of files, like your music collection or movies, wireless is not fast enough. That's why I use adb, because it's very fast.

Disable bloat software

Since there is no way to root our device yet, there is no way to remove stuff you don't want to from the system itself. Or, not by removing the folder/apk itself. But there is a way to deactivate the application so it wont "exist" in the system. This can even be done with apps that you normally can't deactivate in applications menu. You will need adb shell to do this (I use Linux, but the procedure is about the same in Windows).
First, activate Developer menu. You do this in Settings > System > About Phone and push Version 5 times. Now you get the menu Developer options (or whatever it's named in your language). Activate developer options, and them USB Debugging. Connect your cable to your computer and open the terminal and run adb shell. You will get something like this;
Code:
zynex~*sudo adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
H8324:/ $
If you get error: insufficient permissions for device, try adb kill-server and try connect again. You will need to find the application name you want to disable, fx com.touchtype.swiftkey. I use FX Explorer, but there's a bunch of other apps that will do this. Then you use this command to disable it;
Code:
pm uninstall --user 0 <APP NAME>
The app will be removed from the system directly, if it don't, reboot. The files itself won't be removed from your system, but will be app will be unavailable. If you want to reactivate the app again, you will have to access and run the apk file (inside system/app or system/priv-app) thru fx. FX Explorer or similar program.
NOTE: If you disable com.google.android.syndadaptors.contacts, Sony Contacts apps crash (not sure why).
Happy hacking
-- Mike
https://www.xda-developers.com/uninstall-carrier-oem-bloatware-without-root-access/
https://forum.xda-developers.com/xperia-xz2/development/oreo-debloat-script-v1-0-t3798979/page5

[TOOL][WINDOWS] ADB & Fastboot++ | February 2023

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
NFO:
Code:
• Versions: Installer, Portable & ADBKit
• Android Debug Bridge & Fastboot updated to latest v1.0.41 (Version 34.0.0-9570255, February 2023)
Features:
Code:
• 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:​
Code:
• Uninstall Bloatware without Root Access (They are just being uninstalled for the current User)
• Re-install uninstalled Apps
• Install Kernel (Reboots automatically to Bootloader, Popup Menu)
• Install Recovery (Reboots automatically to Bootloader, Popup Menu)
• Install APKs (Popup Menu)
• Install APK Bundles/Split APKs (Desktop/ABI Folder - Installer, ABI Folder inside Portable)
• 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, 60, 120 & 180 Seconds (Without Device Sound)
• Reboot the Device
• Reboot to Bootloader
• Exit Bootloader to System
• Reboot to Recovery
• Create Bugreport (Saves on Desktop)
• Create Logcat (Saves on Desktop)
• Exit (adb kill-server & close Toolkit)
ADBKit:
Code:
• Pure ADB (Android Debug Bridge)
• Double click on CMD.bat to easily open a Command Prompt
• Only 5.87MB (compressed 2.73MB)
Requirements:
Code:
• Windows OS
• USB Driver for your Device or Universal ADB Driver (Included in the Installer)
• PowerShell for the Toolkit
Enable Developer Options & USB Debugging:​
Code:
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:​
Code:
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:
Code:
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:
Code:
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
ADBKit:
Code:
1. Download ADBKit_vXXX.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 Commands
————————————————————————————————
Downloads:
• ADB & Fastboot++ - GitHub
• ADBKit - GitHub​
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
How to Uninstall Carrier/OEM Bloatware Without Root Access
How to Increase the Edge Screen Size on Samsung Galaxy Phones Without Root
How to Manually Change the Samsung Galaxy S8, S8+, or Note 8 Navigation Bar Color
How to Force Apps to Fill the Screen on the Essential Phone
How to get “Turn on WiFi Automatically” for the Nexus 5X/6P on Android Oreo
How to Stop Wakelocks from Any Android App Without Root
How to Whitelist Apps from Android Oreo’s Background Location Throttling
How to Hide the “App is Running in the Background” Persistent Notification on Android Oreo
How to Check if Your Android 8.0 Oreo Device Supports Project Treble
Broken Navigation Bar, Lock Screen, or Status Bar after an Update? Here’s a Fix.
How to Sync Do Not Disturb Mode Between Android Wear and Your Phone
How to see the Boot Count of your Android 7.0+ Device
How to Change the SMS Limit on Android Without Root
How to Set a WiFi Network as Metered on Huawei or Honor Devices
How to Downgrade an App on Android – No Root Needed
How to Customize Battery Saver Mode in Android 8.0 Oreo
How to Customize the Navigation Bar in Android Oreo Without Root
How to Access Facebook Messenger’s Hidden Internal Menu
How to Customize which Radios are Disabled in Airplane Mode
How to Pair Android Wear Watches to New Phones without Factory Resetting
How to Stop Pokemon Go (or other apps) From Stealing Audio Focus
How to Stop Vibrations from Any Android App on Your Phone
How to Block Heads Up Notifications while Gaming or Watching a Video
How to Hide the Persistent Notification for Background Apps in Android O
How to Permanently Remove the Google Chromecast Notification
How to Freeze Any App’s Background Processes without Root on Android 7.0+
How to set a Custom Screen Saver on Huawei and Honor devices running EMUI
How to Add more Tiles to the Quick Settings Header on Google, OnePlus, and Sony Phones [No Root]
How to Add Custom Buttons to the Nav Bar on the Samsung Galaxy S8/S8+
How to Add Left/Right Keyboard Cursors to the Nav Bar during Text Input
How to Add Media Playback Controls to the Nav Bar when Playing Music
Three Actually-Hidden, Non-Clickbaity Tricks for Your New Galaxy S8 or S8+
How to change your Nav Bar Icons or Re-arrange the Buttons without Root
Source:
https://www.xda-developers.com/what-is-adb/
Thanks for updating from the original one, which was very much outdated by now. :good:
Thanks, it's always good to have the latest binaries.
Changelog:
v1.1.1
+ Installer Icon
+ Start Menu Icon
• New Versions Code
• File Names changed
• Text changed
K3V1991 said:
Changelog:
v1.1.1
+ Installer Icon
+ Start Menu Icon
• New Versions Code
• File Names changed
• Text changed
Click to expand...
Click to collapse
Thanks man, keep up the good work :good: This is a very useful tool.
Added Portable Version
Can be use all commands of adb and fastboot like:-
fastboot oem lock, fastbook oem unlock
fastboot devices etc ?
Regards
sharmayogi said:
Can be use all commands of adb and fastboot like:-
fastboot oem lock, fastbook oem unlock
fastboot devices etc ?
Regards
Click to expand...
Click to collapse
Yes
Sent from my lucye using XDA Labs
Windows says the installer is a trojan. This is the link I reached from the OP. Windows identifies it as Spursint.F!cl. I guess false positive? It can't install. I'll try portable.
rednukleus said:
Windows says the installer is a trojan. This is the link I reached from the OP. Windows identifies it as Spursint.F!cl. I guess false positive? It can't install. I'll try portable.
Click to expand...
Click to collapse
VirusTotal Check:
https://www.virustotal.com/gui/file...33c0ec65e0cd2228779de4c0a167158184f/detection
Yes, False Positive
K3V1991 said:
VirusTotal Check:
Yes, False Positive
Click to expand...
Click to collapse
Thank you for your tool. The portable version was just what I needed. Everything works perfectly with zero effort. Now the immersive mode app I have is working. An unexpected bonus of immersive mode is that it even hides the taskbar in DeX mode.
thanks!!!!!!!!!!
OP upated with v1.1.2
Changelog:
Updated to r29.0.2 (July)
• ADB: Fixes a Windows heap integrity crash
• Fastboot: Adds support for partition layout of upcoming devices
Hello, and for linux ?
Thank you)
thank you, bro
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
OP upated with v1.1.4
Changelog:
Updated to r29.0.4 (September)
• Hotfix for Native debugging timeout with LLDB issue (https://issuetracker.google.com/140369526)
Great Thread. thanks for your work.

Categories

Resources