Giter Site home page Giter Site logo

watermonitor's Introduction

WaterMonitor

使用系统的辅助权限功能来实现监控电话打入监听特定QQ联系人的命令,自动解锁屏幕(如果有的话),打开QQ特定的联系人并打开视频功能,主要目的是为了满足自己上班有时候监控下家里的🐶子有没有拆家

详情请见简书

注意

import github.hellocsl.smartmonitor.utils.Privacy;这个没类只是再记录了默认的QQ帐号的常量,所以没上传,可以自己新建一个

使用

首先你得需要两个QQ,还有两台Android📱(作为一个Android开发的,总会有几台更新换代后留下的备用手机,何不充分利用起来,酱紫又可以省下买监控摄像头的💰了)

监控系统分位被监控方(你放在家里作为监控的那台📱)和监控方,作为被监控方,修改监控方QQ联系人的备注格式为**"WaterMonitor:真实的QQ号码"** ,这样当收到监控方的命令,现在待定是1,被监控方可以根据这个联系人的备注,获取到需要进行视频的QQ联系人号码,然后发起视频聊天,监控方只需要等待并接收即可

实现

辅助服务,当在锁屏或者非QQ面板的时候,分别监听AccessibilityEvent#TYPE_WINDOW_CONTENT_CHANGEDAccessibilityEvent#TYPE_NOTIFICATION_STATE_CHANGED事件可以读取到QQ的新消息,根据目标联系人和命令的解析,就可以作出相应的操作

Root和屏幕解锁

需要Root权限,因为需要进行屏幕解锁,而使用辅助权限也很难达到目的,主要使用到【adb input】命令来模拟滑动和点击,详情看这里

不同的手机的屏幕解锁密码或者方式不一样,所以需要自己来写脚本,脚本名字为MonitorUnlock.txt并放到Sd卡根目录,以quit为结尾,参考我的

效果

1

watermonitor's People

Contributors

bcsl avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.