[Q] Keyboard/Lock Screen not working with tasker? - Nexus 7 Q&A, Help & Troubleshooting

Basically I just want to use Tasker to turn on a PIN lock when I'm not connected to my home wifi. I've tried it multiple ways - using the keyguard on/off built into tasker, using the secure settings plugin, etc. I can't get it to work. Is there something I'm missing here? Does the Nexus 7 have problems with this function? Any tips would be appreciated, thanks!

rm79 said:
Basically I just want to use Tasker to turn on a PIN lock when I'm not connected to my home wifi. I've tried it multiple ways - using the keyguard on/off built into tasker, using the secure settings plugin, etc. I can't get it to work. Is there something I'm missing here? Does the Nexus 7 have problems with this function? Any tips would be appreciated, thanks!
Click to expand...
Click to collapse
I am having the same issue, did you ever find a solution for this?

PthPndr said:
I am having the same issue, did you ever find a solution for this?
Click to expand...
Click to collapse
It turns out that Android is no longer allowing applications to lock / unlock screen, this is a security feature (even Tasker has this info somewhere in the documentation). The way Tasker currently turns off the screen lock is by some messy work around. The closest I got to having this feature working on ICS and later on JB 4.1.1 was that it was working as expected most of the time, but whenever the screen lock was switched off by Tasker and I clicked on any notification in the notification bar, the screen would get locked and keep locking itself from then on. This is really annoying and makes this feature pretty messy and useless. So I finally resolved to setting the phone to lock automatically after a long period (eg. 30 mins), which is good enough when I'm at home. That way the chances are that if I forget to lock the phone and loose it, it will lock itself after 30 mins. I also created a shortcut on the screen (using Secure Settings plugin) to lock the phone manually whenever I remember about locking it. I doubt there is currently a better way of doing that.

Related

Disabling the Lock Screen

I don't like the lock screen. I see no purpose for it. My screen never accidentally turns on, so the sliding to unlock is a completely unnecessary extra movement I'd like to get rid of. The ScreenModeWidget app available in the market does the trick nicely, as well as giving the nice bonus of allowing you to wake the device by pressing the trackball, however it has a bug that periodically resets the screen timeout to 30 seconds which is too short for me.
Does anybody know of any other way to disable the lock screen? Or another app like ScreenModeWidget that doesn't have the screen timeout reset bug?
Using Tasker (tasker.dinglisch.net) I created a rule that disabled the keyguard.
Keyguard disabler
thb said:
Using Tasker (tasker.dinglisch.net) I created a rule that disabled the keyguard.
Click to expand...
Click to collapse
I downloaded Tasker and tried to do this as well. It works on the first power off/on, but no more on subsequent cycles. How did you make your rule?

Maybe Can This Disable X10i Lockscreen

Hey Ppl....
I've found a file called libphonelock.so under /system/lib/
Maybe if you remove it with the TB, that it remove X10i lock screen?
anyone as know it?
//
dong2007
newest version of Battery Indicator Pro can remove the lock screen, works perfectly from what ive seen
jomil said:
newest version of Battery Indicator Pro can remove the lock screen, works perfectly from what ive seen
Click to expand...
Click to collapse
ZOMG. This is definitely a step in the right direction.
I'm going to contact the developer and find out if I can get the code to the lockscreen disable portion of the app. Would love to see if I (or someone with actual Android programming experience) could tweak that into something that disables the swipe lock but can keep the pattern lock enabled.
-edit-
Email sent, though BIP's developer is out of town this weekend. If anyone knows of any other apps that accomplish this, I'd be interested to know.
lock 2.0 disables it, as well as the app "no-lock".
problem is, even with the new version of battery indicator, every app ive tried the stock slider still manages to come back someway somehow , battery indicator seems to be the best solution so far, and im wondering if its lock 2.0 that somehow brings back the stock slider.
saltorio said:
ZOMG. This is definitely a step in the right direction.
I'm going to contact the developer and find out if I can get the code to the lockscreen disable portion of the app. Would love to see if I (or someone with actual Android programming experience) could tweak that into something that disables the swipe lock but can keep the pattern lock enabled.
-edit-
Email sent, though BIP's developer is out of town this weekend. If anyone knows of any other apps that accomplish this, I'd be interested to know.
Click to expand...
Click to collapse
Hey have you ever been able to receive a response from the dev?
If you are seeking a "new" lock screen, or the "no slider" look.
I highly recommend Widget Locker.
It has a root bypass of the lock screen "5 second rule" which starts up the "old" lock screen.
I bought the app, used the root bypass option, and i havent seen my old lock screen yet.
They even have a keypress unlock, if you want a very simple lock screen, and you can hold your back button down for .5-2sec or so to unlock.
Though, I dont use the pattern lock, so i have no idea if it works in combination with this or not?
Edit: Disregard, I didn't realize the age of this thread D:
Sorry for resurrecting such an old thread. Funny thing is that I actually did start using WidgetLocker and I DO sometimes get the stock lock screen before it starts, so I was looking for a way to completely disable the stock lock. There are some apps out there that remove the stock lock but it causes every hardware button to wake the device up, which is no good. (This includes battery indicator as I just found out)
Yea, thats no good, it kinda defeats the purpose of having some sort of alternative lock screen when it wakes up on key press like that
I'm not sure why, but i have never got the lock screen to pop up again, unless i kill widgetlocker myself.
Well, if you indeed find out how to get rid of that lockscreen, i would love to know, it would be nice to not have a app constantly running pretending to be an alternate lockscreen, you know?
I am using the Extended Controls app from the market.
With it you can enable & disable just about everything the X10 uses (including the lock screen).

My Solution to Help Stop Screen Freezes (Tasker app)

Since a lot of people suggest disabling the g-sensor to prevent the screen freezes I thought I'd try something.
I don't want to have my rotation disabled as it's very handy to have. So what I do is use an app called Tasker. It's not free, but there is a 7-day trial available.
Basically I have it set to disable screen rotation every time the screen is off..and so far I haven't had any screen freezes. It may be coincidence, it may not be. I'm not exactly sure if the app does disable the g-sensor or does something else, but so far so good.
For those that don't know about Tasker...it's probably the best app that will ever be made for Android. You can make your phone do almost anything.
For example, I use it to:
When I get home, Wifi turns on and 3G is turned off. When I leave home, Wifi turns off and 3G turns on....same for work.
I have it disable wifi, 3g and screen rotation at night when I'm in bed.
It enables GPS when I launch maps or navigation, and disables GPS when I close the app.
And those are very basic ones...
The Tasker wiki has many more advanced "profiles" you can use:
Code:
Lock An Application
Start the Day with a Particular Application
Battery Full Alert
Launch Music App When Headset Inserted
Launch Menu of Music Apps When Headset Inserted
Keep screen awake when using the keyboard
Speaking Clock for Android 1.5
Control Keyguard (scroll to unlock) when Power is Connected/Disconnected
Keep Multiple Backups of Tasker Config
Change Ringtone on Every New Call
Mute in Meetings
Hold Ringer Volume Down
Auto-Respond To SMSs At Night
Change Volume Levels during Different Times of the Day
Check Data/SMS/Minute Usage With Carrier While Sleeping
Temporarily max brightness of screen during Incoming Call
Auto (Silent) Sleep Mode with Exceptions
Intermediate
Power Plug In - Choose Car/Home/Night Mode
Generic Toggle Widget
Open the keyboard and start texting
Set volume then Launch menu of music apps
Alarmclock without Snooze
Alarms with Snooze and Vibrate
Geburtstagserinnerung (German)
Car Locator
Notification Reminder Pulse
Locate your phone using SMS and google maps
Lock your phone and locate it by SMS and sound
A full talking clock
Act like a docking station when plugged into USB
Auto answer calls when your bluetooth headset is connected
Extended phone profile changer with Notification and Widget
Turn your cell phone into a Voip phone
Advanced
Periodic Data Check (Juicedefender Replacement)
Creates profiles similar to S60 devices and changes them depending on variety of factors
U.S. Navy Ships Bells (Using Tasker's OR '/' feature) * Pattern Matching *
Changing background image depending on current weather (Using HTTPGet)
Or you can simply create your own...there is a learning curve, but once you get a feel for it, it's VERY powerful! It can control almost every part of your Android phone.
There's a decent thread with more examples on xda in this thread.
I realise this is a software post, but it's main aim was to point out a way of disabling rotation to help with screen freezes
Hey,
thanks for this thread, i have downloaded tasker now.
Can you post your code for disabling gsensor when screen is off?
//EDIT: Sorry, its very easy.. i think i can create it by myself
HTC_HDD said:
Hey,
thanks for this thread, i have downloaded tasker now.
Can you post your code for disabling gsensor when screen is off?
//EDIT: Sorry, its very easy.. i think i can create it by myself
Click to expand...
Click to collapse
Hehe yep, it's an easy one.
New Event profile > Display off is the Event. Action is disable rotation
I have done it like you and added a task which enables the rotation if screen is on, is this correct?
I have used the phone now and i got freezes again, but not so much.. i think.
Sent from my HTC Desire using XDA App
HTC_HDD said:
I have done it like you and added a task which enables the rotation if screen is on, is this correct?
I have used the phone now and i got freezes again, but not so much.. i think.
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
Yep, you also have to create another to say disable screen rotation when the screen is off.
@the_scotsman
Thanks for the suggestion, I've seen a few people mention this app before but now I finally downloaded it. I'll play around a bit to figure out some combos, but one quick question..
Is this going to be something running in the background sucking up battery and memory or is it just like running scripts? What do you think? I'll run current widget once I get some tasks going to see happens, just wondering if you've found anything out yet.
tgtoys said:
@the_scotsman
Thanks for the suggestion, I've seen a few people mention this app before but now I finally downloaded it. I'll play around a bit to figure out some combos, but one quick question..
Is this going to be something running in the background sucking up battery and memory or is it just like running scripts? What do you think? I'll run current widget once I get some tasks going to see happens, just wondering if you've found anything out yet.
Click to expand...
Click to collapse
It depends on what profiles you set up...if they involve wireless, it will enable wireless every so often to check access points etc....or if you are using a location profile, it will enable gps every so often to check your location. You can change how often everything polls in the settings.
I have mine as per the first post, so it does scan for wireless every so often, and I havent seen any change in battery usage.
the_scotsman said:
Yep, you also have to create another to say disable screen rotation when the screen is off.
Click to expand...
Click to collapse
Can you go step by step what you do to set up display off and rotation off?
Hi,
the last NetRipper Kernel has no freezes!!
Is not overclocked, is not undervolted, has no axi and has no freezes.
with friendly greet
starbase64
starbase64 said:
Hi,
the last NetRipper Kernel has no freezes!!
Is not overclocked, is not undervolted, has no axi and has no freezes.
with friendly greet
starbase64
Click to expand...
Click to collapse
Thanks, but i prefer to have axi and undervolt
And I have no freezes
the_scotsman said:
Hehe yep, it's an easy one.
New Event profile > Display off is the Event. Action is disable rotation
Click to expand...
Click to collapse
I can find everything else exept "disable rotation" in Actions. I only found "display rotation" in settings. Any help?
tzic said:
I can find everything else exept "disable rotation" in Actions. I only found "display rotation" in settings. Any help?
Click to expand...
Click to collapse
Yea, thats the one..just choose that one and set it to "off" in the settings for it
ty for the quick reply scotsman, I ll report back in a day or two.
Tried this, but didnt work
I tried many different versions of kernels but in all if I keep my phone on standby (screen off) for a long time, say 20 mins, my phone freezes, My hardware buttons still glow on press, but phone never wakes up, any Ideas??
Even you disable display rotation, the sensor is still active, just use Gscript and disable sensor, you won't get any more freeze.
justwonder said:
Even you disable display rotation, the sensor is still active, just use Gscript and disable sensor, you won't get any more freeze.
Click to expand...
Click to collapse
I was just about to write exactly the same words!
Scotsman - can you tell if Tasker can run a custom written script, upon some event? Then we can use it to turn off the gsensor!
Finally seems to be workin!!I made 2 changes:
1) Upgraded my radio from 2.08 to 2.12 (I recommend this one)
2) Stopped GSensor with Gscript
Another issue,
After I restart the sensor via script, photos in album wont rotate anymore!!
I did a `ps -ef|grep akmd` and the process is running, any thoughts??
edit: it works after restart!!
did you use the free gscript? cause mine says needs su:true
Your solution is great thanks... i did something slightly different : using tasker, autorotation is enabled only for apps that I want too, like gallery. Rest of the time, its off and working great that way too.

Can Lock-Screen be disabled by an App?

On my Note-2 (Android 4.1.2) I had two apps that worked properly to toggle (disable/re-enable) the Lock-Screen function. They are [SwitchPro Widget] and [Turn Off the Screen by Protoport]. This was handy: I would disable the security feature when I was safely at home, but enable it when I would go out to public places.
Sadly, neither of these work on the Note-3 (Android 4.3). I suspect the newer Android version prevents an App from disabling the Lock-Screen.
Does anyone know of an App that can toggle the Lock-Screen state on the Note-3 (Android 4.3)?
I have never been able to reliably do this with any app, even with Root access. In the end, I used Llama to set the password (or PIN) to empty when at home. That way I get a 'swipe' screen only. When out, I get a PIN. In my case, I even set it to something you just cannot set using Android, so it is even more secure (I believe).
Not ideal, but it works very reliably, and even without root.
Skeleton said:
On my Note-2 (Android I used.1.2) I had twocalled no lock apps that worked properly to toggle (disable/re-enable) the Lock-Screen function. They are [SwitchPro Widget] and [Turn Off the Screen by Protoport]. This was handy: I would disable the security feature when I was safely at home, but enable it when I would go out to public places.
Sadly, neither of these work on the Note-3 (Android 4.3). I suspect the newer Android version prevents an App from disabling the Lock-Screen.
Does anyone know of an App that can toggle the Lock-Screen state on the Note-3 (Android 4.3)?
Click to expand...
Click to collapse
Came across your thread and I remembered an app I used on my s3-.- called no lock in the play store so I tried it on my 900t and it works perfectly hour:good: this is what you where looking for..........
I use an app called automagic for it. It's also possible to disable the swipe to unlock screen which I do while connected to my car (Bluetooth)
Philly Jim said:
Came across your thread and I remembered an app I used on my s3-.- called no lock in the play store so I tried it on my 900t and it works perfectly hour:good: this is what you where looking for..........
Click to expand...
Click to collapse
Your mentioned app, "No Lock, by BoD" doesn't work on Android 4.3. That app hasn't been updated since Sep 2011.
Skeleton said:
Your mentioned app, "NoLock, by BoD" doesn't work on Android 4.3. That app hasn't been updated since Sep 2011.
Click to expand...
Click to collapse
Have you tried it, because ever since last night it has been working flawlessly for me and yes it's the same app that hasn't been updated since 2011........try it........
Philly Jim said:
Have you tried it, because ever since last night it has been working flawlessly for me and yes it's the same app that hasn't been updated since 2011........try it........
Click to expand...
Click to collapse
OK, I installed it again just now. Nope, it doesn't work "properly".
It does install. It does run and it does show the toggled states for the widget. I attempt to toggle it, then the widget shows the change. But, the Lock-Screen state remains in its pre-existing state.
In my case, I have Lock-Screen set for Pattern Lock. The setting also has the Lock-Screen (Pattern Lock) appear only if the screen is off for longer than, say 5 seconds. This Android feature works properly, despite the App. The Pattern Lock is not required when I power off-then-on in under the assigned time of 5 seconds. However, the Pattern Lock always appears after the assigned time, regardless of the use of this App.
What I want is the App to disable Pattern Lock while I am at home.
I notice that the App does not appear in the Android permissions, "Device Administrators". Then again, it doesn't show up on my Note-2 installation either, even though the App works on that device.
I would appreciate it if you can give me some insight on how I can get this App to work on my Note-3 ....
Thanks.
Further testing ...
The App (No Lock) does work in one condition: If the Lock-Screen state is set for Swipe-Lock, then the App works properly to enable/disable it.
However, when the Lock-Screen state is set for Pattern-Lock, then the App fails to truly enable/disable it. However, the App's widget does show an indicated change of state (it shows either pad lock open or closed) - but this is an illusion only.
Skeleton said:
Further testing ...
The App (No Lock) does work in one condition: If the Lock-Screen state is set for Swipe-Lock, then the App works properly to enable/disable it.
However, when the Lock-Screen state is set for Pattern-Lock, then the App fails to truly enable/disable it. However, the App's widget does show an indicated change of state (it shows either pad lock open or closed) - but this is an illusion only.
Click to expand...
Click to collapse
Yeah i just use it to totally Disable the Lock Screen , which it does for me with no issues , i never used any pin or pattern unlock , i did however see something mentioned about that when youu hit help after you hit the menu key , anyway sorry this didn't work for you , but i must thankyou for this thread because it tottaly works for me .....:good:
I use tasker for stuff like this. It works together with secure settings. My home zone is set up to work with cell tower id's. This works for me as my work place is far enough away. In Tasker (or llama or automagic or automateit pro) you can select secure settings as a plugin task. You then just select in secure settings what you want to toggle (swipe, pin or pattern). Some of them require root, though.

[Q] Smart Lock enabled but temperamental in Lollipop / N910FXXU1BOC3

So after a bit of digging around and research, I managed to find and enable Smart Lock. For those of you who didn't know, it's hidden under Security > Trust Agents. After you've enabled, a new 'Smart Lock' menu appears at the bottom of the Security settings menu where you can manage your Smartlock features. Interestingly, it also features the new 'on-body detection'.
So I set it up about 3 days ago but it doesn't always work for me and I'm questioning if it works at all. My lock screen is set to re-enable after 10 minutes of inactivity so it may just be that I logged in during this time and thought that it may be working. I have 3 differen't ways of using smart lock, all of which are enabled: 1= Bluetooth devices including my Moto 360 which is always connected 2=Location, my home address and 3=On-body detection.
But yeah, as I say, it doesn't seem to be working as 90% of the time, I still have to enter my pin to access my phone. Anyone else tried this or willing to test it out? I'm running the first N910FXXU1BOC3 release from Netherlands/Samsung Experience stock.
bumpy - Anyone!?
Went out of the country and decided to try it out, was working great, but here and there I noticed that the phone gets unlocked in the pocket on second day of using this feature, my pictures and music folder has been deleted, I suspect that it happened accidentally in the pocket... Don't have any other explanation. I would avoid this feature while traveling or if you have to pull out phone quite often.
I'm also having the same issue, mine doesn't work when using Smart lock with my Moto 360, it keeps asking for my finger print to unlock...
I have used On-Body Detection and I can say that it worked great from my point of view. One thing to mention, i don't keep my phone in the pocket of my pants, always pocket of my jacket so did not have any issues with unlocking by itself and performing random operations.
But on BOC3 i did notice that the phone was constantly awake and one of the things i tried was disabling on-body detection i can see now that the wakelock issue was resolved and i'm getting a estimated 3 Days left on 80% battery. From my point of view this is more important that unlocking the phone easier
And regarding the trusted devices part and pairing with a smartwatch, i don't see the security benefit of that as the Bluetooth range is quite big. From a security point of view, trusted devices based on a Bluetooth link is not a good idea.
Its not working at all for me with 'Trusted Devices' - I use my Motorola 360 as a trusted device and it all confirms its set up. The only change it actually makes though is that when I wake up my phone, I have to swipe up to access my pin entry screen. Whereas if I disable smart lock, I get straight to the pin entry screen! This was a completely clean flash of BOC5 (Lux) all data, system, cache, etc was wiped and formatted before install through ODIN.
maverick1103 said:
I'm also having the same issue, mine doesn't work when using Smart lock with my Moto 360, it keeps asking for my finger print to unlock...
Click to expand...
Click to collapse
Iggy82 said:
Its not working at all for me with 'Trusted Devices' - I use my Motorola 360 as a trusted device and it all confirms its set up. The only change it actually makes though is that when I wake up my phone, I have to swipe up to access my pin entry screen. Whereas if I disable smart lock, I get straight to the pin entry screen! This was a completely clean flash of BOC5 (Lux) all data, system, cache, etc was wiped and formatted before install through ODIN.
Click to expand...
Click to collapse
Are you guys sure that you're using the feature correctly?
Swiping from the little lock icon on the bottom of the screen, brings back your specified secure lockscreen. It is a way to secure your phone again, even if a trusted device or other set conditions for Smart Lock are met.
Swiping from anywhere else on the screen should unlock the phone without any security checks.
Works 100% of the times for me.
Check out this video I made to explain it better:
Smart Lock works awesome on my phone. I have my truck's bluetooth as a trusted device and I set up my home as a trusted location. Both work flawlessly but one thing I had to do was add an additional location for my home along with the preset "Home" location I had set up in Maps a long time ago. It wouldn't work until I manually added the 2nd home location.
It's a great feature.
iridaki said:
Check out this video I made to explain it better:
Click to expand...
Click to collapse
Thanks!
It's just not intuitive. I didn't think to swipe outside the lock ring.
Is it possible ty by-pass unlock screen completely, when in "trusted zone"? Without root.
I'm currently using KNOX and have lockscreen disabled.
If I enable lockscreen (to check its features etc), to disable it again I would have to delete my KNOX container.
keekooceeaou said:
Thanks!
It's just not intuitive. I didn't think to swipe outside the lock ring.
Is it possible ty by-pass unlock screen completely, when in "trusted zone"? Without root.
I'm currently using KNOX and have lockscreen disabled.
If I enable lockscreen (to check its features etc), to disable it again I would have to delete my KNOX container.
Click to expand...
Click to collapse
I suppose it's a matter of personal preference, I like the idea of being able to quickly secure my screen without, for example, disconnecting my BT earphones. Plus, it's more difficult to aim for the little lock icon than to actually swipe in the middle of the screen.
I am not sure about your question as I don't use the KNOX container, sorry! It sounds though as a security measure that is not possible to bypass. But I could be wrong.
iridaki said:
Are you guys sure that you're using the feature correctly?
Swiping from the little lock icon on the bottom of the screen, brings back your specified secure lockscreen. It is a way to secure your phone again, even if a trusted device or other set conditions for Smart Lock are met.
Swiping from anywhere else on the screen should unlock the phone without any security checks.
Works 100% of the times for me.
Check out this video I made to explain it better:
Click to expand...
Click to collapse
Thanks for sharing, I figured it out in the end and forgot to post back with the answer, I couldn't believe I didn't realise it straight away ?
maverick1103 said:
Thanks for sharing, I figured it out in the end and forgot to post back with the answer, I couldn't believe I didn't realise it straight away ?
Click to expand...
Click to collapse
Took me a few attempts too, can be confusing at first!
iridaki said:
Took me a few attempts too, can be confusing at first!
Click to expand...
Click to collapse
Still it's the one main feature I have been waiting for with lollipop which I'm glad I have now!
iridaki said:
Are you guys sure that you're using the feature correctly?
Swiping from the little lock icon on the bottom of the screen, brings back your specified secure lockscreen. It is a way to secure your phone again, even if a trusted device or other set conditions for Smart Lock are met.
Swiping from anywhere else on the screen should unlock the phone without any security checks.
Works 100% of the times for me.
Check out this video I made to explain it better:
Click to expand...
Click to collapse
Brilliant, it does work! It was purely me swiping up from the lock icon like you say! Doesn't seem very intuitive but I'm just glad it's working! I owe you a beer!

Categories

Resources