codenameone / CodenameOne

Cross-platform framework for building truly native mobile apps with Java or Kotlin. Write Once Run Anywhere support for iOS, Android, Desktop & Web.

Home Page:https://www.codenameone.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How avoid ACCESS_MOCK_LOCATION in android side?

DurankGts opened this issue · comments

commented
  <uses-permission
        android:name="android.permission.ACCESS_MOCK_LOCATION"
        android:required="false" />

this permission is generated in your final generated source code. Could you tell me how avoid this permission in my final app?

other issue is that you are duplicating this permission in the androidManifiest.xml

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />

<uses-feature
    android:glEsVersion="0x00020000"
    android:required="true" />

Use the build hint: android.mockLocation=false.