简体   繁体   中英

How can I fake a location for my wear OS device?

I am looking for a way to fake the location for my android wear OS device in order to debug my app. I am talking about a real physical device, not the emulator.

You may connect with adb to your Wear device and then mock location :

adb shell appops set <PACKAGE> android:mock_location allow

There is a ready solution on github

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM