{"id":21923261,"url":"https://github.com/androiddevelop/androidscreenshot","last_synced_at":"2025-04-19T15:21:57.055Z","repository":{"id":17622172,"uuid":"20426378","full_name":"androiddevelop/AndroidScreenshot","owner":"androiddevelop","description":"PC上获取手机截图,并提供简单点击操作","archived":false,"fork":false,"pushed_at":"2017-12-20T16:12:23.000Z","size":580,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T09:22:00.285Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/androiddevelop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-03T01:59:44.000Z","updated_at":"2022-05-25T08:47:30.000Z","dependencies_parsed_at":"2022-08-04T20:15:52.303Z","dependency_job_id":null,"html_url":"https://github.com/androiddevelop/AndroidScreenshot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/androiddevelop%2FAndroidScreenshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/androiddevelop%2FAndroidScreenshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/androiddevelop%2FAndroidScreenshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/androiddevelop%2FAndroidScreenshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/androiddevelop","download_url":"https://codeload.github.com/androiddevelop/AndroidScreenshot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249725234,"owners_count":21316145,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-28T21:09:55.918Z","updated_at":"2025-04-19T15:21:56.870Z","avatar_url":"https://github.com/androiddevelop.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"AndroidScreenshot\n=================\n\n![github](phone.png)\n\n解决问题\n-------------\n在PC上展示手机屏幕,提供点击滑动操作.之前有一个[项目](http://code.google.com/p/androidscreencast),\n大家可以参考一下.\n\n使用说明\n------------\n* 运行MainGui类即可\n* 鼠标左键可以模拟点击以及拖拽\n* 按键ESC模拟点击返回，H键模拟点击HOME键\n* 不同手机在存在鼠标事件时存在一定的差异,本项目是在Genymotion模拟器上测试\n* 项目依赖ddmlib.jar\n\n调整方式\n--------------\n####左上角点击\n* /dev/input/event7: 0001 014a 00000001\n* /dev/input/event7: 0003 003a 00000001\n* /dev/input/event7: 0003 0035 00000040\n* /dev/input/event7: 0003 0036 00000115\n* /dev/input/event7: 0000 0002 00000000\n* /dev/input/event7: 0000 0000 00000000\n* /dev/input/event7: 0001 014a 00000000\n* /dev/input/event7: 0003 003a 00000000\n* /dev/input/event7: 0003 0035 00000040\n* /dev/input/event7: 0003 0036 00000115\n* /dev/input/event7: 0000 0002 00000000\n* /dev/input/event7: 0000 0000 00000000\n\n--------------------------------------------\n####右上角点击\n* /dev/input/event7: 0001 014a 00000001\n* /dev/input/event7: 0003 003a 00000001\n* /dev/input/event7: 0003 0035 000002f7\n* /dev/input/event7: 0003 0036 00000496\n* /dev/input/event7: 0000 0002 00000000\n* /dev/input/event7: 0000 0000 00000000\n* /dev/input/event7: 0001 014a 00000000\n* /dev/input/event7: 0003 003a 00000000\n* /dev/input/event7: 0003 0035 000002f7\n* /dev/input/event7: 0003 0036 00000496\n* /dev/input/event7: 0000 0002 00000000\n* /dev/input/event7: 0000 0000 00000000\n\n+ 每一次点击是一个touch-down与touch-up的操作，每6行为一个操作，中间2行对应坐标。\n+ 如需适配自己设备，请再所需设备中使用**adb shell  getevent**进行操作，替换cn.androiddevelop.screenshot.util.ScreenShot.java文件中对应的参数即可。\n+ 有些真机如moto，厂商已经屏幕坐标系格式化为1000*1000，具体可以通过点击屏幕右下角，查看坐标进行转换，坐标比例进行转换，请修改cn.androiddevelop.screenshot.Config.java中比例\n\n实现原理:\n------------\n使用ddmlib.jar包获取手机的截图或不断更新,同时将鼠标事件传递到手机\n鼠标事件相关问题,大家有问题可以给我发送邮件 app@codeboy.me","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroiddevelop%2Fandroidscreenshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandroiddevelop%2Fandroidscreenshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroiddevelop%2Fandroidscreenshot/lists"}