[Sony Cross-Device General] abo hani:
Hello folks, I'm Modding my own Xperia Launcher with version 6.4, SDK : 22, And i'm porting Transitions option from Marshmallow Xperia Launcher, So What did i do ? :

Copied :

Strings

IDs

Drawables

Layout

Option XML in Home_Settings => res/xml

Added Transition code in AndroidManifest.xml.

So everything is the same as Marshmallow settings, now let's go to Smali files, I've Copied the following :

HomeSettingsActivity$HomeSettingsFragment$1

HomeSettingsActivity$HomeSettingsFragment$2

PageTransitionPreferenceActivity$PageTransitionFragment$PageTransitionPreference$1

PageTransitionPreferenceActivity$PageTransitionFragment$PageTransitionPreference

PageTransitionPreferenceActivity$PageTransitionFragment

PageTransitionPreferenceActivity

UserSettings$PageTransition

I've Modded the IDs to be the exact as mine ( public.xml ), and copied Smali codes in UserSettings.smali, along with the key value code .

So, What's the problem ?

Transition option isn't openable, and when i'm taking a logcat, I'm having crashes under the hood, above the hood the launcher is working well.

Logcat :

--------- beginning of crash

E/AndroidRuntime(32278): FATAL EXCEPTION: main

E/AndroidRuntime(32278): Process: com.sonyericsson.home, PID: 32278

E/AndroidRuntime(32278): java.lang.NoSuchFieldError: No instance field mPageTransition of type Lcom/sonymobile/home/settings/UserSettings$PageTransition; in class Lcom/sonymobile/home/settings/UserSettings; or its superclasses (declaration of 'com.sonymobile.home.settings.UserSettings' appears in /data/app/com.sonyericsson.home-2/base.apk)

E/AndroidRuntime(32278): at com.sonymobile.home.settings.UserSettings.<init>(UserSettings.java:194)

E/AndroidRuntime(32278): at com.sonymobile.home.HomeApplication.onCreate(HomeApplication.java:153)

E/AndroidRuntime(32278): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)

E/AndroidRuntime(32278): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4661)

E/AndroidRuntime(32278): at android.app.ActivityThread.access$1500(ActivityThread.java:156)

E/AndroidRuntime(32278): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412)

E/AndroidRuntime(32278): at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime(32278): at android.os.Looper.loop(Looper.java:211)

E/AndroidRuntime(32278): at android.app.ActivityThread.main(ActivityThread.java:5389)

E/AndroidRuntime(32278): at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime(32278): at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime(32278): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)

E/AndroidRuntime(32278): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)

E/AndroidRuntime(32441): FATAL EXCEPTION: main

E/AndroidRuntime(32441): Process: com.sonyericsson.home, PID: 32441

E/AndroidRuntime(32441): java.lang.NoSuchFieldError: No instance field mPageTransition of type Lcom/sonymobile/home/settings/UserSettings$PageTransition; in class Lcom/sonymobile/home/settings/UserSettings; or its superclasses (declaration of 'com.sonymobile.home.settings.UserSettings' appears in /data/app/com.sonyericsson.home-2/base.apk)

E/AndroidRuntime(32441): at com.sonymobile.home.settings.UserSettings.<init>(UserSettings.java:194)

E/AndroidRuntime(32441): at com.sonymobile.home.HomeApplication.onCreate(HomeApplication.java:153)

E/AndroidRuntime(32441): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)

E/AndroidRuntime(32441): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4661)

E/AndroidRuntime(32441): at android.app.ActivityThread.access$1500(ActivityThread.java:156)

E/AndroidRuntime(32441): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412)

E/AndroidRuntime(32441): at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime(32441): at android.os.Looper.loop(Looper.java:211)

E/AndroidRuntime(32441): at android.app.ActivityThread.main(ActivityThread.java:5389)

E/AndroidRuntime(32441): at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime(32441): at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime(32441): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)

E/AndroidRuntime(32441): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)

E/AndroidRuntime(32549): FATAL EXCEPTION: main

E/AndroidRuntime(32549): Process: com.sonyericsson.home, PID: 32549

E/AndroidRuntime(32549): java.lang.NoSuchFieldError: No instance field mPageTransition of type Lcom/sonymobile/home/settings/UserSettings$PageTransition; in class Lcom/sonymobile/home/settings/UserSettings; or its superclasses (declaration of 'com.sonymobile.home.settings.UserSettings' appears in /data/app/com.sonyericsson.home-2/base.apk)

E/AndroidRuntime(32549): at com.sonymobile.home.settings.UserSettings.<init>(UserSettings.java:194)

E/AndroidRuntime(32549): at com.sonymobile.home.HomeApplication.onCreate(HomeApplication.java:153)

E/AndroidRuntime(32549): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)

E/AndroidRuntime(32549): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4661)

E/AndroidRuntime(32549): at android.app.ActivityThread.access$1500(ActivityThread.java:156)

E/AndroidRuntime(32549): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412)

E/AndroidRuntime(32549): at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime(32549): at android.os.Looper.loop(Looper.java:211)

E/AndroidRuntime(32549): at android.app.ActivityThread.main(ActivityThread.java:5389)

E/AndroidRuntime(32549): at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime(32549): at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime(32549): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)

E/AndroidRuntime(32549): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)

E/AndroidRuntime(32710): FATAL EXCEPTION: main

E/AndroidRuntime(32710): Process: com.sonyericsson.home, PID: 32710

E/AndroidRuntime(32710): java.lang.NoSuchFieldError: No instance field mPageTransition of type Lcom/sonymobile/home/settings/UserSettings$PageTransition; in class Lcom/sonymobile/home/settings/UserSettings; or its superclasses (declaration of 'com.sonymobile.home.settings.UserSettings' appears in /data/app/com.sonyericsson.home-2/base.apk)

E/AndroidRuntime(32710): at com.sonymobile.home.settings.UserSettings.<init>(UserSettings.java:194)

E/AndroidRuntime(32710): at com.sonymobile.home.HomeApplication.onCreate(HomeApplication.java:153)

E/AndroidRuntime(32710): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)

E/AndroidRuntime(32710): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4661)

E/AndroidRuntime(32710): at android.app.ActivityThread.access$1500(ActivityThread.java:156)

E/AndroidRuntime(32710): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412)

E/AndroidRuntime(32710): at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime(32710): at android.os.Looper.loop(Looper.java:211)

E/AndroidRuntime(32710): at android.app.ActivityThread.main(ActivityThread.java:5389)

E/AndroidRuntime(32710): at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime(32710): at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime(32710): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)

E/AndroidRuntime(32710): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)

E/AndroidRuntime( 301): FATAL EXCEPTION: main

E/AndroidRuntime( 301): Process: com.sonyericsson.home, PID: 301

E/AndroidRuntime( 301): java.lang.NoSuchFieldError: No instance field mPageTransition of type Lcom/sonymobile/home/settings/UserSettings$PageTransition; in class Lcom/sonymobile/home/settings/UserSettings; or its superclasses (declaration of 'com.sonymobile.home.settings.UserSettings' appears in /data/app/com.sonyericsson.home-2/base.apk)

E/AndroidRuntime( 301): at com.sonymobile.home.settings.UserSettings.<init>(UserSettings.java:194)

E/AndroidRuntime( 301): at com.sonymobile.home.HomeApplication.onCreate(HomeApplication.java:153)

E/AndroidRuntime( 301): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)

E/AndroidRuntime( 301): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4661)

E/AndroidRuntime( 301): at android.app.ActivityThread.access$1500(ActivityThread.java:156)

E/AndroidRuntime( 301): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412)

E/AndroidRuntime( 301): at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime( 301): at android.os.Looper.loop(Looper.java:211)

E/AndroidRuntime( 301): at android.app.ActivityThread.main(ActivityThread.java:5389)

E/AndroidRuntime( 301): at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime( 301): at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime( 301): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)

E/AndroidRuntime( 301): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)

E/AndroidRuntime( 379): FATAL EXCEPTION: main

E/AndroidRuntime( 379): Process: com.sonyericsson.home, PID: 379

E/AndroidRuntime( 379): java.lang.NoSuchFieldError: No instance field mPageTransition of type Lcom/sonymobile/home/settings/UserSettings$PageTransition; in class Lcom/sonymobile/home/settings/UserSettings; or its superclasses (declaration of 'com.sonymobile.home.settings.UserSettings' appears in /data/app/com.sonyericsson.home-2/base.apk)

E/AndroidRuntime( 379): at com.sonymobile.home.settings.UserSettings.<init>(UserSettings.java:194)

E/AndroidRuntime( 379): at com.sonymobile.home.HomeApplication.onCreate(HomeApplication.java:153)

E/AndroidRuntime( 379): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)

E/AndroidRuntime( 379): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4661)

E/AndroidRuntime( 379): at android.app.ActivityThread.access$1500(ActivityThread.java:156)

E/AndroidRuntime( 379): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412)

E/AndroidRuntime( 379): at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime( 379): at android.os.Looper.loop(Looper.java:211)

E/AndroidRuntime( 379): at android.app.ActivityThread.main(ActivityThread.java:5389)

E/AndroidRuntime( 379): at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime( 379): at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime( 379): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)

E/AndroidRuntime( 379): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)

E/AndroidRuntime( 615): FATAL EXCEPTION: main

E/AndroidRuntime( 615): Process: com.sonyericsson.home, PID: 615

E/AndroidRuntime( 615): java.lang.NoSuchFieldError: No instance field mPageTransition of type Lcom/sonymobile/home/settings/UserSettings$PageTransition; in class Lcom/sonymobile/home/settings/UserSettings; or its superclasses (declaration of 'com.sonymobile.home.settings.UserSettings' appears in /data/app/com.sonyericsson.home-2/base.apk)

E/AndroidRuntime( 615): at com.sonymobile.home.settings.UserSettings.<init>(UserSettings.java:194)

E/AndroidRuntime( 615): at com.sonymobile.home.HomeApplication.onCreate(HomeApplication.java:153)

E/AndroidRuntime( 615): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)

E/AndroidRuntime( 615): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4661)

E/AndroidRuntime( 615): at android.app.ActivityThread.access$1500(ActivityThread.java:156)

E/AndroidRuntime( 615): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412)

E/AndroidRuntime( 615): at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime( 615): at android.os.Looper.loop(Looper.java:211)

E/AndroidRuntime( 615): at android.app.ActivityThread.main(ActivityThread.java:5389)

E/AndroidRuntime( 615): at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime( 615): at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime( 615): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)

E/AndroidRuntime( 615): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)

E/AndroidRuntime( 1052): FATAL EXCEPTION: main

E/AndroidRuntime( 1052): Process: com.sonyericsson.home, PID: 1052

E/AndroidRuntime( 1052): java.lang.NoSuchFieldError: No instance field mPageTransition of type Lcom/sonymobile/home/settings/UserSettings$PageTransition; in class Lcom/sonymobile/home/settings/UserSettings; or its superclasses (declaration of 'com.sonymobile.home.settings.UserSettings' appears in /data/app/com.sonyericsson.home-2/base.apk)

E/AndroidRuntime( 1052): at com.sonymobile.home.settings.UserSettings.<init>(UserSettings.java:194)

E/AndroidRuntime( 1052): at com.sonymobile.home.HomeApplication.onCreate(HomeApplication.java:153)

E/AndroidRuntime( 1052): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)

E/AndroidRuntime( 1052): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4661)

E/AndroidRuntime( 1052): at android.app.ActivityThread.access$1500(ActivityThread.java:156)

E/AndroidRuntime( 1052): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412)

E/AndroidRuntime( 1052): at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime( 1052): at android.os.Looper.loop(Looper.java:211)

E/AndroidRuntime( 1052): at android.app.ActivityThread.main(ActivityThread.java:5389)

E/AndroidRuntime( 1052): at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime( 1052): at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime( 1052): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)

E/AndroidRuntime( 1052): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)

E/AndroidRuntime( 1733): FATAL EXCEPTION: main

E/AndroidRuntime( 1733): Process: com.sonyericsson.home, PID: 1733

E/AndroidRuntime( 1733): java.lang.NoSuchFieldError: No instance field mPageTransition of type Lcom/sonymobile/home/settings/UserSettings$PageTransition; in class Lcom/sonymobile/home/settings/UserSettings; or its superclasses (declaration of 'com.sonymobile.home.settings.UserSettings' appears in /data/app/com.sonyericsson.home-2/base.apk)

E/AndroidRuntime( 1733): at com.sonymobile.home.settings.UserSettings.<init>(UserSettings.java:194)

E/AndroidRuntime( 1733): at com.sonymobile.home.HomeApplication.onCreate(HomeApplication.java:153)

E/AndroidRuntime( 1733): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)

E/AndroidRuntime( 1733): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4661)

E/AndroidRuntime( 1733): at android.app.ActivityThread.access$1500(ActivityThread.java:156)

E/AndroidRuntime( 1733): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412)

E/AndroidRuntime( 1733): at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime( 1733): at android.os.Looper.loop(Looper.java:211)

E/AndroidRuntime( 1733): at android.app.ActivityThread.main(ActivityThread.java:5389)

E/AndroidRuntime( 1733): at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime( 1733): at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime( 1733): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)

E/AndroidRuntime( 1733): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)

E/AndroidRuntime( 1872): FATAL EXCEPTION: main

E/AndroidRuntime( 1872): Process: com.sonyericsson.home, PID: 1872

E/AndroidRuntime( 1872): java.lang.NoSuchFieldError: No instance field mPageTransition of type Lcom/sonymobile/home/settings/UserSettings$PageTransition; in class Lcom/sonymobile/home/settings/UserSettings; or its superclasses (declaration of 'com.sonymobile.home.settings.UserSettings' appears in /data/app/com.sonyericsson.home-2/base.apk)

E/AndroidRuntime( 1872): at com.sonymobile.home.settings.UserSettings.<init>(UserSettings.java:194)

E/AndroidRuntime( 1872): at com.sonymobile.home.HomeApplication.onCreate(HomeApplication.java:153)

E/AndroidRuntime( 1872): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)

E/AndroidRuntime( 1872): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4661)

E/AndroidRuntime( 1872): at android.app.ActivityThread.access$1500(ActivityThread.java:156)

E/AndroidRuntime( 1872): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412)

E/AndroidRuntime( 1872): at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime( 1872): at android.os.Looper.loop(Looper.java:211)

E/AndroidRuntime( 1872): at android.app.ActivityThread.main(ActivityThread.java:5389)

E/AndroidRuntime( 1872): at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime( 1872): at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime( 1872): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)

E/AndroidRuntime( 1872): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)

E/AndroidRuntime( 2113): FATAL EXCEPTION: main

E/AndroidRuntime( 2113): Process: com.sonyericsson.home, PID: 2113

E/AndroidRuntime( 2113): java.lang.NoSuchFieldError: No instance field mPageTransition of type Lcom/sonymobile/home/settings/UserSettings$PageTransition; in class Lcom/sonymobile/home/settings/UserSettings; or its superclasses (declaration of 'com.sonymobile.home.settings.UserSettings' appears in /data/app/com.sonyericsson.home-2/base.apk)

E/AndroidRuntime( 2113): at com.sonymobile.home.settings.UserSettings.<init>(UserSettings.java:194)

E/AndroidRuntime( 2113): at com.sonymobile.home.HomeApplication.onCreate(HomeApplication.java:153)

E/AndroidRuntime( 2113): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)

E/AndroidRuntime( 2113): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4661)

E/AndroidRuntime( 2113): at android.app.ActivityThread.access$1500(ActivityThread.java:156)

E/AndroidRuntime( 2113): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412)

E/AndroidRuntime( 2113): at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime( 2113): at android.os.Looper.loop(Looper.java:211)

E/AndroidRuntime( 2113): at android.app.ActivityThread.main(ActivityThread.java:5389)

E/AndroidRuntime( 2113): at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime( 2113): at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime( 2113): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)

E/AndroidRuntime( 2113): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)

E/AndroidRuntime( 2427): FATAL EXCEPTION: main

E/AndroidRuntime( 2427): Process: com.sonyericsson.home, PID: 2427

E/AndroidRuntime( 2427): java.lang.NoSuchFieldError: No instance field mPageTransition of type Lcom/sonymobile/home/settings/UserSettings$PageTransition; in class Lcom/sonymobile/home/settings/UserSettings; or its superclasses (declaration of 'com.sonymobile.home.settings.UserSettings' appears in /data/app/com.sonyericsson.home-2/base.apk)

E/AndroidRuntime( 2427): at com.sonymobile.home.settings.UserSettings.<init>(UserSettings.java:194)

E/AndroidRuntime( 2427): at com.sonymobile.home.HomeApplication.onCreate(HomeApplication.java:153)

E/AndroidRuntime( 2427): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)

E/AndroidRuntime( 2427): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4661)

E/AndroidRuntime( 2427): at android.app.ActivityThread.access$1500(ActivityThread.java:156)

E/AndroidRuntime( 2427): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412)

E/AndroidRuntime( 2427): at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime( 2427): at android.os.Looper.loop(Looper.java:211)

E/AndroidRuntime( 2427): at android.app.ActivityThread.main(ActivityThread.java:5389)

E/AndroidRuntime( 2427): at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime( 2427): at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime( 2427): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)

E/AndroidRuntime( 2427): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)

--------- beginning of system

My Smali File vs Original Smali Files :

Mine - Original

Thanks in advnace!