Android如何屏蔽通话界面的视频彩铃

Android如何屏蔽通话界面的视频彩铃

当电话呼叫对方时,如果对方设置了视频彩铃,则会在呼叫页面出现运营商的视频和彩铃,可以通过修改系统应用中的Dialer App的incall页面来屏蔽。


比如MTK平台的Dialer App,路径如下:vendor/mediatek/proprietary/packages/apps/Dialer/java/com/android/incallui/call/DialerCall.java
可以通过如下修改:

1
2
3
4
   public boolean isVideoCall() {
- return getVideoTech().isTransmittingOrReceiving();
+ return false;//getVideoTech().isTransmittingOrReceiving();
}

或者修改vendor/mediatek/proprietary/packages/apps/Dialer/java/com/android/incallui/InCallActivity.java 的
private static ShouldShowUiResult getShouldShowVideoUi() 方法使其不显示视频页面

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×