网站链接: element-ui dtcms
当前位置: 首页 > 技术博文  > 技术博文

android 10.0屏蔽短信功能

2021/6/25 10:45:25 人评论

平板开发中,有需要屏蔽短信功能,其实就是在发送短信功能添加开关: --- a/frameworks/opt/telephony/src/java/com/android/internal/telephony/SMSDispatcher.java +++ b/frameworks/opt/telephony/src/java/com/android/internal/telephony/SMSDispatcher.java @@ -83,7 +8…

平板开发中,有需要屏蔽短信功能,其实就是在发送短信功能添加开关:

--- a/frameworks/opt/telephony/src/java/com/android/internal/telephony/SMSDispatcher.java
+++ b/frameworks/opt/telephony/src/java/com/android/internal/telephony/SMSDispatcher.java
@@ -83,7 +83,8 @@ import com.android.internal.telephony.cdma.sms.UserData;
 import com.android.internal.telephony.gsm.GsmSMSDispatcher;
 import com.android.internal.telephony.uicc.UiccCard;
 import com.android.internal.telephony.uicc.UiccController;
-
+import android.provider.Settings;
+import android.util.Log;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
@@ -646,6 +647,14 @@ public abstract class SMSDispatcher extends Handler {
      */
     @UnsupportedAppUsage
     private void sendSubmitPdu(SmsTracker tracker) {
+           boolean isIntercept = Settings.Global.getInt(mContext.getContentResolver(),
+          

相关资讯

    暂无相关的数据...

共有条评论 网友评论

验证码: 看不清楚?