[OnePlus 5 & 5T Cross Device Development] blutor:
Hi, thanks for the LOS 17! Dirty flash from 16 did not work for me but I've been able to "fix" it. Maybe it will help someone.

After dirty flash I had a bootloop and this exception all over the logcat:

01-02 18:33:40.855 18673 18716 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: ActivityManager
01-02 18:33:40.855 18673 18716 E AndroidRuntime: java.lang.IllegalStateException: READ_EXTERNAL_STORAGE has unknown mode mode=5
01-02 18:33:40.855 18673 18716 E AndroidRuntime: at android.os.storage.StorageManager.checkPermissionAndAppOp(StorageManager.java:1692)
01-02 18:33:40.855 18673 18716 E AndroidRuntime: at android.os.storage.StorageManager.checkPermissionAndCheckOp(StorageManager.java:1642)
01-02 18:33:40.855 18673 18716 E AndroidRuntime: at com.android.server.StorageManagerService.getMountModeInternal(StorageManagerService.java:3674)
01-02 18:33:40.855 18673 18716 E AndroidRuntime: at com.android.server.StorageManagerService.getMountMode(StorageManagerService.java:3645)
01-02 18:33:40.855 18673 18716 E AndroidRuntime: at com.android.server.StorageManagerService.access$4800(StorageManagerService.java:189)
01-02 18:33:40.855 18673 18716 E AndroidRuntime: at com.android.server.StorageManagerService$12.opChanged(StorageManagerService.java:3322)
01-02 18:33:40.855 18673 18716 E AndroidRuntime: at com.android.server.appop.AppOpsService.notifyOpChanged(AppOpsService.java:1531)
01-02 18:33:40.855 18673 18716 E AndroidRuntime: at com.android.server.appop.AppOpsService.lambda$FYLTtxqrHmv8Y5UdZ9ybXKsSJhs(Unknown Source:0)
01-02 18:33:40.855 18673 18716 E AndroidRuntime: at com.android.server.appop.-$$Lambda$AppOpsService$FYLTtxqrHmv8Y5UdZ9ybXKsSJhs.accept(Unknown Source:18)
01-02 18:33:40.855 18673 18716 E AndroidRuntime: at com.android.internal.util.function.pooled.PooledLambdaImpl.doInvoke(PooledLambdaImpl.java:317)
01-02 18:33:40.855 18673 18716 E AndroidRuntime: at com.android.internal.util.function.pooled.PooledLambdaImpl.invoke(PooledLambdaImpl.java:195)
01-02 18:33:40.855 18673 18716 E AndroidRuntime: at com.android.internal.util.function.pooled.OmniFunction.run(OmniFunction.java:86)
01-02 18:33:40.855 18673 18716 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:883)
01-02 18:33:40.855 18673 18716 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:100)
01-02 18:33:40.855 18673 18716 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214)
01-02 18:33:40.855 18673 18716 E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:67)
01-02 18:33:40.855 18673 18716 E AndroidRuntime: at com.android.server.ServiceThread.run(ServiceThread.java:44)

Fortunatelly Reset app preferences helped: Settings -> Apps & notifications -> See all apps -> menu -> Reset app preferences. This was done before the upgrade in LOS 16 still. It is much better than wipe data and loose everything (which also worked).

Touch misses mentioned few times in this thread are definitelly there. It is quite annoying actually. :-(

Camera app was crashing. After clearing its storage the problem is gone.

Everything else works fine (after half a day of usage). Thanks again for all the work.

This is on OnePLus 5T.

Firmware: 10.0.1 (also latest LOS 16 works with it)

Recovery: TWRP 3.4.0.0

LOS: 17.1-20201229