# Crash Report Check

# Android

# Instruction

Before changing the package version of the project or before the project is launched, it is necessary to check the Crasheye report on the Android side, and use the root machine to manually trigger a crash to check whether the crash information can be collected normally on the Crasheye platform.

# Require

  • A rooted phone
  • adb tool(Web search ADB tool to download)

# Step

Step1: Get the pid of the application(For example, the package path of the application under test is:com.xsj.jxsj3.xsj)

 >adb shell pidof com.xsj.jxsj3.xsj

Step2:Crash the app with root privileges(For example, the pid of the application under test is:34001)

> adb shell
$ su
$ kill -11 34001

# ADB Installation

  1. First, click "Start" in the lower left corner of the computer, enter "cmd" in the command window, and press Enter.

  2. After the above operations are completed, enter the command prompt interface. It can be seen that the default environment variable path is“C:\Users\Administrator”.

  3. Copy the adb tool to the above path

    • Notice,It is to copy the path directly, do not put it in a folder and copy it as a whole
  4. Close the command prompt window and reopen it (that is, repeat the first step), enter adb in the command prompt, and press Enter, a lot of adb debugging related help information will be printed in the command prompt. At this point, adb can be used normally!

# iOS

# Instruction

Before changing the package version or the project online, you need to check the Crasheye report on the iOS side, use the root machine to manually trigger a crash, and check whether the crash information can be collected normally on the Crasheye platform.

# Require

  1. A jailbroken iOS device

  2. Prepare the software:cydia

    • Jailbroken phones have openssh installed by default (openssh cannot be installed, try jailbreaking again)

# Operate

# Method 1: Use a data cable to connect the computer and mobile phone (connect to wifi, make sure that the mobile phone and computer are under the same network)

  1. Openssh connect to phone:

    • win+r,Enter cmd to bring up the command window, enter: ssh root@mobile ip

    • enter password:alpine

  2. Get process ID

    • Open the app you want to extract and let it run in the foreground (kill all apps, then open the target app)

    • Enter ps -ef to get the process

    • Extract the process number (corresponding to the PID, the method for determining the PID: the relevant information is followed by the project name)

  3. Trigger crash:

    • Enter:kill -6 Process ID. trigger crash

# Method two

  1. Use the trigger crash GM command provided by the project team to verify whether the stack can be parsed normally
Last Updated: 6/28/2022, 3:28:16 PM