Remove apps using ADB (Android Debug Bridge)

You can remove apps using ADB (Android Debug Bridge) by following these steps:

Prerequisites:

  1. Enable Developer Options on your Android device:
    • Go to Settings > About phone.
    • Tap Build number seven times to enable Developer Options.
  2. Enable USB Debugging:
    • In Settings > Developer Options, toggle on USB Debugging.
  3. Install ADB on your computer:

Steps to Remove Apps Using ADB:

  1. Connect Your Device:

    • Plug your Android device into your computer using a USB cable.
    • Ensure your device is set to File Transfer (MTP) mode if prompted.
  2. Verify ADB Connection:

    • Open a terminal (or Command Prompt) on your computer.
    • Navigate to the folder where you extracted the ADB tools.
    • Run the following command:
      adb devices
      
    • If prompted on your device, grant USB debugging permission.
    • The terminal should display your device’s serial number, confirming the connection.
  3. List Installed Apps:

    • Run the following command to see a list of installed packages:
      adb shell pm list packages
      
    • This will return a list of package names (e.g., com.example.app).
  4. Uninstall the App:

    • Use the following command to uninstall an app:
      adb shell pm uninstall --user 0 <package_name>
      
    • Replace <package_name> with the package name of the app you want to remove.
    • Example:
      adb shell pm uninstall --user 0 com.facebook.katana
      
    • This removes the app for the current user but does not delete it from the system partition (useful for pre-installed apps).
  5. Verify Uninstallation:

    • Re-run the package list command to ensure the app is no longer listed:
      adb shell pm list packages
      

Notes:

  • Pre-installed Apps: Using --user 0 disables the app for the current user, which is usually sufficient. However, to permanently delete system apps, you would need root access.
  • Reinstall Disabled Apps: To restore an uninstalled app:
    adb shell cmd package install-existing <package_name>
    

Let me know if you need help with any specific app removal!