如何使用 AVD 创建设备的唯一实例
我是一名软件测试人员,我需要能够创建“独特”的模拟设备来测试我们客户的 Android 应用程序。我正在测试的应用程序用于设备安全,它可以识别(虚拟)设备之前是否已在其系统中注册。现在,它停止注册过程,因为它检测到 avd 创建的设备之前已被使用过(即使我删除并创建一个新实例)。
有没有办法每次创建一个唯一的设备,以便应用程序将其视为新设备并允许继续注册?
麦克风
I am a software tester and I need to be able to create "unique" simulated devices for testing our client's android application. The app I am testing is for device security and it recognizes if the (virtual) device has been registered in its system before. Right now, it stops the registration process as it detects that the avd created device has been used before (even if I delete and create a new instance).
Is there a way to create a unique device each time so the app will see it as new and allow the registration to continue?
Mike
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用 IMEI 作为唯一标识符,看起来可能但并不容易。更像是黑客。
以下页面介绍了如何在模拟器中更改 IMEI:
http://codepainters.wordpress.com/ 2009/12/11/android-imei-number-and-the-emulator/
If you are using IMEI as unique identifier it looks like its possible but not easy. More like a hack.
Following page describes how to change IMEI in an emulator:
http://codepainters.wordpress.com/2009/12/11/android-imei-number-and-the-emulator/