engine-native icon indicating copy to clipboard operation
engine-native copied to clipboard

Google security Warning

Open kongsanwen opened this issue 8 years ago • 3 comments

引擎使用cocos统计的话,会导致google预发布报告的一个警告, Your app is using device identifiers (IMEI, MAC address, Build Serial, etc.) and sending identifier data to a remote network address.

This issue is commonly (but not only) found in apps using an outdated Advertising SDK.

To stop receiving this warning, try updating or changing any SDKs or code in your app that may be using device identifiers.

Sending device identifiers is not a best practice for most use-cases and if you're using this identifier for advertising purposes, this may be a violation of Google Play policies and can affect your app’s visibility on the Play Store. To get recommendations on how your app can use identifiers, learn about unique identifier best practices.

libcocosanalytics.jar中有不少读取硬件信息的代码, (TelephonyManager)paramContext.getSystemService("phone")).getDeviceId() (WifiManager)paramContext.getSystemService("wifi")).getConnectionInfo().getMacAddress(); 统计如今已经不建议直接使用这种硬件信息来指定唯一标识了

kongsanwen avatar Jan 09 '18 09:01 kongsanwen

那不然需要用什么方式来获得唯一标识呢?如果用了标识,如何不被谷歌降权呢?

jareguo avatar Jan 09 '18 09:01 jareguo

楼主,只有你一个人在回答问题的啊, cocosanalytics这东西问题有点多啊,我在ios上发现它和smartfox有冲突,BaseEvent,都有这么一个类,导致重复命名,找了我半天功夫。 唯一标识啊,我现在只是随便用了 Settings.Secure.getString(mContext.getContentResolver(), Settings.Secure.ANDROID_ID); 不过也不是很好,我看看相关的文章在回复吧,

kongsanwen avatar Jan 10 '18 06:01 kongsanwen

谢谢~

jareguo avatar Jan 10 '18 06:01 jareguo