Skip to content

A very convenient Android auxiliary development tool that can display screenshots in real time, get a list of Android devices, get device information, get the current window and all activities and other useful functions

Notifications You must be signed in to change notification settings

lichi0206/androidViewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android Viewer

[中文|English]

Summary

This is an Android development assistant tool, which contains the following functions:

  • Real-time screenshot from device (No need to install any apps or services on your mobile phone, so it may be a bit high latency).
  • List all connected Android devices.
  • Print device information (Android version, Device name, Device model, Device brand etc.)
  • Print the current device focus window information (App Activity and App Package).
  • Print all active application information in the background (App Activity and App Package).
  • Wake up device (Support wake up using PIN).
  • Install apps remotely
  • Normal screenshot

There are several reasons why such a tool is made:

  • Due to the new crown pneumonia in 2020, I started to work remotely, but the equipment is still in the company.
  • Most of the mobile products we develop are hybrid applications, and we need such a tool to assist development.
  • Automated test developers also need such an auxiliary tool to help development.

Prerequest

The Android viewer is developed using Java, and based on ADB tools, so you need to download and install following prerequests:

  • Download and install JDK 1.8+, configure environment variables is also a request, you can refer this page to complete the installation and configuration.
  • Download and install Android SDK, also, configure environment variables is a request, you can refer this page to complete the configuration.

Please make sure you install and configure above two request correctly, to make sure you finish the configurations, you can using the following command to test.

Test JDK

  • Open command line tool, for Windows 10, you can use Ctrl + R + cmd to open the command line tool.

  • java -version
    javac -version
  • IF the correct version number is printed, the configuration is successfully.

Test Android SDK

  • Open command line tool

  • adb version
  • IF the correct version number is printed, the configuration is successfully.

Features

Real-time screenshot

No need to install any apps or services on mobile devices, this is one of its advantages, but also because of this, there may be some delay in taking screenshots.

List all connected android devices

Print Device information

The basic information of the selected device will be printed out, including:

  • Android version
  • SDK version
  • Device Brand
  • Device name
  • Device model
  • Device manufacturer
  • Locale

Current Focus window information

This is very helpful for automation developers. They often need to get appActivity and appPackage information of different applications. This function can easily print out the relevant information of the applications currently running on the device.

All background active apps

Will print out all relevant information of applications running in the background.

Wake up device

Support the following two wakeup methods:

  • Wake up without password
  • Wake up with PIN

Note: Some specific devices have not yet passed the "Wake up with PIN" test.

Install APP remotely

Support remote installation of applications ending in "apk".

Reference tools

JavaFX Scene Builder

Version 2.0: https://www.oracle.com/java/technologies/javafxscenebuilder-1x-archive-downloads.html

Version 8.0: https://gluonhq.com/products/scene-builder/

JFoeniX

http://www.jfoenix.com/

About

A very convenient Android auxiliary development tool that can display screenshots in real time, get a list of Android devices, get device information, get the current window and all activities and other useful functions

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages