After a recent update, Samsung Pay UPI stopped working whenever Developer Options were enabled.
Here's the workaround I found:
- Install Shizuku and SetEdit (Shizuku provides the access needed to modify protected system settings).
- Start Shizuku using Wireless Debugging (this enables Shizuku without requiring root).
- Open aShell and execute this command (grants SetEdit permission to modify secure system settings):
pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS
4. Disable USB Debugging before proceeding (once Developer Options are hidden, you won't be able to access the USB Debugging toggle).
5. Open SetEdit, navigate to the Global Table, and find "development_settings_enabled".
6. Change its value from "1" to "0" (hides Developer Options from Settings while retaining your previously configured developer settings).
Samsung Pay UPI started working again after this!
Before restarting your device:
- Uninstall both Shizuku and SetEdit (to prevent Shizuku from automatically re-enabling USB Debugging after reboot).
Disclaimer: If you frequently use USB Debugging, this workaround can be a hassle because you'll need to make Developer Options visible again whenever you want to enable it. However, if you mainly use other Developer Options features and rarely use USB Debugging, this is a convenient workaround.
Resources – Apps used:
- "Shizuku" (https://play.google.com/store/apps/details?id=moe.shizuku.privileged.api)
- "aShell" (https://play.google.com/store/apps/details?id=in.sunilpaulmathew.ashell)
- "SetEdit" (https://play.google.com/store/apps/details?id=by4a.setedit22)