短信相关:
移除短信功能
vendor\mediatek\proprietary\packages\apps\Mms\src\com\android\mms\transaction\SmsReceiverService.java
在handleSmsReceived()方法中直接return即可,不去解析和分发短信消息,同时这样操作 短信将不会记录到短信数据库中
———————————————————————————————————————————
通话相关
1、定制4G通话功能
Android8.1 开关VOLTE流程分析 - cczheng - 博客园
telephony framework通话状态维护流程_firedancer0089的专栏-CSDN博客
2、移除 SIM 卡应用
\frameworks\base\packages\Keyguard\src\com\mediatek\keyguard\Telephony\KeyguardDialogManager.java
mSimCardChangedDialog =dialogBuilder.create();
mSimCardChangedDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG);
mSimCardChangedDialog.setOnDismissListener(newDialogInterface.OnDismissListener() {
@Override
public void onDismiss(DialogInterface di) {
// report close
reportDialogClose();
}
});
//close simcarddialog lhw start
//mSimCardChangedDialog.show();
定制android ROM禁止SIM卡状态改变系统弹出提示框_karts的博客-CSDN博客
———————————————————————————————————————————
输入法相关
1、定制默认输入法为搜狗输入法
Vendor\mediatek\proprietary\packages\apps\SettingsProvider\res\values\defaults.xml 文件中修改默认输入法为搜狗输入法
<string name="config_default_input_method" translatable="false">com.sohu.inputmethod.sogou/.SogouIME</string>
<string name="def_enabled_input_methods" translatable="false">com.sohu.inputmethod.sogou/.SogouIME</string>
Vendor\mediatek\proprietary\packages\apps \SettingsProvider\src\com\Android\providers\settings\DatabaseHelper.Java
在loadSecureSettings()中增加一条语句,制定默认使能的输入法
loadStringSetting(stmt, Settings.Secure.DEFAULT_INPUT_METHOD,R.string.config_default_input_method);
loadStringSetting(stmt, Settings.Secure. ENABLED_INPUT_METHODS,R.string.def_enabled_input_methods);
将搜狗输入法放到 根目录/packages/apps\中