设置GPS位置

来源:互联网 发布:电脑视频桌面软件 编辑:程序博客网 时间:2024/06/05 09:38
adb shell settings put secure location_providers_allowed gps,network
adb shell am start -a android.intent.action.SET_CUSTOM_MOCK_LOCATION -d gps://lat-long

 

For Android 6.0

To Enable use :

For GPS : adb shell settings put secure location_providers_allowed +gps

For Network : adb shell settings put secure location_providers_allowed +network

To Disable :

GPS : adb shell settings put secure location_providers_allowed -gps

For Network : adb shell settings put secure location_providers_allowed -network

原创粉丝点击