I have been trying to reverse engineer an Android application and was wondering how I would go about logging a certain string.  Here is the method I am trying to log the String from:.method private getValue(Ljava/lang/String;)[B.locals 2.param p1, parameter    # Ljava/lang/String;.prologue.line 216new-instance v0, Ljava/lang/StringBuilder;invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()Viget-object v1, p0, Lcom/directory/theseSettings;->newSettings:Lcom/directory/NewSettings;iget-object v1, v1, Lcom/directory/NewSettings;->newValue:Ljava/lang/String;invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;move-result-object v0invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;move-result-object v0invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;move-result-object v0const-string v1, UTF-8invoke-static {v0, v1}, Lorg/apache/http/util/EncodingUtils;->getBytes(Ljava/lang/String;Ljava/lang/String;)[Bmove-result-object v0return-object v0.end methodFor reference, here is that method again when decompiled with jadx.private byte[] getValue(String parameter) {    return EncodingUtils.getBytes(this.newSettings.newValue + parameter, UTF-8);}I was hoping to log this.newSettings.newValue as seen in the jadx method, and Im guessing it would be:iget-object v1, v1, Lcom/directory/NewSettings;->newValue:Ljava/lang/String;In the smali.The only problem is I dont know how to log it, I am able to log parameter by usingconst-string v0, PARAMETER: invoke-static {v0, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I But Im not sure how to go about it if its referenced within the method, rather than being passed to it.
How do I Log a String Referenced within a Method - Smali
android;java