blocker
blocker copied to clipboard
[FR]: Support showing network traffics in the app detail screen
Is there an existing issue for this?
- [X] I have searched the existing issues
Describe the problem
在Blocker实现监听分应用流量之后,Blocker应用就可以根据不同的应用来展示对应的网络流量。配合hosts屏蔽功能,用户可以一键把对应的IP或者域名加入hosts文件中。
After implementing the monitoring of application-specific traffic in Blocker, the Blocker application can display corresponding network traffic based on different applications. With the blocking function of hosts, users can easily add corresponding IP or domain names to the hosts file.
Describe the solution
- 在
appdetail模块下加入相关的代码。在应用详情界面新增一个tab,tab内容为该应用的网络流量历史。 - 该tab由一个LazyColumn组成,每一个列表项有以下组成部分
- 日期时间
- 请求的IP或者域名地址
- 一个switch表示当前的域名或者ip是否存在hosts文件中
- 切换按钮可点击,用户在点击完对应的按钮之后就可以一键把对应的域名或者IP加入hosts文件中
- Add relevant code under the
appdetailmodule. Add a new tab in the application details, and the content of the tab is the network traffic history of that application. - This tab consists of a LazyColumn, and each list item has the following components:
- Date and time
- Requested IP or domain address
- A switch indicating whether the current domain or IP exists in the hosts file
- The toggle button is clickable, and after clicking on the corresponding button, users can easily add the corresponding domain or IP to the hosts file with one click.
Additional context
No response