Search code examples
androidservicegpsbootcompleted

Why GPS based android app is not installing in Assisted-GPS (A-GPS) based android device?


It shows, Error states that "No eligible devices for app install"

Device specification is as follows,

Model : Lenovo A369i

Android OS Ver : 4.2.2

I am doing below permission in android mainfest file

<uses-permission android:name="android.permission.CLEAR_APP_CACHE" />
    <uses-permission android:name="com.ylogtrack.activity.permission.MAPS_RECEIVE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" />
    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
      <uses-permission android:name="android.permission.BLUETOOTH" />

plz suggest


Solution

  • From the specs found at GSM Arena - Lenovo A369i it states:

    A-GPS support only
    

    What that means it that the device doesn't have a distinct GPS component and is dependent on the mobile network for location.

    The permission

    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    

    Actually implies that a GPS is available and you could get location information without a network.

    ACCESS_FINE_LOCATION requires android.hardware.location.gps and android.hardware.location
    

    See: http://developer.android.com/guide/topics/manifest/uses-feature-element.html#permissions-features

    Since the store checks the permission and the device doesn't have GPS, your app is not visible.

    Try adding to your manifest:

    <uses-feature android:name="android.hardware.location.gps" android:required="false" />
    

    And see if that resolves the problem.