Check this article to install adb on windows, mac os or linux.
Found section in settings where you have information about your phone’s build number.
Tap that until you see “You are a developer”
In my phone build number is at :
Settings > About Phone > Baseband & kernel
Now , since you are a developer , find your developer settings.
In my phone developer settings is at :
Settings > Additional Settings > Developer options
Connect your phone to your laptop with USB.
Inside developer options , find USB debugging option and turn it on, you might see a warning :
Goto your terminal and type :
adb devices
this will prompt your phone with :
Select Always allow and click on ALLOW.
Now check adb devices and you should have output like :
List of devices attached
b5e2c7cb device
If you don’t allow usb debug from computer, you will get :
List of devices attached
b5e2c7cb unauthorized
Now I assume your computer is authorised for usb debugging.
You need to find package name for the app you want to remove. It’s like
com.abc.app
I use this app to find package name.
But you can use any other way to find package name.
Please be sure to not remove any app which may be crucial for your system to run.
Open adb shell
adb shell
Google podcast app came pre-installed in my phone. It’s package name is
com.google.android.apps.podcasts
Let’s remove it :
pm uninstall -k --user 0 com.google.android.apps.podcasts
Output:
Success
If you enter wrong package name which is not installed in your phone you will see :
Failure [not installed for 0]
Remove apps bloating your phone!!