android - Is there an ADB command to toggle Allow Mock Locations? -


i've searched through topics haven't found answer. need not specify lat/long turn switch of allowing mock locations.

in marshmallow (and above) after have installed app, run:

adb shell appops set com.example.my.package android:mock_location allow 

hope helps!

some internals: string android:mock_location resolved appopsmanager actual int , executed.


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -