STF的核心功能可以理解為:“同步圖像” + “點擊”濒憋。前者使用minicap完成烁峭,后者依賴minitouch。
雖然目前依然是3.4.1版本艾恼,但由于增加了很多定制化的內(nèi)容,所以從——
commit: 16e64b51ff3dbb5cf7492fa773c123ceb12454b0
Merge pull request #770 from neofreko/adb-key-api Implements addAdbPublicKey API endpoint
Simo Kinnunen on 7/11/2019, 2:44:32 AM
之后就沒同步最新代碼麸锉。
手機自動被升級到了Android 10钠绍,手動同步了minicap,但發(fā)現(xiàn)minitouch已經(jīng)不被支持了——
For Android 10 and up
Minitouch can't handle Android 10 by default, due to a new security policy. The workaround is to forward touch commands to STFService. If you are using minicap standalone (without STF), you need to take care of running the service and agent, before running minicap. Instructions on how to do that can be found here.
minitouch says: "Unable to open device /dev/input/event0 for inspectionopen: Permission denied"
解決方案:
Minitouch cannot support Android 10 due to a new security policy. To overcome that a fallback has been added to forward touch events to STFService.apk. Latest changes in STFService.apk aim at managing those events at the framework level.
Right now if you are using minitouch (outside of openstf scope), you simply have to:
人肉同步合并一下最新代碼試試花沉。