如何启动一个应用程序在直通亚洲开发银行Android版 [英] How to launch an app thru adb in Android

查看:158
本文介绍了如何启动一个应用程序在直通亚洲开发银行Android版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:结果
  如何启动摄像头视频图标

我想通过亚洲开发银行在我的Andr​​oid手机推出一个应用程序。我曾尝试 ADB getevent 。但它转储如此多的事件。

I am trying to launch an app through adb in my Android phone. I have tried adb getevent. But it dumps so many events.

我怎样才能使了,我需要哪一个?有没有我可以启动应用程序的任何其他方式?

How can I make out which one I need? Is there any other way I can launch the app?

我期待推出视频。没有单独的视频APK。它是唯一的相机的apk。我能够通过亚洲开发银行推出的相机为:

I am looking to launch video. There is no separate video apk. It is in camera apk only. I was able to launch camera through adb as:

上午开始-a -n android.intent.action.MAIN com.android.camera/.CameraEntry

摄像机图标旁边的摄像头捕捉图标。我能够控制单元图标直通
输入的KeyEvent 23.但无法弄清楚如何启动视频这是旁边抢购图标

The camcorder icon is next to snap icon in camera. I was able to control snap icon thru input keyevent 23. But unable to figure out how to launch video which is next to snap icon

推荐答案

简短的回答,不,那是关于至于你能得到,推出一个活动以这种方式,但并不从亚行本身的用户界面。

Short answer, No, that is about as far as you can get, to launch an activity in that manner but not control the UI from the adb itself.

长一点的回答,Android的禁止注入事件到活动作为一个安全的事情这其实是一件好事,否则会是数百个恶意软件在野外抓住了手机,结果的控制,由于注入事件并造成在手机上做的事情没有你知道它的应用程序。

Long answer, Android prohibits injecting events into a activity as a security thing which in fact is a good thing otherwise there'd be hundreds of malware in the wild seizing control of the handset as a result due to injecting events and causing the apps on the handset to do things without you knowing about it.

此外,注射事件的使用需要一个ROM的签署键启动的功能。

Furthermore, the usage of injecting events requires a ROM's signed key to enable the functionality.

修改

与有关此@MichaelHampton注释之后,在理论上,它可能是可以使用的ROM自身猴程序发送一个按键等,毕竟,猴子程序与ROM区中的安全密钥进行签名,这可能是一个问题的知道什么命令来调用,并传递到猴子的程序,由脱壳而出,进而它引导到该活动......?其理论...还没有尝试过,也想过一些关于它..

After commenting with @MichaelHampton about this, in theory, it could be possible to use the ROM's own monkey program to send a keystroke etc, after all, the monkey program is signed with the ROM's security key, it could be a matter of knowing what commands to invoke and pass into the monkey program, by shelling out and in turn directing it to the said activity...? Its theoretical...have not tried it nor thought some more about it..

这篇关于如何启动一个应用程序在直通亚洲开发银行Android版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆