A comprehensive Android application for battery consumption testing through simulated web browsing behavior
Automatically simulates human web browsing patterns and accurately records battery consumption
- 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)
- 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
- 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)
- 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
- 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
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%
- 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
- PowerTesting-Web-v0.9-FixedSettings.apk - Latest Version
- Download APK file to your Android device
- Enable "Install from Unknown Sources" in Android settings
- Tap the APK file to install
- Grant necessary permissions and start using
- Launch App: Tap the desktop icon to start
- Access Settings: Tap the "Settings" button in bottom right
- Configure Parameters: Set test duration, scroll speed, and URLs
- Start Test: Return to main page and tap "Start" to begin testing
- View Results: Check detailed report after test completion
- Access Settings: Go to Settings page
- Tap "Brightness Calibration": Opens full-screen calibration mode
- Adjust System Brightness: Manually adjust to desired brightness level
- Measure Brightness: Use brightness meter on center white area
- Safe Exit: Tap "Close" button at bottom to return to settings
- Test Duration: 1-120 minutes adjustable (default: 60 minutes)
- Scroll Speed: 10-level speed settings (default: level 6)
- Stay Time: 0.5-4.5 seconds page dwell time (default: 1.0 second)
- URL Configuration: 5 website rotation setup
- Default URLs:
- Android Studio Arctic Fox or later
- Android SDK 34
- Java 8 or later
- Gradle 8.0
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
# Debug version
./gradlew assembleDebug
# Release version
./gradlew assembleRelease- β 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
- β 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
- β Initial brightness calibration implementation
- β Basic countdown timer functionality
- v0.4: Multi-website rotation testing
- v0.3: Natural scrolling simulation
- v0.2: Battery monitoring integration
- v0.1: Basic web browsing test functionality
- 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)
- Improved Brightness Calibration: Close button only exit, system brightness usage
- Enhanced UI: Better layout and user experience
- Bug Fixes: Various stability improvements
- Countdown Timer: Display remaining time instead of elapsed time
- Automatic Stop: Test stops when timer reaches 00:00
- Version Updates: Enhanced compatibility and performance
Welcome to submit Issues and Pull Requests to improve this project!
- Describe problems or suggestions in detail
- Provide device model and Android version
- For bugs, include reproduction steps
- Fork this project
- Create a feature branch
- Commit your changes
- Create a Pull Request
This project is licensed under the MIT License.
ahui3c (ε»ιΏθΌ)
- Website: https://ahui3c.com
- Expertise: Android Development, Tech Reviews, Technology Writing
Thanks to all testing users for their feedback and suggestions, making this application continuously improved.
If you encounter problems during use, please:
- Check the usage instructions in this README
- Search existing Issues
- Submit a new Issue describing the problem
- 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.


