[Guide] Full Screen Dialer - MM

Search This thread

tdunham

Recognized Contributor
Jun 21, 2008
13,686
36,462
TampaBay
[Guide] Full Screen Dialer - MM

DO NOT QUOTE THE OP WHEN POSTING!!!

This guide assumes you are already proficient at de/recompiling stock apk's.

Features:
- Choose between any custom background or solid or gradient color backgrounds
- Dialpad digits, letters, divider & digits pressed are colorable
- All options can be turned on or off so they will not conflict with installed themes

We are modifying SecContacts_M.apk.
These modification were done on a Note 5 - 6.0.1 smali. Yours may be different and you will need to adapt.
One user already pointed out that on the S7, the ap.smali edits are in an.smali
There is an example of the an.smali edits here: http://forum.xda-developers.com/showpost.php?p=68686947&postcount=61

*** Add new files attached to the bottom of this post.

res\values\ids.xml
Add new ID
Code:
    <item type="id" name="gear_panel_bg_view">false</item>
smali\com\android\dialer\dialpad\DialpadFragment.smali
Add new fields.
Code:
# instance fields
[COLOR="blue"].field private final mFullscreenBG:Z

.field private final mThemeoverride:Z
[/COLOR]
Increase .locals by 3 and add new code in BLUE
Code:
.method private K()V
    .locals [COLOR="blue"]7[/COLOR]
.
.
.
    const v2, 0x7f0201cc  ## type="drawable" name="dialpad_fragment_background"

[COLOR="blue"]    iget-boolean v4, p0, Lcom/android/dialer/dialpad/DialpadFragment;->mFullscreenBG:Z

    if-eqz v4, :cond_td

    invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadFragment;->getContext()Landroid/content/Context;

    move-result-object v4

    const-string v5, "dialpad_fragment_background_fullscreen" # This is your resource name

    const-string v6, "drawable" # This is the resource type

    invoke-static {v4, v5, v6}, Lcom/android/wubydax/IdUtils;->getIdentifier(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)I

    move-result v2

    :cond_td
[/COLOR]    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackground(Landroid/graphics/drawable/Drawable;)V

    goto :goto_1
.end method
Increase .locals by 3 and add new code in BLUE
Code:
.method private N()V
    .locals [COLOR="blue"]5[/COLOR]
.
.
.
    invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0201cd  ## type="drawable" name="dialpad_fragment_bg"

    [COLOR="blue"]iget-boolean v2, p0, Lcom/android/dialer/dialpad/DialpadFragment;->mFullscreenBG:Z

    if-eqz v2, :cond_td

    invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadFragment;->getContext()Landroid/content/Context;

    move-result-object v2

    const-string v3, "dialpad_fragment_bg_fullscreen" # This is your resource name

    const-string v4, "drawable" # This is the resource type

    invoke-static {v2, v3, v4}, Lcom/android/wubydax/IdUtils;->getIdentifier(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)I

    move-result v1

    :cond_td
[/COLOR]    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
Increase .locals by 3 and add new code in BLUE
Code:
.method private g(Landroid/view/View;)V
    .locals [COLOR="blue"]5[/COLOR]
.
.
.
    invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0201cc  ## type="drawable" name="dialpad_fragment_background"

    [COLOR="blue"]iget-boolean v2, p0, Lcom/android/dialer/dialpad/DialpadFragment;->mFullscreenBG:Z

    if-eqz v2, :cond_td

    invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadFragment;->getContext()Landroid/content/Context;

    move-result-object v2

    const-string v3, "dialpad_fragment_background_fullscreen" # This is your resource name

    const-string v4, "drawable" # This is the resource type

    invoke-static {v2, v3, v4}, Lcom/android/wubydax/IdUtils;->getIdentifier(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)I

    move-result v1

    :cond_td
[/COLOR]    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/view/View;->setBackground(Landroid/graphics/drawable/Drawable;)V

    goto :goto_1
.end method
Add new code in BLUE
Code:
.method public b(Landroid/view/View;)V
.
.
.
    const v0, 0x7f0e021a  ## type="id" name="digits"

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/android/dialer/dialpad/EllipsisTextView;

    iput-object v0, p0, Lcom/android/dialer/dialpad/DialpadFragment;->c:Lcom/android/dialer/dialpad/EllipsisTextView;

    [COLOR="blue"]move-object/from16 v2, p0

    invoke-virtual {v2, v0}, Lcom/android/dialer/dialpad/DialpadFragment;->setDialerDigitPressed(Landroid/widget/TextView;)V
[/COLOR]
    iget-object v0, p0, Lcom/android/dialer/dialpad/DialpadFragment;->c:Lcom/android/dialer/dialpad/EllipsisTextView;

    iget-object v2, p0, Lcom/android/dialer/dialpad/DialpadFragment;->v:Landroid/content/Context;

    invoke-static {v2}, Lcom/android/dialer/dialpad/w;->a(Landroid/content/Context;)Lcom/android/dialer/dialpad/w;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/android/dialer/dialpad/EllipsisTextView;->setKeyListener(Landroid/text/method/KeyListener;)V
Increase .locals by 5 and add new code in BLUE
Code:
.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals [COLOR="blue"]10[/COLOR]

    const/4 v4, 0x0

   [COLOR="blue"] invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadFragment;->setSDBackground()V

    invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadFragment;->setThemeOverride()V
[/COLOR]
    sget-object v0, Lcom/android/dialer/dialpad/DialpadFragment;->O:Ljava/lang/String;

    const-string/jumbo v1, "onCreateView >>>>>"

    invoke-static {v0, v1}, Landroid/util/secutil/Log;->secI(Ljava/lang/String;Ljava/lang/String;)I

    const v0, 0x7f030098  ## type="layout" name="dialpad_fragment"

    [COLOR="blue"]iget-boolean v6, p0, Lcom/android/dialer/dialpad/DialpadFragment;->mFullscreenBG:Z

    if-eqz v6, :cond_td

    invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadFragment;->getContext()Landroid/content/Context;

    move-result-object v6

   invoke-virtual {v6}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    const-string v7, "dialpad_fragment_fullscreen" # This is the resource name

    const-string v8, "layout" # this is resource type

    invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadFragment;->getContext()Landroid/content/Context;

    move-result-object v9

    invoke-virtual {v9}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v6, v7, v8, v9}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

    move-result v0 #This now holds your id number

    :cond_td
[/COLOR]    invoke-virtual {p1, v0, p2, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
Add new methods to bottom of smali.
Code:
.method setDialerDigit(Landroid/widget/TextView;)V
    .locals 3

    iget-boolean v1, p0, Lcom/android/dialer/dialpad/DialpadFragment;->mThemeoverride:Z

    if-eqz v1, :cond_td

    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    const-string v1, "main_digit_color"

    const v2, -0x1000000

    invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

    :cond_td
    return-void
.end method

.method setDialerDigitPressed(Landroid/widget/TextView;)V
    .locals 3

    iget-boolean v1, p0, Lcom/android/dialer/dialpad/DialpadFragment;->mThemeoverride:Z

    if-eqz v1, :cond_td

    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    const-string v1, "main_digit_color_pressed"

    const v2, -0x1000000

    invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

    :cond_td
    return-void
.end method

.method setDialerLetter(Landroid/widget/TextView;)V
    .locals 3

    iget-boolean v1, p0, Lcom/android/dialer/dialpad/DialpadFragment;->mThemeoverride:Z

    if-eqz v1, :cond_td

    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    const-string v1, "main_letter_color"

    const v2, -0x1000000

    invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

    :cond_td

    return-void
.end method

.method public setSDBackground()V
    .locals 5

    invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadFragment;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    const-string v1, "enable_dialer_custom_bg"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

    move-result v0

    if-eqz v0, :cond_td

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/android/dialer/dialpad/DialpadFragment;->mFullscreenBG:Z

    :cond_td

    return-void
.end method

.method public setThemeOverride()V
    .locals 4

    const/4 v2, 0x0

    iput-boolean v2, p0, Lcom/android/dialer/dialpad/DialpadFragment;->mThemeoverride:Z

    invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadFragment;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    const-string v2, "dialer_theme_override"

    const/4 v3, 0x0

    invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

    move-result v1

    if-eqz v1, :cond_td

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/android/dialer/dialpad/DialpadFragment;->mThemeoverride:Z

    :cond_td

    return-void
.end method
Next smali...
smali\com\android\dialer\dialpad\DialpadKeyButton.smali
Increase .locals by 3 and add new code in BLUE
Code:
.method public a()V
    .locals [COLOR="blue"]6[/COLOR]
.
.
.
    invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadKeyButton;->getResources()Landroid/content/res/Resources;

    move-result-object v0
    ## entire dialpad background setup for transparency
    const v1, 0x7f020072  ## type="drawable" name="call_dial_btn_bg_easy_dialpad_button_white" id="0x7f020072" />

   [COLOR="blue"] invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadKeyButton;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-virtual {v3}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v3

    const-string v4, "enable_dialer_custom_bg"

    const/4 v5, 0x0

    invoke-static {v3, v4, v5}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

    move-result v3

    if-eqz v3, :cond_td

    invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadKeyButton;->getContext()Landroid/content/Context;

    move-result-object v3

    const-string v4, "call_dial_btn_bg_easy_dialpad_button_transparent" # This is your resource name

    const-string v5, "drawable" # This is the resource type

    invoke-static {v3, v4, v5}, Lcom/android/wubydax/IdUtils;->getIdentifier(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)I

    move-result v1
    :cond_td
[/COLOR]    invoke-virtual {v0, v1, v2}, Landroid/content/res/Resources;->getDrawable(ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/android/dialer/dialpad/DialpadKeyButton;->setBackground(Landroid/graphics/drawable/Drawable;)V

    goto :goto_0
.end method
Next smali...
smali\com\samsung\dialer\dialpad\ap.smali
Increase .locals by 3 and add new code in BLUE
Code:
.method private a(Landroid/widget/ImageView;Z)V
    .locals [COLOR="blue"]4[/COLOR]
.
.
.

    if-nez p1, :cond_0

    :goto_0
    return-void

    :cond_0
    if-eqz p2, :cond_1

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setVisibility(I)V

    invoke-direct {p0}, Lcom/samsung/dialer/dialpad/ap;->c()I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setImageResource(I)V

    invoke-direct {p0}, Lcom/samsung/dialer/dialpad/ap;->f()I

    move-result v0

    [COLOR="blue"]    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    const-string v2, "dialer_theme_override"

    const/4 v3, 0x0

    invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

    move-result v1

    if-eqz v1, :cond_td

    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    const-string v2, "main_letter_color"

    const v3, -0x1000000

    invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

    move-result v0

    :cond_td
[/COLOR]    invoke-static {v0}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setImageTintList(Landroid/content/res/ColorStateList;)V
Add new code in BLUE
Code:
.method private a(Landroid/widget/TextView;I)V
    .locals 1

    if-nez p1, :cond_0

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/samsung/dialer/dialpad/ap;->s:[I

    aget v0, v0, p2

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V

    iget-object v0, p0, Lcom/samsung/dialer/dialpad/ap;->e:Landroid/graphics/Typeface;

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V

    invoke-direct {p0}, Lcom/samsung/dialer/dialpad/ap;->e()I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

    [COLOR="Blue"]move-object/from16 v1, p0

    invoke-virtual {v1, p1}, Lcom/samsung/dialer/dialpad/ap;->setDialerDigit(Landroid/widget/TextView;)V[/COLOR]
Add new code in BLUE
Code:
.method private b(Landroid/widget/TextView;I)V
.
.
.
    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V

    iget-object v0, p0, Lcom/samsung/dialer/dialpad/ap;->f:Landroid/graphics/Typeface;

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V

    invoke-direct {p0}, Lcom/samsung/dialer/dialpad/ap;->f()I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

    [COLOR="blue"]move-object/from16 v1, p0

    invoke-virtual {v1, p1}, Lcom/samsung/dialer/dialpad/ap;->setDialerLetter(Landroid/widget/TextView;)V
[/COLOR]
    invoke-direct {p0, p1}, Lcom/samsung/dialer/dialpad/ap;->g(Landroid/widget/TextView;)V

    iget-boolean v0, p0, Lcom/samsung/dialer/dialpad/ap;->d:Z

    invoke-direct {p0, p1, v0}, Lcom/samsung/dialer/dialpad/ap;->a(Landroid/widget/TextView;Z)V

    invoke-direct {p0, p1}, Lcom/samsung/dialer/dialpad/ap;->i(Landroid/widget/TextView;)V

    goto :goto_0
.end method
Add new code in BLUE
Code:
.method private c(Landroid/view/View;)V
    .locals 5

    invoke-virtual {p0}, Lcom/samsung/dialer/dialpad/ap;->a()I

    move-result v1

    invoke-virtual {p0}, Lcom/samsung/dialer/dialpad/ap;->b()I

    move-result v2

    [COLOR="blue"]    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    const-string v3, "dialer_theme_override"

    const/4 v4, 0x0

    invoke-static {v0, v3, v4}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

    move-result v0

    if-eqz v0, :cond_td

    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    const-string v3, "main_divider_color"

    const v2, -0x1000000

    invoke-static {v0, v3, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

    move-result v2

    :cond_td[/COLOR]
    const/4 v0, 0x0

    :goto_0
Add new methods to the bottom of this smali.
Code:
.method setDialerDigit(Landroid/widget/TextView;)V
    .locals 3

    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    const-string v1, "dialer_theme_override"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

    move-result v1

    if-eqz v1, :cond_td

    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    const-string v1, "main_digit_color"

    const v2, -0x1000000

    invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

    :cond_td
    return-void
.end method

.method setDialerLetter(Landroid/widget/TextView;)V
    .locals 3

    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    const-string v1, "dialer_theme_override"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

    move-result v1

    if-eqz v1, :cond_td

    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    const-string v1, "main_letter_color"

    const v2, -0x1000000

    invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

    :cond_td

    return-void
.end method
Rom Control V2 Entries
[SOURCE CODE][DEV TOOL][SDK 21+]6thGear RomControl v2.+ for Devs by daxgirl
Add arrays
Code:
    <string-array name="crop_entries">
        <item>Center Crop (default)</item>
        <item>Center Inside</item>
        <item>Fit XY</item>
    </string-array>
    <string-array name="crop_values">
        <item>0</item>
        <item>1</item>
        <item>2</item>
    </string-array>
    <string-array name="custom_bg_type_entries">
        <item>Image</item>
        <item>Solid color</item>
        <item>Gradient</item>
    </string-array>
    <string-array name="custom_bg_type_values">
        <item>0</item>
        <item>1</item>
        <item>2</item>
    </string-array>
    <string-array name="gradient_entries">
        <item>Top to bottom</item>
        <item>Bottom to top</item>
        <item>Left to right</item>
        <item>Right to left</item>
    </string-array>
    <string-array name="gradient_values">
        <item>0</item>
        <item>1</item>
        <item>2</item>
        <item>3</item>
    </string-array>
Add to your pref
Code:
        <PreferenceCategory
            android:title="Main Dialer Backgrounds and Colors" />
        <PreferenceScreen
            android:title="Main Dialer Options"
            android:summary="Set backgrounds or color">
            <com.wubydax.romcontrol.v2.prefs.MySwitchPreference
                android:defaultValue="false"
                android:key="enable_dialer_custom_bg"
                android:summaryOff="Disabled"
                android:summaryOn="Enabled \n> You must also enable custom colors and modify them or the dialpad will not be very visible."
                android:title="Enable custom background"/>
            <com.wubydax.romcontrol.v2.prefs.MyListPreference
                android:defaultValue="0"
                android:dependency="enable_dialer_custom_bg"
                android:entries="@array/custom_bg_type_entries"
                android:entryValues="@array/custom_bg_type_values"
                android:key="dialer_custom_bg_type"
                android:title="Background type"/>
            <com.wubydax.romcontrol.v2.prefs.UriSelectionPreference
                android:dependency="enable_dialer_custom_bg"
                android:key="dialer_bg"
                android:title="Select image for Background"/>
            <com.wubydax.romcontrol.v2.prefs.MyListPreference
                android:defaultValue="0"
                android:dependency="enable_dialer_custom_bg"
                android:entries="@array/crop_entries"
                android:entryValues="@array/crop_values"
                android:key="dialer_crop_type"
                android:title="Set Image Scaling Type"/>
            <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
                android:defaultValue="#00000000"
                android:dependency="enable_dialer_custom_bg"
                android:key="dialer_bg_primary_color"
                android:title="Select primary color"/>
            <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
                android:defaultValue="#00000000"
                android:dependency="enable_dialer_custom_bg"
                android:key="dialer_second_gradient_color"
                android:title="Secondary Color (for gradient)"/>
            <com.wubydax.romcontrol.v2.prefs.MyListPreference
                android:defaultValue="0"
                android:dependency="enable_dialer_custom_bg"
                android:entries="@array/gradient_entries"
                android:entryValues="@array/gradient_values"
                android:key="dialer_bg_gradient_orientation"
                android:title="Gradient orientation"/>
            <com.wubydax.romcontrol.v2.prefs.MySeekBarPreference
                android:defaultValue="255"
                android:dependency="enable_dialer_custom_bg"
                android:key="dialer_opacity"
                app:maxValue="255"
                android:title="Background Opacity"/>
            <PreferenceCategory
                android:title="Dialer Colors - disable if Theme conflicts" />
            <com.wubydax.romcontrol.v2.prefs.MySwitchPreference
                android:title="Digit and Letter Colors On/Off Toggle"
                android:key="dialer_theme_override"
                android:defaultValue="false"
                android:summaryOn="Colors enabled"
                android:summaryOff="Colors disabled" />
            <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
                android:title="Dialer Digits"
                android:key="main_digit_color"
                android:summary="Set digit color"
                android:dependency="dialer_theme_override"
                app:packageNameToKill="com.android.contacts"
                android:defaultValue="#ff000000"  />
            <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
                android:title="Dialer Letters"
                android:key="main_letter_color"
                android:summary="Choose letter color"
                android:dependency="dialer_theme_override"
                app:packageNameToKill="com.android.contacts"
                android:defaultValue="#ff000000"  />
            <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
                android:title="Dialer Divider"
                android:key="main_divider_color"
                android:summary="Choose divider color"
                android:dependency="dialer_theme_override"
                android:defaultValue="#ff000000"  />
            <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
                android:title="Dialer Digits Pressed"
                android:key="main_digit_color_pressed"
                android:summary="Set digit color"
                android:dependency="dialer_theme_override"
                android:defaultValue="#ff000000"  />
        </PreferenceScreen>

Additional Notes:
- This is designed to be compatible with theme store themes. Enabling custom backgrounds or colors my conflict with themes.

Credits:
- This modification uses two really awesome modifications provided on my guide thread:
[Mod][GUIDE][CUSTOM VIEW] 6thGear Custom View for any app
and also I utilized the [How-To] Find view by ID without having to find public resource - APK Edition which has additional links provided for that one in Post #10.
I highly recommend the new method how to find public resource without public value. It has made this guide far easier for you!!! :highfive:
 

Attachments

  • FullScreen_dialer_support.files.zip
    7.6 KB · Views: 545
Last edited:

sonnguyenpg

Senior Member
Aug 13, 2013
60
15
Sorry sir.
I mod custumbackgound incallui so choise color and gradient ok but image not show. You have thng about this

Gửi từ SM-J710F của tôi bằng cách sử dụng Tapatalk
 

OvrDriVE

Senior Member
Sep 8, 2012
3,750
11,768
Fresno
Works like a charm on s7 edge dialer. had to edit an.smali instead of ap.smali though. now to change that ugly green bar at the top. lol

Screenshot_2016-07-29-23-20-10.jpg

thanks @tdunham for another awesome guide
 

tdunham

Recognized Contributor
Jun 21, 2008
13,686
36,462
TampaBay
Works like a charm on s7 edge dialer. had to edit an.smali instead of ap.smali though. now to change that ugly green bar at the top. lol

View attachment 3828063

thanks @tdunham for another awesome guide
Great job sir! Did you have any issue with the signature? I am using an older version of apktool on this one (just sticking with what I was using at the time) and ended up having to resign with TickleMyAndroid for it to work.

I know what you mean about the green. I created a different version for myself with slightly blue themed. If anyone would like to share their own customizations here as they accomplish them, I am sure it would be welcome.
 

tdunham

Recognized Contributor
Jun 21, 2008
13,686
36,462
TampaBay
These are the color edits I did to change green to blue.

Code:
<color name="dial_button_bg_easy_solid_green">#ff3ebf10</color>
<color name="dial_button_ripple_color">#4c6ebd52</color>
<color name="dialpad_button_left_icon_tint_color">#ff3ebf10</color>
<color name="dialpad_floating_action_button_color">#ff3ebf10</color>
<color name="dialpad_floating_action_button_color_call">#ff3ebf10</color>
<color name="dialpad_multisim_button_color_call">#ff3ebf10</color>
<color name="dialtacts_color_primary">#ff6ebd52</color>
<color name="dialtacts_status_bar_color">#ff6ebd52</color>
<color name="list_item_checkbox_color_on">#ff6ebd52</color>
 
  • Like
Reactions: vdvdvd

tdunham

Recognized Contributor
Jun 21, 2008
13,686
36,462
TampaBay
On the OP, I have added credits with links to additional guides on some of the concepts and modifications used to create this little monster.
Please take the time to visit those posts if you are not familiar with them.
Tnx - Troy
 

thereassaad

Recognized Contributor
Aug 22, 2013
7,620
9,713
Bierut
Great job sir! Did you have any issue with the signature? I am using an older version of apktool on this one (just sticking with what I was using at the time) and ended up having to resign with TickleMyAndroid for it to work.

I know what you mean about the green. I created a different version for myself with slightly blue themed. If anyone would like to share their own customizations here as they accomplish them, I am sure it would be welcome.




Yes on S7 contact there is a signature issues that's gaves Parsing errors , just my friend he do it & told me about that , so i just told him to try it with new signature compiling , only this way can fixed Parsing errors ...
 

OvrDriVE

Senior Member
Sep 8, 2012
3,750
11,768
Fresno
Great job sir! Did you have any issue with the signature? I am using an older version of apktool on this one (just sticking with what I was using at the time) and ended up having to resign with TickleMyAndroid for it to work.

I know what you mean about the green. I created a different version for myself with slightly blue themed. If anyone would like to share their own customizations here as they accomplish them, I am sure it would be welcome.

i used apktool 2.2.0 dirty. i also dirty flashed it. but havn't tryed on a clean install yet. i did sign it though.

err my bad. it's a 2.2.0 snapshot i use

edit: just deleted seccontacts_m and /data/data for contacts and phone.. rebooted and flashed seccontacts_m and works like a charm. no parse error.
 
Last edited:

aceqott

Senior Member
Mar 6, 2013
266
252
CA
i used apktool 2.2.0 dirty. i also dirty flashed it. but havn't tryed on a clean install yet. i did sign it though.

err my bad. it's a 2.2.0 snapshot i use

edit: just deleted seccontacts_m and /data/data for contacts and phone.. rebooted and flashed seccontacts_m and works like a charm. no parse error.

Do you keep the original signature when compiling? Please report how you do your the recompiled.
I apktool use 2.1.2 dirty.
 

OvrDriVE

Senior Member
Sep 8, 2012
3,750
11,768
Fresno
Do you keep the original signature when compiling? Please report how you do your the recompiled.
I apktool use 2.1.2 dirty.

actually i use advancedapktool4.2.0, when i recompile i just by habit automatically tell it to sign the apk. it's probably a bad habit but hasn't failed me yet
 
  • Like
Reactions: aceqott

aceqott

Senior Member
Mar 6, 2013
266
252
CA
I followed the guide without skipping a point, but the category "Dialer Colors - Theme disable if conflicts" nothing works. :(
Here I leave 3 smalis amending if someone can help me please.

I've already reviewed several times, I do not know what went wrong.
 

Attachments

  • SecContacts_M_files.zip
    48.4 KB · Views: 25
  • photo_2016-07-30_18-32-33.jpg
    photo_2016-07-30_18-32-33.jpg
    58.6 KB · Views: 201
  • photo_2016-07-30_18-32-42.jpg
    photo_2016-07-30_18-32-42.jpg
    65.5 KB · Views: 199
Last edited:

thereassaad

Recognized Contributor
Aug 22, 2013
7,620
9,713
Bierut
I followed the guide without skipping a point, but the category "Dialer Colors - Theme disable if conflicts" nothing works. :(
Here I leave 3 smalis amending if someone can help me please.

I've already reviewed several times, I do not know what went wrong.




tdunham also here too , as im sure i did everything correctly my locales my edited same as mentioned on op , i even try it many times with s7/n5/s6 contact & all its same dialer colors not worked , sorry for not providing logs as i didn't find any fatal or error with contact , any help hint any idea , ? Thank u


Here my log maybe u can find something that i couldn't find it

https://mega.nz/#!Wt4mQZYQ!FRLwU_dzQAOu3gJudJUyJcuhJucrfcBAkGwNW9WSbOg

???
 
Last edited:

tdunham

Recognized Contributor
Jun 21, 2008
13,686
36,462
TampaBay
I followed the guide without skipping a point, but the category "Dialer Colors - Theme disable if conflicts" nothing works. :(
Here I leave 3 smalis amending if someone can help me please.

I've already reviewed several times, I do not know what went wrong.

tdunham also here too , as im sure i did everything correctly my locales my edited same as mentioned on op , i even try it many times with s7/n5/s6 contact & all its same dialer colors not worked , sorry for not providing logs as i didn't find any fatal or error with contact , any help hint any idea , ? Thank u
Are you guys using Rom Control V2?
The filepreference toggle requires two smali edits if NOT using version 2 or it will never work.
Code:
.method public setThemeOverride()V
.
.
.
    const-string v1, "/data/data/com.wubydax.romcontrol[COLOR="Red"].v2[/COLOR]/files/modcfg_theme_override"
 

thereassaad

Recognized Contributor
Aug 22, 2013
7,620
9,713
Bierut
Are you guys using Rom Control V2?
The filepreference toggle requires two smali edits if NOT using version 2 or it will never work.
Code:
.method public setThemeOverride()V
.
.
.
    const-string v1, "/data/data/com.wubydax.romcontrol[COLOR="Red"].v2[/COLOR]/files/modcfg_theme_override"



Im sure im using rom control v2 my friend
 

tdunham

Recognized Contributor
Jun 21, 2008
13,686
36,462
TampaBay
Im sure im using rom control v2 my friend
Well, that is the Boolean that controls the toggle in both smalis ap & DialpadFragment.
To test if it is not working, try removing any occurrences for mThemeoverride:Z
(this example is in ap.smali)
Code:
    iget-boolean v1, p0, Lcom/samsung/dialer/dialpad/ap;->mThemeoverride:Z

    if-eqz v1, :cond_td
.
.
.
    :cond_td
 

thereassaad

Recognized Contributor
Aug 22, 2013
7,620
9,713
Bierut
Well, that is the Boolean that controls the toggle in both smalis ap & DialpadFragment.
To test if it is not working, try removing any occurrences for mThemeoverride:Z
(this example is in ap.smali)
Code:
    iget-boolean v1, p0, Lcom/samsung/dialer/dialpad/ap;->mThemeoverride:Z

    if-eqz v1, :cond_td
.
.
.
    :cond_td



U mean this right

iget-boolean v1, p0, Lcom/samsung/dialer/dialpad/ap;->mThemeoverride:Z

if-eqz v1, :cond_td

invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

move-result-object v0

invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v0

const-string v1, "main_digit_color"

const v2, -0x1000000

invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v0

invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

:cond_td


If this one then not recompiled

Log

ther:
SecContacts_M_310716115726.apk\smali\com\samsung\dialer\dialpad\ap.smali[3177,4] no viable alternative at input 'return-void'
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/samsung/dialer/dialpad/ap.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:67)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:51)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:38)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:364)
at brut.androlib.Androlib.buildSources(Androlib.java:295)
at brut.androlib.Androlib.build(Androlib.java:278)
at brut.androlib.Androlib.build(Androlib.java:254)
at brut.apktool.Main.cmdBuild(Main.java:224)
at brut.apktool.Main.main(Main.java:84)

???
 

tdunham

Recognized Contributor
Jun 21, 2008
13,686
36,462
TampaBay
U mean this right

iget-boolean v1, p0, Lcom/samsung/dialer/dialpad/ap;->mThemeoverride:Z

if-eqz v1, :cond_td

invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

move-result-object v0

invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v0

const-string v1, "main_digit_color"

const v2, -0x1000000

invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v0

invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

:cond_td


If this one then not recompiled

Log

ther:
SecContacts_M_310716115726.apk\smali\com\samsung\dialer\dialpad\ap.smali[3177,4] no viable alternative at input 'return-void'
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/samsung/dialer/dialpad/ap.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:67)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:51)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:38)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:364)
at brut.androlib.Androlib.buildSources(Androlib.java:295)
at brut.androlib.Androlib.build(Androlib.java:278)
at brut.androlib.Androlib.build(Androlib.java:254)
at brut.apktool.Main.cmdBuild(Main.java:224)
at brut.apktool.Main.main(Main.java:84)

???
I only ask you to remove three lines where they occur so I dont know what you did.
 
  • Like
Reactions: thereassaad

tdunham

Recognized Contributor
Jun 21, 2008
13,686
36,462
TampaBay
Well, that is the Boolean that controls the toggle in both smalis ap & DialpadFragment.
To test if it is not working, try removing any occurrences for mThemeoverride:Z
(this example is in ap.smali)
Code:
    iget-boolean v1, p0, Lcom/samsung/dialer/dialpad/ap;->mThemeoverride:Z

    if-eqz v1, :cond_td
.
.
.
    :cond_td

Remove these three lines everywhere(path is different in dialpadfragment and they may not be exactly the same) in both smalis to see if the problem is setting Boolean with filepref.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 21
    [Guide] Full Screen Dialer - MM

    DO NOT QUOTE THE OP WHEN POSTING!!!

    This guide assumes you are already proficient at de/recompiling stock apk's.

    Features:
    - Choose between any custom background or solid or gradient color backgrounds
    - Dialpad digits, letters, divider & digits pressed are colorable
    - All options can be turned on or off so they will not conflict with installed themes

    We are modifying SecContacts_M.apk.
    These modification were done on a Note 5 - 6.0.1 smali. Yours may be different and you will need to adapt.
    One user already pointed out that on the S7, the ap.smali edits are in an.smali
    There is an example of the an.smali edits here: http://forum.xda-developers.com/showpost.php?p=68686947&postcount=61

    *** Add new files attached to the bottom of this post.

    res\values\ids.xml
    Add new ID
    Code:
        <item type="id" name="gear_panel_bg_view">false</item>
    smali\com\android\dialer\dialpad\DialpadFragment.smali
    Add new fields.
    Code:
    # instance fields
    [COLOR="blue"].field private final mFullscreenBG:Z
    
    .field private final mThemeoverride:Z
    [/COLOR]
    Increase .locals by 3 and add new code in BLUE
    Code:
    .method private K()V
        .locals [COLOR="blue"]7[/COLOR]
    .
    .
    .
        const v2, 0x7f0201cc  ## type="drawable" name="dialpad_fragment_background"
    
    [COLOR="blue"]    iget-boolean v4, p0, Lcom/android/dialer/dialpad/DialpadFragment;->mFullscreenBG:Z
    
        if-eqz v4, :cond_td
    
        invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadFragment;->getContext()Landroid/content/Context;
    
        move-result-object v4
    
        const-string v5, "dialpad_fragment_background_fullscreen" # This is your resource name
    
        const-string v6, "drawable" # This is the resource type
    
        invoke-static {v4, v5, v6}, Lcom/android/wubydax/IdUtils;->getIdentifier(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)I
    
        move-result v2
    
        :cond_td
    [/COLOR]    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
    
        move-result-object v1
    
        invoke-virtual {v0, v1}, Landroid/view/View;->setBackground(Landroid/graphics/drawable/Drawable;)V
    
        goto :goto_1
    .end method
    Increase .locals by 3 and add new code in BLUE
    Code:
    .method private N()V
        .locals [COLOR="blue"]5[/COLOR]
    .
    .
    .
        invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadFragment;->getResources()Landroid/content/res/Resources;
    
        move-result-object v0
    
        const v1, 0x7f0201cd  ## type="drawable" name="dialpad_fragment_bg"
    
        [COLOR="blue"]iget-boolean v2, p0, Lcom/android/dialer/dialpad/DialpadFragment;->mFullscreenBG:Z
    
        if-eqz v2, :cond_td
    
        invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadFragment;->getContext()Landroid/content/Context;
    
        move-result-object v2
    
        const-string v3, "dialpad_fragment_bg_fullscreen" # This is your resource name
    
        const-string v4, "drawable" # This is the resource type
    
        invoke-static {v2, v3, v4}, Lcom/android/wubydax/IdUtils;->getIdentifier(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)I
    
        move-result v1
    
        :cond_td
    [/COLOR]    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
    Increase .locals by 3 and add new code in BLUE
    Code:
    .method private g(Landroid/view/View;)V
        .locals [COLOR="blue"]5[/COLOR]
    .
    .
    .
        invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadFragment;->getResources()Landroid/content/res/Resources;
    
        move-result-object v0
    
        const v1, 0x7f0201cc  ## type="drawable" name="dialpad_fragment_background"
    
        [COLOR="blue"]iget-boolean v2, p0, Lcom/android/dialer/dialpad/DialpadFragment;->mFullscreenBG:Z
    
        if-eqz v2, :cond_td
    
        invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadFragment;->getContext()Landroid/content/Context;
    
        move-result-object v2
    
        const-string v3, "dialpad_fragment_background_fullscreen" # This is your resource name
    
        const-string v4, "drawable" # This is the resource type
    
        invoke-static {v2, v3, v4}, Lcom/android/wubydax/IdUtils;->getIdentifier(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)I
    
        move-result v1
    
        :cond_td
    [/COLOR]    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
    
        move-result-object v0
    
        invoke-virtual {p1, v0}, Landroid/view/View;->setBackground(Landroid/graphics/drawable/Drawable;)V
    
        goto :goto_1
    .end method
    Add new code in BLUE
    Code:
    .method public b(Landroid/view/View;)V
    .
    .
    .
        const v0, 0x7f0e021a  ## type="id" name="digits"
    
        invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
    
        move-result-object v0
    
        check-cast v0, Lcom/android/dialer/dialpad/EllipsisTextView;
    
        iput-object v0, p0, Lcom/android/dialer/dialpad/DialpadFragment;->c:Lcom/android/dialer/dialpad/EllipsisTextView;
    
        [COLOR="blue"]move-object/from16 v2, p0
    
        invoke-virtual {v2, v0}, Lcom/android/dialer/dialpad/DialpadFragment;->setDialerDigitPressed(Landroid/widget/TextView;)V
    [/COLOR]
        iget-object v0, p0, Lcom/android/dialer/dialpad/DialpadFragment;->c:Lcom/android/dialer/dialpad/EllipsisTextView;
    
        iget-object v2, p0, Lcom/android/dialer/dialpad/DialpadFragment;->v:Landroid/content/Context;
    
        invoke-static {v2}, Lcom/android/dialer/dialpad/w;->a(Landroid/content/Context;)Lcom/android/dialer/dialpad/w;
    
        move-result-object v2
    
        invoke-virtual {v0, v2}, Lcom/android/dialer/dialpad/EllipsisTextView;->setKeyListener(Landroid/text/method/KeyListener;)V
    Increase .locals by 5 and add new code in BLUE
    Code:
    .method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
        .locals [COLOR="blue"]10[/COLOR]
    
        const/4 v4, 0x0
    
       [COLOR="blue"] invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadFragment;->setSDBackground()V
    
        invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadFragment;->setThemeOverride()V
    [/COLOR]
        sget-object v0, Lcom/android/dialer/dialpad/DialpadFragment;->O:Ljava/lang/String;
    
        const-string/jumbo v1, "onCreateView >>>>>"
    
        invoke-static {v0, v1}, Landroid/util/secutil/Log;->secI(Ljava/lang/String;Ljava/lang/String;)I
    
        const v0, 0x7f030098  ## type="layout" name="dialpad_fragment"
    
        [COLOR="blue"]iget-boolean v6, p0, Lcom/android/dialer/dialpad/DialpadFragment;->mFullscreenBG:Z
    
        if-eqz v6, :cond_td
    
        invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadFragment;->getContext()Landroid/content/Context;
    
        move-result-object v6
    
       invoke-virtual {v6}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
    
        move-result-object v6
    
        const-string v7, "dialpad_fragment_fullscreen" # This is the resource name
    
        const-string v8, "layout" # this is resource type
    
        invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadFragment;->getContext()Landroid/content/Context;
    
        move-result-object v9
    
        invoke-virtual {v9}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
    
        move-result-object v9
    
        invoke-virtual {v6, v7, v8, v9}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
    
        move-result v0 #This now holds your id number
    
        :cond_td
    [/COLOR]    invoke-virtual {p1, v0, p2, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
    Add new methods to bottom of smali.
    Code:
    .method setDialerDigit(Landroid/widget/TextView;)V
        .locals 3
    
        iget-boolean v1, p0, Lcom/android/dialer/dialpad/DialpadFragment;->mThemeoverride:Z
    
        if-eqz v1, :cond_td
    
        invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
    
        move-result-object v0
    
        invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
    
        move-result-object v0
    
        const-string v1, "main_digit_color"
    
        const v2, -0x1000000
    
        invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
    
        move-result v0
    
        invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V
    
        :cond_td
        return-void
    .end method
    
    .method setDialerDigitPressed(Landroid/widget/TextView;)V
        .locals 3
    
        iget-boolean v1, p0, Lcom/android/dialer/dialpad/DialpadFragment;->mThemeoverride:Z
    
        if-eqz v1, :cond_td
    
        invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
    
        move-result-object v0
    
        invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
    
        move-result-object v0
    
        const-string v1, "main_digit_color_pressed"
    
        const v2, -0x1000000
    
        invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
    
        move-result v0
    
        invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V
    
        :cond_td
        return-void
    .end method
    
    .method setDialerLetter(Landroid/widget/TextView;)V
        .locals 3
    
        iget-boolean v1, p0, Lcom/android/dialer/dialpad/DialpadFragment;->mThemeoverride:Z
    
        if-eqz v1, :cond_td
    
        invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
    
        move-result-object v0
    
        invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
    
        move-result-object v0
    
        const-string v1, "main_letter_color"
    
        const v2, -0x1000000
    
        invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
    
        move-result v0
    
        invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V
    
        :cond_td
    
        return-void
    .end method
    
    .method public setSDBackground()V
        .locals 5
    
        invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadFragment;->getContext()Landroid/content/Context;
    
        move-result-object v0
    
        invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
    
        move-result-object v0
    
        const-string v1, "enable_dialer_custom_bg"
    
        const/4 v2, 0x0
    
        invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
    
        move-result v0
    
        if-eqz v0, :cond_td
    
        const/4 v0, 0x1
    
        iput-boolean v0, p0, Lcom/android/dialer/dialpad/DialpadFragment;->mFullscreenBG:Z
    
        :cond_td
    
        return-void
    .end method
    
    .method public setThemeOverride()V
        .locals 4
    
        const/4 v2, 0x0
    
        iput-boolean v2, p0, Lcom/android/dialer/dialpad/DialpadFragment;->mThemeoverride:Z
    
        invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadFragment;->getContext()Landroid/content/Context;
    
        move-result-object v1
    
        invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
    
        move-result-object v1
    
        const-string v2, "dialer_theme_override"
    
        const/4 v3, 0x0
    
        invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
    
        move-result v1
    
        if-eqz v1, :cond_td
    
        const/4 v0, 0x1
    
        iput-boolean v0, p0, Lcom/android/dialer/dialpad/DialpadFragment;->mThemeoverride:Z
    
        :cond_td
    
        return-void
    .end method
    Next smali...
    smali\com\android\dialer\dialpad\DialpadKeyButton.smali
    Increase .locals by 3 and add new code in BLUE
    Code:
    .method public a()V
        .locals [COLOR="blue"]6[/COLOR]
    .
    .
    .
        invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadKeyButton;->getResources()Landroid/content/res/Resources;
    
        move-result-object v0
        ## entire dialpad background setup for transparency
        const v1, 0x7f020072  ## type="drawable" name="call_dial_btn_bg_easy_dialpad_button_white" id="0x7f020072" />
    
       [COLOR="blue"] invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadKeyButton;->getContext()Landroid/content/Context;
    
        move-result-object v3
    
        invoke-virtual {v3}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
    
        move-result-object v3
    
        const-string v4, "enable_dialer_custom_bg"
    
        const/4 v5, 0x0
    
        invoke-static {v3, v4, v5}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
    
        move-result v3
    
        if-eqz v3, :cond_td
    
        invoke-virtual {p0}, Lcom/android/dialer/dialpad/DialpadKeyButton;->getContext()Landroid/content/Context;
    
        move-result-object v3
    
        const-string v4, "call_dial_btn_bg_easy_dialpad_button_transparent" # This is your resource name
    
        const-string v5, "drawable" # This is the resource type
    
        invoke-static {v3, v4, v5}, Lcom/android/wubydax/IdUtils;->getIdentifier(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)I
    
        move-result v1
        :cond_td
    [/COLOR]    invoke-virtual {v0, v1, v2}, Landroid/content/res/Resources;->getDrawable(ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
    
        move-result-object v0
    
        invoke-virtual {p0, v0}, Lcom/android/dialer/dialpad/DialpadKeyButton;->setBackground(Landroid/graphics/drawable/Drawable;)V
    
        goto :goto_0
    .end method
    Next smali...
    smali\com\samsung\dialer\dialpad\ap.smali
    Increase .locals by 3 and add new code in BLUE
    Code:
    .method private a(Landroid/widget/ImageView;Z)V
        .locals [COLOR="blue"]4[/COLOR]
    .
    .
    .
    
        if-nez p1, :cond_0
    
        :goto_0
        return-void
    
        :cond_0
        if-eqz p2, :cond_1
    
        const/4 v0, 0x0
    
        invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setVisibility(I)V
    
        invoke-direct {p0}, Lcom/samsung/dialer/dialpad/ap;->c()I
    
        move-result v0
    
        invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setImageResource(I)V
    
        invoke-direct {p0}, Lcom/samsung/dialer/dialpad/ap;->f()I
    
        move-result v0
    
        [COLOR="blue"]    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
    
        move-result-object v1
    
        invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
    
        move-result-object v1
    
        const-string v2, "dialer_theme_override"
    
        const/4 v3, 0x0
    
        invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
    
        move-result v1
    
        if-eqz v1, :cond_td
    
        invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
    
        move-result-object v1
    
        invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
    
        move-result-object v1
    
        const-string v2, "main_letter_color"
    
        const v3, -0x1000000
    
        invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
    
        move-result v0
    
        :cond_td
    [/COLOR]    invoke-static {v0}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
    
        move-result-object v0
    
        invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setImageTintList(Landroid/content/res/ColorStateList;)V
    Add new code in BLUE
    Code:
    .method private a(Landroid/widget/TextView;I)V
        .locals 1
    
        if-nez p1, :cond_0
    
        :goto_0
        return-void
    
        :cond_0
        iget-object v0, p0, Lcom/samsung/dialer/dialpad/ap;->s:[I
    
        aget v0, v0, p2
    
        invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V
    
        iget-object v0, p0, Lcom/samsung/dialer/dialpad/ap;->e:Landroid/graphics/Typeface;
    
        invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V
    
        invoke-direct {p0}, Lcom/samsung/dialer/dialpad/ap;->e()I
    
        move-result v0
    
        invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V
    
        [COLOR="Blue"]move-object/from16 v1, p0
    
        invoke-virtual {v1, p1}, Lcom/samsung/dialer/dialpad/ap;->setDialerDigit(Landroid/widget/TextView;)V[/COLOR]
    Add new code in BLUE
    Code:
    .method private b(Landroid/widget/TextView;I)V
    .
    .
    .
        invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V
    
        iget-object v0, p0, Lcom/samsung/dialer/dialpad/ap;->f:Landroid/graphics/Typeface;
    
        invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V
    
        invoke-direct {p0}, Lcom/samsung/dialer/dialpad/ap;->f()I
    
        move-result v0
    
        invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V
    
        [COLOR="blue"]move-object/from16 v1, p0
    
        invoke-virtual {v1, p1}, Lcom/samsung/dialer/dialpad/ap;->setDialerLetter(Landroid/widget/TextView;)V
    [/COLOR]
        invoke-direct {p0, p1}, Lcom/samsung/dialer/dialpad/ap;->g(Landroid/widget/TextView;)V
    
        iget-boolean v0, p0, Lcom/samsung/dialer/dialpad/ap;->d:Z
    
        invoke-direct {p0, p1, v0}, Lcom/samsung/dialer/dialpad/ap;->a(Landroid/widget/TextView;Z)V
    
        invoke-direct {p0, p1}, Lcom/samsung/dialer/dialpad/ap;->i(Landroid/widget/TextView;)V
    
        goto :goto_0
    .end method
    Add new code in BLUE
    Code:
    .method private c(Landroid/view/View;)V
        .locals 5
    
        invoke-virtual {p0}, Lcom/samsung/dialer/dialpad/ap;->a()I
    
        move-result v1
    
        invoke-virtual {p0}, Lcom/samsung/dialer/dialpad/ap;->b()I
    
        move-result v2
    
        [COLOR="blue"]    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
    
        move-result-object v0
    
        invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
    
        move-result-object v0
    
        const-string v3, "dialer_theme_override"
    
        const/4 v4, 0x0
    
        invoke-static {v0, v3, v4}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
    
        move-result v0
    
        if-eqz v0, :cond_td
    
        invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
    
        move-result-object v0
    
        invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
    
        move-result-object v0
    
        const-string v3, "main_divider_color"
    
        const v2, -0x1000000
    
        invoke-static {v0, v3, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
    
        move-result v2
    
        :cond_td[/COLOR]
        const/4 v0, 0x0
    
        :goto_0
    Add new methods to the bottom of this smali.
    Code:
    .method setDialerDigit(Landroid/widget/TextView;)V
        .locals 3
    
        invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
    
        move-result-object v0
    
        invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
    
        move-result-object v0
    
        const-string v1, "dialer_theme_override"
    
        const/4 v2, 0x0
    
        invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
    
        move-result v1
    
        if-eqz v1, :cond_td
    
        invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
    
        move-result-object v0
    
        invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
    
        move-result-object v0
    
        const-string v1, "main_digit_color"
    
        const v2, -0x1000000
    
        invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
    
        move-result v0
    
        invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V
    
        :cond_td
        return-void
    .end method
    
    .method setDialerLetter(Landroid/widget/TextView;)V
        .locals 3
    
        invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
    
        move-result-object v0
    
        invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
    
        move-result-object v0
    
        const-string v1, "dialer_theme_override"
    
        const/4 v2, 0x0
    
        invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
    
        move-result v1
    
        if-eqz v1, :cond_td
    
        invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
    
        move-result-object v0
    
        invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
    
        move-result-object v0
    
        const-string v1, "main_letter_color"
    
        const v2, -0x1000000
    
        invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
    
        move-result v0
    
        invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V
    
        :cond_td
    
        return-void
    .end method
    Rom Control V2 Entries
    [SOURCE CODE][DEV TOOL][SDK 21+]6thGear RomControl v2.+ for Devs by daxgirl
    Add arrays
    Code:
        <string-array name="crop_entries">
            <item>Center Crop (default)</item>
            <item>Center Inside</item>
            <item>Fit XY</item>
        </string-array>
        <string-array name="crop_values">
            <item>0</item>
            <item>1</item>
            <item>2</item>
        </string-array>
        <string-array name="custom_bg_type_entries">
            <item>Image</item>
            <item>Solid color</item>
            <item>Gradient</item>
        </string-array>
        <string-array name="custom_bg_type_values">
            <item>0</item>
            <item>1</item>
            <item>2</item>
        </string-array>
        <string-array name="gradient_entries">
            <item>Top to bottom</item>
            <item>Bottom to top</item>
            <item>Left to right</item>
            <item>Right to left</item>
        </string-array>
        <string-array name="gradient_values">
            <item>0</item>
            <item>1</item>
            <item>2</item>
            <item>3</item>
        </string-array>
    Add to your pref
    Code:
            <PreferenceCategory
                android:title="Main Dialer Backgrounds and Colors" />
            <PreferenceScreen
                android:title="Main Dialer Options"
                android:summary="Set backgrounds or color">
                <com.wubydax.romcontrol.v2.prefs.MySwitchPreference
                    android:defaultValue="false"
                    android:key="enable_dialer_custom_bg"
                    android:summaryOff="Disabled"
                    android:summaryOn="Enabled \n> You must also enable custom colors and modify them or the dialpad will not be very visible."
                    android:title="Enable custom background"/>
                <com.wubydax.romcontrol.v2.prefs.MyListPreference
                    android:defaultValue="0"
                    android:dependency="enable_dialer_custom_bg"
                    android:entries="@array/custom_bg_type_entries"
                    android:entryValues="@array/custom_bg_type_values"
                    android:key="dialer_custom_bg_type"
                    android:title="Background type"/>
                <com.wubydax.romcontrol.v2.prefs.UriSelectionPreference
                    android:dependency="enable_dialer_custom_bg"
                    android:key="dialer_bg"
                    android:title="Select image for Background"/>
                <com.wubydax.romcontrol.v2.prefs.MyListPreference
                    android:defaultValue="0"
                    android:dependency="enable_dialer_custom_bg"
                    android:entries="@array/crop_entries"
                    android:entryValues="@array/crop_values"
                    android:key="dialer_crop_type"
                    android:title="Set Image Scaling Type"/>
                <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
                    android:defaultValue="#00000000"
                    android:dependency="enable_dialer_custom_bg"
                    android:key="dialer_bg_primary_color"
                    android:title="Select primary color"/>
                <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
                    android:defaultValue="#00000000"
                    android:dependency="enable_dialer_custom_bg"
                    android:key="dialer_second_gradient_color"
                    android:title="Secondary Color (for gradient)"/>
                <com.wubydax.romcontrol.v2.prefs.MyListPreference
                    android:defaultValue="0"
                    android:dependency="enable_dialer_custom_bg"
                    android:entries="@array/gradient_entries"
                    android:entryValues="@array/gradient_values"
                    android:key="dialer_bg_gradient_orientation"
                    android:title="Gradient orientation"/>
                <com.wubydax.romcontrol.v2.prefs.MySeekBarPreference
                    android:defaultValue="255"
                    android:dependency="enable_dialer_custom_bg"
                    android:key="dialer_opacity"
                    app:maxValue="255"
                    android:title="Background Opacity"/>
                <PreferenceCategory
                    android:title="Dialer Colors - disable if Theme conflicts" />
                <com.wubydax.romcontrol.v2.prefs.MySwitchPreference
                    android:title="Digit and Letter Colors On/Off Toggle"
                    android:key="dialer_theme_override"
                    android:defaultValue="false"
                    android:summaryOn="Colors enabled"
                    android:summaryOff="Colors disabled" />
                <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
                    android:title="Dialer Digits"
                    android:key="main_digit_color"
                    android:summary="Set digit color"
                    android:dependency="dialer_theme_override"
                    app:packageNameToKill="com.android.contacts"
                    android:defaultValue="#ff000000"  />
                <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
                    android:title="Dialer Letters"
                    android:key="main_letter_color"
                    android:summary="Choose letter color"
                    android:dependency="dialer_theme_override"
                    app:packageNameToKill="com.android.contacts"
                    android:defaultValue="#ff000000"  />
                <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
                    android:title="Dialer Divider"
                    android:key="main_divider_color"
                    android:summary="Choose divider color"
                    android:dependency="dialer_theme_override"
                    android:defaultValue="#ff000000"  />
                <com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
                    android:title="Dialer Digits Pressed"
                    android:key="main_digit_color_pressed"
                    android:summary="Set digit color"
                    android:dependency="dialer_theme_override"
                    android:defaultValue="#ff000000"  />
            </PreferenceScreen>

    Additional Notes:
    - This is designed to be compatible with theme store themes. Enabling custom backgrounds or colors my conflict with themes.

    Credits:
    - This modification uses two really awesome modifications provided on my guide thread:
    [Mod][GUIDE][CUSTOM VIEW] 6thGear Custom View for any app
    and also I utilized the [How-To] Find view by ID without having to find public resource - APK Edition which has additional links provided for that one in Post #10.
    I highly recommend the new method how to find public resource without public value. It has made this guide far easier for you!!! :highfive:
    7
    How to Colorized Contacts Names


    so lets start Now go to

    Code:
      SecContacts_M/com/android/contacts/common/list/ad.smali


    Now find this method


    Code:
    .method private a(Landroid/widget/TextView;Ljava/lang/CharSequence;)V
        .locals 5



    Code:
      invoke-virtual {v0, v1, v2, v3, v4}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V
    
        .line 1083
        invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
    
    	[COLOR="Blue"] invoke-virtual {p0, p1}, Lcom/android/contacts/common/list/ad;->setNameText(Landroid/widget/TextView;)V   [COLOR="Red"]    ### Add this here [/COLOR]  [/COLOR]
    	
        .line 1087
        :goto_0
        return-void
    
        .line 1085
        :cond_0
        invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V  
    
        goto :goto_0
    .end method


    Now Add this method in the end


    Code:
     .method setNameText(Landroid/widget/TextView;)V
        .locals 3
    
        invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
    
        move-result-object v0
    
        invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
    
        move-result-object v0
    
        const-string v1, "contacts_name_text_color"
    
        const v2, -0x1
    
        invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
    
        move-result v0
    
        invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V
    
        return-void
    .end method



    Now Again go to

    Code:
      com/android/contacts/common/list/al.smali



    Now find this method


    Code:
    .method public a(Lcom/android/contacts/common/list/ai;IZZ)V
        .locals 10



    Code:
      :goto_0
        iput-object v0, p0, Lcom/android/contacts/common/list/al;->l:Ljava/lang/String;
    
        .line 152
        iget-object v0, p0, Lcom/android/contacts/common/list/al;->g:Landroid/widget/TextView;
    
        iget-object v1, p0, Lcom/android/contacts/common/list/al;->l:Ljava/lang/String;
    
        invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
    
    	[COLOR="Red"]  invoke-virtual {p0, v0}, Lcom/android/contacts/common/list/al;->setNameText(Landroid/widget/TextView;)V ######  Add this here    [/COLOR]
    	
        .line 153
        iget-object v0, p1, Lcom/android/contacts/common/list/ai;->c:Landroid/net/Uri;
    
        iput-object v0, p0, Lcom/android/contacts/common/list/al;->d:Landroid/net/Uri;



    Add this method in the end



    Code:
    .method setNameText(Landroid/widget/TextView;)V
        .locals 3
    
        invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
    
        move-result-object v0
    
        invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
    
        move-result-object v0
    
        const-string v1, "contacts_name_text_color"
    
        const v2, -0x1
    
        invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
    
        move-result v0
    
        invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V
    
        return-void
    .end method




    Rc v2



    Code:
    	<com.wubydax.romcontrol.v2.prefs.ColorPickerPreference android:title="Name " android:key="contacts_name_text_color" android:summary="Choose letter color" android:defaultValue="-328966" hexValue="true" alphaSlider="true" />
    3
    Ok guide has been redone for those of you that cant get it working due to some filepreference issue on certain phones.

    3 things you need to do if you have already started:
    1. Redo the keys for Rom Control v2. Filepreference changed to switchpreference and the key and dependencies for all the colors have changed as well.
    2. In DialpadFragment.smali, replace method .method public setThemeOverride()V at very end with the new one
    3. Start over with a fresh copy of ap.smali (or an.smali) and follow updated OP directions for that one.
    3
    Ok guide has been redone for those of you that cant get it working due to some filepreference issue on certain phones.

    3 things you need to do if you have already started:
    1. Redo the keys for Rom Control v2. Filepreference changed to switchpreference and the key and dependencies for all the colors have changed as well.
    2. In DialpadFragment.smali, replace method .method public setThemeOverride()V at very end with the new one
    3. Start over with a fresh copy of ap.smali (or an.smali) and follow updated OP directions for that one.


    My limited thanked was finished for today but definitely tomorrow will back [emoji16] [emoji16] [emoji16]


    Ooooh TD , & yes its worked just fine thank u sir ,

    I just arrived home & seen its updated so i just re do it from the scratch & worked perfectly

    fd7c36c9ff94e0f6c6e319793d4b0857.jpg
    3
    I mod only Seccontact_M.apk but fc when open Phone , not fc open contact. Why?
    Logcat here. Plz helf me
    http://cloud.tapatalk.com/s/57d2efff263c3/Log_2016-9-10_00-18-10.txt

    And Seccontact_M.apk i mod done
    https://drive.google.com/file/d/0B3FcB_U_nioLUGZnOTJYazlwQ0U/view?usp=drivesdk





    SM-J710F


    Solved !!!



    My smali is not smali\com\samsung\dialer\dialpad\ap.smali



    Its : smali\com\samsung\dialer\dialpad\an.smali





    So in method



    .method private a(Landroid/widget/TextView;I)V



    I change



    Code:
    move-object/from16 v1, p0
    
    
    
        invoke-virtual {v1, p1}, Lcom/samsung/dialer/dialpad/[color="red"]ap[/color];->setDialerDigit(Landroid/widget/TextView;)V



    Into



    Code:
    move-object/from16 v1, p0
    
    
    
        invoke-virtual {v1, p1}, Lcom/samsung/dialer/dialpad/[color="blue"]an[/color];->setDialerDigit(Landroid/widget/TextView;)V





    Same thing in .method private b(Landroid/widget/TextView;I)V



    Code:
    move-object/from16 v1, p0
    
    
    
        invoke-virtual {v1, p1}, Lcom/samsung/dialer/dialpad/[color="red"]ap[/color];->setDialerLetter(Landroid/widget/TextView;)V



    Into



    Code:
    move-object/from16 v1, p0
    
    
    
        invoke-virtual {v1, p1}, Lcom/samsung/dialer/dialpad/[color="blue"]an[/color];-->setDialerLetter(Landroid/widget/TextView;)V





Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone