I need help from an expert in Smali
language.
I need to change the color of a string with public Id of 0x7f0f0042
in the program below. The reason for this is that I'm building a theme for an android application.
How can I achieve this?
Here's the Smali code google drive link. And following is the partial transcription of it. The full code is too extensive for the body of an SO question. You'll notice the ...
separating the top, middle, and bottom of the code. In the middle part is the line where 0x7f0f0042
is defined.
.class public Lcom/samsung/dialer/impl/k;
.super Ljava/lang/Object;
.source "CallLogContextMenuHandlerImpl.java"
# interfaces
.implements Lcom/samsung/contacts/b/a;
# static fields
.field public static a:Ljava/lang/String;
.field public static b:Ljava/lang/Integer;
.field private static c:Ljava/lang/String;
.field private static d:Ljava/lang/Integer;
...
...
...
move-result v0
if-eqz v0, :cond_e
const/4 v0, 0x1
const/16 v1, 0x9
const/4 v2, 0x0
const v3, 0x7f0f0042
invoke-interface {p1, v0, v1, v2, v3}, Landroid/view/ContextMenu;->add(IIII)Landroid/view/MenuItem;
:cond_c
:goto_7
const-string v0, "KOR"
invoke-static {}, Lcom/samsung/contacts/util/l;->a()Lcom/samsung/contacts/util/l;
move-result-object v1
invoke-virtual {v1}, Lcom/samsung/contacts/util/l;->K()Ljava/lang/String;
move-result-object v1
...
...
...
.method public b(Landroid/view/View;)V
.locals 1
iget-object v0, p0, Lcom/samsung/dialer/impl/k;->A:Landroid/content/Context;
check-cast v0, Landroid/app/Activity;
invoke-virtual {v0, p1}, Landroid/app/Activity;->unregisterForContextMenu(Landroid/view/View;)V
return-void
.end method