andorid手机联系去掉sim卡提示的方法

路径:

alps/vendor/mediatek/proprietary/packages/apps/Contacts/

SimProcessor/src/com/mediatek/simprocessor/SimProcessorService.java

public void onCreate() {
        super.onCreate();
        Log.i(TAG, "[onCreate]...");
        GlobalEnv.setApplicationContext(getApplicationContext());
        ExtensionManager.registerApplicationContext(getApplication());
        mProcessorManager = new SimProcessorManager(this, mListener);


        //Notification notification = new Notification(android.R.drawable.ic_dialog_alert,
        //        ONGOING_NOTIFICATION, System.currentTimeMillis());
        //modify 2018/5/10 
        /*Notification.Builder builder = new Notification.Builder(this)
                .setWhen(System.currentTimeMillis())
                .setSmallIcon(android.R.drawable.ic_dialog_alert)
                .setTicker(ONGOING_NOTIFICATION);
        Notification notification = builder.build();
        startForeground(ONGOING_NOTIFICATION_ID, notification);*/

    }

猜你喜欢

转载自blog.csdn.net/fan380485838/article/details/80909264