[Xperia Z5 Compact Q&A, Help & Troubleshooting] mlleemiles:
I was following this guide here: https://chromloop.com/2016/11/guide-how-to-port-pixel-navigation-bar-animation-to-your-phone/ but without success. My rom is 7.1.1 stock odex .54.

logcat here

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

10-31 00:42:42.462 E/AndroidRuntime(12427): FATAL EXCEPTION: main

10-31 00:42:42.462 E/AndroidRuntime(12427): Process: com.android.systemui, PID: 12427

10-31 00:42:42.462 E/AndroidRuntime(12427): java.lang.ClassCastException: com.google.android.systemui.OpaLayout cannot be cast to android.widget.ImageView

10-31 00:42:42.462 E/AndroidRuntime(12427):	at com.android.systemui.statusbar.phone.ButtonDispatcher.setCrossfadeDrawable(ButtonDispatcher.java:192)

10-31 00:42:42.462 E/AndroidRuntime(12427):	at com.android.systemui.statusbar.phone.NavigationBarView.setHomeIcon(NavigationBarView.java:522)

10-31 00:42:42.462 E/AndroidRuntime(12427):	at com.android.systemui.statusbar.phone.NavigationBarView.setNavigationIconHints(NavigationBarView.java:580)

10-31 00:42:42.462 E/AndroidRuntime(12427):	at com.android.systemui.statusbar.phone.NavigationBarView.reorient(NavigationBarView.java:799)

10-31 00:42:42.462 E/AndroidRuntime(12427):	at com.android.systemui.statusbar.phone.PhoneStatusBar.prepareNavigationBarView(PhoneStatusBar.java:1628)

10-31 00:42:42.462 E/AndroidRuntime(12427):	at com.android.systemui.statusbar.phone.PhoneStatusBar.addNavigationBar(PhoneStatusBar.java:1673)

10-31 00:42:42.462 E/AndroidRuntime(12427):	at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:803)

10-31 00:42:42.462 E/AndroidRuntime(12427):	at com.android.systemui.statusbar.SystemBars.createStatusBarFromConfig(SystemBars.java:110)

10-31 00:42:42.462 E/AndroidRuntime(12427):	at com.android.systemui.statusbar.SystemBars.onNoService(SystemBars.java:62)

10-31 00:42:42.462 E/AndroidRuntime(12427):	at com.android.systemui.statusbar.ServiceMonitor.startService(ServiceMonitor.java:230)

10-31 00:42:42.462 E/AndroidRuntime(12427):	at com.android.systemui.statusbar.ServiceMonitor.-wrap5(ServiceMonitor.java)

10-31 00:42:42.462 E/AndroidRuntime(12427):	at com.android.systemui.statusbar.ServiceMonitor$1.handleMessage(ServiceMonitor.java:73)

10-31 00:42:42.462 E/AndroidRuntime(12427):	at android.os.Handler.dispatchMessage(Handler.java:102)

10-31 00:42:42.462 E/AndroidRuntime(12427):	at android.os.Looper.loop(Looper.java:241)

10-31 00:42:42.462 E/AndroidRuntime(12427):	at android.app.ActivityThread.main(ActivityThread.java:6274)

10-31 00:42:42.462 E/AndroidRuntime(12427):	at java.lang.reflect.Method.invoke(Native Method)

10-31 00:42:42.462 E/AndroidRuntime(12427):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)

10-31 00:42:42.462 E/AndroidRuntime(12427):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

10-31 00:42:42.464 D/ActivityManager( 3145): New dropbox entry: com.android.systemui, system_app_crash, db7f643e-e176-438a-bdba-9d8bf9eed2b9

10-31 00:42:42.473 D/clmlib ( 1648): Got activities:0x00000008

10-31 00:42:42.474 I/JavaDumper:JavaDumperThread( 1648): addEvent: system_app_crash@1509381762469.txt processName: com.android.systemui

10-31 00:42:42.475 I/JavaDumper:JavaDumperThread( 1648): Event: system_app_crash@1509381762469.txt TimeStamp: 1509381762

10-31 00:42:42.492 W/asset ( 3145): Version security token mismatch.

10-31 00:42:42.492 W/asset ( 3145): Path: /system/priv-app/SystemUI/SystemUI.apk

10-31 00:42:42.492 W/asset ( 3145): targetTokenFromPath: 0000000059f752b026d46df30001030b00000112

10-31 00:42:42.492 W/asset ( 3145): targetTokenFromFile: 0000000059f75633069db8710001030b00000116

My friend told me that Sony has prevented my modification, that would break when I replace the layout and the code assumes a different layout. But Pixel NavBar becomes default in Sony Oreo. Is it possible to port this feature?

Thanks in advance.