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
Post a Comment