[Android] ahmed.nasser.hk:
GUIDE AOKP CUSTOM ANIMATIONS

Work and Tested - CM 12.1 & LP Based

​

1. Decompile framework-res.apk

copy and paste ingredients into place

framework-res.apk\res\values

strings.xml

add the following lines

Recompile-Decompile again..

framework-res.apk\res\values

open public.xml, and leave it opened

2. Decompile framework.jar

copy and paste ingredients into place

framework.jar\smali\android\provider

Settings$System.smali

-copy and paste the line below
.field public static final ACTIVITY_ANIMATION_CONTROLS:[Ljava/lang/String;
-right above
.field public static final ADB_ENABLED:Ljava/lang/String; = "adb_enabled"

-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-
-copy and paste the lines below
.field public static final ANIMATION_CONTROLS_DURATION:Ljava/lang/String; = "animation_controls_duration"

.field public static final ANIMATION_CONTROLS_EXIT_ONLY:Ljava/lang/String; = "animation_controls_exit_only"

.field public static final ANIMATION_CONTROLS_NO_OVERRIDE:Ljava/lang/String; = "animation_controls_no_override"

.field public static final ANIMATION_CONTROLS_REVERSE_EXIT:Ljava/lang/String; = "animation_controls_reverse_exit"

-right above
.field public static final ANIMATOR_DURATION_SCALE:Ljava/lang/String; = "animator_duration_scale"
-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-
-copy and paste the line below
.line 3994
const/16 v4, 0xb

new-array v4, v4, [Ljava/lang/String;

const-string v5, "activity_open"

aput-object v5, v4, v9

const-string v5, "activity_close"

aput-object v5, v4, v10

const-string v5, "task_open"

aput-object v5, v4, v11

const-string v5, "task_close"

aput-object v5, v4, v12

const-string v5, "task_to_front"

aput-object v5, v4, v13

const/4 v5, 0x5

const-string v6, "task_to_back"

aput-object v6, v4, v5

const/4 v5, 0x6

const-string v6, "wallpaper_open"

aput-object v6, v4, v5

const/4 v5, 0x7

const-string v6, "wallpaper_close"

aput-object v6, v4, v5

const/16 v5, 0x8

const-string v6, "wallpaper_intra_open"

aput-object v6, v4, v5

const/16 v5, 0x9

const-string v6, "wallpaper_intra_close"

aput-object v6, v4, v5

const/16 v5, 0xa

const-string v6, "task_open_behind"

aput-object v6, v4, v5

sput-object v4, Landroid/provider/Settings$System;->ACTIVITY_ANIMATION_CONTROLS:[Ljava/lang/String;

-right
sput-object v4, Landroid/provider/Settings$System;->DEFAULT_ALARM_ALERT_URI:Landroid/net/Uri;

Replace id below conform with public.xml framework-res.apk

framework.jar\smali_classes2\com\android\internal\util\aicp

AwesomeAnimationHelper.smali

Recompile..

3.Decompile services.jar

copy and paste ingredients into place

Replace id below conform with public.xml framework-res.apk

services.jar\smali\com\android\server\wm\

AppTransition.smali

Recompile..

4.Settings.apk

Settings.apk\res\xml

copy and paste ingredients into place

-OPEN

display.xml

-Add Line

-OPEN

strings.xml

add the following lines

ids.xml

add the following lines

GO TO

Settings.apk\smali\com\android\settings
SettingsPreferenceFragment.smali

-copy and paste the line below
.field protected mContext:Landroid/content/Context;

-right below
.field private mContentResolver:Landroid/content/ContentResolver;

-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-

-copy and paste this line

.field protected mContentRes:Landroid/content/ContentResolver;

-right below
# instance fields

-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-
-copy and paste this lines
.method public setTitle(I)V
.locals 1
.param p1, "resId" # I

.prologue
.line 526
invoke-virtual {p0}, Lcom/android/settings/SettingsPreferenceFragment;->getActivity()Landroid/app/Activity;

move-result-object v0

invoke-virtual {v0, p1}, Landroid/app/Activity;->setTitle(I)V

.line 527
return-void
.end method

-right below
.method protected showDialog(I)V

-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-

-copy and paste this lines
.line 93
invoke-virtual {p0}, Lcom/android/settings/SettingsPreferenceFragment;->getActivity()Landroid/app/Activity;

move-result-object v1

invoke-virtual {v1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

move-result-object v1

iput-object v1, p0, Lcom/android/settings/SettingsPreferenceFragment;->mContext:Landroid/content/Context;

.line 95
invoke-virtual {p0}, Lcom/android/settings/SettingsPreferenceFragment;->getActivity()Landroid/app/Activity;

move-result-object v1

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

move-result-object v1

iput-object v1, p0, Lcom/android/settings/SettingsPreferenceFragment;->mContentRes:Landroid/content/ContentResolver;

-right below
invoke-super {p0, p1}, Landroid/preference/PreferenceFragment;->onCreate(Landroid/os/Bundle;)V

Replace id below conform with public.xml

Recompile.

Files and Compare Press Me​