I want to not backup sharedPref as those contains login info. I'm using below code to not allow backup for API > android12.
<cloud-backup>
<exclude domain="sharedpref" />
<exclude domain="database" />
</cloud-backup>
<device-transfer>
<exclude domain="sharedpref" />
<exclude domain="database" />
</device-transfer>
Is this enough to prevent backing up of default sharedPref and any room db?
What is the best way / what else should I do to prevent that backup?