How to configure an unlocked device