打卡神器每天自动打卡,只需要放一部安卓手机在办公室,安装钉钉和打卡软件,定闹钟自动打卡。还可以实现自动登录和模拟打卡;操作简单,方便好用;支持钉钉、企业威信、移动彩云等app;
打卡软件下载地址:
链接: https://pan.baidu.com/s/1TYOd-GxeU-zoFw3eX0Pg6w?pwd=9dm7 提取码: 9dm7?
软件注意事项:
手机不要设置锁屏密码;
QQ:694998154
打卡app采用的是android的无障碍服务,通过监听服务的事件,来模拟人工点击,如下是关键代码:
@RequiresApi(api = Build.VERSION_CODES.O)
@Override
public void onAccessibilityEvent(AccessibilityEvent event) {
if (event.getPackageName() != null) {
nowPackageName = event.getPackageName().toString();
//获取类名
className= event.getClassName().toString();
if(className.contains("com."))
{
if(className.contains(nowPackageName))
{
className=className.replace(nowPackageName,"");
className=className.replace("..","");
if(className.charAt(0)=='.')
className=className.substring(1);
}
p_c = nowPackageName + className;
Log.i(TAG, "包名:"+nowPackageName+","+"类名:"+className);
}
}
//判断当前包是否为
if (nowPackageName!=null) {
if (MyApplication.getInstance().getFlag()) {
Log.i(TAG,"收到事件类型ID:"+event.getEventType());
try{
for (BaseHandler handler : list) {
if(handler.canHandler(nowPackageName)){
handler.doHandle(event,this);
break;
}
}
}catch (Exception e){
Log.e(TAG,"事件处理失败",e);
}
}
}
}
|