刪除STK後傳送簡訊自動傳送兩次
阿新 • • 發佈:2019-01-08
- 方法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; + }
- 方法2
alps\packages\services\Telephony\AndroidManifest.xml
新增如下許可權:
<uses-permission android:name="android.permission.REAL_GET_TASKS" />