Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PowerTesting-Web Android App v0.8

App Icon
A comprehensive Android application for battery consumption testing through simulated web browsing behavior
Automatically simulates human web browsing patterns and accurately records battery consumption

πŸ“± App Screenshots

Settings Overview
Settings Overview
URL Configuration
URL Configuration
Test Results
Test Results

🎯 Key Features

πŸ”‹ Battery Testing

  • Countdown Timer: Displays remaining test time with automatic stop at 00:00
  • Automated Testing: Fully automated simulation of human web browsing behavior
  • Accurate Recording: Tracks battery level changes from start to finish
  • Detailed Reports: Comprehensive test results and battery consumption analysis
  • Adjustable Duration: Support for 1-120 minute test sessions (default: 60 minutes)

🌐 Web Browsing

  • Embedded Browser: Full WebView experience with JavaScript support
  • 5-Website Rotation: Cycles through 5 configurable test websites
  • Smart Switching: Automatically switches to next URL when reaching page bottom
  • Default Websites: Pre-configured with popular Taiwan websites

⚑ Scrolling Simulation

  • Natural Scrolling: Simulates real finger scrolling, not key presses
  • Adjustable Speed: 10-level scrolling speed configuration
  • Smooth Animation: Step-by-step smooth scrolling animation
  • Bottom Detection: Intelligent page bottom detection for URL switching
  • Stay Time Control: Configurable page dwell time (default: 1.0 second)

πŸ”† Brightness Calibration

  • Dedicated calibration screen: Full-screen white background for brightness measurements
  • System brightness: Uses current system brightness setting (no forced maximum)
  • Safe exit: Close button prevents accidental exit during measurements
  • Clear instructions: Top-positioned text with center area for measurements
  • Easy access: Available from Settings page with dedicated button

🎨 User Interface

  • Clean Design: Maximized browser display space with Material Design
  • Real-time Status: Current battery level, website, and countdown timer
  • Screen Wake Lock: Keeps screen active during testing
  • 120Hz Support: Optimized for high refresh rate displays
  • Foldable Support: Samsung Galaxy Z Fold series compatibility

πŸ“Š Test Results

The application generates detailed test reports including:

PowerTesting-Web Test Report

Device Information:
Model: Samsung Galaxy Z Fold5 (Android 14)

Test Duration:
Start: 14:30:15
End: 15:00:28
Total: 30min 13sec

Battery Changes:
Start Level: 85%
End Level: 78%
Consumed: 7%

Hourly Consumption: 13.9%

πŸ› οΈ Technical Specifications

  • Minimum Android: 7.0 (API 24)
  • Target Android: 14 (API 34)
  • Programming Language: Java with Kotlin support
  • UI Framework: Android Native + Material Design
  • Browser Engine: WebView with JavaScript support
  • Special Features: 120Hz high refresh rate support, Foldable device compatibility

πŸ“₯ Download & Installation

APK Download

Installation Steps

  1. Download APK file to your Android device
  2. Enable "Install from Unknown Sources" in Android settings
  3. Tap the APK file to install
  4. Grant necessary permissions and start using

βš™οΈ Usage Guide

Basic Operation

  1. Launch App: Tap the desktop icon to start
  2. Access Settings: Tap the "Settings" button in bottom right
  3. Configure Parameters: Set test duration, scroll speed, and URLs
  4. Start Test: Return to main page and tap "Start" to begin testing
  5. View Results: Check detailed report after test completion

Brightness Calibration

  1. Access Settings: Go to Settings page
  2. Tap "Brightness Calibration": Opens full-screen calibration mode
  3. Adjust System Brightness: Manually adjust to desired brightness level
  4. Measure Brightness: Use brightness meter on center white area
  5. Safe Exit: Tap "Close" button at bottom to return to settings

Configuration Options

πŸ”§ Development Environment

Build Requirements

  • Android Studio Arctic Fox or later
  • Android SDK 34
  • Java 8 or later
  • Gradle 8.0

Project Structure

app/
β”œβ”€β”€ src/main/
β”‚   β”œβ”€β”€ java/com/batterytest/
β”‚   β”‚   β”œβ”€β”€ MainActivity.java
β”‚   β”‚   β”œβ”€β”€ SettingsActivity.java
β”‚   β”‚   β”œβ”€β”€ BrightnessCalibrationActivity.java
β”‚   β”‚   └── TestHistoryActivity.java
β”‚   β”œβ”€β”€ res/
β”‚   β”‚   β”œβ”€β”€ layout/
β”‚   β”‚   β”œβ”€β”€ values/
β”‚   β”‚   └── mipmap-*/
β”‚   └── AndroidManifest.xml
β”œβ”€β”€ build.gradle
└── proguard-rules.pro

Build Commands

# Debug version
./gradlew assembleDebug

# Release version
./gradlew assembleRelease

πŸ“ Version History

v0.8 (2025-09-16) - Latest

  • βœ… Improved Brightness Calibration: Close button for safe exit, system brightness usage
  • βœ… Enhanced Safety: Prevents accidental exit during measurements
  • βœ… Better Layout: Three-zone design with RelativeLayout structure
  • βœ… Professional Calibration: Optimized for actual calibration use cases

v0.7 (2025-09-16)

  • βœ… Countdown Timer: Shows remaining test time with auto-stop at 00:00
  • βœ… Brightness Calibration: Dedicated full-screen white calibration mode
  • βœ… Updated Defaults: 60-minute test duration, 1-second stay time
  • βœ… Samsung Z Fold Compatibility: Optimized for foldable devices
  • βœ… Enhanced UI: Material Design improvements

v0.5 (2025-09-16)

  • βœ… Initial brightness calibration implementation
  • βœ… Basic countdown timer functionality

Previous Versions

  • v0.4: Multi-website rotation testing
  • v0.3: Natural scrolling simulation
  • v0.2: Battery monitoring integration
  • v0.1: Basic web browsing test functionality

πŸ“‹ Version History

v0.9 (Latest)

  • Fixed Settings Functions: Quick selection buttons (30/60 min) now work properly
  • Reset Button Implementation: Complete reset to default values functionality
  • Anti-Stuck Scrolling: Smart detection and 1-minute page time limit
  • Enhanced Error Handling: Automatic recovery from JavaScript errors
  • Improved Stability: Dual scrolling mechanism (JavaScript + Touch backup)

v0.8

  • Improved Brightness Calibration: Close button only exit, system brightness usage
  • Enhanced UI: Better layout and user experience
  • Bug Fixes: Various stability improvements

v0.7

  • Countdown Timer: Display remaining time instead of elapsed time
  • Automatic Stop: Test stops when timer reaches 00:00
  • Version Updates: Enhanced compatibility and performance

🀝 Contributing

Welcome to submit Issues and Pull Requests to improve this project!

Submit Issues

  • Describe problems or suggestions in detail
  • Provide device model and Android version
  • For bugs, include reproduction steps

Submit Pull Requests

  • Fork this project
  • Create a feature branch
  • Commit your changes
  • Create a Pull Request

πŸ“„ License

This project is licensed under the MIT License.

πŸ‘¨β€πŸ’» Author

ahui3c (ε»–ι˜ΏθΌ)

  • Website: https://ahui3c.com
  • Expertise: Android Development, Tech Reviews, Technology Writing

πŸ™ Acknowledgments

Thanks to all testing users for their feedback and suggestions, making this application continuously improved.

πŸ“ž Support

If you encounter problems during use, please:

  1. Check the usage instructions in this README
  2. Search existing Issues
  3. Submit a new Issue describing the problem
  4. Visit the author's website for more information

Note: This application is for testing and research purposes only. Please use reasonably and pay attention to battery health.

About

A comprehensive Android app for battery consumption testing through simulated web browsing with countdown timer and brightness calibration features

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages