问题
I am working on a windows phone project using C# and Xaml... I will like to get the sim information and also track SIM changes in windows 8.1
回答1:
It seems that the Windows Phone SDK does not allow interaction with the SIM for security reasons. I haven't found a definitive source that says so, but the third I would say is a safe bet.
Sources on StackOverflow
"Windows Phone 8 SIM interaction" accepted answer by Den Delimarsky:
No, the Windows Phone SDK does not offer capabilities to interact with the SIM card inserted in the device.
"How to get sim serial number in Windows programming 8?" accepted answer by Matt Lacey:
For security reasons, the SIM number and other personal information are not available in the public SDK for Windows Phone 8. To uniquely identify a device you can use the ANID2 value.
Sources on MSDN forums
- "Read Phone number using SDK" accepted answer by RashmiA-MSFT, Microsoft employee:
You can use deviceextendedproperties to retrieve device information but it doesn't provide phone number or SIM information. There is no programmatic way to get SIM & phone number information from an app. http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.info.deviceextendedproperties
来源:https://stackoverflow.com/questions/29572559/monitoring-sim-changes-in-windows-phone-8-1