Huawei Cloud Debugging

Eray Mekik
Huawei Developers
Published in
5 min readOct 16, 2020

What is cloud debugging?

Cloud Debugging tests your app using mainstream Huawei devices provided by Huawei. You can run your app on the latest and most popular Huawei devices to test app functions.

The testing experience is smooth and pleasant, like running an app on your own phone. The service is easy to use. You can perform operations such as rotating the screen, taking screenshots, and exporting logs.

Problems that developers are facing:

  • Developers do not have enough real devices for debugging their apps.
  • Purchasing real devices greatly increases the cost burden for developers.
  • Some models are missing or hard to purchase in the market.
  • The performance of Android native simulator are not satisfied.

Our strategy and solution:

  • To provide a large number of real devices for remote access by users on web pages, relying on the powerful cloud lab.
  • To build powerful mobile phone simulation capabilities, and provide Huawei emulators.

Debugging an App on a Real Device in Real Time

1. Sign in to AppGallery Connect and select My projects.

2. Select an app to be tested.

3. Go to Quality > Cloud Debugging. The available device list is displayed on the right.

4. Filter devices by Series, Android version, EMUI version, and Resolution. Move the cursor to an idle device and click Start debugging.

5. In the Apply for device model dialog box that is displayed, set Debug duration based on your needs. The options are 30 min, 1 h, and 2 h. Click OK.

6. Wait for the device initialization to finish.

7. Click the Debugging tab. The figure on the left shows the screen of the connected real device, including the power button, home button, menu button, and back button. The device operation area is on the right, in which you can perform operations such as uploading and installing an app package and checking logs. The time displayed in the upper right corner is the countdown of your test duration that starts when the device initialization is complete.

8. Click Upload to upload an APK. If you have uploaded APKs before, the apps are also displayed on this tab page. Click on the card of the target app to install it.

9. Check the APK upload progress and install the APK after the upload is complete.

10. Operate the device by moving or clicking your cursor on the device screen, or clicking the power button, home button, menu button, or back button. The device will respond like your own phone.

11. Click the question mark next to the device model to view the information about the device.

Releasing a Real Device

If you want to release a device in use but the test duration does not end, use either of the following methods.

Releasing a Real Device on the Occupied Device Tab Page

1. Click Stop debugging in the upper right corner of the Debugging tab page.

2. In the displayed dialog box, click OK. The device is released successfully and the device list is displayed.

Releasing a Real Device on the My info Tab Page

1. Click the My info tab and click next to the device to be released.

2. In the dialog box that is displayed, click OK. The real device is released successfully.

Viewing System Logs

1. Go to Debugging > Logs.

2. Click Obtain logs. You can view system logs in the log area.

3. (Optional) Filter logs by type (verbose, debug, info, warn, error, or assert) and click Export logs if required. The exported log information contains the Level, Time, PID, Tag, and Text fields.

Debugging Apps on Two Real Devices at the Same Time

You can debug apps on two real devices at the same time using one HUAWEI ID. Assume that you have applied for a device successfully.

  1. Click the Device models tab. The device list is displayed.
  2. Move the cursor to an idle device and click Start debugging

3. In the Apply for device model dialog box that is displayed, set Debug duration based on your needs and click OK.

4. Check device information on the Debugging tab page.

5. Click the My info tab. The two devices you have applied for are displayed.

6. Click in the Operation column next to the real device that you need to start debugging.

Extending the Use Duration

Remote Configuration provides a defualt use duration of 24 hours for each user. When your remaining duration is less than 2 hours, you can apply to extend the duration.

Go to My info and click Apply for more time. You can choose to extend the duration by 4 hours or 8 hours each time.

References:

--

--