Giter VIP home page Giter VIP logo

Comments (7)

ivocass avatar ivocass commented on June 30, 2024 3

@AChep
Any news on this? Currently AcDisplay can't be used on new phones (>Nougat) because when it turns off the screen, it does so by locking the device (which then prevents it from being unlocked by fingerprint).
Nova Launcher solved this long ago, as it's mentioned above.

from acdisplay.

sakshamsharma avatar sakshamsharma commented on June 30, 2024

I can confirm this happens for OnePlus 3T as well. The reason, as I understand, is Android's security policy of disabling fingerprint unlocks whenever the screen was locked by an app. Please verify that the issue only happens when you let AcDisplay turn off your screen (timeout).

@AChep are there any plans to fix this? There are some tricks for rooted phones I understand. Perhaps add them as an option? I moved back to stock lock screen without AcDisplay because of this issue 😢

from acdisplay.

AChep avatar AChep commented on June 30, 2024

Unfortunately I don't really want to add another workaround and see it patched in next Android version. Sorry, guys.

from acdisplay.

sakshamsharma avatar sakshamsharma commented on June 30, 2024

Would it ever be patched though? As I understand, it has been there since 5.0, and being a security policy, it is unlikely it can be removed without exposing some vulnerability. Just mentioning.

Also, It may help to keep this issue open, for others who may stumble here.

Thanks!

from acdisplay.

flasd avatar flasd commented on June 30, 2024

Nova Launcher works around this by changing screen timeout to 5 seconds, showing a black screen and preventing touch interacting while screen is on. When screen locks, the screen timeout goes back to default and the security policy doesn't kick in, so we can use the fingerprint scanner. This is even better in amoled phones. Seems trivial to implement.

from acdisplay.

XChikuX avatar XChikuX commented on June 30, 2024

flasd's comment really should be implemented as a workaround. Please take this into consideration ACdisplay team.
Show a pitch black #000 screen,
Change screen timeout to 5 seconds, till it locks.
Change it back to default.

This is what nova does. And it's wonderful.

from acdisplay.

flasd avatar flasd commented on June 30, 2024

@AChep could you do something like:

// pseudocode
if (userPref.respectSecurityPolicy) {
    android.provider.Settings.System.putInt(getContentResolver(),
         Settings.System.SCREEN_OFF_TIMEOUT, 5);

    ui.beBlack();

    onDeviceTimeout(
        android.provider.Settings.System.putInt(getContentResolver(),
            Settings.System.SCREEN_OFF_TIMEOUT, default);
    );
} else {
     // from source MainActivity.java 227
      DevicePolicyManager dpm = (DevicePolicyManager) 
          getSystemService(Context.DEVICE_POLICY_SERVICE);

       dpm.lockNow();
}

I don't really want to add another workaround and see it patched in next Android version. Sorry, guys.

I understand that creating a workaround for it to be patched by the next version of android sucks, but nowadays almost all new phones have fingerprint scanners and this security policy is a real deal breaker for the app.

And, (I'm not an Android developer) it seems easy to implement, 30 minutes, maybe? I'd love to help testing it.

If I was better with java i'd create a pull request, ow well.

Thanks for the attention though.

from acdisplay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.