serial-number

Get Static NFC Tag Id with HCE mode

亡梦爱人 提交于 2019-12-17 09:57:46
问题 I'm new in NFC thing, so I tested several phones with calling getTagId() method in HCE mode, and this is the result: device | UID LG G2 | random LG G3 | static S4 | random HTC One Mini | static Xiaomi mi3 | static My questions: Why do some phones have static UID and some do not? Is this chipset related? Is it possible to get a fixed UID? I need it to authenticate the device. On other side, I'm using Kitkat CyanogenMod 11 on Xperia M, but I did not manage to use it for HCE, why? Any documents

Same serial number on several android devices. Adb is useless. How can I change the serial number?

依然范特西╮ 提交于 2019-12-17 09:15:08
问题 I bought a lot (500+) cheap China tablet with AllWinner processor and Android 4.0.3. All tablets expose the same serial number. I can't deploy my application simultaneously on several devices (with a USB hub) using ADB.EXE because it can't distinguish them. I'm thinking about a pre-deploy process that change the internal serial number, is it possible? Where is the serial number stored? Note: tablets are rooted 回答1: You need to populate /sys/class/android_usb/android0/iSerial sysfs file with

How to create serials key to protect an application

ぐ巨炮叔叔 提交于 2019-12-12 08:14:31
问题 I have an application that creates a serial key as follows: Take customername Sign customername using privatekey and sha/dsa algorithm Then license can be checked by decoding with public key, and checking cuastomername matches This works okay except that the generated serial is rather long. So it is not really practical for customer to type in the serial key instead they have to provide a serial with in a file, which is rather different to how mist applications and work and is confusing. Many

How to get Hard-Disk SerialNumber in C# (no WMI)?

断了今生、忘了曾经 提交于 2019-12-12 05:29:34
问题 I know there are two articles in CodeProject (one uses WMI and the other no WMI but in C++). I tried the WMI way, not only it's slow, but it is also unreliable. So, that's why I decided not to pursue that way. I want to do it in C# through pInvoke. I tried it but got stuck in DeviceIoControl API. Can anybody give me a hint? Here is my code: using System; using System.ComponentModel; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices;

how to get hard disk serial number with action script

自古美人都是妖i 提交于 2019-12-11 08:47:33
问题 I'm using action script 3.0 compiling the code to flash 10 how to get hard disk serial number with action script? I want to get this info without any security requirement. Is there a way to do it? 回答1: You could get all the physical media for a device from a C# console application and output each physical medium and its properties as an xml. Then in an Air application using the NativeApplication API you can get said physical medium and its properties, namely the serial number for a hard disk

WMI Win32_PhysicalMedia SerialNumber is sometimes hexadecimal and sometimes in reversed byte order

↘锁芯ラ 提交于 2019-12-07 08:40:59
问题 I am using WMI with C++ to get the physical disk serial number. On Windows 7 64bit, I get a string with the serial number. While when running the same application on a Windows XP 64bit machine I get a hexadecimal string with each char's values reversed. I have noticed 3 different behaviours so far: Windows 7 64bit String in correct order as expect Windows XP 64bit(Machine 1) Hexadecimal string, reversed byte order Windows XP 64bit(Machine 2) String in reversed byte order I have used wbemtest

WMI HDD Serial Number Transposed

。_饼干妹妹 提交于 2019-12-07 04:18:59
问题 I have some code to fetch a hard drive serial number from the WMI. SelectQuery selectQuery = new SelectQuery("Win32_PhysicalMedia"); ManagementObjectSearcher searcher = new ManagementObjectSearcher(selectQuery); foreach (ManagementObject wmi_PM in searcher.Get()) { string str = wmi_PM["SerialNumber"]; } At first I thought it was working and retrieved the correct serial number. After trying to use it with a comparison though, I found out the number the WMI reports is not exactly correct. The

Getting BIOS Serial Number without WMI

那年仲夏 提交于 2019-12-07 00:06:33
I'm attempting to get the serial number of the BIOS for a WinXP Embedded 32-bit system from a Win32 user mode application (MFC if that makes any diff). I'm trying to get the same serial number that you can get via WMI from the 'Win32_BIOS' class from member "SerialNumber." The problem is that I can't use WMI as this will have to run on older systems that don't have WMI installed. We basically have a series of machines with data encoded in this BIOS field so it can't be changed by the users, and we sometimes need this information to be output to a file and sent to us. I've found

How to get motherboard ID on Linux from a C++ program

谁都会走 提交于 2019-12-06 06:56:57
问题 I want to retrieve motherboard ID from a C++ program on Linux (Ubuntu) without root privileges. I know that dmidecode can do this, but it requires root privileges, so it is not suitable for my needs. Does anyone know of non-root alternatives? Source code will be much appreciated. 回答1: You don't have to be root to get the information, but you do need to have root first give you permission. Obviously root is allowed to secure access to their machine, and this includes access to hardware

RFID algorithm to get card ID

眉间皱痕 提交于 2019-12-05 11:04:34
I receive bytes from an RFID reader when presenting a card, but I'm unable to figure out how to derive the card ID from these bytes. For example, I have a card that has these numbers printed on it: 0007625328 116,23152 . I would expect that this is the ID of that card, right? For this card, I get the following bytes from the reader (in hexadecimal representation): <42><09><01><74><00><74><5A><70> . The decimal number 0007625328 translates to 0x00745A70 in hexadecimal representation. The number 116,23152 is actually a different representation of that same value (0007625328): 116 in decimal is