[Moto G Power ROMs, Kernels, Recoveries, & Other De] fulalas:
This is my Moto G Power debloating module. It works on the original ROM. It's still a work in progress, but I've been using it for a while on my Moto G Power 2020 (XT2041-4, US model) and it seems pretty stable. It may work for all Moto G8/G9 as well.

Requirements:

- Root

- Magisk

- Should be flashed only in Magisk (via Modules tab)

Recommendations:

- Make a full backup before installing this module

- Copy the module to your internal storage because if something goes wrong you may have to flash it from inside TWRP

- Since I'm removing YouTube, I suggest installing YouTube Vanced, which removes ads and add some cool features

How to use it:

- Copy the zip module to your internal storage

- Open Magisk

- Go to Modules tab

- Click on 'Install from storage' and find the zip file

- After the installation a reboot button should appear, so click on it and that's it :)

Troubleshooting:

If you don't like the result, you can open Magisk, go to Modules tab and either disable or remove the module.

If after flashing this module your device gets into boot loop, don't panic. There are at least 2 ways to reverse it without having to factory reset or lose any data.

1- Official way: https://xdaforums.com/7t-pro/how-to/guide-remove-magisk-modules-twrp-t3995677

2- I find this easier, although it enables all the apps that my module tries to remove: boot into TWRP, install my module and reboot.

What this module does:

It basically uses Magisk to replace a bunch of APKs, RCs and Zips with dummy files (0 kb) so Android cannot load them anymore. This seems the only way to change Android 10 file system because it's read-only. Here's the list of things it removes:

/system/app/BasicDreams
/system/app/BluetoothMidiService
/system/app/BookmarkProvider
/system/app/Bug2GoStub
/system/app/BuiltInPrintService
/system/app/CarrierDefaultApp
/system/app/com.motorola.android.nativedropboxagent
/system/app/CompanionDeviceManager
/system/app/CtsShimPrebuilt
/system/app/DeskClockGoogle (this is not the clock app!)
/system/app/EasterEgg
/system/app/facebook-appmanager
/system/app/GooglePrintRecommendationService
/system/app/LiveWallpapersPicker
/system/app/MotoAppForecast
/system/app/MotoDolbyV3
/system/app/MotoSignatureApp
/system/app/MotoTimeZoneDataStub
/system/app/PacProcessor
/system/app/PartnerBookmarksProvider
/system/app/PlayAutoInstallConfig
/system/app/PrintSpooler
/system/app/SimAppDialog
/system/app/Traceur
/system/app/WallpaperBackup
/system/app/YTMusic

/system/preinstall/facebook.apk

/system/priv-app/3c_devicemagement-binary
/system/priv-app/3c_notification
/system/priv-app/AmazonAppManager
/system/priv-app/BackupRestoreConfirmation
/system/priv-app/CallLogBackup
/system/priv-app/CtsShimPrivPrebuilt
/system/priv-app/DemoMode
/system/priv-app/DynamicSystemInstallationService
/system/priv-app/EmergencyInfo
/system/priv-app/facebook-installer
/system/priv-app/facebook-services
/system/priv-app/GuideMe
/system/priv-app/InputDevices
/system/priv-app/LMIRescueSecurity
/system/priv-app/LocalTransport
/system/priv-app/ManagedProvisioning
/system/priv-app/MotoHelp
/system/priv-app/MotoSystemServer
/system/priv-app/ONS
/system/priv-app/ProxyHandler
/system/priv-app/SharedStorageBackup
/system/priv-app/TagGoogle

/system/product/app/com.amazon.mShop.android.shopping
/system/product/app/datastatusnotification
/system/product/app/Drive
/system/product/app/Duo
/system/product/app/DynamicDDSService
/system/product/app/embms
/system/product/app/GoogleLocationHistory
/system/product/app/MotoDemoModeFWProxy
/system/product/app/remoteSimLockAuthentication
/system/product/app/remotesimlockservice
/system/product/app/Republic
/system/product/app/talkback
/system/product/app/TimeWeather
/system/product/app/Tycho
/system/product/app/uceShimService
/system/product/app/uimgbaservice
/system/product/app/Videos
/system/product/app/YouTube

/system/product/priv-app/3c_ota
/system/product/priv-app/AMXGlobalContainer
/system/product/priv-app/AndroidAutoStub
/system/product/priv-app/BRApps2
/system/product/priv-app/CarrierConfig
/system/product/priv-app/ConfigUpdater
/system/product/priv-app/CQATest
/system/product/priv-app/daxService
/system/product/priv-app/EasyPrefix
/system/product/priv-app/FilesGoogle
/system/product/priv-app/GoogleFeedback
/system/product/priv-app/GooglePartnerSetup
/system/product/priv-app/GoogleRestore
/system/product/priv-app/HiddenMenu
/system/product/priv-app/ims
/system/product/priv-app/InvisibleNet
/system/product/priv-app/LenovoId
/system/product/priv-app/LifetimeData
/system/product/priv-app/MotoActions
/system/product/priv-app/MotoAppUIRefresh
/system/product/priv-app/MotoCare
/system/product/priv-app/MotoCareInt
/system/product/priv-app/MotoDisplayV6
/system/product/priv-app/myCC
/system/product/priv-app/PAKS
/system/product/priv-app/SlpcSystem
/system/product/priv-app/TelcelContainer
/system/product/priv-app/Turbo
/system/product/priv-app/Velvet
/system/product/priv-app/WallpaperCropper
/system/product/priv-app/Wellbeing

/system/vendor/app/OneApp
/system/vendor/app/SSGTelemetryService/SSGTelemetryService.apk

/system/etc/init/android.hidl.allocator@1.0-service.rc
/system/etc/init/android.system.suspend@1.0-service.rc
/system/etc/init/apexd.rc
/system/etc/init/art_apex_boot_integrity.rc
/system/etc/init/ashmemd.rc
/system/etc/init/atrace.rc
/system/etc/init/audioserver.rc
/system/etc/init/blank_screen.rc
/system/etc/init/bootanim.rc
/system/etc/init/bootstat.rc
/system/etc/init/bpfloader.rc
/system/etc/init/cameraserver.rc
/system/etc/init/com.qualcomm.qti.sigma_miracast@1.0-service.rc
/system/etc/init/drmserver.rc
/system/etc/init/dumpstate.rc
/system/etc/init/flags_health_check.rc
/system/etc/init/gatekeeperd.rc
/system/etc/init/gpuservice.rc (scary, but user foobar66 gave the idea)
/system/etc/init/gsid.rc
/system/etc/init/heapprofd.rc
/system/etc/init/hwservicemanager.rc
/system/etc/init/idmap2d.rc
/system/etc/init/incidentd.rc
/system/etc/init/installd.rc
/system/etc/init/iorapd.rc
/system/etc/init/keystore.rc
/system/etc/init/lmkd.rc
/system/etc/init/logd.rc
/system/etc/init/lpdumpd.rc
/system/etc/init/mdnsd.rc
/system/etc/init/mediadrmserver.rc
/system/etc/init/mediaextractor.rc
/system/etc/init/mediametrics.rc
/system/etc/init/mediaserver.rc
/system/etc/init/mtpd.rc
/system/etc/init/netd.rc
/system/etc/init/perfetto.rc
/system/etc/init/perfservice.rc
/system/etc/init/racoon.rc
/system/etc/init/recovery-persist.rc
/system/etc/init/recovery-refresh.rc
/system/etc/init/rss_hwm_reset.rc
/system/etc/init/servicemanager.rc
/system/etc/init/statsd.rc
/system/etc/init/storaged.rc
/system/etc/init/surfaceflinger.rc
/system/etc/init/tombstoned.rc
/system/etc/init/traceur.rc
/system/etc/init/update_engine.rc
/system/etc/init/update_verifier.rc
/system/etc/init/usbd.rc
/system/etc/init/vdc.rc
/system/etc/init/vold.rc
/system/etc/init/wait_for_keymaster.rc
/system/etc/init/wfdservice.rc
/system/etc/init/wifi-events.rc
/system/etc/init/wificond.rc

/system/etc/security/otacerts.zip

Future work:

If you have any suggestion, please feel free to help us. For instance, I still haven't found a way to remove these apps:

- Motorola Message Service

- Motorola Services Main

- Files (not GoogleFiles) it turns out that Files is needed by any app that has to browse files, so not a good idea to remove it

Also, if you want to adapt this module to better address your needs, it's pretty easy to do it. Let's say you don't want to remove YouTube:

- Extract the zip module to a folder

- Go to system/product/app/ and remove YouTube folder

- Create a zip file from inside the main folder (the one that contains common, META-INF, system, etc)

- Install the module again from inside Magisk (you don't need to remove the previous one because it will replace all the settings anyway)

Tip: if you want to change this module, don't try to remove GameMode because you'll end up in a boot loop -- yes, I tried :p

Thanks to foobar66 for providing some ideas of things that are safe to remove:

https://xdaforums.com/t/rom-magisk-based-googlewiz-pixelize-your-oneplus-7t-pro.4059215/