//BlueStacks App Player 0.7.7.813_RELXP/Win7版测试通过
static string CreateIMEI(string guid)
{
string result = string.Empty;
string str = guid.Replace("-", "").Substring(0, 15);
byte[] bytes = Encoding.Default.GetBytes(str);
for (int num = 0; num < bytes.Length; num++)
{
result += ((int)((0xff & bytes[num]) % 10)).ToString();
}
return result;
}实际上,只要把Guid保存到注册表中就可以了,共有两处:
HKEY_LOCAL_MACHINE\SOFTWARE\BlueStacks:
"USER_GUID"="6fa858ce-772d-ed8f-e314-eb788ebbbbba"
HKEY_LOCAL_MACHINE\SOFTWARE\BlueStacks\Guests\Android:
"BootParameters"="noxsave noxsaveopt root=/dev/sda1 SRC=/android DATA=/dev/sdb1 SDCARD=/dev/sdc1 PREBUNDLEDAPPSFS=/dev/sdd1 HOST=WIN GUID=6fa858ce-772d-ed8f-e314-eb788ebbbbba VERSION=0.7.7.813 OEM=BlueStacks LANG=en_US armApps=true GlMode=1"
说明:修改注册表中的Guid必须重启服务BlueStacks Android Service才能生效,只关开BlueStacks不生效,重启服务会关闭运行中的BlueStacks。测试还发现IMSI和MAC的值也和Guid有对应关系,相同Guid在不同机子上运行时BlueStacks的IMSI和MAC也相同。
参考资料
[1].bluestacks高阶使用技巧收录:http://www.openapp.net.cn/thread-6212-1-1.html
评论(0)
暂无评论。