Introduction
Ever wanted to remove the pre-installed applications that came with your phone? Fortunately, there is an easy way to debloat your phone by uninstalling the unnecessary applications installed on your phone rather than disabling them (as suggested by the application manager of your phone).
Method
- Append
programs.adb.enable = true;
to yourconfiguration.nix
for your NixOS dotfiles. a) Or install the package through your distro’s package manager. - Enable “developer settings” through your settings app and later plug-in your phone to your computer.
- Launch terminal ->
adb devices
(if device shown) ->adb shell
+ (from your phone) allow access to your phone. pm list packages
-> list current installed packages.pm list users
-> to determine where to uninstall the packages from (normal, work or secure folder)pm uninstall -k --user 0 package-name
-> uninstall package. a) Ifsuccess
was returned = successfully uninstalled package. b) ifunsuccessful
either package does not exist or you mistyped the package name.