MD5 校验值:8d01bad3385dcb060a6dcda2da0f8dbf
k.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package com.razorpay; import android.content.Context; import android.net.Uri; import android.os.Build; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.io.StringWriter; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.json.JSONObject; public class k { private String f10823a; private boolean f10824b; private String f10825c; private String f10826d; private String f10827e; private String f10828f; private boolean f10829g; private boolean f10830h; private JSONObject f10831i; private String f10832j; private String f10833k; private String f10834l; private boolean f10835m; private JSONObject f10836n; private String f10837o; private String f10838p; private String f10839q; private String f10840r; private Boolean f10841s; private int f10842t; private int f10843u; private String f10844v; private boolean f10845w; public static void C(Context context, String str) { u3.e(context).putString("rzp_config_version", str).apply(); } private void D(JSONObject jSONObject) { this.f10835m = ((Boolean) l.y("magic.enable", jSONObject, Boolean.TRUE)).booleanValue(); this.f10836n = (JSONObject) l.y("magic.settings", jSONObject, new JSONObject()); this.f10837o = (String) l.y("magic.endpoint", jSONObject, "https://cdn.razorpay.com/static/magic/"); this.f10838p = (String) l.y("magic.version_file_name", jSONObject, "version.json"); this.f10839q = (String) l.y("magic.js_file_name", jSONObject, "magic.js"); } private void E(JSONObject jSONObject) { this.f10830h = ((Boolean) l.y("otpelf.enable", jSONObject, Boolean.TRUE)).booleanValue(); this.f10831i = (JSONObject) l.y("otpelf.settings", jSONObject, new JSONObject()); this.f10832j = (String) l.y("otpelf.endpoint", jSONObject, "https://cdn.razorpay.com/static/otpelf/"); this.f10833k = (String) l.y("otpelf.version_file_name", jSONObject, "version.json"); this.f10834l = (String) l.y("otpelf.js_file_name", jSONObject, "otpelf.js"); } private void F(JSONObject jSONObject) { this.f10840r = (String) l.y("permissions.custom_message", jSONObject, ""); this.f10841s = Boolean.valueOf(((Boolean) l.y("permissions.enable_custom_message", jSONObject, Boolean.FALSE)).booleanValue()); this.f10842t = ((Integer) l.y("permissions.max_ask_count", jSONObject, 0)).intValue(); } private void G(JSONObject jSONObject) { this.f10843u = ((Integer) l.y("update_sdk_config.latest_version", jSONObject, 1)).intValue(); this.f10844v = (String) l.y("update_sdk_config.msg", jSONObject, ""); this.f10845w = ((Boolean) l.y("update_sdk_config.enable_alert", jSONObject, Boolean.TRUE)).booleanValue(); } public static void c(String str, Map<String, String> map, Context context) { m0.b(str, map, new i2(context)); } public static String d(Context context) { return u3.a(context).getString("advertising_id", null); } public static String e(Context context) { return j(context); } public static JSONObject g(Context context, int i10) { String h10 = h(context); if (h10 == null) { try { InputStream openRawResource = context.getResources().openRawResource(i10); StringWriter stringWriter = new StringWriter(); char[] cArr = new char[1024]; try { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(openRawResource, "UTF-8")); while (true) { int read = bufferedReader.read(cArr); if (read == -1) { break; } stringWriter.write(cArr, 0, read); } openRawResource.close(); h10 = stringWriter.toString(); } catch (Throwable th) { openRawResource.close(); throw th; } } catch (Exception unused) { return null; } } return new JSONObject(h10); } private static String h(Context context) { return u3.a(context).getString("rzp_config_json", null); } private static String j(Context context) { return u3.a(context).getString("rzp_config_version", null); } public static String k(String str) { Matcher matcher = Pattern.compile("^(\\d+\\.)(\\d+\\.)(\\d+)$").matcher(str); if (matcher.find()) { return matcher.replaceFirst("$1$2*"); } return null; } public static Uri.Builder l(Uri.Builder builder, Context context, String str) { builder.appendQueryParameter("merchant_key_id", str).appendQueryParameter("android_version", Build.VERSION.RELEASE).appendQueryParameter("device_id", d(context)).appendQueryParameter("device_manufacturer", Build.MANUFACTURER).appendQueryParameter("device_model", Build.MODEL).appendQueryParameter("network_type", l.q(context).e()).appendQueryParameter("cellular_network_type", l.p(context)).appendQueryParameter("cellular_network_provider", l.o(context)).appendQueryParameter("app_package_name", context.getApplicationContext().getPackageName()).appendQueryParameter("build_type", l.h(context)).appendQueryParameter("magic_version_code", String.valueOf(c1.f10740c.intValue())).appendQueryParameter("rzpassist_version_code", String.valueOf(c1.f10739b.intValue())).appendQueryParameter("webview_user_agent", l.H(context).toString()); return builder; } public static void w(Context context, String str) { u3.e(context).putString("rzp_config_json", str).apply(); } private void x(JSONObject jSONObject) { this.f10829g = ((Boolean) l.y("analytics.lumberjack.enable", jSONObject, Boolean.TRUE)).booleanValue(); this.f10826d = (String) l.y("analytics.lumberjack.key", jSONObject, ""); this.f10828f = (String) l.y("analytics.lumberjack.end_point", jSONObject, ""); this.f10827e = (String) l.y("analytics.lumberjack.sdk_identifier", jSONObject, ""); } private void y(JSONObject jSONObject) { this.f10823a = (String) l.y("config_end_point", jSONObject, ""); this.f10824b = ((Boolean) l.y("enable", jSONObject, "")).booleanValue(); } private void z(JSONObject jSONObject) { A((String) l.y("checkout.end_point", jSONObject, "")); } void A(String str) { this.f10825c = str; } public void B(JSONObject jSONObject) { try { G(jSONObject); y(jSONObject); F(jSONObject); x(jSONObject); E(jSONObject); D(jSONObject); z(jSONObject); } catch (Exception unused) { } } public String f() { return "https://api.razorpay.com" + this.f10825c; } public String i() { return this.f10823a; } public int m() { return this.f10843u; } public String n() { return this.f10828f; } public String o() { return this.f10826d; } public String p() { return this.f10827e; } public JSONObject q() { return this.f10831i; } public String r() { return this.f10844v; } public boolean s() { return this.f10824b; } public Boolean t() { return Boolean.valueOf(this.f10829g); } public Boolean u() { return Boolean.valueOf(this.f10830h); } public boolean v() { return this.f10845w; } }