提问人:Manuel Martins 提问时间:10/19/2023 最后编辑:Ratilal ChopdaManuel Martins 更新时间:10/19/2023 访问量:29
基于此函数打印字符串和对象的任何方法
any way to print the strings and objects, based in this function
问:
public void getResponse(JSONObject jSONObject, String str) {
RequestQueue newRequestQueue = Volley.newRequestQueue(this.context);
try {
AnonymousClass1 r1 = new JsonObjectRequest(1, str, jSONObject, new GetDataRequest$$ExternalSyntheticLambda1(this), new GetDataRequest$$ExternalSyntheticLambda0(this)) {
public Map<String, String> getHeaders() {
HashMap hashMap = new HashMap();
hashMap.put(HttpHeaders.USER_AGENT, "google-tv");
return hashMap;
}
};
r1.setRetryPolicy(new DefaultRetryPolicy(20000, 1, 1.0f));
newRequestQueue.add(r1);
} catch (Exception unused) {
this.listener.OnGetResponseResult((JSONObject) null, this.requestCode);
}
}
m 需要基于 logcat 或 PrintStream 的打印值。 在“无权访问源”中。需要通过 SMALI 代码插入。
try inject with
const-string v1, "data"
invoke-static {v1, v11}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
但是在启动APK时出现错误。
AndroidRuntime: java.lang.VerifyError: Verifier rejected class tv.google.tv
remote.GetDataRequest: void tv.google.tv.remote.GetDataRequest.getResponse(org.json.JSONObject, java.lang.S
ring) failed to verify: void tv.google.tv.remote.GetDataRequest.getResponse(org.json.JSONObject, java.lang.
tring): [0x5] cannot access instance field android.content.Context tv.google.tv.remote.GetDataRequest.conte
t from object of type Precise Reference: java.lang.String (declaration of 'tv.google.tv.remote.GetDataReque
t' appears in base.apk!classes3.dex)
请提供任何帮助
答: 暂无答案
评论