更改设备ID在Android模拟器? [英] Change the device ID on an Android emulator?

查看:1801
本文介绍了更改设备ID在Android模拟器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法改变这种状况将通过仿真器的 TelephonyManager 返回的IMEI?此外,有没有办法改变由 Settings.Secure.ANDROID_ID

Is there a way to change the IMEI that will be returned by the emulator's TelephonyManager? Also, is there a way to change the ID returned by Settings.Secure.ANDROID_ID?

我用这些ID存储在服务器端的数据时彼此区分我的用户。这将是很好,如果让他们不都是使用同一套用户数据的我的QA团队可以改变这些ID。

I use these IDs to distinguish my users from one another when storing their data on the server side. It would be nice if my QA team could change these IDs so that they are not all using the same set of user data.

推荐答案

我还没有尝试过,但是的此页面列出了涉及到手动修改emaultor.exe文件的方法。看来pretty简单,但你必须为每个QA团队成员独立的模拟器。

I haven't tried it, but this page outlines a method that involves manually modifying the emaultor.exe file. It seems pretty straightforward, though you'd have to create a separate emulator for each QA team member.

这篇关于更改设备ID在Android模拟器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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