-
-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ACCESS_MOCK_LOCATION #154
Comments
Can you please try the same in API Level 21 or lesser than 22 and update us? |
can do (again).. guess it is the same as appium/java-client#407 |
on API level 21 I get: in the android log |
may that's also why it doesn't work on API level 21 |
The app has mock location access on (see https://github.com/appium/io.appium.settings/blob/master/AndroidManifest.xml#L32). Not sure why it is failing. |
i just noticed that allow mock locations is not enabled by default in the api level 22 nexus 5 emulators (with google api). however no luck with api level 21. |
i can start the service via adb shell on api level 22 but not on 21 am startservice -e longitude 1 -e latitude 2 io.appium.settings/.LocationService |
i manually uninstalled the appium settings app from the emulator and it seems that a newer version was installed by appium now. it now also works on api level 21. However Appium should propably check the version. the problem could be that https://github.com/appium/io.appium.settings/blob/master/AndroidManifest.xml#L32 still has version 1.0 ? |
maybe this should be true otherwise? appium-android-driver/lib/android-helpers.js Line 332 in 19e31eb
|
for completeness: setting locations also works on Api 23 after sleecting the app in the developer settings to allow setting mock locations. |
Issue moved to appium/appium #7404 via ZenHub |
When I try to set a mock location on an emulator (Nexus_5_API_22) the appium settings is killed and I get the following info in the emulator log:
I'm running appium 1.5.3 on MacOSX 10.11.5
any hints?
The text was updated successfully, but these errors were encountered: