標(biāo)題: VS-RK3399 板卡調(diào)試4G模塊的資料 [打印本頁] 作者: shizhuang 時間: 2021-12-15 15:33 標(biāo)題: VS-RK3399 板卡調(diào)試4G模塊的資料 android 7.1 "移動網(wǎng)絡(luò)" 選項 不存在問題。
1、celluar networks 字符串定義
首先在設(shè)置APK的資源文件去找到這一串字符
<!-- Wireless controls, item title to go into the network settings -->
<string name="network_settings_title">Mobile networks</string>
2、network_settings_title引用
packages/apps/Settings/src/com/android/settings/WirelessSettings.java中找到:"mobile_network_settings"
private static final String KEY_MOBILE_NETWORK_SETTINGS = "mobile_network_settings";
把 network_settings_title賦值給 KEY_MOBILE_NETWORK_SETTINGS,再跟進(jìn)一下 KEY_MOBILE_NETWORK_SETTINGS這個變量吧。
在相同的文件中我們找到:
RemovMobile Network Settings if it's a wifi-only device.
if (Utils.isWifiOnly(getActivity())) {
getPreferenceScreen().removePreference(findPreference(KEY_MOBILE_NETWORK_SETTINGS));
}
getSystemService(Context.CONNECTIVITY_SERVICE);獲得網(wǎng)絡(luò)連接服務(wù),然后判斷是否支持TYPE_MOBILE,現(xiàn)在判斷應(yīng)該是不支持,也就是if判斷中:Utils.isWifiOnly(getActivity())=1
<!-- This string array should be overridden by the device to present a list of radio
attributes. This is used by the connectivity manager to decide which networks can coexist
based on the hardware -->
<!-- An Array of "[ConnectivityManager connectionType],
[# simultaneous connection types]" -->
<string-array translatable="false" name="radioAttributes">
<item>"0,1"</item>
<item>"1,1"</item>
<item>"7,1"</item>
<item>"9,1"</item> 注意這里
</string-array>
7、最好要開啟rild相關(guān)的資源,這是4G模塊就可以加載成功。
在boardconfig.mk文件增加此功能
BOARD_HAVE_DONGLE:=true
在android7.1可以成功利用4G模塊上網(wǎng)