mac address

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
DPaul
Posts: 11
Joined: Fri Nov 07, 2014 8:49 pm

mac address

Post by DPaul » Wed Jun 27, 2018 12:23 pm

Can someone tell me how to get livecode to retrieve a devices unique network mac address?

Thanks,
DPaul

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: mac address

Post by Klaus » Wed Jun 27, 2018 12:41 pm

Hi Paul,

check this (and of coure all the other cool tips on that website!):
http://www.sonsothunder.com/devres/live ... env001.htm


Best

Klaus

DPaul
Posts: 11
Joined: Fri Nov 07, 2014 8:49 pm

Re: mac address

Post by DPaul » Wed Jun 27, 2018 1:15 pm

I forgot to say that I want to get it from an android device.

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: mac address

Post by Klaus » Wed Jun 27, 2018 2:01 pm

I forgot to say that I want to get it from an android device.
Yes, you did! :D

Sorry, these tips come from a pre-cellphone era...
Will move this to the ANDROID forum (hint, hint 8) )

DPaul
Posts: 11
Joined: Fri Nov 07, 2014 8:49 pm

Re: mac address

Post by DPaul » Wed Jun 27, 2018 2:56 pm

To expand further, I want to have my program loaded and locked to a specific samsung tablet. I am thinking just have it check the mac address. If someone knows an easier way to accomplish this please speak up.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7215
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: mac address

Post by jacque » Wed Jun 27, 2018 3:57 pm

I don't know of any way to get the MAC address, you might need a custom external. The closest thing is mobileBuildInfo("SERIAL") but about half the devices I've tested don't have (or don't return) a serial number. If the app is just for your own use and it does provide a serial number then that would probably work, but it isn't suitable for general use..
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7215
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: mac address

Post by jacque » Wed Jun 27, 2018 4:07 pm

Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: mac address

Post by FourthWorld » Wed Jun 27, 2018 4:16 pm

MAC addresses can be spoofed, and possibly changed if a device repair includes NIC replacement.

You might just as well generate a UUID on first launch and use that.

What problem are you solving?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

DPaul
Posts: 11
Joined: Fri Nov 07, 2014 8:49 pm

Re: mac address

Post by DPaul » Wed Jun 27, 2018 4:51 pm

All I want to do is protect the software from copy transfer. I will load it on a tablet and sell them as a combo. What would be the safest way to do this?

DPaul
Posts: 11
Joined: Fri Nov 07, 2014 8:49 pm

Re: mac address

Post by DPaul » Wed Jun 27, 2018 4:57 pm

BTW, how would I check for first load?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: mac address

Post by FourthWorld » Wed Jun 27, 2018 5:02 pm

First-run can be distinguished by the absence of the file into which you'll write the UUID.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: mac address

Post by FourthWorld » Wed Jun 27, 2018 5:09 pm

If there is value in the combo the user should recognize that.

If the user sees no benefit in the combo and prefers to run your software on hardware of their own choosing, maybe you needn't multiply your overhead by saddling yourself with the constraints of physical product. Software has such high ROI because it carries no replication cost.

That said, I know nothing of the specifics of your system or its value proposition. Just semi-random food for thought....
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

DPaul
Posts: 11
Joined: Fri Nov 07, 2014 8:49 pm

Re: mac address

Post by DPaul » Wed Jun 27, 2018 5:12 pm

What would keep them from just moving the generated file with the program? Also, is there a livecode UUID generator?

DPaul
Posts: 11
Joined: Fri Nov 07, 2014 8:49 pm

Re: mac address

Post by DPaul » Wed Jun 27, 2018 5:38 pm

Thank you so much for taking your time to offer your advice. I made this software for my benefit as a very productive technical tool. Now others want it. It is not a huge market. I just want to be able to keep them from passing free copies around. The tool works great on the samsung tablet. I guess I could just put a hidden file on it for each program to find and id off of. At least you have talked me out of the mac address idea.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: mac address

Post by FourthWorld » Wed Jun 27, 2018 6:01 pm

DPaul wrote:
Wed Jun 27, 2018 5:12 pm
What would keep them from just moving the generated file with the program? Also, is there a livecode UUID generator?
Yes, LC has a UUID function.

But you're right, a self-generated identifier would not solve the problem you're working on.

For privacy reasons mobile OS vendors are moving away from easy access to hardware identifiers, so while there may be options I don't know what they are and they may require using non-public APIs.

Would it be practical to require registration within the app? That would allow it to be freely copied anywhere, but would only run when authenticated against a server you manage.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Android Deployment”