Implementing HMS services in the project
Huawei has an alternative for almost every Google service:
Push Kit. Sending push notifications to users.
Auth Service. In addition to the usual methods of authentication, here there is a login by Huawei ID.
Crash Service. Service for tracking app crashes.
Cloud Storage, Cloud DB. Storage of various files and database.
Location Kit. Getting the location of the user.
Analytics Kit. Analysis of statistical data.
In-App Purchases. In-App Purchase Service.
Cloud Testing, Cloud Debugging. Testing applications on remote Huawei devices.
This list could go on and on. Huawei has quite an extensive list of services. How to integrate them into our project?
First of all, we need to decide how we will implement the services. There are several options:
Fully replace GMS services with HMS services
Making combination of GMS and HMS services in one project
The HMS Toolkit plugin is helpful in this. It will help integrate HMS Core with minimum cost and high efficiency. Unfortunately, HMS Toolkit does not support conversion of all services, so it is better to check whether it can convert your services.
We need Convertor tool. It will analyze the project for GMS services and show the places where we should replace the code from GMS to HMS.
In the menu select HMS Convertor New Conversion:
2.In the appeared window indicate the directory where the project backup will be created before conversion.
3.Here the plugin shows us the analysis results of the project: which GMS services we have and which of them are convertible. We are also offered to check sdk version for compliance with HMS requirements.
At this step we have to choose a conversion strategy:
Add HMS API. Based on existing in the project GMS APIs XMS adapter is generated (as an additional module in the project). It represents a layer between our code and direct service call. These are such Extension-classes, in which the code that supports HMS and GMS services at the same time. At runtime, the type of services supported by the device is determined and the corresponding methods are called.
To HMS APIs. GMS APIs are completely replaced with HMS APIs.
4.After analyzing the project, we see a list of places in the code where we need to convert.
Clicking on each item will navigate to the file where the conversion will be offered:
If the Add HMS APIs method was chosen, we can look at the generated xms adapter. This, for example, is what the method from the ExtensionUser class looks like:
And here is the size of the xms adapter module when using only one API with user authentication:
As a result, the APK of our application is increased (old size. is APK application with only GMS, new size. APK with GMS and HMS at the same time):
Not to say that there is much of a difference, but if your application is going to use more than one API?
What is this resolution and what is its function
The ban on installing unknown apps serves as one tool to provide protection against malware that could be introduced into the Android system by installing infected.APK files. Without the necessary permission provided by the user himself, it is not possible to bypass this level of security.
Firmware based on Android 8.0 Oreo and later versions are equipped with an improved security system that includes a special settings section. It contains all applications and system processes that act as sources, from which the installation can be made.APK files.
This additional level of protection obliges users to give each required source a separate permission to install applications. For example, in order to install.APK files using a particular file manager, you must first allow it to perform this function.
How to install Google Play Huawei smartphones?
When the U.S. cut off Huawei‘s access to Google services and other U.S. developments, few believed it was serious. Many had hoped to the last that the U.S. government would ease sanctions and allow the company to resume installing the search giant’s services on its devices. Otherwise, the Chinese were taking a big risk, they would have to ensure the operation of branded gadgets themselves. Huawei, we must give her credit, prepared well.
How to install Instagram and other apps on Huawei
When buying a Huawei mobile gadget, it’s important to remember that it doesn’t have the usual Google Play store. Which means you’ll have to use workarounds to install your favorite apps. It’s easier to look at the Huawei AppGallery or use the Phone Clone and MyArs applications.
This official store from Huawei is originally installed in all Huawei phones. AppGallery is a fast-growing store, which every day is filled with new local and global applications. Huawei teams, scattered around the world, are working to ensure that the most well-known and important applications appear in the store.
For obvious reasons, the Huauwei AppGallery does not contain all popular solutions, but Instagram can be found there. But if you can’t find something there, you can put it on the Wishlist on the home page of the store and the Huawei team will pay attention to it.
This Huawei app makes it easy to switch from one mobile gadget to another, so does Instagram. This kind of information cloning is the fastest and safest way to import up to 80% of apps, plus you can transfer your passwords and settings.
Phone Clone is already installed in all Huauwei phones from the beginning, and it’s always available in Android and iOS phones. information about Phone Clone here.
To clone data and Instagram, open Phone Clone in both your new and old phone, and follow the instructions.
In Huawei AppGallery you can look at the Apps app, which will help you find something you couldn’t find (in case you need something other than Instagram).
Download Apps from AppGallery:
Select the desired application (for example, Instagram)
You will see a page with links to the platform, where you can download the application
First you should switch to the desktop editing mode. On the home screen, put two fingers together. Another option is to tap and hold your finger on the screen. As a result, 4 items will appear at the bottom of the display: “Wallpaper”, “Widgets”, “Navigation”, “Settings”. Select Widgets and go to the next step.
Now at the bottom you will see a list of all available widgets. You can scroll right/left.
The inscription under the widget 5×2, 1×1 means the area it occupies. The number in brackets means that this is a folder containing several types of widgets.
For example, select the Chrome widget and select Search. You can click on it and it will be automatically moved to the desktop, or you can drag it to the right place.
The search will now appear on the desktop and all that’s left is to exit edit mode. To do this, press the “Back” touch key or tap on the screen.
How to install familiar apps on Honor smartphones, even if they don’t have Google services
New Honor smartphones come out without support for Google services. But in reality this is not as serious a problem as it may seem at first. After all, the Chinese giant has its own AppGallery store, which is now developing at a huge pace. And there are also a couple of simple tricks that allow you to install even those programs that are not in the directory.
How to install Yandex services from AppGallery
Yandex makes the most popular online services in Russia and programs to work with them. Fortunately, all Yandex’s mobile applications have long been available in the AppGallery. Installing them is simple: launch AppGallery, type Yandex in the search box at the top, and in the list of results click Install next to the desired application.
You can also find a Yandex browser.Browser (it is no worse than Chrome, because it is based on the Chromium free part of Chrome), and Maps, and Mail, and Market, and Music. Yandex.Cab and Yandex.Drive is also present. In general, the entire ecosystem of the Russian network giant at your service.
How to use contactless payments with NFC
Google Pay is not the only way to pay in stores by putting your smartphone to the terminal. In fact, there are alternatives to this service.
For example, in AppGallery, there is the Wallet app. The app is intended for discount cards which now abound in so many banks that the wallet cannot hold them all. But it also learned contactless payment on NFC-enabled smartphones. Currently the application only works with MasterCard cards of eleven major banks (the list is on the site), but it is expected that the application will soon master Visa and Mir, and the list of banks will be expanded.
AppGallery offers to install Wallet when you first run it as part of a beginner’s kit, but that’s okay, if you missed that chance let’s create a new one and just find the app through a search using the word Wallet.
It’s not hard to add a new card: you can enter its number, expiration date, and CVV/CVC, but in general it’s easier just to put it on the phone, and all the data is read from the chip in the card. Then a short procedure of card activation follows (usually by the code from SMS from the bank).
And then everything works exactly the same way as with Google Pay. you don’t need to launch the application before paying, you just need to hold your phone to the terminal.
How to install Instagram, WhatsApp,
Perhaps these three apps are the only things missing from the AppGallery for real. But that doesn’t mean you can’t install them on your Honor smartphone.
There are many ways, but here we will talk about two. First, you can use archived installation APK files. There are many, and the largest ones already have a virus check and have never been seriously compromised. And, for example, APKPure has a client application, which also monitors the release of new versions of installed through it and offers to update them.
First you need to go from your smartphone to the apkpure website.com and download the app there, install it and give all the permissions. Run and use as a regular app store Instagram and WhatsApp are definitely there. The first time you install an APKPure, you may ask for permission to install the app itself.
Other popular distribution archives: APKMirror, APKCombo, Aurora Store.
But Honor has prepared another way of AppGo app.
How to install and use AppGo
AppGo is an application that contains programs that, for one reason or another, are not in the AppGallery (for example, if the developer is in the process of integrating the application or can not yet cooperate with this store).
AppGo makes it easy to get them: the “Install” button sends the user either to the developer’s site, where you can download the APK, or to a verified distribution archive. There is a handy catalog with descriptions, search and categories. The AppGo app itself can be downloaded from AppGallery.
How to use the Phone Clone app to transfer apps from your old smartphone to your new one
Finally, there is another way to install familiar apps on your new Honor smartphone simply by transferring them from your old one. If your previous device was of the same brand, you probably already have the necessary Phone Clone program installed. Otherwise, just download it from AppGallery, Google Play or the App Store.
Run the app on both smartphones. On the old one, you just need to select that it is an old device. On the new one that is new, and also indicate that the old one was a Huawei device (Honor is one of them, too).
The app will ask for a lot of permissions to access all sorts of data this is normal, it will be transferring this information after all. Then a QR code appears on the screen of the old device, you need to point the camera of the new smartphone at it, and then they will become friends.
After that you can choose which specific items will be cloned. In addition to the programs we came here for, Phone Clone can copy contacts, calendar and notes, photos and videos, voice recordings, messages and phone calls history.
Some things will be marked as non-migratable right away. You can’t migrate an app if it requires Google Mobile Services to work or is simply not compatible with your new smartphone.
The data is transferred via Wi-Fi, so the process is fast. When finished, if something didn’t transfer, Phone Clone will tell you what didn’t transfer and why.
Situation : lack of free space to install
Seemingly simple in this case. If a product requires, for example, 500 MB of memory to install, that’s how much you need to allocate to it on your smartphone. Unfortunately, but sometimes this cleanup is not enough. So it’s worth taking care that there is as much space as possible:
- Run through the list of everything stored and installed. Getting rid of the obviously unnecessary stuff;
- Clean the system cache to remove garbage;
- Move some items to a flash drive. For example, all photos, video and audio files can be dumped there. Why keep them in the main memory of the phone?
LZPlay (EMUI 10)
One of the most well-known ways to install Google services on Chinese brand cell phones. Using LZPlay, which allowed us to access GoogleFier, a well-known application that allows us to install Google apps on Huawei cell phones ,
This system automates the whole process thanks to a handy download button, which replaces our cell phone backup with another, allowing us to install the services of the Internet giant.
Googlefier bases its work on pressing the buttons marked with numbers that appear on the screen, and following the instructions offered by the application, which is responsible for setting up the cell phone and installing the various packages needed to transfer Google applications to your mobile device.
Unfortunately, LZPlay stopped working a few days after opening this method.
Installing apps on the Honor smartphone
New Honor smartphones come out without support for Google services. But in reality this is not as serious a problem as it may seem. The AppGallery store, which is now growing at a huge pace, offers a wide range of apps, creating competition to the giant. There are still a couple of simple tricks that allow you to install even those programs that are not in the catalog and we will consider them.
Yandex makes the most popular online services in Russia and programs to work with them. All of these mobile apps are in the AppGallery and installing them is simple: start AppGallery and in the search box, type “Yandex” and in the list of results click “Install” next to the desired application.
Yandex.The browser (it is based on Chromium, the free part of Chromium, and is not inferior to it) is also available for download, as are Maps, Mail, and Market and Music.
Yandex.Cab and Yandex.Drives are also present and can be downloaded in the AppGallery.
Alternative to Google Pay for contactless payment in stores. “Wallet”. The application is designed to store discount cards that do not fit into a real wallet and supports contactless payment on NFC-enabled smartphones. Now the application works with the cards of 40 banks-partners and allows you to pay for purchases around the world, where there is contactless payment. The application is preinstalled or there is an opportunity to install it through the AppGallery store.
In the application you need to register or sign in to your account. all cards will be restored in the new device. It’s easy to add a new card: enter its number, expiration date, and CVV/CVC. Or even easier to attach it to the phone, and all the data is read from the chip in the card. A short procedure of card activation (usually by the code from SMS from the bank) and everything is ready, but the difference is that there is no need to launch the application before paying, you just need to hold the phone to the terminal.
The second way is SberPay. a new way of fast and secure contactless payment from Sberbank. To start using SberPay, install “Sberbank Online” from the AppGallery and connect SberPay to your bank card (currently available for Visa cards). You can read more here.
Third way. Download the application “Yandex.Money” in AppGallery and follow the instructions.
Another option offered in the company store. Huawei Wallet app. It’s pre-installed on your device, no. can be downloaded from AppGallery. First you need to have a UnionPay card from one of the supported banks. Plans to launch support for a large number of bank cards (e.g., MasterCard).
These three apps are truly missing from the AppGallery, but this does not mean that they cannot be installed on Honor smartphones. There are many ways, but we will talk about two. You can use archives of APK installation files. There are many of them, and the biggest ones already have virus checks and have never been seriously compromised. For example, APKPure has a client application, which also monitors the release of new versions of programs installed through it and offers to update them.
How to Download Your Favorite Apps with the Huawei AppGallery (Step-by-Step Install Guide)
To connect you need to go with your smartphone to the apkpure site.com and download the app. After installing, give all permissions and run. Use ARKPure as a regular app store and download from here. Instagram and WhatsApp. For the first time APKPure may separately ask for additional permission. actually to install applications.
Other popular distribution archives: APKMirror, APKCombo, Aurora Store.
Only Honor has prepared another way. and it’s the AppGo app. AppGo is an application that contains programs that, for one reason or another, are not available in the AppGallery (for example, if the developer is in the process of integrating the application or cannot yet cooperate with this store).
AppGo makes it easy to get them: the “Install” button sends the user either to the developer’s site, where you can download the APK, or to a verified distribution archive. There is a convenient catalog with descriptions, search and categories. You can download the AppGo app itself from AppGallery.
Phone Clone app to transfer apps from your old smartphone to your new one
An easy way to install familiar apps on your new Honor smartphone is to simply transfer them from your old. If your old device was the same brand, then most likely you already have the necessary program Phone Clone. Otherwise, just download it from AppGallery, Google Play or App Store.
Run the app on both smartphones. On the old device choose that it is the old device, on the new one. the new one, and also indicate that the old device was a Huawei device (Honor also belongs to them).
The application will ask for a lot of permissions to access all kinds of data. this is necessary for the transfer of these applications to the new device.
After that you can choose which items will be cloned. In addition to programs, Phone Clone is able to transfer contacts, calendar and notebook entries, photos and videos, voice recordings, messages, call history.
Some things will immediately be marked as not transferable. You won’t be able to migrate the app if it requires Google Mobile Services to work or is simply incompatible with your new smartphone. Data transfer via Wi-Fi and very fast. When finished, if something has failed to be transferred, Phone Clone will tell you what things have failed.
Options for comfortable work with devices from Huawei and HONOR are many. Through HUAWEI AppGallery, Aurora Store, Petal Search, Installer, AppGo, tools APKPure, APKMirror, APKCombo you can download the most top applications. These tools offer a number of apps that you can download on the HUAWEI Mate 30 Pro, P40 lite, P40 lite E, P40, P40 Pro, Y8P, Y6P, Y5P or MediaPad M6, MatePad Pro, MatePad.
There are many ways to download applications to HUAWEI devices:
AppGallery. Huawei official app store. 2. Aurora Store. Store, where you can find absolutely all the applications. 3. Petal Search. Huawei’s official tool for finding and installing apps. 4. Installer. Includes some of the most popular apps. 5. Fast app transfer using the Phone Clone feature