设备伪装信息不全
lx36301766 opened this issue · 1 comments
lx36301766 commented
demo里面我看到可以进行设备伪装,但是WidevineID不能伪装,这个ID很多设备上能获取到,有些app会拿去用作为机器唯一标识使用,目前我测试了下外部和内部app获取到的这个ID是一样的,能否加个伪装这个ID的参数,不然有的App会被识别到同一台机器多次登录,获取的代码如下:
/**
* 获取数字版权管理设备ID
*
* @return WidevineID,可能为空
*/
public static String getWidevineID() {
try {
//See https://stackoverflow.com/questions/16369818/how-to-get-crypto-scheme-uuid
//You can find some UUIDs in the https://github.com/google/ExoPlayer source code
final UUID WIDEVINE_UUID = new UUID(0xEDEF8BA979D64ACEL, 0xA3C827DCD51D21EDL);
MediaDrm mediaDrm = new MediaDrm(WIDEVINE_UUID);
byte[] widevineId = mediaDrm.getPropertyByteArray(MediaDrm.PROPERTY_DEVICE_UNIQUE_ID);
if (widevineId == null) {
return "";
}
StringBuilder sb = new StringBuilder();
for (byte aByte : widevineId) {
sb.append(String.format("%02x", aByte));
}
return sb.toString();
} catch (Exception e) {
e.printStackTrace();
} catch (Error e) {
e.printStackTrace();
}
return "";
}
FSpaceCore commented
暂时没有对这个进行模拟