ubuntu上android功耗分析battery-historian工具环境搭建

ubuntu上android功耗分析battery-historian工具环境搭建
https://github.com/google/battery-historian
https://developer.android.google.cn/topic/performance/power/setup-battery-historian?hl=zh-cn
android官网安装需要访问外网,所以,通过如下方式安装:
1,安装docker
sudo snap install docker
2,安装battery-historian
1)查找 Battery Historian 软,选择 runcare/battery-historian 即可
sudo docker search battery
2)安装
sudo docker run --name=mybattery -d -p 9999:9999 runcare/battery-historian
3)启动和关闭服务
sudo docker start mybattery
sudo docker stop mybattery

你可能感兴趣的:(工具使用技巧,Android,Framework,android)