2 * Copyright (C) 2006 The Android Open Source Project
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package com.android.internal.telephony.uicc;
19 import android.telephony.Rlog;
21 import com.android.internal.telephony.CommandsInterface;
26 public final class SIMFileHandler extends IccFileHandler implements IccConstants {
27 static final String LOG_TAG = "SIMFileHandler";
29 //***** Instance Variables
33 public SIMFileHandler(UiccCardApplication app, String aid, CommandsInterface ci) {
37 //***** Overridden from IccFileHandler
40 protected String getEFPath(int efid) {
41 // TODO(): DF_GSM can be 7F20 or 7F21 to handle backward compatibility.
42 // Implement this after discussion with OEMs.
45 return MF_SIM + DF_TELECOM;
59 return MF_SIM + DF_GSM;
62 case EF_VOICE_MAIL_INDICATOR_CPHS:
65 case EF_SPN_SHORT_CPHS:
68 return MF_SIM + DF_GSM;
70 String path = getCommonIccEFPath(efid);
72 Rlog.e(LOG_TAG, "Error: EF Path being returned in null");
78 protected void logd(String msg) {
83 protected void loge(String msg) {