Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Help to generate serial number...

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-29-2007, 07:58 PM
Junior Member
 
Join Date: May 2007
Posts: 37
Default Help to generate serial number...

Is there any good idea to generate serial number for a software? I've tried using hardware library and want to generate serial number from getdeviceid but it seems not working for all devices (including me) --> empty string. Is there any way that can be used to generate serial number and unique for each device?

I want to try this one but don't know how... :
How to read the owner name from the registry. It seems like ascii (64 00 34 00 55 20 etc...,) (not text.)

**But if someone change the owner name to the owner name that already registered so he can use the serial number with the registered name. Hmm... yeah, at least there's some protection...

Need help...
Reply With Quote
  #2 (permalink)  
Old 05-29-2007, 08:10 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

I recommend you to use the device name which is stored under LocalMachine\Ident\Name.
The Owner Name value doesn't always exist.
Reply With Quote
  #3 (permalink)  
Old 05-29-2007, 08:22 PM
Junior Member
 
Join Date: May 2007
Posts: 37
Default

Erel, that can be used. But... that's not a unique name. It can be same for many devices (because it is an original device name (if not yet changed, factory setting)). And however, the users can change it to whatever he wants. The protection seems useless with this method, isn't it? Just need one serial number, share it and change the device name to the registered one...

Any better idea?

Btw, thanks Erel.
Reply With Quote
  #4 (permalink)  
Old 05-29-2007, 08:51 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

I don't think it is useless.
Anyway you can check if the owner name exists and if it does, read it and calculate the sum of all bytes or convert it to a string (assuming you are not showing the string to the user).
Reply With Quote
  #5 (permalink)  
Old 05-29-2007, 09:15 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

I have searched for all key in my registry for the machine serial number, that is found in the back sticker...No success!!!!
I'M Sure that that can be found in some part of the regestry or even in some hidden file...But where?
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #6 (permalink)  
Old 05-29-2007, 09:34 PM
Junior Member
 
Join Date: May 2007
Posts: 37
Default

Erel, maybe i'll try your sum of the owner name bytes method. But still find a better method... Actually what Cableguy said is exactly the best way to generate serial number for protection. Can't be cheated.. Yeah, but unfortunately until now I still haven't found way to read the machine serial number out...
Reply With Quote
  #7 (permalink)  
Old 05-30-2007, 10:25 AM
Knows the basics
 
Join Date: May 2007
Location: Czech Republic
Posts: 72
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Cableguy, I'd like to ask you, why are you sure, that this SN is somewhere in PDA ?
Have you found some information about it ?
Petr

Last edited by petrbury : 05-30-2007 at 10:30 AM.
Reply With Quote
  #8 (permalink)  
Old 05-30-2007, 10:34 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

No I have not, but from my (short) experience with cellphone cranking, i came to notice that most manufacturers hardcode the information and it was aaceessible by the introduction of a pre-formated code...like for imei we entered *#06# and it shows up in the screen....but how to tap into it?
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #9 (permalink)  
Old 05-30-2007, 10:54 AM
Knows the basics
 
Join Date: May 2007
Location: Czech Republic
Posts: 72
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hmm, maybe somebody knows it and will let it know. It would be usefull, I think.
Petr
Reply With Quote
  #10 (permalink)  
Old 05-30-2007, 11:04 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

After a few minutes searching google I found this!

http://www.pocketpcdn.com/articles/s...umber2002.html

Maybe someone is up to a DLL?
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find serial number of SD card after formatting Paul Questions (Windows Mobile) 0 10-19-2008 09:43 PM
serious number crunching cpc6128 Questions (Windows Mobile) 4 03-13-2008 01:24 AM
Generate exe for WinCE.Net 4.2 and 5 gs4322 Questions (Windows Mobile) 5 12-13-2007 01:33 PM
Number format joeyschlatter Questions (Windows Mobile) 1 10-30-2007 04:17 PM
Serial Number Cableguy Questions (Windows Mobile) 4 05-05-2007 07:06 AM


All times are GMT. The time now is 02:48 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0