如何使用 AVD 创建设备的唯一实例

发布于 2024-12-25 01:35:24 字数 206 浏览 3 评论 0原文

我是一名软件测试人员,我需要能够创建“独特”的模拟设备来测试我们客户的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谷夏 2025-01-01 01:35:24

如果您使用 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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文