-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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 #7404
Comments
Should be fixed by appium/appium-android-driver#219 |
Please try the recent 1.6.4-beta and let us know if there are still any problems there |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
@rompic commented on Fri Jun 10 2016
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?
@rompic commented on Fri Jun 10 2016
@rompic commented on Fri Jun 10 2016
appium logs: https://gist.github.com/rompic/dd05b209a8e8eff7238e058402237ab9
@SrinivasanTarget commented on Fri Jun 10 2016
Can you please try the same in API Level 21 or lesser than 22 and update us?
@rompic commented on Fri Jun 10 2016
can do (again).. guess it is the same as appium/java-client#407
@rompic commented on Fri Jun 10 2016
on API level 21 I get:
06-10 14:09:13.599: W/ActivityManager(1484): Unable to start service Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=io.appium.settings/.LocationService (has extras) } U=0: not found
in the android log
@rompic commented on Fri Jun 10 2016
may that's also why it doesn't work on API level 21
@imurchie commented on Fri Jun 10 2016
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.
@rompic commented on Sat Jun 11 2016
i just noticed that allow mock locations is not enabled by default in the api level 22 nexus 5 emulators (with google api).
it works after activating this setting.
however no luck with api level 21.
@rompic commented on Sat Jun 11 2016
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
Starting service: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=io.appium.settings/.LocationServiceam (has extras) }
Error: Not found; no service started.
@rompic commented on Sat Jun 11 2016
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.
06-10 15:38:16.747: W/PackageManager(1484): Attempt to re-install io.appium.settings without first uninstalling.
the problem could be that https://github.com/appium/io.appium.settings/blob/master/AndroidManifest.xml#L32 still has version 1.0 ?
@rompic commented on Sat Jun 11 2016
maybe this should be true otherwise? https://github.com/appium/appium-android-driver/blob/19e31eb7c79f8b84bf6f29d1edd6ec78f0404863/lib/android-helpers.js#L332
@rompic commented on Sat Jun 11 2016
for completeness: setting locations also works on Api 23 after sleecting the app in the developer settings to allow setting mock locations.
The text was updated successfully, but these errors were encountered: