如何获取用户与Android设备交互的顺序?
经过许多网站搜索和谷歌搜索后,
我找不到任何可以解决我的问题的信息。 我想捕获 Android 设备上的用户交互序列。从设备上电时开始。还有一件事是,我不是在谈论任何应用程序 UI 上的用户事件。它适用于整个设备的 UI 交互。如果有任何可用的工具,请告诉我。我对此一无所知。非常感谢任何帮助或建议。
After many sites searched and googling,
I can't find anything for my problem.
I want to capture the sequence of user interactions on android device. Starting from when the device is powered ON. And one more thing is that I'm not talking about the user event on UI of any application. It's for whole device UI interactions. And if any tools are available then please let me know about it. I didn't get anything about this. Any help or suggestion is well appreciate.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
出于明显的安全和隐私原因,这是不可能的,除非通过修改固件。
This is not possible, except perhaps via modified firmware, for obvious security and privacy reasons.
我不确定它会在多大程度上帮助您实现目标,但我知道的最好方法是:
您需要为每个操作(例如操作
android:name)实现
当您的设备启动时,类似地,您需要使用将在接收器中通知您的所有操作。Broadcastreceiver
="android.intent.action.BOOT_COMPLETED"您可以运行一项服务,在其中检查哪个应用程序正在运行以供您记录。为此,您需要获取已安装的应用程序列表。
I am not sure at what extent it will help you to achive your goal but the best way I know is that:
You need to implement
Broadcastreceiver
for every action like actionandroid:name="android.intent.action.BOOT_COMPLETED"
when your device starts, similarly you need to use all the action which will notify you in your receiver.You can run a service where you can check which app is running for your record. For this you need to fetch installed app list.