我是靠谱客的博主 安静歌曲,最近开发中收集的这篇文章主要介绍更改默认位置信息定位精度方式,默认关闭或打开位置信息,默认关闭GPS。息屏休眠电流问题,电流降不下去,测试排查是关掉无射频&和WIFI/GPS/FM/BT,没关干净。,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

更改默认位置信息定位精度方式,默认关闭或打开位置信息,默认关闭GPS:

S版本frameworks/base/packages/SettingsProvider/res/values/defaults.xml

默认为高精度

<!-- 0 == off, 3 == on -->

<integer name="def_location_mode">3</integer>

P版本以下

/frameworks/base/packages/SettingsProvider/res/values/defaults.xml

默认是仅限设备

<string name="def_location_providers_allowed" translatable="false">gps</string>

高精度是

<string name="def_location_providers_allowed" translatable="false">gps,network</string>

息屏休眠电流问题,电流降不下去,测试排查是关掉无射频&和WIFI/GPS/FM/BT,没关干净:

有宏控未关,除了ProjectConfig.mk这里面把相关的宏控关了,

# wifi only

CUSTOM_MODEM=

MTK_AGPS_APP = no

MTK_FD_SUPPORT = no

MTK_INCLUDE_MODEM_DB_IN_IMAGE = no

MTK_MD1_SUPPORT = 0

MTK_MULTI_SIM_SUPPORT = no

MTK_BUILD_IGNORE_IMS_REPO = yes

MTK_DYNAMIC_SBP_SUPPORT = no

MTK_PROTOCOL1_RAT_CONFIG = no

MTK_TB_WIFI_3G_MODE = WIFI_ONLY

MTK_TTY_SUPPORT = no

MTK_RAT_WCDMA_PREFERRED=no

MTK_EAP_SIM_AKA = no

MTK_SIM_RECOVERY = no

MTK_C2K_LTE_MODE = 0

MTK_CT_VOLTE_SUPPORT = no

MTK_VOLTE_SUPPORT = no

MTK_MULTIPLE_IMS_SUPPORT = 1

MTK_ETWS_SUPPORT = no

MTK_TELEPHONY_CONN_LOG_CTRL_SUPPORT = no

SIM_REFRESH_RESET_BY_MODEM = no

MTK_RILD_READ_IMSI = no

MTK_SIM_HOT_SWAP = no

MTK_EMBMS_SUPPORT = no

MTK_OMAPI_SUPPORT = no

MTK_ECCCI_C2K = no

MTK_CMAS_SUPPORT = no

MTK_SIM_HOT_SWAP_COMMON_SLOT = no

MTK_MCIF_WIFI_SUPPORT = no

MTK_NUM_MODEM_PROTOCOL = 0

MTK_TB_WIFI_3G_MODE = WIFI_ONLY





MTK_GPS_SUPPORT = no

MTK_WLAN_SUPPORT = no

MTK_WAPI_SUPPORT = no

MTK_BT_SUPPORT = no

MTK_BT_HOST_SNOOP_LOG_SUPPORT = no

MSSI_MTK_BT_HOST_SNOOP_LOG_SUPPORT = no

MTK_BT_INTEROP_EXTENSION = no

MSSI_MTK_BT_INTEROP_EXTENSION = no

MSSI_MTK_BT_LOW_LATENCY_SUPPORT = no

MTK_IMS_SUPPORT = no

MSSI_MTK_IMS_SUPPORT = no

MTK_MDLOGGER_SUPPORT = no

MSSI_MTK_MDLOGGER_SUPPORT = no

MTK_MODEM_MONITOR_SUPPORT = no

MSSI_MTK_MODEM_MONITOR_SUPPORT = no

MTK_OMACP_SUPPORT = no

MSSI_MTK_OMACP_SUPPORT = no

MTK_VILTE_SUPPORT = no

MSSI_MTK_VILTE_SUPPORT = no

MTK_VIWIFI_SUPPORT = no

MSSI_MTK_VIWIFI_SUPPORT = no

MTK_WFC_SUPPORT = no

MSSI_MTK_WFC_SUPPORT = no



MTK_FM_SUPPORT = no

MSSI_MTK_FM_SUPPORT = no

MTK_FM_TX_SUPPORT = no

MTK_FM_RECORDING_SUPPORT=no

还得在

debug_defconfig,和defconfig里面删掉,前者是编译debug版本或userdebug走到的,后者是user版本走到的。

# CONFIG_MTK_BTIF=y

# CONFIG_MTK_COMBO=y

# CONFIG_MTK_COMBO_WIFI=y

# CONFIG_MTK_DHCPV6C_WIFI=y

# CONFIG_MTK_GPS_EMI=y

# CONFIG_VIRT_WIFI=y

这几个宏看看有没有注释掉

CONFIG_MTK_COMBO=y

这个宏关了可能会编译报错,如果有错,就把这个加回来

BT

Turn on/off

MTK_BT_SUPPORT = yes/no

MTK_WLANBT_SINGLEANT=yes/no

FM Radio

Turn on/off

Chip Switchable

[Turn on/off]:

MTK_FM_SUPPORT=yes/no

MTK_FM_TX_SUPPORT = yes/no

MTK_FM_RECORDING_SUPPORT=yes/no

[Chip switchable]:

MTK_FM_CHIP=MT6620_FM/MT6616_E3_FM/AR1000_FM

WIFI

Turn on/off

[Turn on/off]

MTK_WLAN_SUPPORT=yes/no

MTK_WAPI_SUPPORT=yes/no

MTK_WIFI_HOTSPOT_SUPPORT=yes/no

MTK_WLANBT_SINGLEANT=yes/no

GPS

Turn on/off

[Turn on/off]

MTK_GPS_SUPPORT=yes/no

MTK_AGPS_APP=yes/no

如果是想将BT/FM/WIFI/GPS的功能全部关掉

除了需要按照以上表格去设置ProjectCConfig.mk,还需要修改alps/mediatek/config/[Project]/autoconfig/kconfig/project如下:

# CONFIG_MTK_COMBO is not set

# CONFIG_MTK_COMBO_BT is not set

# CONFIG_MTK_COMBO_GPS is not set

# CONFIG_MTK_COMBO_FM is not set

# CONFIG_MTK_COMBO_WIFI is not set

最后

以上就是安静歌曲为你收集整理的更改默认位置信息定位精度方式,默认关闭或打开位置信息,默认关闭GPS。息屏休眠电流问题,电流降不下去,测试排查是关掉无射频&和WIFI/GPS/FM/BT,没关干净。的全部内容,希望文章能够帮你解决更改默认位置信息定位精度方式,默认关闭或打开位置信息,默认关闭GPS。息屏休眠电流问题,电流降不下去,测试排查是关掉无射频&和WIFI/GPS/FM/BT,没关干净。所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(51)

评论列表共有 0 条评论

立即
投稿
返回
顶部