What is ADB?
Now, lets check out the setup process of the developer tool on PC and mobile.
How to Set up ADB on your PC?
How to connect your Android gadget via ADB on PC?
The foremost step for using ADB on a PC is downloading the official developer files from Googles Android platform.
These are specific drivers dedicated to the Android operating system, required to identify the handsets connection.
Lastly, check your connected gear by giving theadb devicescommand.
Allow USB debugging on your smartphone after connecting to the computer for authorization.
Open cmd or PowerShell from the ADB folder and enter theadb devicescommand.
Now, give the following command:adbshell cmd package uninstall -k NameOfPackage
2.
In the place of NameOfPackage, enter the applications package name and press enter.
Installing Single or Multiple APKs
Android installs files as applications in the APK format.
Lets check out a neat trick of installing one or many applications on your Android equipment at once.
First, transfer those downloaded APK files into the previously downloaded folder.
Give a single command with the filename of the APK for installing a single APK.
After giving the command, the app gets installed on your Android smartphone.
You wont find any obtrusion following this method while recording the screen.
Use the./adb shell screenrecord <folder-path/filename.mp4>to start the screen recording.
To stop the screen recording, press Ctrl + C, and the recording saves to the directory folder.
This method can take a complete backup of your Android unit and restore the smartphone as well.
Enter this command \adb backup -all -f \filename.ab
2.
Now, you will receive a prompt page asking for a new password for the backup encryption.
- you might check out the list of applications with the following command adb shell pm list packages
2.
Now, enter theadb backup -f -apk command.
Check your current DPI using the command adb shell wm density
2.
Give a value such as 280 or 180 in thesection.
Ensure that the laptop or PC you want to connect to has Wi-Fi connectivity.
Enter the given command to execute the ADB in TCP/IP mode adb tcpip 5555
2.
Now, you oughta enter the IP Address of your smartphone in the following command.
Refer to the IP Address of your Android rig in the About section of your devices tweaks.
Now, give the IP address in theadb connect command.
Disconnect the USB from your smartphone and check for theadb devices.
- you’re free to see your machine name if the command runs successfully.
you’re free to consider ADB as a welcoming factor to the world of tweaking on Android.