删除锁屏界面左上角和下拉框-没有SIM卡

frameworks/base/packages/SystemUI/src/com/android/keyguard/CarrierText.java

private CharSequence getCarrierTextForSimState(int phoneId, IccCardConstants.State simState, CharSequence text, CharSequence hnbName, CharSequence csgId) {

CharSequence carrierText = null;

StatusMode status = getStatusForIccState(simState);

switch (status) {

......

case SimMissing:

// Shows "No SIM card | Emergency calls only" on devices that are voice-capable.

// This depends on mPlmn containing the text "Emergency calls only" when the radio

// has some connectivity. Otherwise, it should be null or empty and just show

// "No SIM card"

CharSequence simMessage = null;//getContext().getText(R.string.keyguard_missing_sim_message_short); //modify

carrierText = makeCarrierStringOnEmergencyCapable(simMessage, text, hnbName, csgId);

carrierText = mCarrierTextExt.customizeCarrierText(carrierText, simMessage, phoneId);

/// M: sync the carrier text with systemui expended notification bar.

carrierText = mCarrierTextExt.customizeCarrierTextWhenSimMissing(carrierText);

break;

......

return carrierText;

}

frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/CellularTile.java

@Override

public void setNoSims(boolean show) {

mInfo.noSim = show;

if (mInfo.noSim) {

// Make sure signal gets cleared out when no sims.

mInfo.mobileSignalIconId = 0;

mInfo.dataTypeIconId = 0;

// Show a No SIMs description to avoid emergency calls message.

mInfo.enabled = true;

mInfo.enabledDesc = null; //mContext.getString(R.string.keyguard_missing_sim_message_short); //modify

mInfo.signalContentDescription = mInfo.enabledDesc;

}

refreshState(mInfo);

}