{"id":311449,"date":"2020-10-14T15:00:24","date_gmt":"2020-10-14T15:00:24","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=311449"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2020-10-14T15:00:24","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=311449","title":{"rendered":"\u0412\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0433\u0435\u043e\u043b\u043e\u043a\u0430\u0446\u0438\u044e \u043e\u0442 Huawei \u0432 Android \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/521806\/\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/9a\/b3\/re\/9ab3refnwovr3kedb9wcxupkg7o.png\" alt=\"image\"><\/p>\n<p>  <\/p>\n<p>\u0412 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u043c\u044b <a href=\"https:\/\/habr.com\/ru\/post\/520226\/\">\u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0438 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430<\/a> \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Huawei Mobile Services \u0438 \u043f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u043a \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e. \u0418 <a href=\"https:\/\/habr.com\/ru\/post\/521804\/\">\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0443 \u043e\u0442 Huawei<\/a> \u0432\u043c\u0435\u0441\u0442\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0430 \u043e\u0442 Google. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0433\u0435\u043e\u043b\u043e\u043a\u0430\u0446\u0438\u0438 \u043e\u0442 Huawei.<\/p>\n<p>  <\/p>\n<p>\u0412\u043e\u0442 \u043f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0442\u0430\u0442\u0435\u0439 \u0438\u0437 \u0446\u0438\u043a\u043b\u0430:<\/p>\n<p>  <\/p>\n<ol>\n<li>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u043f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u0434 \u043a \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044e. <a href=\"https:\/\/habr.com\/ru\/post\/520226\/\">\u0442\u044b\u043a<\/a><\/li>\n<li>\u0412\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c Huawei Analytics. <a href=\"https:\/\/habr.com\/ru\/post\/521804\/\">\u0442\u044b\u043a<\/a><\/li>\n<li>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0433\u0435\u043e\u043b\u043e\u043a\u0430\u0446\u0438\u044e \u043e\u0442 Huawei. \u2190 \u0432\u044b \u0442\u0443\u0442<\/li>\n<li>Huawei maps. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0432\u043c\u0435\u0441\u0442\u043e Google maps \u0434\u043b\u044f AppGallery.<\/li>\n<\/ol>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h3 id=\"kak-dolzhen-vyglyadet-kod-v-uzhe-gotovom-proekte\">\u041a\u0430\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043a\u043e\u0434 \u0432 \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435<\/h3>\n<p>  <\/p>\n<p>\u0418\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0431\u0443\u0434\u0435\u043c, \u043e\u043f\u044f\u0442\u044c \u0442\u0430\u043a\u0438, \u0438\u0437 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0443 \u0432\u0430\u0441 \u0433\u0435\u043e\u043b\u043e\u043a\u0430\u0446\u0438\u044f \u0434\u043b\u044f \u0433\u0443\u0433\u043b\u0430 \u0441\u0434\u0435\u043b\u0430\u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<p>1) \u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0435\u0433\u043e \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <code>RxPermissions<\/code> \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">class PermissionsHelper {      private var rxPermissions: RxPermissions? = null      \/**      * \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0432 Activity#onCreate      *\/     fun attach(activity: FragmentActivity) {         rxPermissions = RxPermissions(activity)     }      \/**      * \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0432 Activity#onDestroy      *\/     fun detach() {         rxPermissions = null     }      fun requestPermission(vararg permissionName: String): Single&lt;Boolean&gt; {         return rxPermissions?.request(*permissionName)             ?.firstOrError()             ?: Single.error(                 IllegalStateException(&quot;PermissionHelper is not attached to Activity&quot;)             )     } }<\/code><\/pre>\n<p>  <\/p>\n<p>2) \u0421\u043e\u0437\u0434\u0430\u043d \u0441\u0432\u043e\u0439 \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">data class Location(     val latitude: Double,     val longitude: Double ) {     companion object {         val DEFAULT_LOCATION = Location(59.927752, 30.346944)     } }<\/code><\/pre>\n<p>  <\/p>\n<p>3) \u0421\u043e\u0437\u0434\u0430\u043d\u0430 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u044f \u043d\u0430\u0434 \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u043e\u043c \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">interface FusedLocationClient {      fun checkPermissions(): Single&lt;Boolean&gt;      fun getLastLocation(): Single&lt;Location&gt;      fun requestLastLocation(): Single&lt;Location&gt; }<\/code><\/pre>\n<p>  <\/p>\n<p>4) \u0418 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">class LocationGateway(     private val fusedLocationClient: FusedLocationClient ) {      fun requestLastLocation(): Single&lt;Location&gt; {         return fusedLocationClient.checkPermissions()             .flatMap { granted -&gt;                 if (granted) {                     fusedLocationClient.getLastLocation()                         .onErrorResumeNext(fusedLocationClient.requestLastLocation())                 } else {                     Single.just(Location.DEFAULT_LOCATION) \/\/ \u0438\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0443 \u043a\u0438\u0434\u0430\u0435\u043c \u043a\u0430\u043a\u0443\u044e-\u0442\u043e                 }             }     } }<\/code><\/pre>\n<p>  <\/p>\n<h3 id=\"ispolzuem-raznye-realizacii-opredeleniya-geolokacii\">\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0440\u0430\u0437\u043d\u044b\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0433\u0435\u043e\u043b\u043e\u043a\u0430\u0446\u0438\u0438<\/h3>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b\u0448\u0435\u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0435 \u0432\u0435\u0440\u043d\u043e \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f, \u0442\u043e \u043a\u0430\u043a \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u043e\u0439 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f 2 \u0440\u0430\u0437\u043d\u044b\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 <code>FusedLocationClient<\/code> \u2014 <code>FusedLocationClientImpl<\/code>:<\/p>\n<p>  <\/p>\n<p>1) \u0412 \u043f\u0430\u043f\u043a\u0435 <code>src\/huawei\/kotlin\/com\/example<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">class FusedLocationClientImpl(     private val permissionsHelper: PermissionsHelper,     context: Context ) : FusedLocationClient {      private val fusedLocationClient = LocationServices.getFusedLocationProviderClient(context)      override fun checkPermissions(): Single&lt;Boolean&gt; {         val permissions = mutableListOf(Manifest.permission.ACCESS_FINE_LOCATION)         \/\/ Add this permission too after API=28 if you want to receive location in background         \/\/ if (Build.VERSION.SDK_INT &gt; Build.VERSION_CODES.P) {         \/\/     permissions += Manifest.permission.ACCESS_BACKGROUND_LOCATION         \/\/ }         return permissionsHelper.requestPermission(*permissions.toTypedArray())     }      override fun getLastLocation(): Single&lt;Location&gt; {         return Single.create { singleEmitter -&gt;             fusedLocationClient.lastLocation                 .addOnFailureListener {                     if (singleEmitter.isDisposed) return@addOnFailureListener                      singleEmitter.onError(it)                 }                 .addOnSuccessListener { newLocation -&gt;                     if (singleEmitter.isDisposed) return@addOnSuccessListener                      if (newLocation == null) {                         singleEmitter.onError(UnknownLocationException())                     } else {                         singleEmitter.onSuccess(                             Location(                                 newLocation.latitude,                                 newLocation.longitude                             )                         )                     }                 }         }     }      override fun requestLastLocation(): Single&lt;Location&gt; {         return Single.create { singleEmitter -&gt;              val locationRequest = LocationRequest.create()                 .setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY)                 .setInterval(5000)                 .setSmallestDisplacement(5.5F)                 .setNumUpdates(1)              val callback = object : LocationCallback() {                 override fun onLocationResult(result: LocationResult) {                     if (singleEmitter.isDisposed) return                      singleEmitter.onSuccess(                         Location(                             result.lastLocation.latitude,                             result.lastLocation.longitude                         )                     )                 }             }              fusedLocationClient.requestLocationUpdates(locationRequest, callback, null)              singleEmitter.setCancellable {                 fusedLocationClient.removeLocationUpdates(callback)             }         }     } }<\/code><\/pre>\n<p>  <\/p>\n<p>2) \u0412 \u043f\u0430\u043f\u043a\u0435 <code>src\/google\/kotlin\/com\/example<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">class FusedLocationClientImpl(     private val permissionsHelper: PermissionsHelper,     context: Context ) : FusedLocationClient {      private val fusedLocationClient = LocationServices.getFusedLocationProviderClient(context)      override fun checkPermissions(): Single&lt;Boolean&gt; {         val permissions = mutableListOf(Manifest.permission.ACCESS_FINE_LOCATION)         \/\/ Add this permission too after API=28 if you want to receive location in background         \/\/ if (Build.VERSION.SDK_INT &gt; Build.VERSION_CODES.P) {         \/\/     permissions += Manifest.permission.ACCESS_BACKGROUND_LOCATION         \/\/ }         return permissionsHelper.requestPermission(*permissions.toTypedArray())     }      @SuppressLint(&quot;MissingPermission&quot;)     override fun getLastLocation(): Single&lt;Location&gt; {         return Single.create { singleEmitter -&gt;             fusedLocationClient.lastLocation                 .addOnFailureListener {                     if (singleEmitter.isDisposed) return@addOnFailureListener                      singleEmitter.onError(it)                 }                 .addOnSuccessListener { newLocation -&gt;                     if (singleEmitter.isDisposed) return@addOnSuccessListener                      if (newLocation == null) {                         singleEmitter.onError(UnknownLocationException())                     } else {                         singleEmitter.onSuccess(                             Location(                                 newLocation.latitude,                                 newLocation.longitude                             )                         )                     }                 }         }     }      @SuppressLint(&quot;MissingPermission&quot;)     override fun requestLastLocation(): Single&lt;Location&gt; {         return Single.create { singleEmitter -&gt;              val locationRequest = LocationRequest.create()                 .setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY)                 .setInterval(5000)                 .setSmallestDisplacement(5.5F)                 .setNumUpdates(1)              val callback = object : LocationCallback() {                 override fun onLocationResult(result: LocationResult) {                     if (singleEmitter.isDisposed) return                      singleEmitter.onSuccess(                         Location(                             result.lastLocation.latitude,                             result.lastLocation.longitude                         )                     )                 }             }              fusedLocationClient.requestLocationUpdates(locationRequest, callback, null)              singleEmitter.setCancellable {                 fusedLocationClient.removeLocationUpdates(callback)             }         }     } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043c\u043f\u043e\u0440\u0442\u0430\u043c\u0438)<\/p>\n<p>  <\/p>\n<p>\u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0441 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u043e\u0439, \u0432 DI \u0431\u0438\u043d\u0434\u0438\u043c \u0434\u043b\u044f \u0442\u0438\u043f\u0430 <code>FusedLocationClient<\/code> \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 <code>FusedLocationClientImpl<\/code>. \u0414\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0431\u043e\u0440\u043e\u043a \u0431\u0443\u0434\u0435\u0442 \u0432\u0437\u044f\u0442\u0430 \u0442\u0430 \u0438\u043b\u0438 \u0438\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f.<br \/>  \u041d\u0443 \u0438 \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">dependencies {   huaweiImplementation 'com.huawei.agconnect:agconnect-core:1.3.1.300'   huaweiImplementation 'com.huawei.hms:location:5.0.0.301'    googleImplementation 'com.google.android.gms:play-services-location:17.0.0' }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418 \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044e \u0432 \u0444\u043e\u043d\u0435 \u0435\u0441\u043b\u0438 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0430! \u0415\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u0435 <code>AndroidManifest.xml<\/code> \u2014 \u0442\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u044d\u0442\u043e\u0442 \u043f\u0443\u043d\u043a\u0442 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442 \u2014 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0435\u0433\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">&lt;manifest xmlns:android=&quot;http:\/\/schemas.android.com\/apk\/res\/android&quot;     package=&quot;com.example&quot;&gt;      &lt;uses-permission android:name=&quot;android.permission.ACCESS_BACKGROUND_LOCATION&quot; \/&gt; &lt;\/manifest&gt;<\/code><\/pre>\n<p>  <\/p>\n<h3 id=\"podvodnye-kamni\">\u041f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0435 \u043a\u0430\u043c\u043d\u0438<\/h3>\n<p>  <\/p>\n<p>\u041d\u0430\u0434\u043e \u0438\u043c\u0435\u0442\u044c \u0432 \u0432\u0438\u0434\u0443, \u0447\u0442\u043e \u0433\u0435\u043e\u043b\u043e\u043a\u0430\u0446\u0438\u044f \u043e\u0442 Huawei \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u0440\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445:<\/p>\n<p>  <\/p>\n<ol>\n<li>\u0423 \u0432\u0430\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b Huawei Mobile Services \u043d\u0430 \u0434\u0435\u0432\u0430\u0439\u0441\u0435.<\/li>\n<li>\u0418\u043c \u0432\u044b\u0434\u0430\u043d\u044b \u043d\u0443\u0436\u043d\u044b\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f.<\/li>\n<\/ol>\n<p>  <\/p>\n<h3 id=\"dalshe---vstraivaem-karty\">\u0414\u0430\u043b\u044c\u0448\u0435 \u2014 \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043a\u0430\u0440\u0442\u044b<\/h3>\n<p>  <\/p>\n<p>\u0421 \u0433\u0435\u043e\u043b\u043e\u043a\u0430\u0446\u0438\u0435\u0439 \u043c\u044b \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c, \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u043a\u0430\u0436\u0435\u043c \u043a\u0430\u043a \u0432\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043a\u0430\u0440\u0442\u044b \u043e\u0442 Huawei \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0443\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0430\u043d\u0430\u043b\u043e\u0433 \u043e\u0442 Google.<\/p>\n<p>  <\/p>\n<p>\u0412\u0435\u0441\u044c \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0435\u0441\u0442\u044c \u0432 \u044d\u0442\u043e\u043c \u0446\u0438\u043a\u043b\u0435 \u0441\u0442\u0430\u0442\u0435\u0439 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u043d\u0430 GitHub. \u0412\u043e\u0442 \u0441\u0441\u044b\u043b\u043a\u0430: <a href=\"https:\/\/github.com\/MobileUpLLC\/huawei_and_google_services\" rel=\"nofollow\">https:\/\/github.com\/MobileUpLLC\/huawei_and_google_services<\/a>.<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/521806\/\"> https:\/\/habr.com\/ru\/post\/521806\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/521806\/\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/9a\/b3\/re\/9ab3refnwovr3kedb9wcxupkg7o.png\" alt=\"image\"><\/p>\n<p>  <\/p>\n<p>\u0412 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u043c\u044b <a href=\"https:\/\/habr.com\/ru\/post\/520226\/\">\u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0438 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430<\/a> \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Huawei Mobile Services \u0438 \u043f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u043a \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e. \u0418 <a href=\"https:\/\/habr.com\/ru\/post\/521804\/\">\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0443 \u043e\u0442 Huawei<\/a> \u0432\u043c\u0435\u0441\u0442\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0430 \u043e\u0442 Google. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0433\u0435\u043e\u043b\u043e\u043a\u0430\u0446\u0438\u0438 \u043e\u0442 Huawei.<\/p>\n<p>  <\/p>\n<p>\u0412\u043e\u0442 \u043f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0442\u0430\u0442\u0435\u0439 \u0438\u0437 \u0446\u0438\u043a\u043b\u0430:<\/p>\n<p>  <\/p>\n<ol>\n<li>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u043f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u0434 \u043a \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044e. <a href=\"https:\/\/habr.com\/ru\/post\/520226\/\">\u0442\u044b\u043a<\/a><\/li>\n<li>\u0412\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c Huawei Analytics. <a href=\"https:\/\/habr.com\/ru\/post\/521804\/\">\u0442\u044b\u043a<\/a><\/li>\n<li>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0433\u0435\u043e\u043b\u043e\u043a\u0430\u0446\u0438\u044e \u043e\u0442 Huawei. \u2190 \u0432\u044b \u0442\u0443\u0442<\/li>\n<li>Huawei maps. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0432\u043c\u0435\u0441\u0442\u043e Google maps \u0434\u043b\u044f AppGallery.<\/li>\n<\/ol>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-311449","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/311449","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=311449"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/311449\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=311449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=311449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=311449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}