Auto Screen Unlock

Mcrazy

Member
Hi all!
I made a Screen unlock macro.
It's important when you need to run operations that require a screen to be unlocked.
When activating the macro, you must first set the PIN in the Local variable to the same PIN that was set for the Phone. This will be used by the macro to unlock the display.

If the Smart Lock is unlocked, the macro will unlock the screen by swiping.
In the V1 version there is only a "Blank Event" and a "Run Macro" action at the end.

In this form you can control from another macro or add additional events.
I also created a Test version which after activation, if the display is locked, it will turn on the display after 5sec and then unlock it by swiping and entering a PIN.
Any useful info on its operation is welcome.

Update:
I made changes to the original macro and therefore deleted the previous versions.
I created an example macro which creates the action block after importing, so it is more simple to use and only the action block needs to be called in the macro.
The Aktions block has the working variables at the bottom.
Here you need to set the PIN code that you set in Phone (1.PIN Code)
If the unlock works, you can call the action block in the right place in your own macros and it will work for you.
Attention! It may not work on all phones!
If it doesn't work, try the following:
1. restart the phone ( Macrodroid sometimes forgets the gesture, but for me it works for a long time after a restart)
2. If you are using Nova launcher and have the Auxiliary options turned on, the gesture will not work, no smoothness will be created to access the numeric pad.
3. if everything works, but the macro does not enter the numbers correctly, you will need to try increasing the wait times in the Repeat action.

Good Luck!
Auto Screen Unlock Example
 
Last edited:

Ralf

New member
Hi Mcrazy,
My Test with PIN 1234 works fine. But my real PIN 5557 works not. The Macro klicks the first Number then blank / blank and the last Number. Can you please check it.
Thanks Ralf
 

Mcrazy

Member
Hi Mcrazy,
My Test with PIN 1234 works fine. But my real PIN 5557 works not. The Macro klicks the first Number then blank / blank and the last Number. Can you please check it.
Thanks Ralf
Hi!
Thanks for the Bugreport!
I checked and I also experienced the error, but not in all cases.
I did the following and I see that this fixed it.
1. After Screen On the Wait should be 1sec.
2. Ui Interaction -> Gesture- 250ms instead of 150ms.
Report back please if everything is ok and I will replace the downloadable Macro.
 

Ralf

New member
Hi!
Thanks for your time!
I testet with SAMSUNG Glaxy Tab S7+ / SM-T970. It don´t works. The old or the new Parameters, ever the same.
I testet with SAMSUNG Galaxy A52s 5G / SM-A528B/DS. It works fine, with both Parameters.

I change my PIN.
Thanks for your time!
 

780821

New member
大家好!
我做了一个屏幕解锁宏。
当您需要运行需要解锁屏幕的操作时,这一点很重要。
激活宏时,您必须首先将本地变量中的 PIN 设置为为电话设置的相同 PIN。这将被宏用于解锁显示。

如果 Smart Lock 已解锁,宏将通过滑动解锁屏幕。
在 V1 版本中,最后只有一个“空白事件”和一个“运行宏”动作。

在这种形式中,您可以从另一个宏进行控制或添加其他事件。
我还创建了一个测试版本,激活后,如果显示器被锁定,它将在 5 秒后打开显示器,然后通过滑动并输入 PIN 来解锁它。
欢迎任何有关其操作的有用信息。
自动屏幕解锁 V1
自动屏幕解锁测试版
怎么下载 下载不下来啊 能不能共享下代码?
 

sniicker

New member
Doesnt work on my Samsung Galaxy S21

And i knwo why. Because while entering the Pin you see the number you clicked before and then after a while it will change in a dot.
The Macro clicks on the first number it can find. So if you have a PIN like 5566 he will only type in one 5 and one 6, because the second
number he will click is not on the input tastatur , it will click the number you get as a response.

What can you do:
Just increase the time where the code is entering - in my case it needed 1,5sec bevore the shown pin got changed in a dot
Now it works fine!!
 

Mcrazy

Member
Doesnt work on my Samsung Galaxy S21

And i knwo why. Because while entering the Pin you see the number you clicked before and then after a while it will change in a dot.
The Macro clicks on the first number it can find. So if you have a PIN like 5566 he will only type in one 5 and one 6, because the second
number he will click is not on the input tastatur , it will click the number you get as a response.

What can you do:
Just increase the time where the code is entering - in my case it needed 1,5sec bevore the shown pin got changed in a dot
Now it works fine!!
Hi!
Thanks for the feedback!
I didn't realize that the click was too fast and that's why it didn't work.
I will test and fix it in the macro.
 

dhj49er

Well-known member
Hi!
Thanks for the feedback!
I didn't realize that the click was too fast and that's why it didn't work.
I will test and fix it in the macro.
Unfortunately, not all phones support MD clicking by text number on the lock screen keypad. For these phones you need to use click by x,y actions and the co-ordinates of the keys will vary between phones, being dependent on screen size, resolution & position of the keypad.
 

Evauiv

New member
Не могу поменять пароль ??
Может мне создать новый логин и пароль?
Нужна Ваша помощь.
Спасибо.
 

Endercraft

Moderator (& bug finder :D)
Не могу поменять пароль ??
Может мне создать новый логин и пароль?
Нужна Ваша помощь.
Спасибо.
Please write in English. And I don't understand what's wrong with your password.

Пожалуйста, пишите на английском языке. И я не понимаю, что не так с вашим паролем.
 
Top