Disabling gapps
To disable all the apps that come with google's gapps you can use
pm disable <PACKAGE_NAME>
(if rooted, run su
once before this)
or
pm hide <PACKAGE_NAME>
if not rooted.
Re-enabling gapps
To re-enable the apps use
pm enable <PACKAGE_NAME>
(if rooted run su
once before this)
and
pm unhide <PACKAGE_NAME>
(if not rooted).
Enabling can also be done via the Settings > Apps > Show All apps > (tap app name) > Enable.
The commands should be run either from adb shell
when connected via cable, or directly on the device from a terminal.
Here is a list of packages (extracted from open gapps mini):
com.google.android.apps.turbo
com.google.android.apps.wallpaper
com.google.android.apps.nexuslauncher
com.opengapps.wellbeingoverlay
com.google.android.tts
com.google.android.gm.exchange
com.google.android.googlequicksearchbox
com.opengapps.pixellauncheroverlay
com.google.android.syncadapters.calendar
com.google.android.gm
com.google.android.markup
com.google.android.packageinstaller
com.google.android.apps.wellbeing
com.google.android.calendar
com.google.android.soundpicker
com.google.android.ext.shared
com.google.android.setupwizard
com.google.android.apps.restore
com.google.android.onetimeinitializer
com.google.android.carriersetup
com.google.android.backuptransport
com.google.android.setupwizard
com.google.android.gms
com.google.android.apps.pixelmigrate
com.google.android.gsf
com.google.android.gms.policy_sidecar_aps
com.android.vending
com.google.android.ext.services
com.google.android.feedback
com.google.android.syncadapters.contacts
com.google.android.configupdater
com.google.android.partnersetup
❗️ Use at your own risk! Make sure you backup your data before doing this!
The list may vary depending on the version of android and CPU architecture.