Modify Browser UA string for using operator plug-in on GB3
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
Modify Browser UA string for using operator plug-in on GB3
[SOLUTION]
Code position:
mediatek/operator/OPxx/packages/apps/Plugins/src/com/mediatek/browser/plugin/OpxxBrowse
rSmallFeatureEx.Java (xx is the operator number, such as “01, 02, …”)
Class and Method:
OpxxBrowserSmallFeatureEx.getOperatorUA(String defaultUA)
Modification:
Add your UA into the method “getOperatorUA()” or modify the existed one.
Example
public String getOperatorUA(String defaultUA) {
return xxxxxx;
}
Note: return xxxxxx (xxxxxx is your UA string)
Modify Browser UA string for using operator plug-in on GB3
[SOLUTION]
Code position:
mediatek/operator/OPxx/packages/apps/Plugins/src/com/mediatek/browser/plugin/OpxxBrowse
rSmallFeatureEx.Java (xx is the operator number, such as “01, 02, …”)
Class and Method:
OpxxBrowserSmallFeatureEx.getOperatorUA(String defaultUA)
Modification:
Add your UA into the method “getOperatorUA()” or modify the existed one.
Example
public String getOperatorUA(String defaultUA) {
return xxxxxx;
}
Note: return xxxxxx (xxxxxx is your UA string)
