Git Product home page Git Product logo

lock's Introduction

Lock

A very simple and minimal app to lock the screen. It tries whenever possible to keep fingerprint unlock available.

You can now set any tap, double tap or long home press actions to immediately lock the screen, if your launcher allows you to configure custom gestures.

Description

Its behavior is very simple: on first run it will require the necessary permission according to the Android version you're running:

  • On Android 9+ devices, it will ask to be enabled as an accessibility service;
  • On Huawei devices running Android Nougat, it will immediately lock the screen, no permission required;
  • On other devices, the app will ask to be enabled as a Device Admin; fingerprint unlock will not be available.

After the necessary permission has been enabled, the app will immediately lock the screen the next time you open it.

Accessibility Service configuration

Here are some screenshots that explain how to configure this app as an Accessibility Service on Android 9+ devices:

Download

This app is available on F-Droid:

Get it on F-Droid

Changelog

1.4.0

It is now possible to use Accessibility Services on Android 9+ devices, so that you can continue using fingerprint unlock.

1.3.0

It is now possible to set Lock as an Assistant app (Settings > Apps > Advanced > Default apps > Assist & voice input). A long-press on home button will now lock the device wherever you are.

1.1.0

I recently updated to Nougat on my Huawei P9 Lite and it broke my app (screen lock by an administrator requires to enter full password or pin). Thanks to a XDA user, I updated my app to circumvent this. Now, on Huawei with Nougat and EMUI 5, it doesn't even require to be an administrator.

About gradle-wrapper.jar

This file is a binary blob of executable code that contains GradleWrapperMain, the Java class invoked by gradlew and responsible for the correct setup of the Gradle wrapper in this project. A Github action has been added as explained here to avoid the injection of malicious code in this file. Please check also this page if you want to manually verify its integrity.

Uninstalling

How to remove an app with active device admin enabled on Android?

lock's People

Contributors

ivadham avatar licaon-kter avatar naofum avatar seguri avatar vistaus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

lock's Issues

Lock says it requires access via accessibility services to work

I'm using android 11 Build RQ3A.211001.001. This had been a problem for a while, normally showing up after charging the phone. In the past rebooting the phone would fix the problem but now lock will not function unless i give it "accessibility" access to the phone. I don't know if this is a problem but it didn't need it before and I would think locking the screen wouldn't take special access (but what do i know). I'm using lock 1.4.1 installed from F-Droid. I updated from 1.4.0 to see if it fixed the issue.

turn off screen w/o lock?

Would it be possible to have the app turn off the screen without necessarily (according to system settings) immediately locking?

Crash after a while

The app stops to work regularly. See Screenshot.
Also the screen becomes a "screenshot" of the current screen with a border around it.
I tried to make a screenshot, but the file ended up being all black only.

markup_385

Issue with device wake up

Your app does not come up if it was not in foreground...If I close the app and then lock the phone, and then unlock phone your app does not show up.

Suggestion

Hello! This is the perfect app for me, I love to lock the screen by tapping a button. I looked for an open source option and found it. Congratulations to the developers.

I have a suggestion for a future update: the option of a minimalist icon with a black background for those using amoled screen and black wallpaper. It would be a few pixels less wasting battery. If someone could do this it would be perfect for my use. Thanks.

Note: I don't know if I sent this in the right channel, this is my first time using GitHub.

Fingerprint and face unlock compatibility

Fingerprint/face unlock is disabled after locking phone with Lock app, which is quite inconvenient. As a workaround, some apps (OFF+, for example) just turn the screen off and disable key events for a few seconds until hardware lock is activated. Would you consider adding this functionality as an option?

Lock as Assistant app

Thanks for your Lock app. I use it all the time to lock my phone.

At the moment I have to switch to the home screen, where I can tap the Lock app to lock my phone. I would love to do it with a double tap onto the home button.

If this app becomes an assistant app, I would be able to set it in Settings > Apps > Advanced > Default apps > Assist & voice input.

Do you think, that's possible?

Feature request: notification shade widget

Consider adding notification shade widget. It is crucial for locking screen without going to launcher everytime.
Given your app is open, a user can be assured in safety of giving advanced permissions (like accessibility ones) compared to proprietary alternatives that can run who-knows-what in the background.

It is implemented in other similar non-fossa apps as following:
Screenshot_20201101_152706.jpg

Unable to uninstall from Android 4.4.2

Hi, After installations from f-droid on my old samsung galaxy 4s, running Android version 4.4.2.

I tried to uninstalled but get error message:
Error uninstalling %s. Fail to uninstall due to unkown error.

What can possible be the issue?
Thanks in advance.

Fix translations

Lint errors on translations:

:app:lintVitalRelease/home/krt/src/fdroiddata/build/name.seguri.android.lock/app/src/main/res/values/strings.xml:2: Error: "app_name" is not translated in "it" (Italian) [MissingTranslation]
    <string name="app_name">Lock</string>
            ~~~~~~~~~~~~~~~

   Explanation for issues of type "MissingTranslation":
   If an application has more than one locale, then all the strings declared
   in one language should also be translated in all other languages.

   If the string should not be translated, you can add the attribute
   translatable="false" on the <string> element, or you can define all your
   non-translatable strings in a resource file called donottranslate.xml. Or,
   you can ignore the issue with a tools:ignore="MissingTranslation"
   attribute.

   By default this detector allows regions of a language to just provide a
   subset of the strings and fall back to the standard language strings. You
   can require all regions to provide a full translation by setting the
   environment variable ANDROID_LINT_COMPLETE_REGIONS.

   You can tell lint (and other tools) which language is the default language
   in your res/values/ folder by specifying tools:locale="languageCode" for
   the root <resources> element in your resource file. (The tools prefix
   refers to the namespace declaration http://schemas.android.com/tools.)

1 errors, 0 warnings

I can workaround that locally with echo -e "android { lintOptions { disable 'MissingTranslation'\n\ndisable 'ExtraTranslation' } }" >> app/build.gradle, but instead this should either be fixed on your side or workaround like this on your side as well.

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.