有没有办法让我的Android应用程序运行在安装时一些自定义的code? [英] Is there a way to make my Android app run some custom code upon installation?
问题描述
我有关于运行某些反盗版措施,我的应用程序,所以我想知道如果我能做到这一点签上安装应用程序的一些想法。运行在首批推出的code是不行的,因为有人仍然可以复制出来的apk文件,但不运行它。
I have some ideas about running some anti-piracy measures for my app so I wondered if I could do this to sign the application on install. Running the code on first launch is no good, because someone could still copy out the apk without running it.
推荐答案
有没有办法运行安装在Android code遗憾的是,只能运行在第一次启动。
There is no way to run code on install on Android unfortunately, only run on first launch.
如果您有兴趣的反盗版措施,你会发现的这个职位上的Android开发者博客有关保护Android的授权验证库的有趣的,如果你没有看过它了。
If you're interested in anti-piracy measures you'll find this post on the Android Developers blog about securing the Android License Verification Library interesting, if you haven't read it already.
这篇关于有没有办法让我的Android应用程序运行在安装时一些自定义的code?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!