【android adb命令行模拟GPS位置信息】

【android adb命令行模拟GPS位置信息】

adb命令查询已连接设备

adb devices

显示结果:

List of devices attached

smartdevhub.ecarx.com.cn:8225 device

使用adb命令获取GPS信息

adb shell dumpsys location

打开定位设置界面:

adb shell am start -a android.settings.LOCATION_SOURCE_SETTINGS

开启定位:

adb shell settings put secure location_providers_allowed +gps

关闭定位:

adb shell settings put secure location_providers_allowed -gps

查看定位方式:

adb shell settings get secure location_providers_allowed (前提是位置信息开启)

修改gps定位信息

使用adb emu命令执行设备的console命令geo fix,gps的经度和纬度

adb -s emulator-5554 emu geo fix 121.49612 31.24010

🎀 相关推荐

召唤师技能
体育365网投

召唤师技能

📅 08-14 👀 9820
针对中小企业数智化需求,新华三重磅发布 SMB 系列新品
怎样使用下载软件下载Rayfile文件(HTTP协议)