1. 程式人生 > >刪除STK後傳送簡訊自動傳送兩次

刪除STK後傳送簡訊自動傳送兩次

  1. 方法1
--- a/alps/frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsApplication.java
+++ b/alps/frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsApplication.java
@@ -905,6 +905,11 @@ public final class SmsApplication {
         if (SmsManager.getDefault().getAutoPersisting()) {
             return true;
         }
+        if ("com.mediatek.omacp".equals(packageName) ) {   
+            return false;
+        }
  1. 方法2
    alps\packages\services\Telephony\AndroidManifest.xml
    新增如下許可權:
<uses-permission android:name="android.permission.REAL_GET_TASKS" />