locked
[U8.1]Is there a real unique identifier for windows store app device? RRS feed

  • Question

  • I saw that for Windows Store App there is no uuid like with Windows Phone (Please correct me if I am mistaken).

    The only way is to get the so called ASHWID (App Specific Hardware ID), which changes according to the configuration and to the app (it is taken from).

    For instance, this way:

    private string GetHardwareId()
    {
        var token = HardwareIdentification.GetPackageSpecificToken(null);
        var hardwareId = token.Id;
        var dataReader = Windows.Storage.Streams.DataReader.FromBuffer(hardwareId);
    
        byte[] bytes = new byte[hardwareId.Length];
        dataReader.ReadBytes(bytes);
    
        return BitConverter.ToString(bytes);
    }

    Because this value is an array of bytes which is something like this: 03-00-F0-7E-03-00-76-F3-05-00-5C-54-05-00-8A-DE-06-00-01-00-04-00-54-49-04-00-C2-4A-04-00-DE-4D-01-00-A4-52-02-00-2E-B2-09-00-42-88

    I wonder if there is a way to take a couple of bytes from that string and to uniquely identify a small number of devices (< 200) which is my purpose.

    Thanks

     


    s


    Friday, July 17, 2015 1:21 PM

Answers

All replies