Android 如何默認勾選DATA ROAMING(數據漫遊) M

 

 

 

方法1: 1: 修改文件: alpsmediatekconfig貴司對應項目system.prop 2: 增加定義

ro.com.android.dataroaming=true

ro.com.android.dataroaming2=true

 

 

3:修改setting裡UI的默認值 修改 telephony.java 裡 SimInfo 類的 DATA_ROAMING_DEFAULT = DATA_ROAMING_ENABLE 方法2: 1: 修改文件alps/frameworks/base/packages/settingsprovider/src/com/android/providers/settings/DatabaseHelper.java 2: 修改Settings.Global.DATA_ROAMING(有些版本是:Settings.Secure.DATA_ROAMING)的值,如下,搜索DATA_ROAMING關鍵字,修改對應的loadSetting值,一般位於loadSystemSettings()中,可參考如下方法修改: old:
// Data roaming default, based on build
loadSetting(stmt, Settings.Global.DATA_ROAMING,
true.equalsIgnoreCase(
SystemProperties.get(ro.com.android.dataroaming,
false)) ? 1 : 0); new:
// Data roaming default, based on build
loadSetting(stmt, Settings.Global.DATA_ROAMING,1);

同理, old:
// Data roaming default, based on build
loadSetting(stmt, Settings.Global.DATA_ROAMING_2,
true.equalsIgnoreCase(
SystemProperties.get(ro.com.android.dataroaming2,
false)) ? 1 : 0); new:
// Data roaming default, based on build
loadSetting(stmt, Settings.Global.DATA_ROAMING_2,1);

 

3:修改setting裡UI的默認值 修改 telephony.java 裡 SimInfo 類的 DATA_ROAMING_DEFAULT = DATA_ROAMING_ENABLE

 

發佈留言