[rk3399][Android 6.0] 修改Browser 默认主页和页签

第一步:修改 /packages/apps/Browser/res/values/strings.xml
找到homepage_home 属性,将其值修改为http://www.pi2e.com/
第二步:修改/packages/apps/Browser/src/com/android/browser/BrowserSetting.java
private Runnable mSetup = new Runnable(){
@Override
public void run(){
........
.........

/if(TextUtils.isEmpty(SystemProperties.get("ro.rk.homepage_base"))){
sFactoryResetUrl =
mContext.getResources().getString(R.string.homepage_base);
}else{
sFactoryResetUrl =SystemProperties.get("ro.rk.homepage_base");
}
if (sFactoryResetUrl.indexOf("{CID}") != -1) {
sFactoryResetUrl = sFactoryResetUrl.replace("{CID}",
BrowserProvider.getClientId(mContext.getContentResolver()));
}
/
//add by luotao for change browser at 20171129 start
sFactoryResetUrl =mContext.getResources().getString(R.string.homepage_base);
if (sFactoryResetUrl.indexOf("{CID}") != -1) {
sFactoryResetUrl = sFactoryResetUrl.replace("{CID}",
BrowserProvider.getClientId(mContext.getContentResolver()));
}
//end
}
}
页签修改
修改 /packages/apps/Browser/res/values/strings.xml
找到 bookmarks 属性,修改其对应的值

你可能感兴趣的:([rk3399][Android 6.0] 修改Browser 默认主页和页签)