[Samsung Galaxy Fit GT 5670] zcop:
Refine wilfredcool007 CRT animation Guide

Original thread

http://xdaforums.com/showthread.php?t=1533255

Decompile services.jar

No need to change anything in PowerManagerService.smali

open PowerManagerService$BrightnessState

Search

invoke-static {v0, v1}, Lcom/android/server/PowerManagerService;->access$4700(Lcom/android/server/PowerManagerService;I)I

lookdown several line, after

.end method

add

.method private getScreenAnimationMode(Landroid/content/Context;)I
.registers 7
.parameter "context"
.prologue
const v0, 0x0
const v3, 0x1
const v4, 0x10
invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v1
const-string v2, "config_beam_screen_on"
invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
move-result v2
if-eqz v2, :cond_22
const v0, 0x1
:goto_18
const-string v2, "config_beam_screen_off"
invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
move-result v2
if-eqz v2, :cond_21
add-int/2addr v0, v4
:cond_21
return v0
:cond_22
const v0, 0x0
goto :goto_18
.end method

Find

.method public run()V

After

.prologue
const/4 v8, 0x0

add

.line 2078
iget-object v4, p0, Lcom/android/server/PowerManagerService$BrightnessState;->this$0:Lcom/android/server/PowerManagerService;
invoke-static {v4}, Lcom/android/server/PowerManagerService;->[COLOR="Blue"]access$3400[/COLOR](Lcom/android/server/PowerManagerService;)Landroid/content/Context;
move-result-object v4
invoke-direct {p0, v4}, Lcom/android/server/PowerManagerService$BrightnessState;->getScreenAnimationMode(Landroid/content/Context;)I
move-result v4
if-nez v4, [COLOR="blue"]:cond_2f[/COLOR]

Go to the end of this method

Above

goto :goto_4e
.end method

add

iget-object v6, p0, Lcom/android/server/PowerManagerService$BrightnessState;->this$0:Lcom/android/server/PowerManagerService;

invoke-static {v6}, Lcom/android/server/PowerManagerService;->[COLOR="blue"]access$3400[/COLOR](Lcom/android/server/PowerManagerService;)Landroid/content/Context;

move-result-object v6

invoke-direct {p0, v6}, Lcom/android/server/PowerManagerService$BrightnessState;->getScreenAnimationMode(Landroid/content/Context;)I

move-result v6

Recompile services.jar

Enable CRT animation from framework-res.apk

Make Check box to control CRT effect in Settings.apk

Decompile Settings.apk

Open Settings.apk/res/xml/display_settings.xml

under

<PreferenceScreen android:title="@string/g_sensor_title" android:key="g_sensor" android:summary="@string/g_sensor_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.GSensorSettings" />
</PreferenceScreen>

add

<PreferenceCategory android:title="CRT Animation Control">
<CheckBoxPreference android:title="Use CRT Effect when turn on screen" android:key="config_beam_screen_on" android:defaultValue="true" android:summaryOn="Enabled" android:summaryOff="Disabled" />
<CheckBoxPreference android:title="Use CRT Effect when turn off screen" android:key="config_beam_screen_off" android:defaultValue="true" android:summaryOn="Enabled" android:summaryOff="Disabled" />
</PreferenceCategory>

Recompile Settings.apk

Maybe need change build.prob to get CRT work

open /system/build.prob

Comment(#) or del line

debug.sf.hw=1