'mCurrentFocus|mFocusedApp' on galaxy Z Flip devices

Hello there.

I’ve been trying to solve the ‘mCurrentFocus|mFocusedApp’ issue on my galaxy Z Flip device by myself for a few days, but I couldn’t find an answer, so I’m asking for your help.

After connecting the device, even if I run the app through the APK.

In the case of Z Filp or Fold, there are 2 external/internal screens,

I have a suspicion that the current_package and current_activity values are focusing on the secondary (external) screen when running the written TC script.

When I check the current_package and current_activity values while the app is running, it looks like below.
( current_package = com.android.systemui / current_activity = .subscreen.SubHomeActivity)

Is there any way to solve this?

Thanks.