@SuppressLint("HardwareIds")
    public static String getIdentifier(Context context) {
        try {
            if (!isAndroidIDEnabled) {
                SALog.i(TAG, "SensorsData getAndroidID is disabled");
                return "";
            }
            if (SAPropertyManager.getInstance().isLimitKey(LimitKey.ANDROID_ID)) {
                return SAPropertyManager.getInstance().getLimitValue(LimitKey.ANDROID_ID);
            }
            if (TextUtils.isEmpty(androidID)) {
                SALog.i(TAG, "SensorsData getIdentifier");
                androidID = Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID);
                if (!isValidAndroidId(androidID)) {
                    androidID = "";
                }
            }
        } catch (Exception e) {
            SALog.printStackTrace(e);
        }
        return androidID;
    }
@Test
    public void getIdentifier() {
        String androidID = SensorsDataUtils.getIdentifier(mApplication);
        System.out.println("androidID = " + androidID);
    }