如何到达Android设备的唯一ID? [英] how to reach android device unique id?

查看:192
本文介绍了如何到达Android设备的唯一ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立的东西一个Android应用程序。结果
我想我的应用程序不能被复制。

I'm building an android app about something.
I want that my app cannot be copied.

在WINDOWS我可以这样做:

in WINDOWS I can do like this:


  1. 从这个CMD线获得CPU ID:

  1. get cpu id from this cmd line:

wmic cpu get processorid 


  • 加密此code,并将其保存到数据库中

  • encrypt this code and save it into database

    每一次的软件打开它会检查CPU code和数据库中的code。因此,当软件拷贝到另一台电脑,它会说:结果
    加密code和你的cpu code不匹配。

    every time software opened it will checks the cpu code and the code in database. so when software copied to another PC it will say:
    encrypted code and your cpu code does not match.

    我正在寻找在android系统这个命令并哎呀,没有了工作,100%的事情。结果
    我真的不需要只使用这种方式(获取设备ID,并将其保存和..)如果你知道另一种方式来做到这一点的工作(我想我的应用程序不能被复制)说。

    I was searching for this command in android and OOPS, there isn't any thing that work 100%.
    really I don't need to use only this way(get device ID and save it and..) and if you know another way to do this work(I want that my app cannot be copied) say that.

    也许这是好事,说我的想法,未完成:结果
    创建购买这个应用程序在我的网站唯一的用户名的形式。结果
    当用户买了这个应用程序将是下载他。结果
    该用户希望每次的打开的应用程序连接到服务器,看看用户可用的应用程序会为他工作,使他的用户的,将在其他设备中打开(NOPE.I不能做到这一点,因为下一次不可用它不是拖Android设备之间的不同,我没有一个唯一的ID);否则它不能奏效。

    maybe it is good to say my idea that isn't completed:
    create a form for buy this app with unique username in my site.
    after a user bought this app it will be download for him.
    every time that user want's to open the app it connect to server and see if user is available app will work for him and make his user unavailable for next time that it will be opened in another device (NOPE.I can't do this because it isn't a different between tow android device and I haven't a unique ID);else it can not be worked.

    UPD1:可以
    工程?

    UPD1: can this works?

    推荐答案

    您应该生成自己的UUID。

    谷歌的博客文章说 IMEI,MAC地址,序列号,ANDROID_ID,个个都有问题。

    Google's blog post says IMEI, mac address, serial number, ANDROID_ID, all of them has a problem.

    使用 java.util.UUID中代替。

    这篇关于如何到达Android设备的唯一ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆