[Moto Z ROMs, Kernels, Recoveries, & Other Developm] julioesc:
add info: I come from 7.1.1 stock and then erfanrom 7.1.1

Format/Wipe system, cache, dalvik, data

Flash/Install ROM - aokp_griffin_nougat_nightly_2017-10-22_ota

Flash Install Gapps (OpenGapps ARM64 7.1 Mini or smaller is recommanded) - open_gapps-arm64-7.1-micro-20171024

Reboot

By clicking next on the fingerprint screen

Logcat

10-24 12:44:58.441 8076-8076/com.android.settings E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.android.settings, PID: 8076
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.ChooseLockGeneric}: java.lang.ClassCastException: android.widget.FrameLayout cannot be cast to com.android.setupwizardlib.GlifPreferenceLayout
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2699)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2766)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1507)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6236)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:891)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781)
Caused by: java.lang.ClassCastException: android.widget.FrameLayout cannot be cast to com.android.setupwizardlib.GlifPreferenceLayout
at com.android.settings.ChooseLockGeneric$ChooseLockGenericFragment.onCreateRecyclerView(ChooseLockGeneric.java:266)
at android.support.v14.preference.PreferenceFragment.onCreateView(PreferenceFragment.java:287)
at com.android.settings.SettingsPreferenceFragment.onCreateView(SettingsPreferenceFragment.java:131)
at android.app.Fragment.performCreateView(Fragment.java:2353)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:995)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1171)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1153)
at android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2039)
at android.app.FragmentController.dispatchActivityCreated(FragmentController.java:176)
at android.app.Activity.performCreateCommon(Activity.java:6678)
at android.app.Activity.performCreate(Activity.java:6686)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2652)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2766)*
at android.app.ActivityThread.-wrap12(ActivityThread.java)*
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1507)*
at android.os.Handler.dispatchMessage(Handler.java:102)*
at android.os.Looper.loop(Looper.java:154)*
at android.app.ActivityThread.main(ActivityThread.java:6236)*
at java.lang.reflect.Method.invoke(Native Method)*
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:891)*
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781)*
10-24 12:44:58.442 1663-4906/system_process W/ActivityManager: Force finishing activity com.android.settings/.ChooseLockGeneric
10-24 12:44:58.446 1663-4906/system_process W/ActivityManager: Force finishing activity com.android.settings/.fingerprint.FingerprintEnrollIntroduction