Get Unique hardware ID in b4j
tested on windows only you can test on mac or linux
8 method to get Unique hardware id
updated v1.8
1. fix error in none_ui apps
2. removed all unnecessary methods
3. two new method added
Log(pdd.Get_HWID1)
Log(pdd.Get_HWID2)
updated v2.0
Use java standard functions without modification
Change Name to juuid (jpadina deprecated)
added p.Get_MachineID2
added Email Validation
How Use :
Any function that has no result returns a null value
lib (jar and xml files) atteched.
tested on windows only you can test on mac or linux
8 method to get Unique hardware id
updated v1.8
1. fix error in none_ui apps
2. removed all unnecessary methods
3. two new method added
Log(pdd.Get_HWID1)
Log(pdd.Get_HWID2)
updated v2.0
Use java standard functions without modification
Change Name to juuid (
added p.Get_MachineID2
added Email Validation
How Use :
B4X:
Dim pdd As jUUID
Log(pdd.Get_CPUID )
Log( pdd.Get_HddID1 )
Log( pdd.Get_HddID2 )
Log ( pdd.Get_MachineID )
Log ( pdd.Get_MachineID2 )
Log ( pdd.Get_MacId )
Log ( pdd.Get_MotherboardSN )
Log( pdd.Get_HWID1 ) 'hardware + software > can change with changing windows or user
Log( pdd.Get_HWID2 ) 'hardware + software > can change with changing windows or user
B4X:
Sub GetUid As String
Dim pdd As jUUID
Dim sr As String=pdd.Get_MotherboardSN
If sr<>Null Then
sr=pdd.Get_MotherboardSN
Else If pdd.Get_CPUID<>Null Then
sr = pdd.Get_CPUID
Else If pdd.Get_MachineID<>Null Then
sr=pdd.Get_MachineID
Else If pdd.Get_MachineID2<>Null Then
sr=pdd.Get_MachineID2
Else If pdd.Get_HddID1<>Null Then
sr=pdd.Get_HddID1
Else If pdd.Get_HddID2<>Null Then
sr=pdd.Get_HddID2
Else If pdd.Get_MacId<>Null Then
sr=pdd.Get_MacId
End If
Return sr
End Sub
Any function that has no result returns a null value
lib (jar and xml files) atteched.
Attachments
Last edited: