【Android电量】Battery Historian环境部署
1、Install Docker Desktop for Mac (ps: Requires Apple Mac OS Sierra 10.12 or above.)
手动下载安装
https://docs.docker.com/docker-for-mac/install/
使用 Homebrew 安装
brew cask install docker(推荐)
2、Run the Battery Historian image.
使用命令
docker run -d -p 9999:9999 bhaavan/battery-historian 加载启动镜像 (有问题的镜像,不要用) docker run -p 9998:9998 gcr.io/android-battery-historian/stable:3.0 --port 9998 (亲测可用镜像)
didi@localhost ~ docker run -p 9998:9998 gcr.io/android-battery-historian/stable:3.0 --port 9998
Unable to find image 'gcr.io/android-battery-historian/stable:3.0' locally
3.0: Pulling from android-battery-historian/stable
c62795f78da9: Pull complete
d4fceeeb758e: Pull complete
5c9125a401ae: Pull complete
0062f774e994: Pull complete
6b33fd031fac: Pull complete
a6bd6e1d0bdb: Pull complete
76cf9d0635af: Pull complete
856d20d533e0: Pull complete
e63a73f6a528: Pull complete
1a75578c9353: Pull complete
24f3649604d9: Pull complete
10f637765748: Pull complete
e06a9fa76cf2: Pull complete
Digest: sha256:265a37707f8cf25f2f85afe3dff31c760d44bb922f64bbc455a4589889d3fe91
Status: Downloaded newer image for gcr.io/android-battery-historian/stable:3.0
2019/04/15 12:46:23 Listening on port: 9998
2019/04/15 12:48:19 Trace starting analysisServer processing for: GET
2019/04/15 12:48:19 Trace finished analysisServer processing for: GET
2019/04/15 12:48:20 Trace starting analysisServer processing for: GET
2019/04/15 12:48:20 Trace finished analysisServer processing for: GET
2019/04/15 12:48:27 Trace starting analysisServer processing for: POST
2019/04/15 12:48:27 Trace starting reading uploaded file. 2330165 bytes
2019/04/15 12:48:28 failed to extract battery info: could not find battery time info in bugreport
2019/04/15 12:48:28 failed to extract time information from bugreport dumpstate: open /usr/lib/go-1.6/lib/time/zoneinfo.zip: no such file or directory
2019/04/15 12:48:28 Trace started analyzing "bugreport-ALP-AL00-HUAWEIALP-AL00-2019-04-15-14-31-10.zip~bugreport-ALP-AL00-HUAWEIALP-AL00-2019-04-15-14-31-10/bugreport-ALP-AL00-HUAWEIALP-AL00-2019-04-15-14-31-10.txt" file.
2019/04/15 12:48:28 Trace finished processing checkin.
2019/04/15 12:48:28 Trace finished processing summary data.
2019/04/15 12:48:28 Trace finished generating Historian plot.
2019/04/15 12:48:28 Trace finished analyzing "bugreport-ALP-AL00-HUAWEIALP-AL00-2019-04-15-14-31-10.zip~bugreport-ALP-AL00-HUAWEIALP-AL00-2019-04-15-14-31-10/bugreport-ALP-AL00-HUAWEIALP-AL00-2019-04-15-14-31-10.txt" file.
2019/04/15 12:48:29 Trace ended analyzing file.
2019/04/15 12:48:29 Trace finished analysisServer processing for: POSTdidi@localhost /usr/local/Cellar/go/1.12.4/src/github.com/google/battery-historian master docker ps -all
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c19bb05d9198 bhaavan/battery-historian "/bin/sh -c 'go run …" 19 minutes ago Up 19 minutes 0.0.0.0:9999->9999/tcp sad_shaw
didi@localhost /usr/local/Cellar/go/1.12.4/src/github.com/google/battery-historian master
didi@localhost /usr/local/Cellar/go/1.12.4/src/github.com/google/battery-historian master docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
bhaavan/battery-historian latest 9a3a9fd0ca2f 2 years ago 922MB
3、Open BH
Run historian and visit http://localhost:9999
4、Upload Report
Both .txt and .zip bug reports are accepted.
To take a bug report from your Android device, you will need to enable USB debugging under Settings > System > Developer Options
To obtain a bug report from your development device running Android 7.0 and higher:
$ adb bugreport bugreport.zip
didi@localhost ~ adb bugreport bugreport.zip
/data/user_de/0/com.android.shell/files/bugreports/bugreport-ALP-AL00-HUAWEIALP-AL00-2019-04-15-11-08-01.zip: 1 file pulled. 23.2 MB/s (2295220 bytes in 0.094s) // 手机本地didi@localhost ~ adb pull /data/user_de/0/com.android.shell/files/bugreports/bugreport-ALP-AL00-HUAWEIALP-AL00-2019-04-15-12-08-32.zip /Users/didi/Documents/ # 导出到电脑
/data/user_de/0/com.android.shell/files/bugreports/bugreport-ALP-AL00-HUAWEIALP-AL00-2019-04-15-12-08-32.zip: 1 file pulled. 24.1 MB/s (2415380 bytes in 0.096s)
For devices 6.0 and lower:
$ adb bugreport > bugreport.txt
5、Start analyzing!
Timeline:
System stats:
App stats:
低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。
持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。
转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。
- 上一篇
如何通过阿里云基础安全组件确认云上资产安全状态
前言 相信大家对于云监控已经是十分熟悉了,能够通过云监控快速确认云上资产的负载和使用情况。但是如何通过控制台快速确认云上资产的安全状态,可能对于大家而言相对会陌生一些。接下来给大家介绍下如何利用基础的云安全产品来确认云上资产的安全状态。 云安全基础安全组件架构 即使一个用户没有购买任何云安全产品,阿里云依然会利用云平台的安全能力为客户提供基础告警和防护能力以保障用户的基础安全能力。当然开通基础的防护是需要在创建ECS的规格的时候需要选择安全加固。云上的资产才会具备基础的安全组件能力,我们来看一下云上主要的基础安全组件以及我们如何利用基础的安全监测分析的能力判断云上资产的安全状态简单的来说我们可以使用这三种免费的安全组件快速的判断云上资产的安全情况。 云安全中心基础版——ECS风险分析 DDoS基础防护——DDoS风险分析 Web应用防火墙——
- 下一篇
5分钟快速安装Syncthing
简介 Syncthing是一个开源免费的文件夹/文件同步神器,支持Android、Linux、Windows、Mac OS X等系统,可以使我们在2台任何系统任何设备之间,实现文件实时同步,很强大。而且数据很安全,不会存储在你的设备以外的其他地方。所有通信都使用TLS进行保护。所使用的加密包括完美的前向保密,以防止窃听者获得对您的数据的访问权限。很适合我们用来搭建私有同步网盘。 安装 为了方便部署和解决环境兼容性等问题,采用docker来部署安装Syncthing。 首先安装Docker容器管理面板URLOS,请参考官方文档:https://www.URLOS.com/center-home-index-detail-10-22-y.html。 登录URLOS:http://ip:9968(其中的IP是你的服务器的IP,登录的默认用户名和密码均为urlos) 在应用市场中搜索“Syncthing”并安装,如下图: 安装流程如下: 填写服务名称、选择运行节点、选择智能部署 然后点击“提交”按钮,等待部署完成; 访问网站 访问:http://IP:8384(IP是你的服务器的IP) 使用方...
相关文章
文章评论
共有0条评论来说两句吧...
文章二维码
点击排行
推荐阅读
最新文章
- CentOS8编译安装MySQL8.0.19
- CentOS7,8上快速安装Gitea,搭建Git服务器
- CentOS6,7,8上安装Nginx,支持https2.0的开启
- CentOS关闭SELinux安全模块
- SpringBoot2初体验,简单认识spring boot2并且搭建基础工程
- SpringBoot2整合MyBatis,连接MySql数据库做增删改查操作
- CentOS8安装MyCat,轻松搞定数据库的读写分离、垂直分库、水平分库
- CentOS8安装Docker,最新的服务器搭配容器使用
- CentOS7,CentOS8安装Elasticsearch6.8.6
- Red5直播服务器,属于Java语言的直播服务器