B4J Question Get Serialnumber from USB Stick

Swissmade

Well-Known Member
Licensed User
Longtime User
Hi
I need to read the Serial Number of a USB Stick.
The reason for this is to protect the software on it.
Is there a library or is there somebody has done this before.
Thanks for helping me out here.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

Swissmade

Well-Known Member
Licensed User
Longtime User
We've tried that a couple of years ago, and I kind of remember there is software that can manipulate that number so be careful.
Thanks for the warning.
But if they do that the software will not run.
How I do that Simpel
There will be a a key file where the serial will be in it of corse Encrypt and the software will read this to compare with the serial number of the Stick.
If the serial is changed the software will not work.
 
Upvote 0

alwaysbusy

Expert
Licensed User
Longtime User
We tried that too. Problem is they just copied everthing from one stick to another, changed the serial to the original one and the software worked. We even looked into creating fake partitions, forcing bad sectors, etc on a stick. But then there are cloning tools.

Frustrating, I know...
 
Upvote 0

Swissmade

Well-Known Member
Licensed User
Longtime User
We tried that too. Problem is they just copied everthing from one stick to another, changed the serial to the original one and the software worked. We even looked into creating fake partitions, forcing bad sectors, etc on a stick. But then there are cloning tools.

Frustrating, I know...
The software can run on 4GB Stick. If you set the size of the stick in the code and the size is bigger then 8GB application will not run.
The software also if needed will run on a 1GB stick.
 
Upvote 0
Top