Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

huawei手机,手机息屏后,电脑端唤醒手机后,手势解锁界面无法显示!是黑屏状态!只能盲操! #126

Closed
JOBSSON opened this issue Apr 12, 2020 · 3 comments

Comments

@JOBSSON
Copy link

JOBSSON commented Apr 12, 2020

_huawei手机,手机息屏后,电脑端唤醒手机后,手势解锁界面无法显示!是黑屏状态!只能盲操!_请作者尽快修复这个bug ! thanks!
1

@barry-ran
Copy link
Owner

密码输入界面安全性较高,采集不到这个界面的视频,scrcpy效果一样

@MYZ6
Copy link

MYZ6 commented Dec 2, 2022

结合各位大神的思路,总算找到一个能用的办法,用adb模拟点击屏幕,事先计算好数字的位置,写先bat脚本,还算稳
test

@Hyphen-H
Copy link

Hyphen-H commented Nov 9, 2024

可行,小米14 Ultra 分辨率1440*3200一键解锁
笨方法

1

先用iPad给手机密码页面拍照,截成长方形,然后电脑上用Snipaste 贴图,再截屏(记录此分辨率,如500*1080,后面要等比放大到手机原始分辨率)

2

鼠标放在密码数字上,记录此时Snipaste在你的鼠标左键显示的坐标,Snipaste显示多少就记录多少,如(123, 456)=(x, y),依次记录四位密码的坐标;

3

一行一对x y, 发给ChatGPT,让它按比例映射x和y的坐标,从500*1080映射/放大到手机原始分辨率1440*3200

4

QtScrcpy目录下新建unlock.bat,粘贴代码如下,并运行测试(无线模式请拔线测试)

adb shell input keyevent KEYCODE_POWER #模拟按一下电源键
timeout /t 1 /nobreak
adb shell input swipe 576 1600 576 800 #模拟在屏幕中右侧五分之二处上滑
timeout /t 1 /nobreak
adb shell input tap mapped-x-coordinate mapped-y-coordinate #替换为映射后xy坐标
adb shell input tap mapped-x-coordinate mapped-y-coordinate
adb shell input tap mapped-x-coordinate mapped-y-coordinate
adb shell input tap mapped-x-coordinate mapped-y-coordinate

5

同目录新建一个unlock.vbs,实现后台运行

Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "unlock.bat", 0

Wireless Connect Tips:

  • 每次电脑重启, 都需要USB连线到手机,打开QtScrcpy重新设置一遍adb无线连接!
  • 必须断线才能用脚本解锁!!必须断线才能用脚本解锁!!必须断线才能用脚本解锁!!
  • 结合Geekdesk/Quicker/uTools/Powertoys Run等等软件设置,可以快捷键运行脚本,一键后台解锁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants