Writing a password or secret into standard SharedPreferences stores it unencrypted on the device.
Use EncryptedSharedPreferences (Jetpack Security) or the Android Keystore for sensitive values.