使用第三方Recocery来清除Andoid 7.0以上(努比亚z18mini)锁屏密码

使用第三方Recocery来清除Andoid 7.0以上(努比亚z18mini)锁屏密码

前提要求:

已刷入TWRP

实验成功

努比亚z18mini

正文

连接手机
使用adb shell 进入SHELL

cd /data/system
rm locksettings.db*
vi device_policies.xml,按i开始编辑
如果在
<policies setup-complete="true">
<password-validity value="false" />

之间有别的项,删除
如果<passwd-validity value="false" />值为true 改为false
按ESC,输入:wq回车,重启

重启,锁屏密码就没拉

你可以使用OpenCV库中的VideoCapture类来显示rtsp流。下面是一个示例代码: ```java import org.opencv.core.Mat; import org.opencv.videoio.VideoCapture; import org.opencv.imgcodecs.Imgcodecs; import org.opencv.imgproc.Imgproc; public class RtspStreamViewer { public static void main(String[] args) { // Load the OpenCV library System.loadLibrary("opencv_java452"); // Create a VideoCapture object to read from the rtsp stream VideoCapture cap = new VideoCapture("rtsp://username:password@ip_address:port/stream"); // Check if the VideoCapture object was successfully created if(!cap.isOpened()) { System.out.println("Failed to open rtsp stream!"); return; } // Create a window to display the frames String windowName = "RTSP Stream"; Imgproc.namedWindow(windowName); // Read and display the frames from the rtsp stream Mat frame = new Mat(); while(cap.read(frame)) { Imgproc.cvtColor(frame, frame, Imgproc.COLOR_BGR2GRAY); Imgproc.putText(frame, "Press Q to Exit", new org.opencv.core.Point(10, 50), org.opencv.imgproc.Imgproc.FONT_HERSHEY_SIMPLEX, 1.0, new org.opencv.core.Scalar(255, 255, 255), 2); Imgcodecs.imshow(windowName, frame); if(Imgcodecs.waitKey(25) == 'q') { break; } } // Release the resources cap.release(); Imgcodecs.destroyAllWindows(); } } ``` 在这个示例代码中,我们首先加载了OpenCV库。然后,我们创建了一个VideoCapture对象来读取rtsp流。如果VideoCapture对象创建失败,则打印错误消息并退出程序。接下来,我们创建了一个名为“RTSP Stream”的窗口来显示帧。然后,我们读取并显示rtsp流中的帧。我们首先将帧转换为灰度图像,然后将一条文本消息添加到图像中。最后,我们使用imshow()方法将帧显示在窗口中。如果用户按下“q”键,则退出程序。 请注意,你需要将示例代码中的“username”,“password”,“ip_address”和“port”替换为你的rtsp流的凭据和地址。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值