[Q] How to disable the Pattern and PIN lock using code? - Android Q&A, Help & Troubleshooting

I have disabled the pattern/PIN lock using the following code in my lock screen.
KeyguardManager km = (KeyguardManager) getSystemService(KEYGUARD_SERVICE);
k1 = km.newKeyguardLock("IN");
k1.disableKeyguard();
Also, i have used the FLAG_DISMISS_KEYGUARD.
It is working fine in my Moto G. But, few devices are showing the default Pattern lock after my lock screen. How can i fix it? What could be the issue?

[email protected] said:
I have disabled the pattern/PIN lock using the following code in my lock screen.
KeyguardManager km = (KeyguardManager) getSystemService(KEYGUARD_SERVICE);
k1 = km.newKeyguardLock("IN");
k1.disableKeyguard();
Also, i have used the FLAG_DISMISS_KEYGUARD.
It is working fine in my Moto G. But, few devices are showing the default Pattern lock after my lock screen. How can i fix it? What could be the issue?
Click to expand...
Click to collapse
I am not expert in App Development and Java, but I can suggest you another workaround.
ICS and higher versions allow user to customize lockscreen like Slide, Pattern, Pin etc from Settings.
You can put a button in your app which takes user to Phone Settings where he can select "None" as lockscreen.
Other option is you can contact Developer of "Holo Locker". Holo Locker disables stock lockscreen on most devices. He can help you in this
Find his E-Mail Address at Google Play page of Holo Locker.
Press Thanks if helped.

Hi Thanks for the suggestion. I will try to contact him through mail.
hnkotnis said:
I am not expert in App Development and Java, but I can suggest you another workaround.
ICS and higher versions allow user to customize lockscreen like Slide, Pattern, Pin etc from Settings.
You can put a button in your app which takes user to Phone Settings where he can select "None" as lockscreen.
Other option is you can contact Developer of "Holo Locker". Holo Locker disables stock lockscreen on most devices. He can help you in this
Find his E-Mail Address at Google Play page of Holo Locker.
Press Thanks if helped.
Click to expand...
Click to collapse

hnkotnis said:
I am not expert in App Development and Java, but I can suggest you another workaround.
ICS and higher versions allow user to customize lockscreen like Slide, Pattern, Pin etc from Settings.
You can put a button in your app which takes user to Phone Settings where he can select "None" as lockscreen.
Other option is you can contact Developer of "Holo Locker". Holo Locker disables stock lockscreen on most devices. He can help you in this
Find his E-Mail Address at Google Play page of Holo Locker.
Press Thanks if helped.
Click to expand...
Click to collapse
thank you very much ...been looking for something similar to Holo Locker for a while now ...

Related

[Q] QQ Launcher

Couple questions for those who have experience with this launcher.
Is it possible to disable the launcher I already have? Because right now I have to unlock my phone twice. In addition is there anyway to use widget locker while still keeping the QQ Launcher unlock? I love that circle idea I just want to customize the screen around it.
Thanks!
Bump anyone?
bmar29 said:
Couple questions for those who have experience with this launcher.
Is it possible to disable the launcher I already have? Because right now I have to unlock my phone twice. In addition is there anyway to use widget locker while still keeping the QQ Launcher unlock? I love that circle idea I just want to customize the screen around it.
Thanks!
Click to expand...
Click to collapse
you are not going to be able to use widget locker to customize the qq lock screen. Two totally separate apps. But, you can use widget locker to get rid of your other lock screen. Go into Widget Locker and disable it, then under advance settings enable easy wake. Now you should only have the qq launcher lock screen. You may have to reboot, can't remember.
thufhdhgigioh

Lockscreen Shortcuts

Hi there. I have a galaxy s3 since a mounth or two and i have a contact that i call 20 or 25 time per day.
I want to know if there is a HACK or a MOD to integrate a direct call shortcut to the original lockscreen of the S3.
Thanks
I'm not sure about a hack/mod for the stock lock screen - someone else will hopefully clue you in about that.
Failing that though you could replace the stock lock screen with Widgetlocker which will allow you to add custom shortcuts and widgets (such as a direct dial widget for instance) to the lock screen.
Sent from my GT-I9300 using Tapatalk 2
SunjinSak said:
I'm not sure about a hack/mod for the stock lock screen - someone else will hopefully clue you in about that.
Failing that though you could replace the stock lock screen with Widgetlocker which will allow you to add custom shortcuts and widgets (such as a direct dial widget for instance) to the lock screen.
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Thanks for your reply. Hope in next Version Samsung will include this option in the stock ROM
awcabdou said:
I want to know if there is a HACK or a MOD to integrate a direct call shortcut to the original lockscreen of the S3.
Click to expand...
Click to collapse
I know this is old topic but Samsung did no changes to solve the problem. I wanted to keep original lock screen and be able to launch shortcuts from it, so I wrote an app for it. Application can be mapped with any shortcut, so when you press app icon it works like pressing shortcut icon. Unfortunately there is no possibility to change app icons, so I put launcher icons with different numbers on it.
Application is called Shortcut Launcher. You can download it from Google Play.
And if you don't want to install stuff, you could just add a call contact widget on the homescreen, you would still have to unlock it but it's some steps quicker
You can also use the ROM SlimBean, it has the option to add widgets to the lockscreen

Looking for a Lockscreen app

Hey so I'm using SGS3 I9300, currently running Omega v42.
I'm looking for a Screen Lock app that has a PATTERN lock. So far I downloaded like 15 different apps, some of them doesn't support pattern at all, the others just show stock lockscreen after the app lockscreen, making it kind of stupid.
I'm mostly looking for a lockscreen that has a pattern lock and an option to show widgets. Best will be if there's an option to add different pages to the lockscreen (like CM10 style, where each page is a whole widget and can drag the pattern lock from the button).
Thanks in advance!

Stock lockscreen clock

Anyway to change or edit not using a third party lock screen app? With root access.
Sent from my LGLS990 using Tapatalk
randyrampage609 said:
Anyway to change or edit not using a third party lock screen app? With root access.
Sent from my LGLS990 using Tapatalk
Click to expand...
Click to collapse
Actually this is pretty simple. With the lockscreen up just slide the clock to the right. A new screen with a big plus sign should appear that you should press. You'll have to use whatever method you normally use to unlock your screen at this point. Add whatever widget you want. Delete the circle clock (just drag it up to the trashcan), and then slide the widget you really want over. QED.
There are some 3rd party apps in the Play Store that will change your lockscreen (Like Go Locker, iOS7 Lockscreen, Widget Locker, Android L LockScreen etc). You generally have to disable your lockscreen by selecting "None" from the Select screen lock setting found in Settings>Lockscreen
I personally don't like these as they have to constantly have to run in the background but they are there
Henri made a great suggestion though, stock Android allows you to customize the lockscreen a lot now by adding widgets and whatnot

CM13 Lockscreen clock widget not visible, with PIN or pattern to unlock

I'm using CM13 Resurrection Remix, on S4 mini.
I'm very happy with it. But have a issue with the lock screen.
When swipe to unlock, is selected the default clock widget is shown. But when PIN or pattern selected to unlock, the clock widget is hidden.
I have read that widgets are blocked in MM on the lock screen with PIN, but the clock? This can not be considered a security issue?.
I just want to know the current time.
Is there any way to show the clock on de lock screen when PIN or pattern is selected to unlock?
Same here
same issue.
And here... crazy...
I'll look into rooting and Xposed mods...
jago25_98 said:
And here... crazy...
I'll look into rooting and Xposed mods...
Click to expand...
Click to collapse
Hey folks, did you find a solution ?
PS :
On my side I workarounded that by temporarily installing an alternative locker (Transparent Pattern Lock)
pierro78 said:
Hey folks, did you find a solution ?
PS :
On my side I workarounded that by temporarily installing an alternative locker (Transparent Pattern Lock)
Click to expand...
Click to collapse
Just beware that the screen has ads. Click the ad and you bypass the lock. Pretty pointless
I didn't find a solution!

Categories

Resources