We had to test our Windows app Rocket Riot in sandbox mode to make sure in-app-purchases and such are working correctly, but on the internet it was impossible to find how to do this! So we mailed Microsoft and they helped us. First of all we had to update our phone to the latest version of Windows 10, so it's a new feature too!
Turn on Developer Mode and the Device Portal
First of all your phone needs to be in Developer Mode, and the Device Portal needs to be turned on. See this page for more info on that.
Log in to the Device Portal
Open a browser on your PC and go to the IP address displayed on the phone, in this case http://192.168.10.157/
. You will see a web page with several menu options, choose Xbox Live on the bottom. You can also open this page on your phone by opening the browser and going to http://127.0.0.1/
or http://localhost/
.
Set the Sandbox ID
Then press Change a thousand times (it gives me an error every time I do it), close some apps, and restart the phone. For some reason this was the only way to do it for me, clicking it once didn't work, and I had to restart the phone. After that the phone is in sandbox mode! Yay! If you want to turn off sandbox, set it to RETAIL
.
Other stuff
You can also do other things in the Device Portal like
- Change settings
- Sideload apps by uploading them
- Kill running apps
- Browse files
- View processes
- View performance statistics
- ETW tracing
- Performance tracing
- View connected devices
- Connect to wifi networks and change wifi settings
- And of course change sandbox modes
This is a very informative stuff. Sandboxing is very important to test unverified programs if it contains any viruses or malware.