Small knowledge, big challenge! This paper is participating in theEssentials for programmers”Creative activities.

This paper has participated inProject DigginTo win the creative gift package and challenge the creative incentive money.

preface

We have a comprehensive understanding and learning of Android system iteration and system architecture in Android system analysis.

Android system mainly has five architectures. For users, we can contact the application layer and application interface layer at most. Developing and testing these APKs has become our daily work content.


How can I debug and test quickly?


Summary of some daily work, test APK commonly used serial tools, let’s take a look at the outline ~

1. What is a serial port tool?

As we all know, the Android system is developed and designed based on the Linux kernel. We can use serial tools to receive data information related to the device on the PC.

Definition of serial ports

Serial port is the abbreviation of serial interface, commonly known as COM interface in colloquialism, is the serial communication mode of the extension interface.

Serial interface is to transmit data by bit, and the connection is also very simple. Two-way communication can be realized with the equipment through a serial cable (male – female head)

Serial port Tool

It connects a PC and a mobile device through USB (serial port communication). It can enter the background of the device through the terminal to receive and view the running logs of the device

  • PC generally has multiple serial port names COM1,COM2… COMN
  • On a Windows PC, choose Control Panel > System Information > Components > Ports > View the serial port number connected to the device

2. MobaXterm (recommended)

MobaXterm is very powerful and free and open source.

More tutorials can be found on the MobaXterm website

Main functions of MobaXterm are as follows:

  • Supports SSH, RDP, FTP, and NVC connections

  • Support Linux commands (brash, cat, awk)

  • Serial port connection

    You can select Serial to create a serial port, select the port number and baud rate, set the location for saving serial port logs, and click OK to create a serial port

    Each serial port session is displayed in the TAB bar to the left of the session for future use

  • Support personalized Settings such as terminal font, right-click copy, file retention

    We can select -Setting from the Session home page to enter personalized Settings

3. Putty

Putty is a lightweight tool that supports SSH and serial port management functions. It is also an open source tool.

Download putty from the official download link

The Putty features:

  • Lightweight and open source, the entire software is less than 1M in size
  • Supports setting encoding and keyboard mapping
  • You can use PSFTP as an SFTP client
  • Puttygen generates and manages SSH certificates

However, because it is relatively small, the supported functions are also relatively limited

4. Termius

Termius is an SSH client for IOS.

It supports Windows, MAC, and Android operating systems

See the Termius website for detailed features

Termius features:

  • Open source
  • Supports all platforms, such as IOS, Android, Linux, and Windows
  • Have script fragment function, can send multiple hosts at the same time
  • Can support synchronization

However, Termius’s SFTP feature requires a fee to use

5. XShell

Xshell is a Linux connection management tool that supports SSH1, SSH2 and TELNET.

Xshell official website download

Xshell features:

  • Simple and convenient conversation
  • Remote file Management
  • Intuitive tabbed interface

However, Xshell charges for these features, which can be cumbersome for personal use

6. SecureCRT

SecureCRT is also a paid software that is similar to the Xshell tool

fromSecureCRT’s official websiteFunction is introduced

SecureCRT features:

  • Supports Windows, MAC, and Linux operating systems
  • You can highlight key log contents
  • A handy command manager simplifies repetitive tasks

Also, SecureCRT is not open source and is not recommended for individual users

7. Mac OS serial port tool

The previous tools are for Windows. There are two kinds of serial port tools commonly used in MAC OS.

On the MAC, make sure you have a serial port driver before using the serial port tool

Can be viewed in the computer information hardware – USB

  • If no driver is installed

    Download the MAC serial driver from this site and install it directly

Screen

Screen -l serial Baud rate of the file path -lCopy the code

Screen features:

  • The wire is connected to the equipment and the direct terminal is ready to use
  • To kill the process, press Ctrl+A and then Ctrl+K

minicom

First download and install Minicom via BREW

brew install minicom
Copy the code

conclusion

This issue, summarize the mobile terminal APK daily debugging test need to use serial tools, each tool function is similar, we can find more their own needs for their own tools.

XDM, what serial tools do you usually use?

Feel free to share in the comments section, and we’ll see you next time