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);*/

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

你可能感兴趣的:(android开发相关)