[Android General] tdunham:
[Guide How-to] Ascending Ringtone with Toggle Android L

This will allow you to toggle ascending ringtone. No reboot required.

Credits [MENTION=4714483]daxgirl[/MENTION]

Telecom.apk smali edit:

smali\com\android\server\telecom\secutils\SecAsyncRingtonePlayer.smali

Search for the string ringtone_escalating and we are going to replace the two lines in RED with the one in BLUE:

.method static synthetic access$000(Lcom/android/server/telecom/secutils/SecAsyncRingtonePlayer;Landroid/net/Uri;)V
.
.
.
[COLOR="Red"] const-string v0, "ringtone_escalating"

invoke-static {v0}, Lcom/android/services/telephony/common/PhoneFeature;->hasFeature(Ljava/lang/String;)Z[/COLOR]

[COLOR="Blue"]invoke-virtual {p0}, Lcom/android/server/telecom/secutils/SecAsyncRingtonePlayer;->getIncreasingRingtoneToggle()Z[/COLOR]

Add new method to the bottom of this smali:

.method getIncreasingRingtoneToggle()Z
.locals 4

iget-object v1, p0, Lcom/android/server/telecom/secutils/SecAsyncRingtonePlayer;->mContext:Landroid/content/Context;

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

move-result-object v1

const-string v2, "db_inc_volume_disable"

const/4 v3, 0x1

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

move-result v3

if-nez v3, :cond_gear

const/4 v3, 0x0

:goto_0
return v3

:cond_gear
const/4 v3, 0x1

goto :goto_0

.end method

CustomSettings toggle line:

<SwitchPreference android:title="Increasing Ringtone" android:key="db_inc_volume_disable" android:summaryOn="Increasing ringtone enabled" android:summaryOff="Increasing ringtone disabled" />

__________________________________________________

[Guide How-to] End Call Delay for Lollipop

This will make changes to the end call delay.

LegacyInCallUI.apk smali edit:

If you do not want a toggle for adjustable delay, this will disable end call delay:

smali\com\android\incallui\CallList.smali

Change both values in BLUE to the values in RED

.method private getDelayForDisconnect(Lcom/android/incallui/Call;)I
.
.
if-eqz v2, :cond_1

[COLOR="Red"]const/16 v2, 0x1194[/COLOR]
[COLOR="Blue"]const/16 v2, 0x0[/COLOR]

invoke-static {p1, v2}, Lcom/android/incallui/operator/usa/InCallUIExtension;->getDelayForDisconnect(Lcom/android/incallui/Call;I)I

move-result v1

goto :goto_1

:cond_1
[COLOR="Red"]const/16 v2, 0x1194[/COLOR]
[COLOR="Blue"]const/16 v2, 0x0[/COLOR]

goto :goto_1

Guide for adjustable delay with customsettings toggle.

smali\com\android\incallui\CallList.smali

Replace the code in RED with the code in BLUE, increase .locals by 3

Note: If you only have one occurrence of the 0x1194 in your smali, you only need to add the toggle code once to replace that single line.

If the toggle does not work, try changing the move-result at the end of the toggle code from v1 to v2 and vice versa.

.method private getDelayForDisconnect(Lcom/android/incallui/Call;)I
[COLOR="Blue"].locals 7
[/COLOR].

.
.
.
if-eqz v2, :cond_1

[COLOR="Red"]const/16 v2, 0x1194[/COLOR]

[COLOR="Blue"]invoke-static {}, Lcom/android/incallui/InCallApp;->getInstance()Lcom/android/incallui/InCallApp;

move-result-object v4

invoke-virtual {v4}, Lcom/android/incallui/InCallApp;->getApplicationContext()Landroid/content/Context;

move-result-object v4

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

move-result-object v4

const-string v5, "db_call_delay"

const/16 v6, 0x1f4

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

move-result v2
[/COLOR]
invoke-static {p1, v2}, Lcom/android/incallui/operator/usa/InCallUIExtension;->getDelayForDisconnect(Lcom/android/incallui/Call;I)I

move-result v1

goto :goto_1

:cond_1
[COLOR="Red"]const/16 v2, 0x1194[/COLOR]

[COLOR="Blue"] invoke-static {}, Lcom/android/incallui/InCallApp;->getInstance()Lcom/android/incallui/InCallApp;

move-result-object v4

invoke-virtual {v4}, Lcom/android/incallui/InCallApp;->getApplicationContext()Landroid/content/Context;

move-result-object v4

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

move-result-object v4

const-string v5, "db_call_delay"

const/16 v6, 0x1f4

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

move-result v1[/COLOR]

goto :goto_1

CustomSettings.apk toggle edits:

res\xml\preferences.xml

New line:

<ListPreference android:entries="@array/call_delay_entries" android:title="End Call Delay" android:key="db_call_delay" android:summary="%s" android:defaultValue="5000" android:dialogTitle="End Call Delay (ms)" android:positiveButtonText="Save" android:negativeButtonText="Cancel" android:entryValues="@array/call_delay_values" />

\res\values\arrays.xml

Add new array to bottom before </resources>

[COLOR="Blue"]<string-array name="call_delay_entries">
<item>No delay</item>
<item>1000ms</item>
<item>2500ms</item>
<item>Default (5000ms)</item>
</string-array>
<string-array name="call_delay_values">
<item>0</item>
<item>1000</item>
<item>2500</item>
<item>5000</item>
</string-array>
[/COLOR]</resources>

__________________________________________________

[Guide How-to] Colorize InCall Dialpad Android L

This will allow you to provide custom colors to the InCall dialpad.

LegacyInCallUI.apk smali edit:

\smali\com\android\incallui\dialpad\DialpadView.smali

Add new line in BLUE

.field private mRippleColor:Landroid/content/res/ColorStateList;

[COLOR="Blue"].field private mToggleTextColor:I
[/COLOR]
.field private mTranslateDistance:I

Add changes in BLUE

Note that we are increasing the locals value by 1, find your public ID's in RED to find proper ID in the smali for placement

Make certain the value highlighted in GREEN for the invoke matches the checkcast value right before the new lines

.method private setupKeypad()V
[COLOR="Blue"].locals 13[/COLOR]
.
.
.
const v11, 0x7f0f00c5 [COLOR="Red"]## <public type="id" name="dialpad_key_number"[/COLOR]

invoke-virtual {v0, v11}, Lcom/android/incallui/dialpad/DialpadKeyButton;->findViewById(I)Landroid/view/View;

move-result-object v7

check-cast [COLOR="Green"]v7[/COLOR], Landroid/widget/TextView;

[COLOR="Blue"]invoke-virtual {p0}, Lcom/android/incallui/dialpad/DialpadView;->setDialpadDigitColor()V

iget v12, p0, Lcom/android/incallui/dialpad/DialpadView;->mToggleTextColor:I

invoke-virtual {[COLOR="Green"]v7[/COLOR], v12}, Landroid/widget/TextView;->setTextColor(I)V
[/COLOR]
const v11, 0x7f0f00c6 [COLOR="Red"]## <public type="id" name="dialpad_key_letters"
[/COLOR]
invoke-virtual {v0, v11}, Lcom/android/incallui/dialpad/DialpadKeyButton;->findViewById(I)Landroid/view/View;

move-result-object v4

check-cast [COLOR="Green"]v4[/COLOR], Landroid/widget/TextView;

[COLOR="Blue"]invoke-virtual {p0}, Lcom/android/incallui/dialpad/DialpadView;->setDialpadLetterColor()V

iget v12, p0, Lcom/android/incallui/dialpad/DialpadView;->mToggleTextColor:I

invoke-virtual {[COLOR="Green"]v4[/COLOR], v12}, Landroid/widget/TextView;->setTextColor(I)V[/COLOR]

Add new methods to the bottom of this same smali:

.method setDialpadDigitColor()V
.locals 3

invoke-virtual {p0}, Lcom/android/incallui/dialpad/DialpadView;->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, "incall_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

iput v0, p0, Lcom/android/incallui/dialpad/DialpadView;->mToggleTextColor:I

return-void
.end method

.method setDialpadLetterColor()V
.locals 3

invoke-virtual {p0}, Lcom/android/incallui/dialpad/DialpadView;->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, "incall_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

iput v0, p0, Lcom/android/incallui/dialpad/DialpadView;->mToggleTextColor:I

return-void
.end method

CustomSettings edits:

G:\Sync\Android\apktoolsJB\5.0\res\xml\preferences.xml

<com.ficeto.colorpicker.ColorPickerPreference android:title="Incall dialpad Digits" android:key="incall_digit_color" android:summary="Choose dialpad digit color" />
<com.ficeto.colorpicker.ColorPickerPreference android:title="Incall dialpad Letters" android:key="incall_letter_color" android:summary="Choose dialpad letter color" />

This mod requires an InCallUI restart (easier than a full reboot) so we are going to add one to the existing smali and add a line for doing the restart from customsettings:

<Preference android:title="Restart InCallUI" android:key="tool#restartincallui" android:summary="Tap to set colors" android:widgetLayout="@layout/round_more_icon" />

CustomSettings.apk smali edit:

\smali\com\ficeto\customsettings\Tools.smali

Note the changes in BLUE

.method public static dispatch(Landroid/content/Context;[Ljava/lang/String;)V
.
.
.
:cond_5
aget-object v0, p1, v2

const-string v1, "restartsystemui"

invoke-virtual {v0, v1}, Ljava/lang/String;->contentEquals(Ljava/lang/CharSequence;)Z

move-result v0

if-eqz v0, [COLOR="Blue"]:cond_td
[/COLOR]
invoke-static {}, Lcom/ficeto/customsettings/Tools;->rebootSystemUi()V

goto :goto_0

[COLOR="Blue"]:cond_td
aget-object v0, p1, v2

const-string v1, "restartincallui"

invoke-virtual {v0, v1}, Ljava/lang/String;->contentEquals(Ljava/lang/CharSequence;)Z

move-result v0

if-eqz v0, :cond_6

invoke-static {}, Lcom/ficeto/customsettings/Tools;->rebootInCallUI()V

goto :goto_0[/COLOR]

Next method edit:

.method public static dispatch([Ljava/lang/String;)V
.
.
.
:cond_6
aget-object v0, p1, v2

const-string v1, "shell"
:cond_5
aget-object v0, p0, v2

const-string v1, "restartsystemui"

invoke-virtual {v0, v1}, Ljava/lang/String;->contentEquals(Ljava/lang/CharSequence;)Z

move-result v0

if-eqz v0, [COLOR="Blue"]:cond_td
[/COLOR]
invoke-static {}, Lcom/ficeto/customsettings/Tools;->rebootSystemUi()V

goto :goto_0

[COLOR="Blue"]:cond_td
aget-object v0, p0, v2

const-string v1, "restartincallui"

invoke-virtual {v0, v1}, Ljava/lang/String;->contentEquals(Ljava/lang/CharSequence;)Z

move-result v0

if-eqz v0, :cond_6

invoke-static {}, Lcom/ficeto/customsettings/Tools;->rebootInCallUI()V

goto :goto_0

[/COLOR] :cond_6
aget-object v0, p0, v2

const-string v1, "shell"

Add new method in BLUE

.method public static reboot(Landroid/content/Context;)V
.locals 1
.param p0 # Landroid/content/Context;

const-string v0, "now"

invoke-static {p0, v0}, Lcom/ficeto/customsettings/Tools;->rebootPhone(Landroid/content/Context;Ljava/lang/String;)V

return-void
.end method

[COLOR="Blue"].method public static rebootInCallUI()V
.locals 1

const-string v0, "pkill -TERM -f com.android.incallui"

invoke-static {v0}, Lcom/ficeto/customsettings/Tools;->shell(Ljava/lang/String;)Ljava/lang/String;

return-void
.end method[/COLOR]

Lastly for CustomSettings.apk, it will need root access for the reboot incallui to work so verify the existence of the smali/com/stericson folder. If the stericson smali folder is missing, add it from the file attached at the bottom of this post.

__________________________________________________

[Guide How-to] Colorize Lockscreen Pinpad Android L

This will allow you to provide custom colors to the Lockscreen Pinpad.

Digits, letters and key button backgrounds have separate edits.

SystemUI.apk smali edits:

\smali\com\android\keyguard\NumPadKey.smali

Increasing .locals value by 3 and addition new code, changes are in BLUE

NOTE: Make sure the V5 value in the new line for setTextColor matches the value in the surrounding code.

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
[COLOR="Blue"].locals 11
[/COLOR].
.
.
check-cast v5, Landroid/widget/TextView;

iput-object v5, p0, Lcom/android/keyguard/NumPadKey;->mDigitText:Landroid/widget/TextView;

[COLOR="Blue"] iget-object v8, p0, Lcom/android/keyguard/NumPadKey;->mContext:Landroid/content/Context;

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

move-result-object v8

const-string v9, "keypad_digit_color"

const/4 v10, -0x1

invoke-static {v8, v9, v10}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v8

invoke-virtual {v5, v8}, Landroid/widget/TextView;->setTextColor(I)V
[/COLOR]
iget-object v5, p0, Lcom/android/keyguard/NumPadKey;->mDigitText:Landroid/widget/TextView;

iget v6, p0, Lcom/android/keyguard/NumPadKey;->mDigit:I

invoke-static {v6}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

move-result-object v6

invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

const-string v5, "/system/fonts/SamsungSans-Num4Tv.ttf"

invoke-static {v5}, Landroid/graphics/Typeface;->createFromFile(Ljava/lang/String;)Landroid/graphics/Typeface;

move-result-object v4

iget-object v5, p0, Lcom/android/keyguard/NumPadKey;->mDigitText:Landroid/widget/TextView;

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

sget v5, Lcom/android/keyguard/R$id;->klondike_text:I

invoke-virtual {p0, v5}, Lcom/android/keyguard/NumPadKey;->findViewById(I)Landroid/view/View;

move-result-object v5

check-cast v5, Landroid/widget/TextView;

iput-object v5, p0, Lcom/android/keyguard/NumPadKey;->mKlondikeText:Landroid/widget/TextView;

[COLOR="Blue"]iget-object v8, p0, Lcom/android/keyguard/NumPadKey;->mContext:Landroid/content/Context;

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

move-result-object v8

const-string v9, "keypad_letter_color"

const/4 v10, -0x1

invoke-static {v8, v9, v10}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v8

invoke-virtual {v5, v8}, Landroid/widget/TextView;->setTextColor(I)V
[/COLOR]
const-string v5, "/system/fonts/Roboto-Regular.ttf"

\smali\com\android\keyguard\KeyguardPinBasedInputView.smali

Add new/changed code highlighted in BLUE

.field private mOkButton:Landroid/view/View;

.field protected mPasswordEntry:Lcom/android/keyguard/PasswordTextView;

[COLOR="Blue"].field private mPinpadButtonColor:I
[/COLOR]

.method protected onFinishInflate()V
[COLOR="Blue"].locals 4[/COLOR]
.
.
.
[COLOR="Red"]## Find these 11 lines and add the 3 lines of code in [COLOR="Blue"]BLUE[/COLOR] below after [B]EACH[/B] one!
[/COLOR] iput-object v0, p0, Lcom/android/keyguard/KeyguardPinBasedInputView;->mOkButton:Landroid/view/View;
iput-object v0, p0, Lcom/android/keyguard/KeyguardPinBasedInputView;->mButton0:Landroid/view/View;
iput-object v0, p0, Lcom/android/keyguard/KeyguardPinBasedInputView;->mButton1:Landroid/view/View;
iput-object v0, p0, Lcom/android/keyguard/KeyguardPinBasedInputView;->mButton2:Landroid/view/View;
iput-object v0, p0, Lcom/android/keyguard/KeyguardPinBasedInputView;->mButton3:Landroid/view/View;
iput-object v0, p0, Lcom/android/keyguard/KeyguardPinBasedInputView;->mButton4:Landroid/view/View;
iput-object v0, p0, Lcom/android/keyguard/KeyguardPinBasedInputView;->mButton5:Landroid/view/View;
iput-object v0, p0, Lcom/android/keyguard/KeyguardPinBasedInputView;->mButton6:Landroid/view/View;
iput-object v0, p0, Lcom/android/keyguard/KeyguardPinBasedInputView;->mButton7:Landroid/view/View;
iput-object v0, p0, Lcom/android/keyguard/KeyguardPinBasedInputView;->mButton8:Landroid/view/View;
iput-object v0, p0, Lcom/android/keyguard/KeyguardPinBasedInputView;->mButton9:Landroid/view/View;

[COLOR="Blue"]invoke-virtual {p0}, Lcom/android/keyguard/KeyguardPinBasedInputView;->setPinpadButtonColor()V

iget v3, p0, Lcom/android/keyguard/KeyguardPinBasedInputView;->mPinpadButtonColor:I

invoke-virtual {v0, v3}, Landroid/view/View;->setBackgroundColor(I)V
[/COLOR]

Same smali add this new method to the bottom.

.method setPinpadButtonColor()V
.locals 3

invoke-virtual {p0}, Lcom/android/keyguard/KeyguardPinBasedInputView;->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, "keypad_button_color"

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

iput v0, p0, Lcom/android/keyguard/KeyguardPinBasedInputView;->mPinpadButtonColor:I

return-void
.end method

CustomSettings entries:

<com.ficeto.colorpicker.ColorPickerPreference android:title="Lockscreen Pinpad Background" android:key="keypad_button_color" android:summary="Choose pinpad button color" />
<com.ficeto.colorpicker.ColorPickerPreference android:title="Lockscreen Pinpad Digits" android:key="keypad_digit_color" android:summary="Choose pinpad digit color" />
<com.ficeto.colorpicker.ColorPickerPreference android:title="Lockscreen Pinpad Letters" android:key="keypad_letter_color" android:summary="Choose pinpad letter color" />

__________________________________________________

[Guide How-to] Colorize Lockscreen Clock & Date/Time Android L

This will allow you to provide custom colors to the Lockscreen clock, AMPM and date.

Clock, AMPM & Date have separate edits.

SystemUI.apk smali edits:

\smali\com\android\keyguard\sec\SecKeyguardClockSingleView.smali

Add new code in BLUE

.field protected mSingleTime:Lcom/android/keyguard/sec/SecKeyguardTextClock;

.field private final mUpdateCallback:Lcom/android/keyguard/KeyguardUpdateMonitorCallback;

[COLOR="Blue"].field private mClockTextColor:I

.field private mClockAMPMColor:I

.field private mDateColor:I[/COLOR]

Add new/changed code in BLUE

We are increasing .locals value by 1

.method protected onFinishInflate()V
[COLOR="Blue"].locals 3[/COLOR]
.
.
.
check-cast v0, Lcom/android/keyguard/sec/SecKeyguardTextClock;

iput-object v0, p0, Lcom/android/keyguard/sec/SecKeyguardClockSingleView;->mSingleTime:Lcom/android/keyguard/sec/SecKeyguardTextClock;

## CLOCK COLOR
[COLOR="Blue"]invoke-virtual {p0}, Lcom/android/keyguard/sec/SecKeyguardClockSingleView;->setClockTextColor()V

iget v2, p0, Lcom/android/keyguard/sec/SecKeyguardClockSingleView;->mClockTextColor:I

invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(I)V
[/COLOR]
sget v0, Lcom/android/keyguard/R$id;->keyguard_single_clock_ampm:I

invoke-virtual {p0, v0}, Lcom/android/keyguard/sec/SecKeyguardClockSingleView;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Lcom/android/keyguard/sec/SecKeyguardTextClock;

iput-object v0, p0, Lcom/android/keyguard/sec/SecKeyguardClockSingleView;->mSingleAmpmOpen:Lcom/android/keyguard/sec/SecKeyguardTextClock;

## AMPM COLOR
[COLOR="Blue"]invoke-virtual {p0}, Lcom/android/keyguard/sec/SecKeyguardClockSingleView;->setClockAMPMColor()V

iget v2, p0, Lcom/android/keyguard/sec/SecKeyguardClockSingleView;->mClockAMPMColor:I

invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(I)V[/COLOR]

sget v0, Lcom/android/keyguard/R$id;->keyguard_single_clock_ampm_kor:I

invoke-virtual {p0, v0}, Lcom/android/keyguard/sec/SecKeyguardClockSingleView;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Lcom/android/keyguard/sec/SecKeyguardTextClock;

iput-object v0, p0, Lcom/android/keyguard/sec/SecKeyguardClockSingleView;->mSingleAmpmKor:Lcom/android/keyguard/sec/SecKeyguardTextClock;

sget v0, Lcom/android/keyguard/R$id;->keyguard_single_clock_date:I

invoke-virtual {p0, v0}, Lcom/android/keyguard/sec/SecKeyguardClockSingleView;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Lcom/android/keyguard/sec/SecKeyguardTextClock;

iput-object v0, p0, Lcom/android/keyguard/sec/SecKeyguardClockSingleView;->mSingleDate:Lcom/android/keyguard/sec/SecKeyguardTextClock;

## DATE COLOR
[COLOR="Blue"]invoke-virtual {p0}, Lcom/android/keyguard/sec/SecKeyguardClockSingleView;->setDateColor()V

iget v2, p0, Lcom/android/keyguard/sec/SecKeyguardClockSingleView;->mDateColor:I

invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(I)V
[/COLOR]
const-string v0, "/system/fonts/SamsungNeoNum-3T.ttf"

Add new methods to the bottom of this smali:

.method setClockTextColor()V
.locals 3

iget-object v0, p0, Lcom/android/keyguard/sec/SecKeyguardClockSingleView;->mContext:Landroid/content/Context;

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

move-result-object v0

const-string v1, "kg_clock_color"

const/4 v2, -0x1

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

move-result v0

iput v0, p0, Lcom/android/keyguard/sec/SecKeyguardClockSingleView;->mClockTextColor:I

return-void
.end method

.method setClockAMPMColor()V
.locals 3

iget-object v0, p0, Lcom/android/keyguard/sec/SecKeyguardClockSingleView;->mContext:Landroid/content/Context;

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

move-result-object v0

const-string v1, "kg_clock_AMPM_color"

const/4 v2, -0x1

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

move-result v0

iput v0, p0, Lcom/android/keyguard/sec/SecKeyguardClockSingleView;->mClockAMPMColor:I

return-void
.end method

.method setDateColor()V
.locals 3

iget-object v0, p0, Lcom/android/keyguard/sec/SecKeyguardClockSingleView;->mContext:Landroid/content/Context;

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

move-result-object v0

const-string v1, "kg_date_color"

const/4 v2, -0x1

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

move-result v0

iput v0, p0, Lcom/android/keyguard/sec/SecKeyguardClockSingleView;->mDateColor:I

return-void
.end method

CustomSettings entries.

We will need a SystemUI restart to set the colors (without a reboot) so that line is here as well.

<com.ficeto.colorpicker.ColorPickerPreference android:title="Lockscreen Clock" android:key="kg_clock_color" android:summary="Choose clock color" />
<com.ficeto.colorpicker.ColorPickerPreference android:title="Lockscreen Clock AMPM" android:key="kg_clock_AMPM_color" android:summary="Choose AMPM color" />
<com.ficeto.colorpicker.ColorPickerPreference android:title="Lockscreen Date" android:key="kg_date_color" android:summary="Choose date color" />
<Preference android:title="Restart SystemUI" android:key="tool#restartsystemui" android:summary="Press to set date and time colors" />

Note:

If SystemUI restart doesn't work, root access is required.

See the bottom of the guide for InCallUI dialpad colors to add stericson folder to CustomSettings

__________________________________________________

[Guide How-to] Enable NFC while screen off & locked Android L

This will allow you to keep NFC enabled while screen is off & locked.

NfcService.apk smali edits:

Note the changes are in BLUE

\smali\com\android\nfc\NfcService.smali

.method public constructor <init>(Landroid/app/Application;)V
.
.
.
[COLOR="Red"]const-string v0, "android.intent.action.SCREEN_OFF"
[/COLOR] [COLOR="Blue"]const-string v0, "android.intent.action.SCREEN_OFFA"
[/COLOR]
invoke-direct {v3, v0}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

[COLOR="Red"]const-string v0, "android.intent.action.SCREEN_ON"
[/COLOR] [COLOR="Blue"]const-string v0, "android.intent.action.SCREEN_ONA"
[/COLOR]
invoke-virtual {v3, v0}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

[COLOR="Red"]const-string v0, "android.intent.action.USER_PRESENT"[/COLOR]
[COLOR="Blue"]const-string v0, "android.intent.action.USER_PRESENTA"
[/COLOR]
invoke-virtual {v3, v0}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

[COLOR="Red"]const-string v0, "android.intent.action.USER_SWITCHED"[/COLOR]
[COLOR="Blue"]const-string v0, "android.intent.action.USER_SWITCHEDA"
[/COLOR]

Same smali

Note the changes are in BLUE

.method private computeDiscoveryParameters(I)Lcom/android/nfc/NfcDiscoveryParameters;
.
.
.
[COLOR="Red"] if-lt p1, v2, :cond_8
[/COLOR]
[COLOR="Blue"]if-lt v2, p1, :cond_8
[/COLOR]

\smali\com\android\nfc\ScreenStateHelper.smali

Make the indicated changes in BLUE

.method checkScreenState()I
.locals 1

iget-object v0, p0, Lcom/android/nfc/ScreenStateHelper;->mPowerManager:Landroid/os/PowerManager;

invoke-virtual {v0}, Landroid/os/PowerManager;->isScreenOn()Z

move-result v0

if-nez v0, :cond_0

[COLOR="Blue"]const/4 v0, 0x3
[/COLOR]
:goto_0
return v0

:cond_0
iget-object v0, p0, Lcom/android/nfc/ScreenStateHelper;->mKeyguardManager:Landroid/app/KeyguardManager;

invoke-virtual {v0}, Landroid/app/KeyguardManager;->isKeyguardLocked()Z

move-result v0

if-eqz v0, :cond_1

[COLOR="Blue"]const/4 v0, 0x3
[/COLOR]
goto :goto_0

:cond_1
const/4 v0, 0x3

goto :goto_0
.end method

__________________________________________________

[Guide How-to] Enable Mokee Listview Animations Android L

This will allow you to enable Listview Animations effects.

This was a pretty large guide so it has been given a dedicated thread here --> [Guide] Listview Animations for Lollipop

Credits [MENTION=5292754]remuntada78[/MENTION] for helping with the color mods

Credits [MENTION=5266065]talkingmonkeys[/MENTION] for helping with the CustomSettings root access issue

Credits [MENTION=2832063]XlAfbk[/MENTION] for the NFC lollipop edits