[Samsung Galaxy A40 Guides, News, & Discussion] pedroxe:
extreme debloat. some changes from the original post. added some stuff and added more stuff from another mobiles that i found suitable for this specific model. not sure about all the lines. first disable then uninstall. remove junk from network provider at the end. try at your own risk!

first install google keyboard. google messages etc. your phone will be like a stock rom and for that reason you need alternatives.

pm disable user --user 0 com.samsung.android.beaconmanager
pm disable user --user 0 com.samsung.klmsagent
pm disable user --user 0 com.sec.android.app.SecSetupWizard
pm disable user --user 0 com.sec.android.app.wlantest
pm disable user --user 0 com.sec.android.service.health
pm disable user --user 0 com.sec.enterprise.mdm.services.simpin
pm disable user --user 0 com.skms.android.agent
pm disable-user --user 0 com.android.bips
pm disable-user --user 0 com.android.bookmarkprovider
pm disable-user --user 0 com.android.calllogbackup
pm disable-user --user 0 com.android.dreams.basic
pm disable-user --user 0 com.android.dreams.phototable
pm disable-user --user 0 com.android.egg
pm disable-user --user 0 com.android.printspooler
pm disable-user --user 0 com.android.providers.partnerbookmarks
pm disable-user --user 0 com.android.wallpaper.livepicker
pm disable-user --user 0 com.android.wallpaperbackup
pm disable-user --user 0 com.aura.oobe.samsung
pm disable-user --user 0 com.diotek.sec.lookup.dictionary
pm disable-user --user 0 com.dsi.ant.plugins.antplus
pm disable-user --user 0 com.dsi.ant.sample.acquirechannels
pm disable-user --user 0 com.dsi.ant.server
pm disable-user --user 0 com.dsi.ant.service.socket
pm disable-user --user 0 com.enhance.gameservice
pm disable-user --user 0 com.eterno
pm disable-user --user 0 com.facebook.appmanager
pm disable-user --user 0 com.facebook.katana
pm disable-user --user 0 com.facebook.services
pm disable-user --user 0 com.facebook.system
pm disable-user --user 0 com.google.android.apps.tachyon
pm disable-user --user 0 com.google.android.feedback
pm disable-user --user 0 com.google.android.googlequicksearchbox
pm disable-user --user 0 com.google.android.music
pm disable-user --user 0 com.google.android.partnersetup
pm disable-user --user 0 com.google.android.partnersetup
pm disable-user --user 0 com.google.android.printservice.recommendation
pm disable-user --user 0 com.google.android.setupwizard
pm disable-user --user 0 com.google.android.tts
pm disable-user --user 0 com.google.android.videos
pm disable-user --user 0 com.google.ar.core
pm disable-user --user 0 com.hiya.star
pm disable-user --user 0 com.hiya.star
pm disable-user --user 0 com.knox.vpn.proxyhandler
pm disable-user --user 0 com.linkedin.android
pm disable-user --user 0 com.microsoft.office.officehubrow
pm disable-user --user 0 com.microsoft.skydrive
pm disable-user --user 0 com.monotype.android.font.foundation
pm disable-user --user 0 com.mygalaxy
pm disable-user --user 0 com.opera.max.oem
pm disable-user --user 0 com.opera.max.preinstall
pm disable-user --user 0 com.osp.app.signin
pm disable-user --user 0 com.samsung.aasaservice
pm disable-user --user 0 com.samsung.android.aircommandmanager
pm disable-user --user 0 com.samsung.android.airtel.stubapp
pm disable-user --user 0 com.samsung.android.allshare.service.fileshare
pm disable-user --user 0 com.samsung.android.allshare.service.mediashare
pm disable-user --user 0 com.samsung.android.app.camera.sticker.facear.prel oad
pm disable-user --user 0 com.samsung.android.app.camera.sticker.stamp.prelo ad
pm disable-user --user 0 com.samsung.android.app.cocktailbarservice
pm disable-user --user 0 com.samsung.android.app.contacts
pm disable-user --user 0 com.samsung.android.app.galaxyfinder
pm disable-user --user 0 com.samsung.android.app.mirrorlink
pm disable-user --user 0 com.samsung.android.app.mirrorlink
pm disable-user --user 0 com.samsung.android.app.omcagent
pm disable-user --user 0 com.samsung.android.app.reminder
pm disable-user --user 0 com.samsung.android.app.sbrowseredge
pm disable-user --user 0 com.samsung.android.app.settings.bixby
pm disable-user --user 0 com.samsung.android.app.simplesharing
pm disable-user --user 0 com.samsung.android.app.simplesharing
pm disable-user --user 0 com.samsung.android.app.social
pm disable-user --user 0 com.samsung.android.app.spage
pm disable-user --user 0 com.samsung.android.app.watchmanagerstub
pm disable-user --user 0 com.samsung.android.aremoji
pm disable-user --user 0 com.samsung.android.bbc.bbcagent
pm disable-user --user 0 com.samsung.android.bbcagent
pm disable-user --user 0 com.samsung.android.beaconmanager
pm disable-user --user 0 com.samsung.android.bixby.agent
pm disable-user --user 0 com.samsung.android.bixby.agent.dummy
pm disable-user --user 0 com.samsung.android.bixby.service
pm disable-user --user 0 com.samsung.android.bixby.wakeup
pm disable-user --user 0 com.samsung.android.bixbyvision.framework
pm disable-user --user 0 com.samsung.android.calendar
pm disable-user --user 0 com.samsung.android.calendar
pm disable-user --user 0 com.samsung.android.da.daagent
pm disable-user --user 0 com.samsung.android.easysetup
pm disable-user --user 0 com.samsung.android.emojiupdater
pm disable-user --user 0 com.samsung.android.fast
pm disable-user --user 0 com.samsung.android.fmm
pm disable-user --user 0 com.samsung.android.forest
pm disable-user --user 0 com.samsung.android.game.gamehome
pm disable-user --user 0 com.samsung.android.game.gametools
pm disable-user --user 0 com.samsung.android.game.gos
pm disable-user --user 0 com.samsung.android.game.gos
pm disable-user --user 0 com.samsung.android.keyguardwallpaperupdator
pm disable-user --user 0 com.samsung.android.kidsinstaller
pm disable-user --user 0 com.samsung.android.knox.analytics.uploader
pm disable-user --user 0 com.samsung.android.knox.containeragent
pm disable-user --user 0 com.samsung.android.knox.containercore
pm disable-user --user 0 com.samsung.android.knox.containercore
pm disable-user --user 0 com.samsung.android.mateagent
pm disable-user --user 0 com.samsung.android.mdecservice
pm disable-user --user 0 com.samsung.android.mdecservice
pm disable-user --user 0 com.samsung.android.mdx
pm disable-user --user 0 com.samsung.android.messaging
pm disable-user --user 0 com.samsung.android.mfi
pm disable-user --user 0 com.samsung.android.net.wifi.wifiguider
pm disable-user --user 0 com.samsung.android.scloud
pm disable-user --user 0 com.samsung.android.sdk.handwriting
pm disable-user --user 0 com.samsung.android.service.airviewdictionary
pm disable-user --user 0 com.samsung.android.smartfitting
pm disable-user --user 0 com.samsung.android.smartmirroring
pm disable-user --user 0 com.samsung.android.spayfw
pm disable-user --user 0 com.samsung.android.spayfw
pm disable-user --user 0 com.samsung.android.spaymini
pm disable-user --user 0 com.samsung.android.stickercenter
pm disable-user --user 0 com.samsung.android.svcagent
pm disable-user --user 0 com.samsung.android.themestore
pm disable-user --user 0 com.samsung.android.uds
pm disable-user --user 0 com.samsung.android.visionintelligence
pm disable-user --user 0 com.samsung.android.wellbeing
pm disable-user --user 0 com.samsung.knox.keychain
pm disable-user --user 0 com.samsung.knox.securefolder
pm disable-user --user 0 com.samsung.knox.securefolder
pm disable-user --user 0 com.samsung.logwriter
pm disable-user --user 0 com.samsung.mlp
pm disable-user --user 0 com.samsung.sec.android.teegris.tui_service
pm disable-user --user 0 com.samsung.SMT
pm disable-user --user 0 com.samsung.storyservice
pm disable-user --user 0 com.samsung.storyservice
pm disable-user --user 0 com.samsung.systemui.bixby2
pm disable-user --user 0 com.samsung.visionprovider
pm disable-user --user 0 com.samung.android.sm.policy
pm disable-user --user 0 com.sec.android.app.billing
pm disable-user --user 0 com.sec.android.app.chromecustomizations
pm disable-user --user 0 com.sec.android.app.clockpackage
pm disable-user --user 0 com.sec.android.app.fm
pm disable-user --user 0 com.sec.android.app.samsungapps
pm disable-user --user 0 com.sec.android.app.setupwizardlegalprovider
pm disable-user --user 0 com.sec.android.daemonapp
pm disable-user --user 0 com.sec.android.diagmonagent
pm disable-user --user 0 com.sec.android.diagmonagent
pm disable-user --user 0 com.sec.android.easyMover.Agent
pm disable-user --user 0 com.sec.android.easyonehand
pm disable-user --user 0 com.sec.android.inputmethod
pm disable-user --user 0 com.sec.android.inputmethod
pm disable-user --user 0 com.sec.android.mimage.avatarstickers
pm disable-user --user 0 com.sec.android.widgetapp.samsungapps
pm disable-user --user 0 com.sec.android.widgetapp.webmanual
pm disable-user --user 0 com.sec.android.widgetapp.webmanual
pm disable-user --user 0 com.sec.enterpirse.mdm.services.simpin
pm disable-user --user 0 com.sec.enterprise.knox.attestation
pm disable-user --user 0 com.sec.enterprise.knox.cloudmdm.smdms
pm disable-user --user 0 com.sec.enterprise.mdm.services.simpin
pm disable-user --user 0 com.sec.epdgtestapp
pm disable-user --user 0 com.sec.mldapchecker
pm disable-user --user 0 com.sec.modem.settings
pm disable-user --user 0 com.sec.spp.push
pm disable-user --user 0 com.sem.factoryapp
pm disable-user --user 0 flipboard.boxer.app
pm uninstall -k --user 0 com.amazon.fv
pm uninstall -k --user 0 com.amazon.kindle
pm uninstall -k --user 0 com.amazon.mp3
pm uninstall -k --user 0 com.amazon.mShop.android
pm uninstall -k --user 0 com.amazon.venezia
pm uninstall -k --user 0 com.android.bips
pm uninstall -k --user 0 com.android.egg
pm uninstall -k --user 0 com.android.printspooler
pm uninstall -k --user 0 com.audible.application
pm uninstall -k --user 0 com.blurb.checkout
pm uninstall -k --user 0 com.cequint.ecid
pm uninstall -k --user 0 com.cnn.mobile.android.phone.edgepanel
pm uninstall -k --user 0 com.diotek.sec.lookup.dictionary
pm uninstall -k --user 0 com.dsi.ant.plugins.antplus
pm uninstall -k --user 0 com.dsi.ant.sample.acquirechannels
pm uninstall -k --user 0 com.dsi.ant.server
pm uninstall -k --user 0 com.dsi.ant.service.socket
pm uninstall -k --user 0 com.enhance.gameservice
pm uninstall -k --user 0 com.facebook.appmanager
pm uninstall -k --user 0 com.facebook.appmanager
pm uninstall -k --user 0 com.facebook.katana
pm uninstall -k --user 0 com.facebook.services
pm uninstall -k --user 0 com.facebook.system
pm uninstall -k --user 0 com.facebook.system
pm uninstall -k --user 0 com.google.android.apps.tachyon
pm uninstall -k --user 0 com.google.android.apps.tachyon
pm uninstall -k --user 0 com.google.android.googlequicksearchbox
pm uninstall -k --user 0 com.google.android.googlequicksearchbox
pm uninstall -k --user 0 com.google.android.music
pm uninstall -k --user 0 com.google.android.play.games
pm uninstall -k --user 0 com.google.android.printservice.recommendation
pm uninstall -k --user 0 com.google.android.videos
pm uninstall -k --user 0 com.google.ar.core
pm uninstall -k --user 0 com.google.vr.vrcore
pm uninstall -k --user 0 com.gotv.nflgamecenter.us.lite
pm uninstall -k --user 0 com.hancom.office.editor.hidden
pm uninstall -k --user 0 com.imdb.mobile
pm uninstall -k --user 0 com.infraware.polarisoffice5
pm uninstall -k --user 0 com.knox.vpn.proxyhandler
pm uninstall -k --user 0 com.linkedin.android
pm uninstall -k --user 0 com.microsoft.appmanager
pm uninstall -k --user 0 com.microsoft.office.excel
pm uninstall -k --user 0 com.microsoft.office.officehubrow
pm uninstall -k --user 0 com.microsoft.office.powerpoint
pm uninstall -k --user 0 com.microsoft.office.word
pm uninstall -k --user 0 com.microsoft.skydrive
pm uninstall -k --user 0 com.mobeam.barcodeService
pm uninstall -k --user 0 com.monotype.android.font.chococooky
pm uninstall -k --user 0 com.monotype.android.font.cooljazz
pm uninstall -k --user 0 com.monotype.android.font.foundation
pm uninstall -k --user 0 com.monotype.android.font.rosemary
pm uninstall -k --user 0 com.netflix.mediaclient
pm uninstall -k --user 0 com.netflix.partner.activation
pm uninstall -k --user 0 com.nuance.swype.input
pm uninstall -k --user 0 com.policydm
pm uninstall -k --user 0 com.samsung.aasaservice
pm uninstall -k --user 0 com.samsung.advp.imssettings
pm uninstall -k --user 0 com.samsung.android.aircommandmanager
pm uninstall -k --user 0 com.samsung.android.allshare.service.fileshare
pm uninstall -k --user 0 com.samsung.android.allshare.service.mediashare
pm uninstall -k --user 0 com.samsung.android.app.advsounddetector
pm uninstall -k --user 0 com.samsung.android.app.appsedge
pm uninstall -k --user 0 com.samsung.android.app.assistantmenu
pm uninstall -k --user 0 com.samsung.android.app.camera.sticker.facear.preload
pm uninstall -k --user 0 com.samsung.android.app.camera.sticker.facear3d.preload
pm uninstall -k --user 0 com.samsung.android.app.camera.sticker.facearavatar.preload
pm uninstall -k --user 0 com.samsung.android.app.camera.sticker.facearframe.preload
pm uninstall -k --user 0 com.samsung.android.app.camera.sticker.faceavatar.preload
pm uninstall -k --user 0 com.samsung.android.app.camera.sticker.stamp.preload
pm uninstall -k --user 0 com.samsung.android.app.clipboardedge
pm uninstall -k --user 0 com.samsung.android.app.cocktailbarservice
pm uninstall -k --user 0 com.samsung.android.app.episodes
pm uninstall -k --user 0 com.samsung.android.app.filterinstaller
pm uninstall -k --user 0 com.samsung.android.app.galaxyfinder
pm uninstall -k --user 0 com.samsung.android.app.ledbackcover
pm uninstall -k --user 0 com.samsung.android.app.ledcoverdream
pm uninstall -k --user 0 com.samsung.android.app.memo
pm uninstall -k --user 0 com.samsung.android.app.mirrorlink
pm uninstall -k --user 0 com.samsung.android.app.notes
pm uninstall -k --user 0 com.samsung.android.app.reminder
pm uninstall -k --user 0 com.samsung.android.app.routines
pm uninstall -k --user 0 com.samsung.android.app.sbrowseredge
pm uninstall -k --user 0 com.samsung.android.app.settings.bixby
pm uninstall -k --user 0 com.samsung.android.app.simplesharing
pm uninstall -k --user 0 com.samsung.android.app.smartcapture
pm uninstall -k --user 0 com.samsung.android.app.social
pm uninstall -k --user 0 com.samsung.android.app.spage
pm uninstall -k --user 0 com.samsung.android.app.storyalbumwidget
pm uninstall -k --user 0 com.samsung.android.app.talkback
pm uninstall -k --user 0 com.samsung.android.app.taskedge
pm uninstall -k --user 0 com.samsung.android.app.tips
pm uninstall -k --user 0 com.samsung.android.app.vrsetupwizardstub
pm uninstall -k --user 0 com.samsung.android.app.watchmanager
pm uninstall -k --user 0 com.samsung.android.app.watchmanagerstub
pm uninstall -k --user 0 com.samsung.android.app.withtv
pm uninstall -k --user 0 com.samsung.android.aremoji
pm uninstall -k --user 0 com.samsung.android.bbc.bbcagent
pm uninstall -k --user 0 com.samsung.android.beaconmanager
pm uninstall -k --user 0 com.samsung.android.beaconmanager
pm uninstall -k --user 0 com.samsung.android.bixby.agent
pm uninstall -k --user 0 com.samsung.android.bixby.agent.dummy
pm uninstall -k --user 0 com.samsung.android.bixby.es.globalaction
pm uninstall -k --user 0 com.samsung.android.bixby.plmsync
pm uninstall -k --user 0 com.samsung.android.bixby.service
pm uninstall -k --user 0 com.samsung.android.bixby.voiceinput
pm uninstall -k --user 0 com.samsung.android.bixby.wakeup
pm uninstall -k --user 0 com.samsung.android.bixbyvision.framework
pm uninstall -k --user 0 com.samsung.android.calendar
pm uninstall -k --user 0 com.samsung.android.da.daagent
pm uninstall -k --user 0 com.samsung.android.dlp.service
pm uninstall -k --user 0 com.samsung.android.drivelink.stub
pm uninstall -k --user 0 com.samsung.android.easysetup
pm uninstall -k --user 0 com.samsung.android.easysetup
pm uninstall -k --user 0 com.samsung.android.email.provider
pm uninstall -k --user 0 com.samsung.android.emojiupdater
pm uninstall -k --user 0 com.samsung.android.fmm
pm uninstall -k --user 0 com.samsung.android.game.gamehome
pm uninstall -k --user 0 com.samsung.android.game.gametools
pm uninstall -k --user 0 com.samsung.android.game.gos
pm uninstall -k --user 0 com.samsung.android.gametuner.thin
pm uninstall -k --user 0 com.samsung.android.hmt.vrshell
pm uninstall -k --user 0 com.samsung.android.hmt.vrsvc
pm uninstall -k --user 0 com.samsung.android.keyguardwallpaperupdator
pm uninstall -k --user 0 com.samsung.android.kidsinstaller
pm uninstall -k --user 0 com.samsung.android.knox.analytics.uploader
pm uninstall -k --user 0 com.samsung.android.knox.containeragent
pm uninstall -k --user 0 com.samsung.android.knox.containercore
pm uninstall -k --user 0 com.samsung.android.lool
pm uninstall -k --user 0 com.samsung.android.mateagent
pm uninstall -k --user 0 com.samsung.android.mdm
pm uninstall -k --user 0 com.samsung.android.messaging
pm uninstall -k --user 0 com.samsung.android.mobileservice
pm uninstall -k --user 0 com.samsung.android.oneconnect
pm uninstall -k --user 0 com.samsung.android.scloud
pm uninstall -k --user 0 com.samsung.android.sdk.professionalaudio.utility.jammonitor
pm uninstall -k --user 0 com.samsung.android.server.iris
pm uninstall -k --user 0 com.samsung.android.service.livedrawing
pm uninstall -k --user 0 com.samsung.android.service.peoplestripe
pm uninstall -k --user 0 com.samsung.android.service.travel
pm uninstall -k --user 0 com.samsung.android.smartmirroring
pm uninstall -k --user 0 com.samsung.android.spdfnote
pm uninstall -k --user 0 com.samsung.android.stickercenter
pm uninstall -k --user 0 com.samsung.android.stickerplugin
pm uninstall -k --user 0 com.samsung.android.svoice
pm uninstall -k --user 0 com.samsung.android.svoiceime
pm uninstall -k --user 0 com.samsung.android.tapack.authfw
pm uninstall -k --user 0 com.samsung.android.themecenter
pm uninstall -k --user 0 com.samsung.android.themestore
pm uninstall -k --user 0 com.samsung.android.tripwidget
pm uninstall -k --user 0 com.samsung.android.video
pm uninstall -k --user 0 com.samsung.android.visioncloudagent
pm uninstall -k --user 0 com.samsung.android.visionintelligence
pm uninstall -k --user 0 com.samsung.android.voc
pm uninstall -k --user 0 com.samsung.android.voicewakeup
pm uninstall -k --user 0 com.samsung.android.wellbeing
pm uninstall -k --user 0 com.samsung.android.widgetapp.yahooedge.finance
pm uninstall -k --user 0 com.samsung.android.widgetapp.yahooedge.sport
pm uninstall -k --user 0 com.samsung.app.highlightplayer
pm uninstall -k --user 0 com.samsung.daydream.customization
pm uninstall -k --user 0 com.samsung.dcmservice
pm uninstall -k --user 0 com.samsung.desktopsystemui
pm uninstall -k --user 0 com.samsung.enhanceservice
pm uninstall -k --user 0 com.samsung.faceservice
pm uninstall -k --user 0 com.samsung.fresco.logging
pm uninstall -k --user 0 com.samsung.groupcast
pm uninstall -k --user 0 com.samsung.hs20provider
pm uninstall -k --user 0 com.samsung.ipservice
pm uninstall -k --user 0 com.samsung.knox.appsupdateagent
pm uninstall -k --user 0 com.samsung.knox.keychain
pm uninstall -k --user 0 com.samsung.knox.rcp.components
pm uninstall -k --user 0 com.samsung.knox.securefolder
pm uninstall -k --user 0 com.samsung.knox.securefolder.setuppage
pm uninstall -k --user 0 com.samsung.safetyinformation
pm uninstall -k --user 0 com.samsung.sec.android.application.csc
pm uninstall -k --user 0 com.samsung.SMT
pm uninstall -k --user 0 com.samsung.storyservice
pm uninstall -k --user 0 com.samsung.svoice.sync
pm uninstall -k --user 0 com.samsung.systemui.bixby
pm uninstall -k --user 0 com.samsung.systemui.bixby2
pm uninstall -k --user 0 com.samsung.ucs.agent.ese
pm uninstall -k --user 0 com.sec.android.app.billing
pm uninstall -k --user 0 com.sec.android.app.chromecustomizations
pm uninstall -k --user 0 com.sec.android.app.desktoplauncher
pm uninstall -k --user 0 com.sec.android.app.samsungapps
pm uninstall -k --user 0 com.sec.android.app.samsungapps
pm uninstall -k --user 0 com.sec.android.app.sbrowser
pm uninstall -k --user 0 com.sec.android.cover.ledcover
pm uninstall -k --user 0 com.sec.android.daemonapp
pm uninstall -k --user 0 com.sec.android.desktopmode.uiservice
pm uninstall -k --user 0 com.sec.android.easyMover.Agent
pm uninstall -k --user 0 com.sec.android.easyonehand
pm uninstall -k --user 0 com.sec.android.inputmethod
pm uninstall -k --user 0 com.sec.android.mimage.avatarstickers
pm uninstall -k --user 0 com.sec.android.widgetapp.samsungapps
pm uninstall -k --user 0 com.sec.enterprise.knox.attestation
pm uninstall -k --user 0 com.sec.enterprise.knox.cloudmdm.smdms
pm uninstall -k --user 0 com.sec.location.nsflp2
pm uninstall -k --user 0 com.singtel.mysingtel
pm uninstall -k --user 0 com.skms.android.agent
pm uninstall -k --user 0 com.skype.raider
pm uninstall -k --user 0 com.test.LTEfunctionality
pm uninstall -k --user 0 com.tripadvisor.tripadvisor
pm uninstall -k --user 0 com.trustonic.tuiservice
pm uninstall -k --user 0 com.vlingo.midas
pm uninstall -k --user 0 com.wsomacp
pm uninstall -k --user 0 com.wssnps
pm uninstall -k --user 0 com.yelp.android.samsungedge
pm uninstall -k --user 0 comflipboard.app
pm uninstall -k --user 0 comflipboard.boxer.app
pm uninstall -k --user 0 comtv.peel.samsung.app
pm uninstall -k --user 0 de.axelspringer.yana.zeropage
pm uninstall -k --user 0 flipboard.boxer.app
pm uninstall -k --user 0 com.vodafone.mCare
pm uninstall -k --user 0 pt.vodafone.tvnetvoz
pm uninstall -k --user 0 com.innovagency.vodafonekiosk
pm uninstall -k --user 0 wit.matm