serial-number

Serial number of Hard Disk or Hard Drive

拈花ヽ惹草 提交于 2019-11-27 13:17:25
问题 At first it may seems it is very easy question and some body may be trying to give me advice to try Google, it may be so. But for me it is very hard I have try Google, Stack Overflow and can’t find any good solution. Just want to get Serial number of Hard Disk or Hard Drive using C# Please read carefully: serial number of Hard Disk, but not Serial number of Volume of Hard Disk (e.g. C, D, E, etc). For getting serial no of volume of hard disk I have found solution on net and its work well but

Get Static NFC Tag Id with HCE mode

廉价感情. 提交于 2019-11-27 09:33:19
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 that can explain/support the answer? Why do some phones have static UID and some do not? Is this

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

佐手、 提交于 2019-11-27 07:20:56
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 You need to populate /sys/class/android_usb/android0/iSerial sysfs file with unique values for every device. Most vendors do it with custom init script, which would read the value from a

how to decode android.os.Build.SERIAL?

China☆狼群 提交于 2019-11-27 07:09:19
问题 I'm working on the recurring serial number topic to provide a unique id. I try this : String serial = null; try { Class<?> c = Class.forName("android.os.SystemProperties"); Method get = c.getMethod("get", String.class); serial = (String) get.invoke(c, "ro.serialno"); } catch (Exception ignored) { } and StringBuilder sb = new StringBuilder(); sb.append("SERIAL ").append(android.os.Build.SERIAL).append("\n"); textReportAdmin.setText( sb.toString()); Both gives the same value : C4F12FDD949F22F

How to get hard disk serial number using Python

淺唱寂寞╮ 提交于 2019-11-27 07:05:57
How can I get the serial number of a hard disk drive using Python on Linux ? I would like to use a Python module to do that instead of running an external program such as hdparm . Perhaps using the fcntl module? Linux As you suggested, fcntl is the way to do this on Linux. The C code you want to translate looks like this: static struct hd_driveid hd; int fd; if ((fd = open("/dev/hda", O_RDONLY | O_NONBLOCK)) < 0) { printf("ERROR opening /dev/hda\n"); exit(1); } if (!ioctl(fd, HDIO_GET_IDENTITY, &hd)) { printf("%.20s\n", hd.serial_no); } else if (errno == -ENOMSG) { printf("No serial number

How to generate an unique computer id on Delphi?

走远了吗. 提交于 2019-11-27 05:48:34
问题 How can I quickly generate an unique computer id for a delphi app? I used to do it easly with c#, but this failed sometimes. I do want the ID to be "static" but I don't care if the id changes because of a hardware change or OS reinstallation, I was planning to store it in the registry and check it when the app starts, and if it changed update the registry. (I know how to code the registry part, I only need help for the unique id). Thanks. 回答1: Use the hard disk serial number or MAC address:

How do I get the disk drive serial number in C/C++

我怕爱的太早我们不能终老 提交于 2019-11-27 05:47:46
问题 This has been already answered but it's a C# solution. How do I do this in C or C++? 回答1: There are a few ways to do this. You could make calls using system to get the information. For Linux: system("hdparm -i /dev/hda | grep -i serial"); Without using system: static struct hd_driveid hd; int fd; if ((fd = open("/dev/hda", O_RDONLY | O_NONBLOCK)) < 0) { printf("ERROR opening /dev/hda\n"); exit(1); } if (!ioctl(fd, HDIO_GET_IDENTITY, &hd)) { printf("%.20s\n", hd.serial_no); } else if (errno ==

CPU serial number

喜夏-厌秋 提交于 2019-11-27 03:15:26
问题 How do I obtain the serial number of the CPU in a PC? 回答1: Based upon 'licensing' tag you have used for your question, you might get better results reading network MAC address. Identifying PC by a MAC address isn't totally unbreakable method for copy protection, still it is sometimes used. 回答2: I have the ultimate answer for this without any external libraries. Simply type this: wmic bios get serialnumber This will give you the Serial Number on the PCs chassis ;) (found in microsoft's

Android Unique Serial Number

眉间皱痕 提交于 2019-11-27 02:45:58
I am developing an android application that targets Android 4.0 (API 14) and above. I am looking for a serial number that is unique per device and that persists for ever (dies with the device, does not change after factory resets). I have found lots of results on the web concerning unique identifiers for android devices, but very little on the android.os.Build.SERIAL number. So far, I eliminated the use of the ANDROID_ID because it might change after factory resets. I also eliminated the use of the IMEI because the android device might be non-phone. I cannot use the wifi or bluetooth MAC

How to find Serial Number, IMEI number using iOS SDK

谁说胖子不能爱 提交于 2019-11-26 22:05:21
问题 In my project i want to get the serial number and IMEI number using iOS SDK, What API's we can use to get in iOS7. I went through few links where they are using IO Frameworks, If we use those Apple will reject the App. How can we got forward. 回答1: Apple does not allow you the retrieve any device specific information like IMEI, UDID, Mac address, serial number, etc.. This has to do with the misuse of these identifier and the privacy of the user. 回答2: Apple forbids retrieving such information,