Android GoogleMaps not working on some devices shows java.lang.SecurityException: need INSTALL_LOCATION_PROVIDER permission -


i trying make map application googlemap coordinate of location , reverse geocoding. i'd tried run in lenovo a7000plus, ran without trouble.

somehow, test application xiaomi same android marshmallow, maps not working @ all. error reports :

07-28 14:04:01.144 19465-19465/? e/networklocationprovider: exception                                                             java.lang.securityexception: need install_location_provider permission, or uid of bound location provider                                                                 @ android.os.parcel.readexception(parcel.java:1620)                                                                 @ android.os.parcel.readexception(parcel.java:1573)                                                                 @ android.location.ilocationmanager$stub$proxy.reportlocation(ilocationmanager.java:1281)                                                                 @ com.android.location.provider.locationproviderbase.reportlocation(locationproviderbase.java:136)                                                                 @ com.amap.android.location.v.handlemessage(unknown source)                                                                 @ android.os.handler.dispatchmessage(handler.java:102)                                                                 @ android.os.looper.loop(looper.java:148)                                                                 @ android.app.activitythread.main(activitythread.java:5441)                                                                 @ java.lang.reflect.method.invoke(native method)                                                                 @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:738)                                                                 @ com.android.internal.os.zygoteinit.main(zygoteinit.java:628) 07-28 14:04:01.164 19465-19465/? e/networklocationprovider: exception                                                             java.lang.securityexception: need install_location_provider permission, or uid of bound location provider                                                                 @ android.os.parcel.readexception(parcel.java:1620)                                                                 @ android.os.parcel.readexception(parcel.java:1573)                                                                 @ android.location.ilocationmanager$stub$proxy.reportlocation(ilocationmanager.java:1281)                                                                 @ com.android.location.provider.locationproviderbase.reportlocation(locationproviderbase.java:136)                                                                 @ com.amap.android.location.v.handlemessage(unknown source)                                                                 @ android.os.handler.dispatchmessage(handler.java:102)                                                                 @ android.os.looper.loop(looper.java:148)                                                                 @ android.app.activitythread.main(activitythread.java:5441)                                                                 @ java.lang.reflect.method.invoke(native method)                                                                 @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:738)                                                                 @ com.android.internal.os.zygoteinit.main(zygoteinit.java:628) 

also, here's implemented manifest

<uses-sdk android:minsdkversion="14" />  <permission     android:name="com.myapps.permission.maps_receive"     android:protectionlevel="signature" />  <uses-permission android:name="com.myapps.permission.maps_receive" /> <uses-permission android:name="com.google.android.providers.gsf.permission.read_gservices" /> <uses-permission android:name="android.permission.access_coarse_location" /> <uses-permission android:name="android.permission.access_fine_location" /> <uses-permission android:name="android.permission.access_network_state" /> <uses-permission android:name="android.permission.camera" /> <uses-permission android:name="android.permission.internet" /> <uses-permission android:name="android.permission.read_external_storage" /> <uses-permission android:name="android.permission.read_phone_state" /> <uses-permission android:name="android.permission.receive_boot_completed" /> <uses-permission android:name="android.permission.wake_lock" /> <uses-permission android:name="android.permission.write_external_storage" />  <uses-feature android:name="android.hardware.camera" /> <uses-feature android:name="android.hardware.camera.autofocus" /> <uses-feature     android:glesversion="0x00020000"     android:required="true" /> 

could me how solve issue ?

**edit : ** i've put runtime permission on code, since phone used including lenovo a7000 marshmallow. somehow won't work in xiaomi phone same version of android

from api 23 need request dangerous permissions @ runtime check link how request dangerous @ runtime https://developer.android.com/training/permissions/requesting.html or in build.gradle file change target sdk level 22


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -