The purpose of this project is to examine the relationship between Google's Core Web Vitals metrics and energy consumption on Android devices.
- x2 Raspberry Pi 3 Model B+ with 4GB of RAM
- Google Pixel 6
- Google Pixel 3
The following packages may need to be installed on the Raspberry Pi:
The following packages may need to be installed on the laptop:
This experiment was designed to run on a Raspberry Pi 3 Model B with 4GB of RAM. The Raspberry Pi should be running the latest version of Raspberry Pi OS. To replicate the project, the following steps should be taken:
- Clone this repository onto the Raspberry Pi
- Clone the Android Runner in the parent directory of this repository
https://github.com/S2-group/android-runner.git
- Install the Android Runner dependencies
cd android-runner && pip3 install -r requirements.txt
- Install the python dependencies
pip3 install -r requirements.txt
- Install the node dependencies in the receiver directory
cd receiver && npm install
- Start 3 sessions to the laptop and run the following:
2.
node receiver/server.js
3.ngrok http 3000
- Finally you can run the experiment using the following command:
sudo python3 android-runner android-runner/examples/batterymanager/config_web.json
All outputs will be stored in the android-runner/examples/batterymanager/output
directory.