How to mock location without enabling setting
<p>I am looking for a way to be able to mock location without needing to use ACCESS_MOCK_LOCATION. I know that I need to have root, move app to the system. But when "allow mock location" setting is disabled, the app just crashes even when it's in system partition.</p>

<p>I'd be glad for tips for Lilipop and Marshmallow (as far as I learned, they work differently...)</p>