package com.huawei.hms.hwid; import com.huawei.hms.support.api.entity.common.CommonConstant; import org.json.JSONException; import org.json.JSONObject; /* loaded from: classes2.dex */ public class af { private String a; public af() { } public af(String str) { this.a = str; } public String a() { JSONObject jSONObject = new JSONObject(); try { jSONObject.put(CommonConstant.ReqAccessTokenParam.PACKAGE_NAME, this.a); return jSONObject.toString(); } catch (JSONException unused) { as.d("ReadSmsInputBean", "toJson failed", true); return null; } } }