SamSprung / SamSprung-TooUI

A complete home experience on the cover screen
Other
39 stars 8 forks source link

[Issue]: Main screen does not respond to touch #238

Open IAJaay opened 1 month ago

IAJaay commented 1 month ago

Issue Description

Device: Samsung Flip Z 3 When issue happens: Seemingly randomly. I was able to get the issue to pop up after I opened Angry birds 2 in tooui app and then flipped the phone open to the main screen. Does not happen every time though. What happens: After "unflipping" the phone so I can use the main screen and unlocking the phone the main screen(not the cover screen) does not respond to any touch whatsoever. Only things that work are side buttons and swipe gesture at least from the top. After rebooting the phone everything works normally. When the issue started happening: Sometime during march - april.

Logcat Output

SamSprung 2.6.1 (Play Release) #87df9ad
samsung UPSIDE_DOWN_CAKE (14)
Secure Lock Screen

--------- beginning of main
07-30 08:15:56.011 10841 10841 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.app.Activity$$ExternalSyntheticLambda0@2d4c7b8
07-30 08:16:04.031 10841 10841 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.app.Activity$$ExternalSyntheticLambda0@998cb74
07-30 08:16:17.044 10841 10841 W ziparchive: Unable to open '/data/app/~~-T_F6D-h5WPzzgFUIki_5g==/com.google.android.trichromelibrary_647818633-pNZoiEoeO_rTHYw6krOKdQ==/base.dm': No such file or directory
07-30 08:16:17.044 10841 10841 W ziparchive: Unable to open '/data/app/~~-T_F6D-h5WPzzgFUIki_5g==/com.google.android.trichromelibrary_647818633-pNZoiEoeO_rTHYw6krOKdQ==/base.dm': No such file or directory
07-30 08:16:17.045 10841 10841 W prung:SamSprung: Entry not found
07-30 08:16:17.061 10841 25366 E chromium: [0730/081617.061604:ERROR:variations_seed_loader.cc(37)] Seed missing signature.
07-30 08:16:17.188 10841 25380 W cr_media: BLUETOOTH_CONNECT permission is missing.
07-30 08:16:17.189 10841 25380 W cr_media: getBluetoothAdapter() requires BLUETOOTH permission
07-30 08:16:17.189 10841 25380 W cr_media: registerBluetoothIntentsIfNeeded: Requires BLUETOOTH permission
07-30 08:16:17.272 10841 10841 W RecyclerView: No adapter attached; skipping layout
07-30 08:16:17.358 10841 10841 W Kumiho-Kumiho: isSupportedFormat: Format is not supported
07-30 08:16:17.372 10841 25398 W AudioCapabilities: Unsupported mime audio/x-ape
07-30 08:16:17.372 10841 25398 W AudioCapabilities: Unsupported mime audio/x-ima
07-30 08:16:17.372 10841 25398 W AudioCapabilities: Unsupported mime audio/mpeg-L1
07-30 08:16:17.372 10841 25398 W AudioCapabilities: Unsupported mime audio/mpeg-L2
07-30 08:16:17.372 10841 25398 W VideoCapabilities: Unsupported mime video/wvc1
07-30 08:16:17.372 10841 25398 W VideoCapabilities: Unsupported mime video/x-ms-wmv
07-30 08:16:17.379 10841 25398 W VideoCapabilities: Unsupported mime image/vnd.android.heic
07-30 08:16:17.379 10841 25398 W VideoCapabilities: Unsupported mime image/vnd.android.heic
07-30 08:16:17.419 10841 10841 W Activity: Can request only one set of permissions at a time

Another issue popped up after opening the flipped phone to the mainscreen when angry birds 2 opened from the tooui app.

07-30 08:26:36.030 9800 9800 E ThemeUtils: View class androidx.appcompat.widget.AppCompatImageView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant).
07-30 08:26:36.031 9800 9800 E ThemeUtils: View class androidx.appcompat.widget.AppCompatImageView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant).
07-30 08:26:36.032 9800 9800 E ThemeUtils: View class androidx.appcompat.widget.AppCompatImageView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant).
07-30 08:26:36.101 9800 9800 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.app.Activity$$ExternalSyntheticLambda0@40768e2
07-30 08:28:08.299 9800 9809 W JavaBinder: BinderProxy is being destroyed but the application did not call unlinkToDeath to unlink all of its death recipients beforehand. Releasing leaked death recipient: com.google.android.play.core.internal.zzai
07-30 08:28:09.694 9800 9800 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.app.Activity$$ExternalSyntheticLambda0@d76bc0
07-30 08:28:11.915 9800 9800 W RecyclerView: No adapter attached; skipping layout
07-30 08:28:11.927 9800 9800 W Kumiho-Kumiho: isSupportedFormat: Format is not supported
07-30 08:28:11.965 9800 9800 W Activity: Can request only one set of permissions at a time

Guide Confirmation

AbandonedCart commented 1 month ago

The app runs on the cover screen specifically. Whatever is blocking touch is not shown in the logs, but there is no reason to think it would be this app. I would need something a little more concrete to go chasing that.

IAJaay commented 1 month ago

Okay. I´ve set double tap on side button so I can access tooui app in case of this issue happens. I´ll try to disable tooui app from the apps main switch next time and see if the issue goes away. That way we can see if the app is the culprit.

IAJaay commented 1 month ago

I think I can reproduce this now. Already succeeded thrice with the following: a) Open 'Angry Birds 2' app in the tooui gridview. b) Wait for app to open to its main menu c) With the app still open on cover screen .. slide from bottom and press tooui-button(the middle on with person in it) -> tooui:s app-grid is shown d) Open the flipped z flip 3 so you can see the main screen. -> phone wont respond to any touch gesture anymore on the main screen

If the above does not work for some reason, please try to delete app data to defaults and reboot the phone and then try again.

I hope this helps

AbandonedCart commented 1 month ago

So the issue is Angry Birds?

Does it still happen if you close the launcher before opening the screen? Forcing it closed would be the only real option that doesn't have the side effect of limiting functionality.

IAJaay commented 1 month ago

The problem is not the Angry Birds app itself it seems. You can launch any app and the issue still occurs. If by closing the launcher you mean double tapping the icon as mentioned in the guide, that did not help with the issue.

AbandonedCart commented 1 month ago

You said you open the drawer before opening the phone. I'm talking about closing the drawer.

Since I can't replicate the issue and it's not showing up as an error, the next best thing is trying to come up with a solution that can then be automated.

IAJaay commented 1 month ago

I tried following for closing the drawer: I pressed the gray area at the bottom when app-grid is shown and then press the right side icon with 'hand picture and arrow down' and get the default screen showing date&time or whatever. -> did not help with the issue.

However I noticed if after step d i go back to cover screen and open the same app from the app-grid again and then when app is open I go back to the mainscreen , then the main screen responds to touch again. However if I open another app than the first one then I do not gain control on the main screen. Only if it is the first app launched from app-drawer it seems.

The steps to gain back the control of main screen: a) Open any app in the tooui gridview. b) Wait for app to open to its main menu c) With the app still open on cover screen .. slide from bottom and press tooui-button(the middle on with person in it) -> tooui:s app-grid is shown d) Open the flipped z flip 3 so you can see the main screen. -> phone wont respond to any touch gesture anymore on the main screen e) go back to cover screen and open the same app you opened in step a so that app is shown on the cover screen f) go to main screen again --> main screen responds to touch again.

However if as step e: e) go back to cover screen and open another app than you opened in first time at step a f) go back to main screen -> main screen does not respond to touch. to fix this I have to go back to cover screen and launch app that I launched at step a again so that it is shown on the coverscreen -> then I get the control back on the main screen.

I also made another logcat of the steps a-d mentioned and noticed error I think is missing from the earlier: 07-31 07:42:07.397 9975 9975 E ViewRootImpl@94b8372[SamSprungOverlay]: Surface is not valid. dunno if this helps at all but heres the whole logcat:

SamSprung 2.6.1 (Play Release) #87df9ad
samsung UPSIDE_DOWN_CAKE (14)
Secure Lock Screen

--------- beginning of main
07-31 07:42:07.268 9975 9975 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.app.Activity$$ExternalSyntheticLambda0@31d9506
07-31 07:42:07.361 9975 9975 W Kumiho-Kumiho: isSupportedFormat: Format is not supported
07-31 07:42:07.371 9975 9975 E ThemeUtils: View class androidx.appcompat.widget.AppCompatImageView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant).
07-31 07:42:07.371 9975 9975 E ThemeUtils: View class androidx.appcompat.widget.AppCompatImageView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant).
07-31 07:42:07.372 9975 9975 E ThemeUtils: View class androidx.appcompat.widget.AppCompatImageView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant).
07-31 07:42:07.372 9975 9975 E ThemeUtils: View class androidx.appcompat.widget.AppCompatImageView is an AppCompat widget that can only be used with a Theme.AppCompat theme (or descendant).
07-31 07:42:07.397 9975 9975 E ViewRootImpl@94b8372[SamSprungOverlay]: Surface is not valid.
07-31 07:42:07.541 9975 9975 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.app.Activity$$ExternalSyntheticLambda0@1fcaa5
07-31 07:42:12.244 9975 9975 W Kumiho-Kumiho: isSupportedFormat: Format is not supported
07-31 07:42:19.592 9975 9975 W RecyclerView: No adapter attached; skipping layout
07-31 07:42:19.604 9975 9975 W Kumiho-Kumiho: isSupportedFormat: Format is not supported
07-31 07:42:19.625 9975 9975 W Activity: Can request only one set of permissions at a time
IAJaay commented 1 month ago

I´ll try to delete app data and see if I can still reproduce the error. It is quite odd that it occurs only with my settings.

IAJaay commented 1 month ago

Tried with factory settings and issue still happens.

When I tried to enable accessibility there should have been 'Samsprung Navigation' under Installed apps - as the text says but I cannot find it, thus accessibility might not be enabled.

AbandonedCart commented 1 month ago

You have the Google Play version, so there are not accessibility options. Google Play does not allow that.

I'm still unable to duplicate your issue. I don't lose touch at any point, whether I open the screen while the app is launched, while the launcher is open, etc.

IAJaay commented 1 month ago

I also tried with github version but still the same problem. Wasnt still able to enable accessibility due missing instructions from Samsungs side how to enable since 'Samsprung Navigation' was greyed out ... so I installed google play version again.

I´m quite out of ideas how to hunt this bug anymore. Do you have any hunch what could cause such behaviour if it is something in The phones configuration or something? The phone is not rooted or anything so cannot suspect anything there either.

AbandonedCart commented 1 month ago

This is honestly the first time i've encountered such an issue. It sounds similar to the way the cover screen blocks touch when the launcher is running, but the launcher specifically runs on the cover. The only thing I can think of would be that something in the way you are trying to open the launcher and then the screen is causing it to launch that as a normal app. I can try adding a filter that won't allow it, but nothing can truly prevent someone from breaking past it if they try hard enough.

IAJaay commented 1 month ago

I noticed that I can navigate to the app in mainscreen and then regain touch on the mainscreen more easily so I do not have to open cover screen again. Makes this issue much more tolerable.

Edit: Didnt help later on in normal use. I´ll try to live with this and see if I can avoid whatever way of use causes this.