Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Virtual Device for Huawei Mobile Services

I want to apply HMS to my app. However, buying an actual Huawei phone is not on my shortlist. Does Huawei provide an Android Virtual Device for that purpose? If not, how to test if my implementation of HMS actually works?

like image 589
user1785730 Avatar asked Sep 13 '20 19:09

user1785730


People also ask

Is it necessary to install Android Virtual Device?

It's depend on you. There is some difference between AVD and phone. You can choose different SDK API and dpi on AVD, it really convenience when you want to test your app on different mobile phone. But be sure your OS have enough RAM to run AVD or your system will be very slow.

What is Android Virtual Device and why is it used?

An Android Virtual Device (AVD) is a configuration that defines the characteristics of an Android phone, tablet, Wear OS, Android TV, or Automotive OS device that you want to simulate in the Android Emulator. The Device Manager is an interface you can launch from Android Studio that helps you create and manage AVDs.

How do I get Android Virtual Device?

Run an Android app on the Emulator 1.1 Open the AVD Manager by clicking Tools > AVD Manager. 1.2 Click on Create Virtual Device, at the bottom of the AVD Manager dialog. Then Select Hardware page appears. 1.3 Select a hardware profile and then click Next.

Does Huawei support Google Mobile Services?

The Chinese company cannot conduct business with most US firms, including Google, except on the basis of a restrictive temporary license that has been renewed several times since May 2019. Given the circumstances, Huawei hasn't been able to launch new phones with Google Mobile Services (GMS).


3 Answers

Yes, Huawei do provide an Android Virtual Device called Cloud Debugging of AppGallery Connect to test your app for Huawei Devices.

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. Besides, 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.

Work with Cloud Debugging

  1. Sign in to AppGallery Connect and select My projects.
  2. Select an app to be tested.
  3. Go to Quality > Cloud Debugging.
  4. Filter devices by Series, Android version, EMUI version, and Resolution.
  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.
  6. Wait for the device initialization to finish.
  7. Click the Debugging tab.
  8. Click Upload to upload an APK.
  9. Check the APK upload progress and install the APK after the upload is complete.
  10. In the displayed dialog box indicating that the app is being installed, click OK. When the installation is complete, you can see the app icon on the device screen on the left.
  11. 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.

Check Screenshot below: cloud debugging

From: https://stackoverflow.com/a/63389096/13329100

like image 92
shirley Avatar answered Sep 27 '22 19:09

shirley


Yes, Huawei do provide an Android Virtual Device called Cloud Debugging of AppGallery Connect to test your app for Huawei Devices.

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. Besides, 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.

Work with Cloud Debugging

  1. Sign in to AppGallery Connect and select My projects.
  2. Select an app to be tested.
  3. Go to Quality > Cloud Debugging.
  4. Filter devices by Series, Android version, EMUI version, and Resolution.
  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.
  6. Wait for the device initialization to finish.
  7. Click the Debugging tab.
  8. Click Upload to upload an APK.
  9. Check the APK upload progress and install the APK after the upload is complete.
  10. In the displayed dialog box indicating that the app is being installed, click OK. When the installation is complete, you can see the app icon on the device screen on the left.
  11. 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.

Check Screenshot below: cloud debugging

From: https://stackoverflow.com/a/63389096/13329100

like image 9
zhangxaochen Avatar answered Oct 23 '22 17:10

zhangxaochen


If you don't have HMS device your side you can run HMS Application in three ways.

1. Huawei Cloud Debugging in App Gallery: In this method first we have to sign in App Gallery. You can see the article "Efficient integration of HMS open capabilities by using HUAWEI Cloud Debugging solution" for the step by step process of cloud debugging.

2. Cloud debugging through HMS ToolKit: Here first we have to install HMS Tool Kit plugin in Android Studio.You can use the article "Debug your application on any HMS Supported Model using HMS Toolkit Cloud Debugger - No Real Device Required" for step by step process.

3. Installing HMS Core App in your non HMS Device: You can install HMS Core app in your non HMS device. Once install it will ask to update the app. This will help you to run some Kits like awareness, ML, Ad etc in your device. Once we install we have to go to Settings->Apps and search for 'HMS Core'and grant the location or other permissions which are required.

Hope any of these method will help you.

like image 2
Nithin Avatar answered Oct 23 '22 16:10

Nithin