AutoTools Disable and enable your lock screen at will (No Root!)

Learn how you can make your phone lock when the screen turns off only when you're not at home

  1. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    joaomgcd submitted a new AutoApps project:

    Disable lock screen when you're at home and enable when you're away (No Root!) - Learn how you can make your phone lock when the screen turns off only when you're not at home

    Read more about this project...
     
    akivura likes this.
  2. R Yee

    R Yee New Member

    Joined:
    Jan 24, 2017
    Messages:
    2
    Likes Received:
    0
    I cannot see the 'automatic lock' parameter in the lock screen secure setting screen to set the lock out time. I only see 'show notification' and 'show private notification'. I installed autotools in my samsung s5 and samsung galaxy tabs. Is this because it is not supported in Samsung devices?
     
  3. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Did you install the beta like it's mentioned at the start of the tutorial?
     
  4. R Yee

    R Yee New Member

    Joined:
    Jan 24, 2017
    Messages:
    2
    Likes Received:
    0
    Sorry, missed reading the beta install. Got it now. Many thanks.
     
  5. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    No problem! :)
     
  6. note4tasker

    note4tasker New Member

    Joined:
    Jun 7, 2016
    Messages:
    1
    Likes Received:
    0
    Did you figure out, why you didn't have 'Automatic Lock' option? I am on Note-4, even i do not have it.
     
  7. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Yes, he figured it out ;) Please read the rest of the replies
     
  8. portaleus

    portaleus New Member

    Joined:
    Feb 17, 2017
    Messages:
    1
    Likes Received:
    0
    Hi, thanks for you app and tutorial. Working flawlessly on my device running LineageOS 14.1.
    I would like to know if it is possible to switch lock screen method (like swipe to unlock) instead of completely disabling it?
     
  9. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Unfortunately that's not possible, sorry!
     
    portaleus likes this.
  10. silvameister

    silvameister New Member

    Joined:
    Aug 24, 2017
    Messages:
    2
    Likes Received:
    0
    hi. followed your instructions on my Honor 8 but instead of when wifi connected used it for an app my kids used

    I granted permissions via adb and it worked flawless the first day but not anymore.

    Also smart lock stopped working with my FORD Sync car audio system.
    Any lead on how i can solve this?
     
  11. silvameister

    silvameister New Member

    Joined:
    Aug 24, 2017
    Messages:
    2
    Likes Received:
    0
    Solved. Added tasker as device owner. Also unpaired from FORD SYNC and paired again.
     
  12. Djtexxxas

    Djtexxxas New Member

    Joined:
    Sep 8, 2017
    Messages:
    5
    Likes Received:
    0
    Hey Joao,
    ill try to keep this short and simple.
    I'm trying to get my phone screen to turn on when connected to car BT.
    I succeeded with secure settings.
    the problem is, i need to add "wait 5sec" in order to give automatic lock enough time to do its thing.
    if i dont put the 5sec wait, my screen opens and lock screen is still enabled.
    Is there anyway to get this to react faster? I would like my display to turn on as soon as bt is connected and the lock screen off.
    also, is there any way to increase the reaction speed of bt connected profile?
    after i turn off my bt device, task is set to turn off display takes a few seconds
    let me know if u need more info.
    thanks
     
    Last edited: Sep 24, 2017
  13. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    @Djtexxxas can you tell me which version of Android you have? Thanks!
     
  14. Djtexxxas

    Djtexxxas New Member

    Joined:
    Sep 8, 2017
    Messages:
    5
    Likes Received:
    0
    7.1.2
    s7 edge
    resurrection rom
    thx

    Sent from my Pixel XL using Tapatalk
     
  15. Daniel D

    Daniel D Member

    Joined:
    Feb 11, 2015
    Messages:
    127
    Likes Received:
    11
    @Djtexxxas , could you please share your full profile with us?
    Thanks!
     
  16. Djtexxxas

    Djtexxxas New Member

    Joined:
    Sep 8, 2017
    Messages:
    5
    Likes Received:
    0
    Here you go Daniel, thx

    Profile: Display On (46)
    Priority: 8
    State: BT Connected [ Name:* Address:90:03:B7:B5:B0:37 ]
    Enter: No Lock (47)
    A1: AutoTools Secure Settings [ Configuration:Automatic Lock: 7200 Timeout (Seconds):60 ]
    A2: Wait [ MS:0 Seconds:5 Minutes:0 Hours:0 Days:0 ]
    A3: Secure Settings [ Configuration:Screen & Keyboard Lights On
    1 Second Timeout (Seconds):0 ]
    A4: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
    A5: Perform Task [ Name:Ask Where To Go Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:Off ]
    A6: Display Timeout [ Secs:0 Mins:0 Hours:1 ]

    Exit: Lock On (48)
    A1: If [ %SCREEN ~ on ]
    A2: Run Shell [ Command:input keyevent POWER Timeout (Seconds):0 Use Root:On Store Output In: Store Errors In: Store Result In: ]
    A3: End If
    A4: AutoTools Secure Settings [ Configuration:Automatic Lock: 0 Timeout (Seconds):60 ]
    A5: Display Timeout [ Secs:30 Mins:0 Hours:0 ]


    Sent from my Pixel XL using Tapatalk
     
  17. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    If you had Android 8 you could work around it. Unfortunately on Android 7 I don't think it's possible, sorry! :(
     
  18. StefanK86

    StefanK86 New Member

    Joined:
    Dec 14, 2017
    Messages:
    7
    Likes Received:
    0
    Hi there.

    First things first: thank you for this project, that's clearly missed in Smart Lock.

    Unfortunately, I can not get this project, task, or whatever its called to work. I followed your instructions step-by-step, but from the point where I have to disable lock through power button, my device is going nuts (in other words: now my device won't lock anymore^^) To get it locked, I had to re-enable lock through power button. To be honest: I can't figure out why this profile won't work on my device. I granted all permission requests in autotools, made sure everything is correctly set in tasks etc...
    I tried to play around with the values in "settings>lock automatically", but when I set the value to 5 secs, the device gets locked, even when the profile in tasker is running
    My device:
    HTC 10
    Lineage OS Android 7.1.2
    I would appreciate if you could help me out

    Cheers from Germany
    Stefan

    ***Edit***
    Jeezus Christ...instructions were unclear, I haven't read the requirements for AutoTools with ADB and so on...so: nevermind, I will.gibe it a try when I'm back home. Sorry for bothering you
     
    Last edited: Dec 14, 2017
  19. StefanK86

    StefanK86 New Member

    Joined:
    Dec 14, 2017
    Messages:
    7
    Likes Received:
    0
    So, as promised: I'm home, granted AutoTools via ADB access, and now: it works :D thanks a lot dude
     
  20. Stupifier

    Stupifier Member

    Joined:
    Mar 10, 2015
    Messages:
    147
    Likes Received:
    6
    Question about this.....When I finally lock my device using this setting......It does not allow me to unlock using my Fingerprint, but instead, REQUIRES I use my Alternative unlock method (PIN). After I put in my Pin, The Phone then allows me to authenticate using Fingerprint OR Pin (as usual).

    Any way around this? I would really like to use my Fingerprint OR Pin when AutoTools locks my device again.

    Android 7.11

    Update: Solution/Fix found...
    It appears this is an Issue with Tasker's "System Lock" action....Not AutoTools

    When display is locked by ANY Device Administrator app (this includes Tasker), Android will not allow Unlocking via FingerPrint.

    So, in the AutoTools Tutorial to create the Smart Lock, it is mentioned to use Tasker's "System Lock" action at the end of the Task. It is THAT action which is causing all the trouble.

    Here is the workaround/solution (requires Root):
    Use Shell command to invoke a Display off (Power Button) command instead of the "System Lock" action.
    input keyevent 26
    root checked

    Once I did this.....The AutoTools Smart Lock tutorial is much much more convenient to use
     
    Last edited: Dec 27, 2017

Share This Page