ADB (Android Debug Bridge) is a versatile command-line tool used for managing Android devices and emulators. It allows you to interact with your Android device from a computer, enabling you to perform a wide range of tasks like installing and uninstalling apps, debugging, copying files, and even accessing the device’s shell.
ADB is an essential tool for developers, advanced users, and enthusiasts who want to manage their Android devices beyond what is offered by the standard user interface.
You pay for a device which you can't really control You own a device that you don't really own, it owns you
There are so many preinstalled apps on every phone that are completely unnecessary and don't want to be on your phone anymore. If you have Netflix, YouTube or Google, try to uninstall them ... Well, you can't. You can only disable them, but that doesn't mean they've been removed from your phone. They can still do stuff, and that's what this project is all about. You can check which apps you don't want anymore and remove them intuitively.
All you need is your Android-based phone and a computer. Note: It is not necessary to root your mobile device!
ADB provides access to several powerful commands that allow you to:
- Install and Uninstall Apps: You can install apps from your computer to the Android device, or uninstall apps directly from the device.
- List Installed Apps: You can view a list of all apps installed on the device.
- Access Device Shell: You can interact with the Android device's operating system directly via a command-line interface.
- File Management: You can copy files to and from your Android device.
- Debugging: ADB can be used to debug apps and monitor device logs.
Before you can use ADB on your Windows computer, you need to install ADB tools and set up your device for communication.
-
Install ADB Tools:
- Download and install ADB from the official Android Developer website or use a package manager like Chocolatey on Windows.
-
Enable USB Debugging on your Android device:
- On your Android device, go to Settings > About phone, tap Build number 7 times to unlock Developer options.
- Then, go to Settings > Developer options and enable USB Debugging.
-
Connect the Device via USB:
- Connect your Android device to your computer via a USB cable.
- Allow USB debugging on your phone if prompted.
If you have this, go an checkout this video here for how you can add ADB as you environment variables in windows. YouTube Prompt: how to install adb on windows Setup Guide 1 recommended
YouTube Prompt: android adb tool Setup Guide 2 more detailed
Now, let’s explore how you can list all installed apps on your Android device and store the list in a .txt
file.
-
Open Windows PowerShell or Command Prompt:
- You can either use PowerShell or Command Prompt to execute ADB commands.
-
Run the Following Command to List All Apps:
adb shell pm list packages --user 0
This command will list all the package names of apps installed on your Android device. You can filter the list for user apps or system apps with specific flags:
-
To list only user apps:
adb shell pm list packages -3 --user 0
-
To list only system apps:
adb shell pm list packages -s --user 0
-
-
Store the List in a
.txt
File:To save the list of installed apps into a text file, you can redirect the output to a
.txt
file like so:But before you run it, it must already exist.
adb shell pm list packages > C:\path\to\your\file\installed_apps.txt
This will save the list of installed apps to
installed_apps.txt
on your computer. That way it's much easier to filter and look for apps you might not want to have on your phone.
To uninstall apps via ADB, use the following command:
adb shell pm uninstall --user 0 com.example.package
Replace com.example.package
with the actual package name of the app you want to remove. You can find the package names from the output of the list command above.
You can also use a script to uninstall multiple apps at once. This will also remove all the data. Example:
adb shell pm uninstall --user 0 com.example.package1
If you want to uninstall the application but keep your data and cache files, you can do so here.
adb shell pm uninstall -k --user 0 com.example.package1
If you are searching for a specific app that you want to remove from your phone which we didn't cover inside the script or under the links for the resources, eather go to the Galaxy Store or Google Play Store and go searching for the specific app you are looking for.
Now, if I wanted to remove Samsung My Files App which you can find inside the google play store website the url looks like this
https://play.google.com/store/apps/details?id=com.sec.android.app.myfiles&hl=gsw
Within the url you can find the ID which is in this case com.sec.android.app.myfiles. That's exactly how the package will be then called if I was about to download it. So, if I wanted to remove it using ADB tools, use the premade that you can find here which is adb shell pm uninstall --user 0 com.example.package1 and then modify the package name from com.example.package1 to com.sec.android.app.myfiles which results to this command: adb shell pm uninstall --user 0 com.sec.android.app.myfiles
. Note that if you wanted to keep the data created by this app that you whish to delete add between uninstall and --user -k to it. If you want to remove everything from it, don't add -k to the command as already covered inside the chapter Uninstall Apps Using ADB.
By default, Windows PowerShell may block the execution of scripts for security reasons. To allow PowerShell scripts to run, you need to modify the execution policy:
-
Open PowerShell as Administrator:
- Right-click on PowerShell and select Run as Administrator.
-
Set the Execution Policy: To allow running scripts, set the execution policy to RemoteSigned:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
- RemoteSigned allows you to run scripts written on your computer but requires downloaded scripts to be signed by a trusted publisher.
-
Confirm the Change: You will be prompted to confirm the change. Type
Y
to confirm.
Important Note:
-
Samsung App Launcher:
- Do not remove the Samsung App Launcher. Removing it will also uninstall the Samsung One UI Home app, which is essential for the user interface design of your Samsung device. This specifically pertains to the package "com.sec.android.app.launcher".
-
Script Caution:
- If you plan to run the script section titled # GENERAL SYSTEM - Miscellaneous System Apps and Services in PowerShell ISE, be aware that it may negatively impact your phone's performance.
-
Potential Access Issues:
- Without the Samsung App Launcher installed, you may face significant limitations in using your phone. You will likely only be able to access apps that you have previously opened, and switching between them will be possible, but direct access to other apps will be restricted.
-
Downloading a Samsung App Launcher:
- If you still have the Google Play Store app open, you can download a Samsung App Launcher from this link. However, this is only possible if the Play Store is currently open; otherwise, you will not be able to download it.
Please keep these points in mind to ensure the proper functioning of your device.
Once the execution policy is set, you can create and run a PowerShell script to list or uninstall apps. Here’s a simple script for listing and saving apps:
To run the powershell script, you just need to copy and paste the entire script into the input field. Make sure to use Windows PowerShell ISE and not Windows PowerShell as this wouldn't contain a big input field to enter the script you want to run.
Within the "Usage data access" within your settings if you have given permission to some apps they could do the following of to monitor which other apps you use and how often and identify your service provider, language settings, and other usage data.
It is recommended to turn it off for each app. How?
Go to Settings Search usage data access click usage data access and then look down the list and click "usage data access" again Click the 3 dots in the top right Select Show system apps Click each app and turn it off
This way, those apps won't be able to track you anymore.
Example with Samsung Galaxy Store.
- Go to google and search for APK name:
samsung galaxy store apk
- Download APK on your computer:
Download Link of APKMirror
Rename the file and give it a simpler name like:
com.sec.android.app.samsungapps.apk
-
Create folder inside Documents and put APK inside: It's not recommended to put it inside of Downloads as it's difficult to access it from there. So, just put everything inside of Documents.
-
Put the file from your computer to phone:
adb push "C:\Users\[username]\Documents\Samsung Store\com.sec.android.app.samsungapps.apk" /data/local/tmp/
- Access file stored in phone and run it:
adb shell pm install /data/local/tmp/com.sec.android.app.samsungapps.apk
What the package name of Samsung App Cloud is
https://www.reddit.com/r/Intune/comments/12iyniy/any_know_package_name_of_samsung_app_cloud_so_can/?rdt=52906
How to uninstall Samsung Gallery App - Not recommended
https://android.stackexchange.com/questions/234132/what-is-the-package-name-for-the-default-samsung-gallery-app
How to uninstall Samsung Store Apps - Not recommended
https://stackoverflow.com/questions/65102614/samsung-store-apps-installer-package-name
How to uninstall Netflix
https://community.oneplus.com/thread/1540015
Successfully uninstall upday, now I have zero news.
https://xdaforums.com/t/successfully-uninstalled-upday-now-i-have-sohu-news-can-i-uninstall-that-too.4135515/
How to find package of Samsung Tips to uninstall it succesffully
https://galaxystore.samsung.com/detail/com.samsung.android.app.tips?langCd=da
How to find package of Bixby Vision to uninstall it succesffully
https://galaxystore.samsung.com/detail/com.samsung.android.visionintelligence
How to find package of Google Messages to uninstall it succesffully
https://play.google.com/store/apps/details?id=com.google.android.apps.messaging&hl=de_CH
ChatGPT Chat for the creation of the script
https://chatgpt.com/share/67964fed-96ec-8008-a60e-96b7f0b5a7d9
How to uninstall most popular apps - Part 1
https://xdaforums.com/t/my-s10-s10-bloatware-package-name-list.4054003/
How to uninstall most popular apps - Part 2 (with included instructions on how to disable access to usage data) https://xdaforums.com/t/adb-to-remove-built-in-apps.3932377/
ADB is a powerful tool that enables you to manage Android devices efficiently. You can list and uninstall apps, as well as perform a variety of other tasks, all through simple commands. Setting up ADB is quick and allows you to interact with your device directly from your computer. You can use PowerShell to automate tasks and manage your apps, and you can change the execution policy on Windows to allow running scripts.
If you follow the steps outlined above, you’ll be able to list all apps on your device and uninstall any unnecessary ones, all while saving the data in a .txt
file for reference.