This object is in archive! 

The screen is not fully locked in screen lock mode - ignore down swipe from top of screen

Andrew Heard shared this idea 7 years ago
Declined

While riding in the rain, my (waterproof) phone is confused into thinking each rain drop is a tap. To workaround this I use screen lock mode so that all taps (rain drops) are simply ignored. When I enable automatic display on/off with navigation commands I can enjoy hands-free navigation even in the rain.

However even with screen lock enabled I have discovered it is still possible to swipe down the Android status/ notification panel. If a rain drop is misinterpreted as a down swipe then "all hell can break loose" with subsequent rain drops then being misinterpreted and causing all sorts of confusion, and not being able to recover phone operation. Not ideal while riding in the rain!!

There is a workaround - in Android 5 there is a new "screen pinning mode" which disables the down swipe, but it is tedious to enable this mode - many taps required. If it starts raining I would like to enable *full* screen lock as quickly as possible, with just a single tap of the Locus screen lock button. Would it be possible to enable "screen pinning mode" in conjunction with screen lock, or find a way to completely ignore a down swipe from the top of the screen?

As it stands, the screen is not fully locked in screen lock mode.

Replies (1)

photo
1

Hello Andrew,


I understand your idea, anyway after some searching, it seems to be possible only thanks to some dirty hacks. Best what I found is here http://stackoverflow.com/questions/19920052/disable-the-notification-panel-from-being-pulled-down , which require extra application permission and some un-secure methods.


I may only suggest full-screen mode in Locus, that should hide this top system bar and then lock really locks whole screen (except home button which has no simple solution).

photo
1

Thanks for looking into this Menion. I should have mentioned full screen mode in my original post. Even in this mode it is still possible to drag down the notification panel i.e. not fully locked.

photo
1

Hmm you are right.


Please remind me this later (half year) when you will be still interested. I think about another solution which I also found described here (link is mainly for me for later use), anyway this also require an extra permission. Android 6 allows to get permission after confirmation from user, so on A6 it will be possible to implement. Currently I do not have device with A6, so because of this ... later.

photo
1

Good 'ol stack overflow. I used to consult it constantly at work. Unfortunately my Sony Z1 phone is not forecast to ever be updated to A6. The wish won't be going away so I'll still try to remind you in 6 months time. Thanks.

photo
1

Are you sure it won't be updated? Hmm I use Z1 Compact , damn :).

photo
1

You asked me 6 months ago to remind you about this topic in...6 months, although I see topic is now declined.

photo
1

Good day Andrew,

hmm. In Locus is now used this technique ... requested permissions at runtime ... on Android 6.0+. Unfortunately because I was not aware what exactly it means, I hoped before that I'll be able to implement it just for A6.0+, unfortunately it's not so simple.

As documentation for Android say "The app has to list the permissions in the manifest,

and it must request each dangerous permission it needs while the app

is running. The user can grant or deny each permission,". This means, that all Android devices below 6, will still see and have to accept this permission during install.

So there are only three solutions I see:

  1. create two versions of Locus Map, one for older devices, one for new
  2. create an separate add-on with this permission that will serve as needed overlay (lock screen)
  3. limit usage of Locus to Android 6.0+

First two are too much work, last one is too early to apply.

So sorry, for now I cannot help. Best should be last option, but it needs few more years till A6.0+ will be on 99% of devices.

photo
1

Sorry to make long reply for you. And seems Sony will not upgrade our Z1's to A6+. Oh well.

photo
1

No need to sorry. I should say sorry here as I'm currently simply unable to make it work as expected. Well, for now ...

photo
1

Just reversing the roles. I know how it feels with demands from all directions.

photo
1

(Locus is awesome and this app is important for me because I hike with my 5-years old daughter — in any time and conditions I have to know where nearest public transport stop and the shortest way to return).

Locus screen lock doesn't work on Android 8 — still the same problem as described. Thanks to "pin screen" hint. It is quite easy to enable it on Android 8 — just click on "overview", scroll to Locus screen and click on "pin" icon at the bottom of screen overview. Before that don't forget to enable screen pinning (see https://support.google.com/nexus/answer/6118421?hl=en Security & Location /5kgnNDYJBLn0WRV0z0ZY-h0Fy-jJMrOP0V8JcZUDZaXBYrtxVmDduWJAPL3bjubjX50=w18-h18 Advanced /5kgnNDYJBLn0WRV0z0ZY-h0Fy-jJMrOP0V8JcZUDZaXBYrtxVmDduWJAPL3bjubjX50=w18-h18 Screen pinning.)

photo
1

Forget to mention — my smartphone Crosscall Trekker X4. App X-Cam from Crosscall has feature "lock screen" and it is implemented better than currently in Locus — the whole screen is locked and no need to explicitly pin screen. No additional permissions is requested by app. And to unlock, I can simply shake phone or press power button twice.


Will be great if Locus screen lock feature will be improved.

Replies have been locked on this page!