OPPO R11S 锁屏解锁之后App界面会闪烁
OPPO R11S,运行官方demo并停留在flutter界面,锁频,再解锁重新看到demo界面,这个时候界面会闪烁一下(空白一下,然后loading动画,然后界面重新展示出来), flutter_boost分支:v1.12.13-hotfixes flutter sdk版本:v1.12.13-hotfixes 设备:OPPO R11S 安卓系统版本:8.1.0
2020-03-03 13:39:29.183 14277-14277/com.taobao.idlefish.flutterboostexample I/openPageByUrl: sample://flutterPage
2020-03-03 13:39:29.196 14277-14292/com.taobao.idlefish.flutterboostexample D/ActivityThread: pauseActivity android.app.ActivityThread@c1035bf operation received seq: 7
2020-03-03 13:39:29.196 14277-14292/com.taobao.idlefish.flutterboostexample V/ActivityThread: SCHEDULE PAUSE_ACTIVITY arg1=1 arg2=0seq= 7
2020-03-03 13:39:29.199 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: >>> handling: PAUSE_ACTIVITY
2020-03-03 13:39:29.199 14277-14277/com.taobao.idlefish.flutterboostexample D/ActivityThread: handlePauseActivity ActivityRecord{f1fe693 token=android.os.BinderProxy@18826d0 {com.taobao.idlefish.flutterboostexample/com.taobao.idlefish.flutterboostexample.MainActivity}}, seq: 7
2020-03-03 13:39:29.203 14277-14292/com.taobao.idlefish.flutterboostexample V/ActivityThread: SCHEDULE 100 LAUNCH_ACTIVITY: 0 / ActivityRecord{a1ef53e token=android.os.BinderProxy@9db7f9f {com.taobao.idlefish.flutterboostexample/com.idlefish.flutterboost.containers.BoostFlutterActivity}}
2020-03-03 13:39:29.208 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: <<< done: PAUSE_ACTIVITY
2020-03-03 13:39:29.208 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: >>> handling: LAUNCH_ACTIVITY
2020-03-03 13:39:29.208 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: Handling launch of ActivityRecord{a1ef53e token=android.os.BinderProxy@9db7f9f {com.taobao.idlefish.flutterboostexample/com.idlefish.flutterboost.containers.BoostFlutterActivity}}
2020-03-03 13:39:29.211 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: Performing launch of ActivityRecord{a1ef53e token=android.os.BinderProxy@9db7f9f {com.taobao.idlefish.flutterboostexample/com.idlefish.flutterboost.containers.BoostFlutterActivity}}
2020-03-03 13:39:29.211 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: ActivityRecord{a1ef53e token=android.os.BinderProxy@9db7f9f {com.taobao.idlefish.flutterboostexample/com.idlefish.flutterboost.containers.BoostFlutterActivity}}: app=com.taobao.idlefish.flutterboostexample.MyApplication@bad21ce, appName=com.taobao.idlefish.flutterboostexample, pkg=com.taobao.idlefish.flutterboostexample, comp={com.taobao.idlefish.flutterboostexample/com.idlefish.flutterboost.containers.BoostFlutterActivity}, dir=/data/app/com.taobao.idlefish.flutterboostexample-EEBhTP-Ab6686ZimBAkcug==/base.apk
2020-03-03 13:39:29.217 14277-14277/com.taobao.idlefish.flutterboostexample D/FlutterActivityAndFragmentDelegate: Setting up FlutterEngine.
2020-03-03 13:39:29.225 14277-14302/com.taobao.idlefish.flutterboostexample I/flutter: FlutterBoost#onMetohdCall didInitPageContainer
2020-03-03 13:39:29.226 14277-14302/com.taobao.idlefish.flutterboostexample I/flutter: FlutterBoost#BoostContainerLifeCycleObserver container:flutterPage lifeCycle:ContainerLifeCycle.Init
2020-03-03 13:39:29.239 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: Performing resume of ActivityRecord{a1ef53e token=android.os.BinderProxy@9db7f9f {com.taobao.idlefish.flutterboostexample/com.idlefish.flutterboost.containers.BoostFlutterActivity}} finished= false
2020-03-03 13:39:29.240 14277-14277/com.taobao.idlefish.flutterboostexample E/FlutterBoost#: BoostFlutterView onAttach
2020-03-03 13:39:29.240 14277-14277/com.taobao.idlefish.flutterboostexample D/FlutterView: Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@c080caf
2020-03-03 13:39:29.241 14277-14302/com.taobao.idlefish.flutterboostexample I/flutter: FlutterBoost#onMetohdCall didShowPageContainer
2020-03-03 13:39:29.241 14277-14302/com.taobao.idlefish.flutterboostexample I/flutter: FlutterBoost#ContainerObserver#2 didPush
2020-03-03 13:39:29.242 14277-14302/com.taobao.idlefish.flutterboostexample I/flutter: FlutterBoost#BoostContainerLifeCycleObserver container:flutterPage lifeCycle:ContainerLifeCycle.Appear
2020-03-03 13:39:29.242 14277-14302/com.taobao.idlefish.flutterboostexample I/flutter: FlutterBoost#native containner did show,
manager dump:
onstage#:
{uniqueId=1583213969219-172430517,name=flutterPage}
offstage#:
{uniqueId=default,name=default}
2020-03-03 13:39:29.245 14277-14277/com.taobao.idlefish.flutterboostexample E/ImmerseTheme: current MANUFACTURER=oppo
2020-03-03 13:39:29.245 14277-14277/com.taobao.idlefish.flutterboostexample E/ImmerseTheme: setStatusBarLightMode
2020-03-03 13:39:29.245 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: Resume ActivityRecord{a1ef53e token=android.os.BinderProxy@9db7f9f {com.taobao.idlefish.flutterboostexample/com.idlefish.flutterboost.containers.BoostFlutterActivity}} started activity: false, hideForNow: false, finished: false
2020-03-03 13:39:29.254 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: Resuming ActivityRecord{a1ef53e token=android.os.BinderProxy@9db7f9f {com.taobao.idlefish.flutterboostexample/com.idlefish.flutterboost.containers.BoostFlutterActivity}} with isForward=true
2020-03-03 13:39:29.254 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: Scheduling idle handler for ActivityRecord{a1ef53e token=android.os.BinderProxy@9db7f9f {com.taobao.idlefish.flutterboostexample/com.idlefish.flutterboost.containers.BoostFlutterActivity}}
2020-03-03 13:39:29.255 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: <<< done: LAUNCH_ACTIVITY
2020-03-03 13:39:29.262 14277-14284/com.taobao.idlefish.flutterboostexample I/zygote64: Do partial code cache collection, code=46KB, data=56KB
2020-03-03 13:39:29.263 14277-14284/com.taobao.idlefish.flutterboostexample I/zygote64: After code cache collection, code=46KB, data=56KB
2020-03-03 13:39:29.263 14277-14284/com.taobao.idlefish.flutterboostexample I/zygote64: Increasing code cache capacity to 256KB
2020-03-03 13:39:29.322 14277-14302/com.taobao.idlefish.flutterboostexample I/flutter: flutterboost#didPush
2020-03-03 13:39:29.333 14277-14302/com.taobao.idlefish.flutterboostexample I/flutter: flutterPage params:{test2: v_test2, test1: v_test1}
2020-03-03 13:39:29.333 14277-14302/com.taobao.idlefish.flutterboostexample I/flutter: FlutterBoost#build widget:FlutterRouteWidget for page:flutterPage(1583213969219-172430517)
2020-03-03 13:39:29.342 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: Reporting idle of ActivityRecord{a1ef53e token=android.os.BinderProxy@9db7f9f {com.taobao.idlefish.flutterboostexample/com.idlefish.flutterboost.containers.BoostFlutterActivity}} finished=false
2020-03-03 13:39:29.379 14277-14284/com.taobao.idlefish.flutterboostexample I/zygote64: Compiler allocated 6MB to compile void android.view.ViewRootImpl.performTraversals()
2020-03-03 13:39:29.434 14277-14302/com.taobao.idlefish.flutterboostexample I/flutter: FlutterBoost#onShownContainerChanged old:default now:1583213969219-172430517
2020-03-03 13:39:29.681 14277-14292/com.taobao.idlefish.flutterboostexample V/ActivityThread: SCHEDULE 149 ENTER_ANIMATION_COMPLETE: 0 / android.os.BinderProxy@9db7f9f
2020-03-03 13:39:29.682 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: >>> handling: ENTER_ANIMATION_COMPLETE
2020-03-03 13:39:29.682 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: <<< done: ENTER_ANIMATION_COMPLETE
2020-03-03 13:39:29.686 14277-14292/com.taobao.idlefish.flutterboostexample D/ActivityThread: stopActivity android.app.ActivityThread@c1035bf operation received seq: 8
2020-03-03 13:39:29.686 14277-14292/com.taobao.idlefish.flutterboostexample V/ActivityThread: SCHEDULE STOP_ACTIVITY_HIDE arg1=0 arg2=0seq= 8
2020-03-03 13:39:29.687 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: >>> handling: STOP_ACTIVITY_HIDE
2020-03-03 13:39:29.687 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: Performing stop of ActivityRecord{f1fe693 token=android.os.BinderProxy@18826d0 {com.taobao.idlefish.flutterboostexample/com.taobao.idlefish.flutterboostexample.MainActivity}}
2020-03-03 13:39:29.694 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: Finishing stop of ActivityRecord{f1fe693 token=android.os.BinderProxy@18826d0 {com.taobao.idlefish.flutterboostexample/com.taobao.idlefish.flutterboostexample.MainActivity}}: show=false win=com.android.internal.policy.PhoneWindow@c2d5f66
2020-03-03 13:39:29.695 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: <<< done: STOP_ACTIVITY_HIDE
------------------------------上面为止是打开flutter界面的日志-----------------------------
2020-03-03 13:40:17.238 14277-14292/com.taobao.idlefish.flutterboostexample D/ActivityThread: pauseActivity android.app.ActivityThread@c1035bf operation received seq: 9
2020-03-03 13:40:17.238 14277-14292/com.taobao.idlefish.flutterboostexample V/ActivityThread: SCHEDULE PAUSE_ACTIVITY arg1=0 arg2=0seq= 9
2020-03-03 13:40:17.238 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: >>> handling: PAUSE_ACTIVITY
2020-03-03 13:40:17.238 14277-14277/com.taobao.idlefish.flutterboostexample D/ActivityThread: handlePauseActivity ActivityRecord{a1ef53e token=android.os.BinderProxy@9db7f9f {com.taobao.idlefish.flutterboostexample/com.idlefish.flutterboost.containers.BoostFlutterActivity}}, seq: 9
2020-03-03 13:40:17.239 14277-14277/com.taobao.idlefish.flutterboostexample E/FlutterBoost#: BoostFlutterView onDetach
2020-03-03 13:40:17.239 14277-14277/com.taobao.idlefish.flutterboostexample D/FlutterView: Detaching from a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@c080caf
2020-03-03 13:40:17.240 14277-14302/com.taobao.idlefish.flutterboostexample I/flutter: FlutterBoost#onMetohdCall didDisappearPageContainer
2020-03-03 13:40:17.240 14277-14302/com.taobao.idlefish.flutterboostexample I/flutter: FlutterBoost#BoostContainerLifeCycleObserver container:flutterPage lifeCycle:ContainerLifeCycle.Disappear
2020-03-03 13:40:17.269 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: <<< done: PAUSE_ACTIVITY
2020-03-03 13:40:17.271 14277-14292/com.taobao.idlefish.flutterboostexample D/ActivityThread: stopActivity android.app.ActivityThread@c1035bf operation received seq: 10
2020-03-03 13:40:17.272 14277-14292/com.taobao.idlefish.flutterboostexample V/ActivityThread: SCHEDULE STOP_ACTIVITY_SHOW arg1=0 arg2=0seq= 10
2020-03-03 13:40:17.272 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: >>> handling: STOP_ACTIVITY_SHOW
2020-03-03 13:40:17.272 14277-14292/com.taobao.idlefish.flutterboostexample V/ActivityThread: SCHEDULE 137 SLEEPING: 1 / android.os.BinderProxy@9db7f9f
2020-03-03 13:40:17.272 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: Performing stop of ActivityRecord{a1ef53e token=android.os.BinderProxy@9db7f9f {com.taobao.idlefish.flutterboostexample/com.idlefish.flutterboost.containers.BoostFlutterActivity}}
2020-03-03 13:40:17.273 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: Finishing stop of ActivityRecord{a1ef53e token=android.os.BinderProxy@9db7f9f {com.taobao.idlefish.flutterboostexample/com.idlefish.flutterboost.containers.BoostFlutterActivity}}: show=true win=com.android.internal.policy.PhoneWindow@3b751c
2020-03-03 13:40:17.273 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: <<< done: STOP_ACTIVITY_SHOW
2020-03-03 13:40:17.273 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: >>> handling: SLEEPING
2020-03-03 13:40:17.273 14277-14277/com.taobao.idlefish.flutterboostexample D/ActivityThread: handleSleeping, sleeping:true
2020-03-03 13:40:17.276 14277-14277/com.taobao.idlefish.flutterboostexample E/FlutterBoost#: Application entry background
2020-03-03 13:40:17.277 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: <<< done: SLEEPING
2020-03-03 13:40:17.277 14277-14302/com.taobao.idlefish.flutterboostexample I/flutter: FlutterBoost#onEvent background
2020-03-03 13:40:17.277 14277-14302/com.taobao.idlefish.flutterboostexample I/flutter: FlutterBoost#BoostContainerLifeCycleObserver container:flutterPage lifeCycle:ContainerLifeCycle.Background
2020-03-03 13:40:17.280 14277-14292/com.taobao.idlefish.flutterboostexample V/ActivityThread: SCHEDULE 137 SLEEPING: 1 / android.os.BinderProxy@18826d0
2020-03-03 13:40:17.280 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: >>> handling: SLEEPING
2020-03-03 13:40:17.280 14277-14277/com.taobao.idlefish.flutterboostexample D/ActivityThread: handleSleeping, sleeping:true
2020-03-03 13:40:17.280 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: <<< done: SLEEPING
------------------------------------上面为止是锁频之后的日志----------------------------
2020-03-03 13:40:51.650 14277-14292/com.taobao.idlefish.flutterboostexample V/ActivityThread: SCHEDULE 137 SLEEPING: 0 / android.os.BinderProxy@9db7f9f
2020-03-03 13:40:51.651 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: >>> handling: SLEEPING
2020-03-03 13:40:51.651 14277-14277/com.taobao.idlefish.flutterboostexample D/ActivityThread: handleSleeping, sleeping:false
2020-03-03 13:40:51.651 14277-14277/com.taobao.idlefish.flutterboostexample D/ActivityThread: handleSleeping, wakeup, r:ActivityRecord{a1ef53e token=android.os.BinderProxy@9db7f9f {com.taobao.idlefish.flutterboostexample/com.idlefish.flutterboost.containers.BoostFlutterActivity}}, r.stopped:true, mVisibleFromServer:true
2020-03-03 13:40:51.653 14277-14292/com.taobao.idlefish.flutterboostexample V/ActivityThread: SCHEDULE 137 SLEEPING: 0 / android.os.BinderProxy@18826d0
2020-03-03 13:40:51.687 14277-14292/com.taobao.idlefish.flutterboostexample D/ActivityThread: resumeActivity android.app.ActivityThread@c1035bf operation received seq: 11
2020-03-03 13:40:51.687 14277-14292/com.taobao.idlefish.flutterboostexample V/ActivityThread: SCHEDULE RESUME_ACTIVITY arg1=1 arg2=0seq= 11
2020-03-03 13:40:51.702 14277-14277/com.taobao.idlefish.flutterboostexample E/FlutterBoost#: Application entry foreground
2020-03-03 13:40:51.703 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: <<< done: SLEEPING
2020-03-03 13:40:51.704 14277-14277/com.taobao.idlefish.flutterboostexample I/Choreographer: Skipped 2 frames! The application may be doing too much work on its main thread.
2020-03-03 13:40:51.704 14277-14302/com.taobao.idlefish.flutterboostexample I/flutter: FlutterBoost#onEvent foreground
2020-03-03 13:40:51.704 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: >>> handling: SLEEPING
2020-03-03 13:40:51.705 14277-14277/com.taobao.idlefish.flutterboostexample D/ActivityThread: handleSleeping, sleeping:false
2020-03-03 13:40:51.705 14277-14302/com.taobao.idlefish.flutterboostexample I/flutter: FlutterBoost#BoostContainerLifeCycleObserver container:flutterPage lifeCycle:ContainerLifeCycle.Foreground
2020-03-03 13:40:51.705 14277-14277/com.taobao.idlefish.flutterboostexample D/ActivityThread: handleSleeping, wakeup, r:ActivityRecord{f1fe693 token=android.os.BinderProxy@18826d0 {com.taobao.idlefish.flutterboostexample/com.taobao.idlefish.flutterboostexample.MainActivity}}, r.stopped:true, mVisibleFromServer:false
2020-03-03 13:40:51.705 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: <<< done: SLEEPING
2020-03-03 13:40:51.705 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: >>> handling: RESUME_ACTIVITY
2020-03-03 13:40:51.705 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: Performing resume of ActivityRecord{a1ef53e token=android.os.BinderProxy@9db7f9f {com.taobao.idlefish.flutterboostexample/com.idlefish.flutterboost.containers.BoostFlutterActivity}} finished= false
2020-03-03 13:40:51.724 14277-14277/com.taobao.idlefish.flutterboostexample E/FlutterBoost#: BoostFlutterView onAttach
2020-03-03 13:40:51.725 14277-14277/com.taobao.idlefish.flutterboostexample D/FlutterView: Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@c080caf
2020-03-03 13:40:51.726 14277-14302/com.taobao.idlefish.flutterboostexample I/flutter: FlutterBoost#onMetohdCall didShowPageContainer
2020-03-03 13:40:51.726 14277-14302/com.taobao.idlefish.flutterboostexample I/flutter: FlutterBoost#onShownContainerChanged old:null now:1583213969219-172430517
2020-03-03 13:40:51.738 14277-14302/com.taobao.idlefish.flutterboostexample I/flutter: FlutterBoost#BoostContainerLifeCycleObserver container:flutterPage lifeCycle:ContainerLifeCycle.Appear
2020-03-03 13:40:51.739 14277-14302/com.taobao.idlefish.flutterboostexample I/flutter: FlutterBoost#native containner did show,
manager dump:
onstage#:
{uniqueId=1583213969219-172430517,name=flutterPage}
offstage#:
{uniqueId=default,name=default}
2020-03-03 13:40:51.741 14277-14292/com.taobao.idlefish.flutterboostexample V/ActivityThread: SCHEDULE 149 ENTER_ANIMATION_COMPLETE: 0 / android.os.BinderProxy@9db7f9f
2020-03-03 13:40:51.799 14277-14277/com.taobao.idlefish.flutterboostexample E/ImmerseTheme: current MANUFACTURER=oppo
2020-03-03 13:40:51.799 14277-14277/com.taobao.idlefish.flutterboostexample E/ImmerseTheme: setStatusBarLightMode
2020-03-03 13:40:51.800 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: Resume ActivityRecord{a1ef53e token=android.os.BinderProxy@9db7f9f {com.taobao.idlefish.flutterboostexample/com.idlefish.flutterboost.containers.BoostFlutterActivity}} started activity: false, hideForNow: false, finished: false
2020-03-03 13:40:51.800 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: Resuming ActivityRecord{a1ef53e token=android.os.BinderProxy@9db7f9f {com.taobao.idlefish.flutterboostexample/com.idlefish.flutterboost.containers.BoostFlutterActivity}} with isForward=true
2020-03-03 13:40:51.802 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: Scheduling idle handler for ActivityRecord{a1ef53e token=android.os.BinderProxy@9db7f9f {com.taobao.idlefish.flutterboostexample/com.idlefish.flutterboost.containers.BoostFlutterActivity}}
2020-03-03 13:40:51.820 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: <<< done: RESUME_ACTIVITY
2020-03-03 13:40:51.822 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: >>> handling: ENTER_ANIMATION_COMPLETE
2020-03-03 13:40:51.822 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: <<< done: ENTER_ANIMATION_COMPLETE
2020-03-03 13:40:51.846 14277-14277/com.taobao.idlefish.flutterboostexample V/ActivityThread: Reporting idle of ActivityRecord{a1ef53e token=android.os.BinderProxy@9db7f9f {com.taobao.idlefish.flutterboostexample/com.idlefish.flutterboost.containers.BoostFlutterActivity}} finished=false
--------------------------上面为止是解锁之后的日志--------------------
flutter sdk的demo 你跑一下,确认一下是否一样问题
理论上也是一样的
我们也遇到了同样的问题 1.9.1分支 oppo reno2 和 oppo R17 都有问题 @noborder
是不是都是 安卓系统版本:8.1.0 上出现的,还有 flutter 官方demo 是不是也一样有这个问题。 之前我确认是的。
@wyy283 @wys619
这个问题最后关闭了。解决方案是什么@noborder
oppo手机 原生全屏页面和 FlutterBoostActivity 页面切换 oppo 系统的状态栏会有收缩动画,导致容器build。所以会闪烁。应该还没解决。只是关闭而已。