Comments (7)
@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.
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.
Unfortunately I don't really want to add another workaround and see it patched in next Android version. Sorry, guys.
from acdisplay.
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.
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.
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.
@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)
- Display uninstall tip after enabling device admin HOT 7
- (feature request) tap to unlock
- Lockscreen Media Widget not working with Sonos Beta 7.2 HOT 3
- Directed to stock lockscreen when trying to unlock with pin HOT 3
- Galaxy S8 New Aspect Ratio HOT 7
- Cannot remove AcDisplay from device administrators HOT 4
- android.text.format.Time is deprecated since API 22 HOT 1
- Cannot Uninstall HOT 2
- I get a runtime error in release build, how can i fix this HOT 1
- https://drive.google.com/file/d/*DELETED*/view?usp=sharing
- Cascade of crashing apps after installing AcDisplay while using Launcher3 HOT 6
- Inclusion to F-Droid? HOT 1
- Dead project? HOT 31
- After unlocking you have to swipe again to show pin/pattern of the stock lockscreen HOT 11
- Clock colour? HOT 4
- Application crashes when Clicking a Notification that has Actions
- Use clock along with custom widget on AcDisplay lockscreen? HOT 1
- [SURVEY] A paid version of AcDisplay to keep it going HOT 4
- No working properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acdisplay.