简体   繁体   English

输入“ tap”命令丢失(Android终端模拟器)

[英]Input “tap” Command missing (Android Terminal Emulator)

The command "tap" is missing in my Android Terminal Emulator Console, but my friend has it. 我的Android Terminal Emulator Console中缺少命令“ tap”,但是我的朋友知道。 What do I have to do? 我需要做什么?

I have Android 4.0.3 installed, Root Rights, Busybox installed 我已安装Android 4.0.3,根权限,Busybox

http://img842.imageshack.us/img842/6206/20130325115232.png http://img842.imageshack.us/img842/6206/20130325115232.png

I have the same problem(although i have Android 2.3.7) and googling only led me here. 我有同样的问题(尽管我有Android 2.3.7),并且在Google上使用谷歌搜索功能只能将我引到这里。

After a little research (looking into the input -script, which in fact only launches the class com.android.commands.input.Input ) i found out that the "tap"-event is first available in android 4.1.1. 经过一番研究(研究了input -script,实际上它只启动了com.android.commands.input.Input类),我发现“ tap”事件首先在android 4.1.1中可用。

See: Input.java , if you browse to one version before you will see the difference. 请参阅: Input.java ,如果您浏览到一个版本,则将看到差异。

It seems that it could be fairly easy to make that feature available in older versions just by replacing the Input-class, only if i knew an easy way to do this :) (although i do not know if the other APIs used in the generation of the tap event, eg injectPointerEvent , are available in older versions.) 似乎仅通过替换Input-class即可使该功能在较旧版本中可用相当容易,仅当我知道执行此操作的简便方法时:)(尽管我不知道该代中是否使用了其他API事件的输入,例如injectPointerEvent ,在较旧的版本中可用。)

PS: I hope you are a member of the Resistance otherwise I may regret helping you :) PS:我希望你是抵抗运动的成员,否则我可能后悔帮助你:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM