Questions tagged [serial-number]

A unique code assigned for identification of a single unit or device.

Read more on wikipedia: https://en.wikipedia.org/wiki/Serial_code

292 questions
115
votes
18 answers

How to find serial number of Android device?

I need to use a unique ID for an Android app and I thought the serial number for the device would be a good candidate. How do I retrieve the serial number of an Android device in my app ?
Eno
  • 10,730
  • 18
  • 53
  • 86
66
votes
6 answers

Android: How to programmatically access the device serial number shown in the AVD manager (API Version 8)

How do I programmatically access the value shown in the image below ?
Heshan Perera
  • 4,592
  • 8
  • 44
  • 57
53
votes
4 answers

Android Unique Serial Number

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…
Leeeeeeelo
  • 4,333
  • 3
  • 34
  • 44
44
votes
1 answer

Serials on NFC Tags - truly unique? cloneable?

So are NFC tags really UNIQUE from each other, at least in their SERIAL NUMBER? And can we rely on the fact that no 2 NFC tags can have the same serial number? I'm highly skeptical about this as there are (and will be more) NFC tags out there and I…
BrownChiLD
  • 3,545
  • 9
  • 43
  • 61
42
votes
6 answers

Out of curiosity: How are serial numbers generated? Hints, Algorithms?

I wondering about how serial number generators and validator work. My aim would be to generate a serial number with five parts consisting of numbers and letters only. I enjoy coding as a hobby and would not call myself a professional programmer.…
Simon
  • 1,643
  • 2
  • 17
  • 23
34
votes
5 answers

How to get hard disk serial number using Python

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?
Forge
  • 6,538
  • 6
  • 44
  • 64
33
votes
4 answers

Is serial number a unique key for X509 certificate?

Is certificate serial number a unique key for X509 certificate? User selects a certificate, and program stores serial number in preferences. Will the following code return the selected certificate? public static X509Certificate2…
isobretatel
  • 3,812
  • 7
  • 34
  • 49
26
votes
4 answers

Is it possible to create product keys for my electron application?

I want to build a desktop application and be able to publish product keys or serial numbers.Before the user can use the application he will be requested to enter the product key/serial number. Similar to Microsoft Office when they provide keys like…
Behrouz Riahi
  • 1,751
  • 2
  • 21
  • 42
23
votes
5 answers

How can I retrieve an SD card's serial number in Android 7.0+?

N.B.: This question about the serial number of the physical SD card, not the UUID of the mounted volume. These are two independent pieces of data. In some versions of Android, and other variants of Linux, it's possible to get the serial number of a…
LarsH
  • 27,481
  • 8
  • 94
  • 152
20
votes
6 answers

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

This has been already answered but it's a C# solution. How do I do this in C or C++?
The Mask
  • 17,007
  • 37
  • 111
  • 185
19
votes
14 answers

CPU serial number

How do I obtain the serial number of the CPU in a PC?
selwyn
  • 1,184
  • 2
  • 10
  • 20
18
votes
1 answer

Get hardware serial number of Android device

I need to get the hardware serial code of Android device where my app is installed. This hardware serial number is the one that you can see on Settings > About Device > Status > Serial number. I though I would get it using Settings.Secure.ANDROID_ID…
Storo
  • 988
  • 1
  • 7
  • 31
17
votes
2 answers

Editing Functionality of Host Card Emulation in Android

I'm currently in the process of developing a project for my University course wherein I will be hopefully editing the functionality of the HCE Feature of Android to allow me to set my own UID when emulating a card. Now, i've downloaded the AOSP…
Jay Allen
  • 331
  • 1
  • 2
  • 7
16
votes
3 answers

Extract the Linux serial number without sudo

It is possible to extract the Linux serial number without using sudo? I know it is possible to do in Windows: wmic bios get serialnumber and in macOS: system_profiler | grep "r (system)". Both of them do not require root privileges. In Linux this…
Alberto
  • 701
  • 4
  • 9
  • 25
14
votes
7 answers

How to get CPU serial under Linux without root permissions

How can I get CPU serial number under Linux (Ubuntu) without root permissions? I tried cpuid command, it works without root permissions, but appears to return all zeros (I believe because something needs to be changed in BIOS). Can you please…
Alexey
  • 345
  • 3
  • 5
  • 10
1
2 3
19 20