internal static void SendStatsSync(
            string op,
            string status,
            string uri,
            string package,
            string errorCode = "",
            string vmname    = "")
        {
            Dictionary <string, string> data = ClientStats.GetCommonData;

            data.Add(nameof(op), op);
            data.Add(nameof(status), status);
            string str = !(uri != "engine_activity") ? RegistryManager.Instance.Version : "4.250.0.1070";

            data.Add("version", str);
            if (uri == "emulator_activity")
            {
                Dictionary <string, string> resolutionData = BlueStacksUIUtils.GetResolutionData();
                try
                {
                    resolutionData.ToList <KeyValuePair <string, string> >().ForEach((System.Action <KeyValuePair <string, string> >)(kvp => data[kvp.Key] = kvp.Value));
                }
                catch (Exception ex)
                {
                    Logger.Error("Merge dictionary failed. Ex : " + ex.ToString());
                }
                try
                {
                    BlueStacksUIUtils.GetEngineSettingsData(vmname).ToList <KeyValuePair <string, string> >().ForEach((System.Action <KeyValuePair <string, string> >)(kvp => data[kvp.Key] = kvp.Value));
                }
                catch (Exception ex)
                {
                    Logger.Error("Merge dictionary failed. Ex : " + ex.ToString());
                }
            }
            if (!string.IsNullOrEmpty(errorCode))
            {
                data.Add("error_code", errorCode);
            }
            if (!string.IsNullOrEmpty(package))
            {
                data.Add("app_pkg", package);
            }
            ClientStats.SendStats(string.Format((IFormatProvider)CultureInfo.InvariantCulture, "{0}/bs3/stats/{1}", string.IsNullOrEmpty(ClientStats.sDevUrl) ? (object)RegistryManager.Instance.Host : (object)ClientStats.sDevUrl, (object)uri), data, (Dictionary <string, string>)null, vmname);
        }