legendsayantan / Extendroid

Adds desktop-like multi-window support, on android os for smartphones.
51 stars 2 forks source link

Chosen App gets FULLSCREENed on first launch in window mode #1

Open N-U-ser opened 1 week ago

N-U-ser commented 1 week ago

When opening app for first time (Not in recents),This happens---

1) Screenshot_2024-10-03-11-03-17-193_dev legendsayantan extendroid 2) Screenshot_2024-10-03-11-03-18-875_com rs explorer filemanager 3) Screenshot_2024-10-03-11-03-24-747_com rs explorer filemanager 4) Then the appears as an endless abyss and can be moved Screenshot_2024-10-03-11-03-33-231_com rs explorer filemanager

But after first try, meaning when above process is done it and the window is closed using cross ui button and app remains in recents ,then On Subsequent launches of the App in window mode work successfully

5) Screenshot_2024-10-03-11-03-42-163_com miui home 6) Screenshot_2024-10-03-11-03-50-901_dev legendsayantan extendroid 7) Screenshot_2024-10-03-11-03-57-847_com rs explorer filemanager 8) Screenshot_2024-10-03-11-04-05-174_com rs explorer filemanager

The app should launch on first try. The Mi-freeform app (https://github.com/sunshine0523/Mi-Freeform/releases/download/v2.5.18/app-release.apk) has a toggle to fix this issue in settings , you could look into that app ,don't know if it might help.

N-U-ser commented 1 week ago

By the way, Love your ShizuTools (Tasker intent shell) , also i was just thinking about shizuku could be used to make non-root sound-assistant similarly the way RootlessJamesdsp works and then i found out you made SoundMaster.But Only SoundMaster is not loading app list in my phone.I will raise the issue in ShizuTools thread, i would appreciate it if you check that out.

N-U-ser commented 1 week ago

Further details about device:-

Android 13 Miui 14

legendsayantan commented 1 week ago

Does the "Attempt Forced start" toggle improve your situation?

As for shizutools, I did check the issue and made some little tweaks in the code which might be helpful. you can try the dev build to confirm.

N-U-ser commented 1 week ago

In all, when "Attempt Forced start" option is turned on, chosen app never opens successfully.Even on second attempt and the "Retry launch" doesn't make any change.

Here is how it happens :-

1) Screenshot_2024-10-04-09-48-27-897_dev legendsayantan extendroid 2) Screenshot_2024-10-04-09-48-40-021_dev legendsayantan extendroid

And sometimes on first try and always on second try it launches in Splitscreen mode:-

1) Screenshot_2024-10-04-09-49-10-342_com rs explorer filemanager 2) Screenshot_2024-10-04-09-49-13-635_com rs explorer filemanager

And in this situation, on the next attempt, app chooser window can open in the floating window overlay

Screenshot_2024-10-04-09-51-42-038_dev legendsayantan extendroid

N-U-ser commented 1 week ago

Just looked at how Mi-Freeform acts with/without the stabilizer option enabled.And it is acting the same way Extendroid is behaving (While "Attempt Forced start" is disabled).

You should look into Mi-Freeform code (Method) , if its available (Open source/Public?).

This is its Stabilizer option i am talking about. The one at the top. Screenshot_2024-10-04-11-11-59-936_com sunshine freeform

When i turned off the option and attempted to launch app the first time, it poped out of floating window and became Fullscreened. 1) Screenshot_2024-10-04-11-12-46-427_com rs explorer filemanager 2) Screenshot_2024-10-04-11-12-48-094_com rs explorer filemanager 3) Screenshot_2024-10-04-11-13-07-486_com rs explorer filemanager

And when i tried to launch it in floating window second time, while not removing it from recents, it launched successfully. 1) Screenshot_2024-10-04-11-13-19-114_com rs explorer filemanager

This is the behavior when the Stabilizer option is off. But when it is on, Apps always launch successfully and on the first attempt.

N-U-ser commented 1 week ago

Relevant Links

Link for Mi-Freeform github page https://github.com/sunshine0523/Mi-Freeform

Version 2.5.18 https://github.com/sunshine0523/Mi-Freeform/releases/download/v2.5.18/app-release.apk

This was the last Non-Root/Shizuku App Version and the version that i have on my device.

legendsayantan commented 3 days ago

Will check those out once I have the opportunity, Thanks for doing all those research!