Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.android.internal.telephony;
- import android.content.BroadcastReceiver;
- import android.content.Context;
- import android.content.Intent;
- import android.content.IntentFilter;
- import android.content.SharedPreferences;
- import android.hardware.display.DisplayManager;
- import android.hardware.display.DisplayManager.DisplayListener;
- import android.net.ConnectivityManager;
- import android.net.LocalSocket;
- import android.os.AsyncResult;
- import android.os.Build;
- import android.os.Bundle;
- import android.os.Handler;
- import android.os.HandlerThread;
- import android.os.Looper;
- import android.os.Message;
- import android.os.Parcel;
- import android.os.Parcelable.Creator;
- import android.os.PowerManager;
- import android.os.PowerManager.WakeLock;
- import android.os.Registrant;
- import android.os.RegistrantList;
- import android.os.SystemProperties;
- import android.preference.PreferenceManager;
- import android.provider.Settings.Global;
- import android.provider.Settings.Secure;
- import android.provider.Settings.System;
- import android.telephony.CellInfo;
- import android.telephony.NeighboringCellInfo;
- import android.telephony.PhoneNumberUtils;
- import android.telephony.Rlog;
- import android.telephony.SignalStrength;
- import android.telephony.SmsMessage;
- import android.telephony.TelephonyManager;
- import android.telephony.gsm.CbConfig;
- import android.text.TextUtils;
- import android.util.Base64;
- import android.util.SparseArray;
- import android.view.Display;
- import com.android.internal.telephony.cdma.CdmaCallWaitingNotification;
- import com.android.internal.telephony.cdma.CdmaInformationRecords;
- import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaDisplayInfoRec;
- import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaLineControlInfoRec;
- import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaNumberInfoRec;
- import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaRedirectingNumberInfoRec;
- import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaSignalInfoRec;
- import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaT53AudioControlInfoRec;
- import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaT53ClirInfoRec;
- import com.android.internal.telephony.cdma.CdmaSmsBroadcastConfigInfo;
- import com.android.internal.telephony.dataconnection.DataCallResponse;
- import com.android.internal.telephony.dataconnection.DataProfile;
- import com.android.internal.telephony.dataconnection.DcFailCause;
- import com.android.internal.telephony.gsm.SmsBroadcastConfigInfo;
- import com.android.internal.telephony.gsm.SsData;
- import com.android.internal.telephony.gsm.SsData.RequestType;
- import com.android.internal.telephony.gsm.SsData.ServiceType;
- import com.android.internal.telephony.gsm.SuppServiceNotification;
- import com.android.internal.telephony.uicc.AdnRecord;
- import com.android.internal.telephony.uicc.IccCardApplicationStatus;
- import com.android.internal.telephony.uicc.IccCardStatus;
- import com.android.internal.telephony.uicc.IccIoResult;
- import com.android.internal.telephony.uicc.IccRefreshResponse;
- import com.android.internal.telephony.uicc.IccUtils;
- import com.android.internal.telephony.uicc.SimLockInfoResult;
- import com.android.internal.telephony.uicc.SimPBEntryResult;
- import com.sec.android.app.CscFeature;
- import java.io.ByteArrayInputStream;
- import java.io.DataInputStream;
- import java.io.FileDescriptor;
- import java.io.IOException;
- import java.io.InputStream;
- import java.io.PrintWriter;
- import java.io.UnsupportedEncodingException;
- import java.util.ArrayList;
- import java.util.Collections;
- import java.util.HashSet;
- import java.util.Iterator;
- import java.util.Set;
- import java.util.concurrent.atomic.AtomicBoolean;
- public class RIL
- extends BaseCommands
- implements CommandsInterface
- {
- private static final int CDMA_BROADCAST_SMS_NO_OF_SERVICE_CATEGORIES = 31;
- private static final int CDMA_BSI_NO_OF_INTS_STRUCT = 3;
- public static final boolean CELL_BROADCAST_ENABLE = true;
- private static final int DEFAULT_WAKE_LOCK_TIMEOUT = 60000;
- static final String ETWS_TEST = "jp.co.android.softbankCBM.ETWS";
- static final int EVENT_SEND = 1;
- static final int EVENT_WAKE_LOCK_TIMEOUT = 2;
- static final String LOG_LEVEL_PROP = "ro.debug_level";
- static final String LOG_LEVEL_PROP_HIGH = "0x4948";
- static final String LOG_LEVEL_PROP_LOW = "0x4f4c";
- static final String LOG_LEVEL_PROP_MID = "0x494d";
- static final int NETTEXT_GSM_SMS_CBMI_LIST_SIZE_MAX = 100;
- private static final int OEM_FUNCTION_ID_NETWORK = 2;
- private static final int OEM_NET_GET_MODEM_CAP = 97;
- private static final int OEM_NET_UPDATE_SUB_BINDING = 98;
- static final int RESPONSE_SOLICITED = 0;
- static final int RESPONSE_UNSOLICITED = 1;
- static final boolean RILJ_LOGD = true;
- static final boolean RILJ_LOGV = false;
- static final String RILJ_LOG_TAG = "RILJ";
- static final int RIL_MAX_COMMAND_BYTES = 8192;
- static final boolean SHIP_BUILD = "true".equals(SystemProperties.get("ro.product_ship", "false"));
- static final String[] SOCKET_NAME_RIL = { "rild", "rild2", "rild3" };
- static final int SOCKET_OPEN_RETRY_MILLIS = 4000;
- static final int USSD_DCS_KS5601 = 148;
- static final String WAPPUSH_TEST = "jp.co.android.ETWS_WAPPUSH";
- private int initPhoneType = 0;
- Display mDefaultDisplay;
- int mDefaultDisplayState = 0;
- private final DisplayManager.DisplayListener mDisplayListener = new DisplayManager.DisplayListener()
- {
- public void onDisplayAdded(int paramAnonymousInt) {}
- public void onDisplayChanged(int paramAnonymousInt)
- {
- if (paramAnonymousInt == 0) {
- RIL.this.updateScreenState();
- }
- }
- public void onDisplayRemoved(int paramAnonymousInt) {}
- };
- private Integer mInstanceId;
- BroadcastReceiver mIntentReceiver = new BroadcastReceiver()
- {
- public void onReceive(Context paramAnonymousContext, Intent paramAnonymousIntent)
- {
- int i;
- int j;
- if (paramAnonymousIntent.getAction().equals("com.samsung.intent.action.EMERGENCY_STATE_CHANGED"))
- {
- i = paramAnonymousIntent.getIntExtra("reason", 0);
- j = paramAnonymousIntent.getIntExtra("enterType", 0);
- if ((i == 2) && (j != 512)) {
- RIL.this.sendSafemode(true);
- }
- }
- do
- {
- do
- {
- do
- {
- return;
- } while ((i != 4) || (j == 512));
- RIL.this.sendSafemode(false);
- return;
- if ((!paramAnonymousIntent.getAction().equals("jp.co.android.softbankCBM.ETWS")) && (!paramAnonymousIntent.getAction().equals("jp.co.android.ETWS_WAPPUSH"))) {
- break;
- }
- } while ((!"eng".equals(Build.TYPE)) || (!SystemProperties.getBoolean("persist.EarthquakeTestmode", false)));
- paramAnonymousContext = paramAnonymousIntent.getExtras();
- if (paramAnonymousContext == null)
- {
- Rlog.d("RILJ", "intent.getExtras() = null");
- return;
- }
- if ((paramAnonymousIntent.getAction().equals("jp.co.android.softbankCBM.ETWS")) && (RIL.this.mGsmBroadcastSmsRegistrant != null))
- {
- Rlog.d("RILJ", "ETWS_TEST receive");
- paramAnonymousContext = paramAnonymousContext.get("pdus");
- RIL.this.mGsmBroadcastSmsRegistrant.notifyRegistrant(new AsyncResult(null, paramAnonymousContext, null));
- return;
- }
- } while ((!paramAnonymousIntent.getAction().equals("jp.co.android.ETWS_WAPPUSH")) || (RIL.this.mGsmSmsRegistrant == null));
- Rlog.d("RILJ", "WAPPUSH_TEST receive");
- paramAnonymousContext = (String)paramAnonymousContext.get("pdus");
- paramAnonymousIntent = new String[2];
- paramAnonymousIntent[1] = paramAnonymousContext;
- Rlog.d("RILJ", "call newFromCMT");
- paramAnonymousContext = SmsMessage.newFromCMT(paramAnonymousIntent);
- Rlog.d("RILJ", "call mGsmSmsRegistrant notifyRegistrant");
- RIL.this.mGsmSmsRegistrant.notifyRegistrant(new AsyncResult(null, paramAnonymousContext, null));
- return;
- Rlog.w("RILJ", "RIL received unexpected Intent: " + paramAnonymousIntent.getAction());
- }
- };
- Object mLastNITZTimeInfo;
- RILReceiver mReceiver;
- Thread mReceiverThread;
- SparseArray<RILRequest> mRequestList = new SparseArray();
- RILSender mSender;
- HandlerThread mSenderThread;
- LocalSocket mSocket;
- AtomicBoolean mTestingEmergencyCall = new AtomicBoolean(false);
- PowerManager.WakeLock mWakeLock;
- int mWakeLockCount;
- final int mWakeLockTimeout;
- public RIL(Context paramContext, int paramInt1, int paramInt2)
- {
- this(paramContext, paramInt1, paramInt2, null);
- }
- public RIL(Context paramContext, int paramInt1, int paramInt2, Integer paramInteger)
- {
- super(paramContext);
- riljLog("RIL(context, preferredNetworkType=" + paramInt1 + " cdmaSubscription=" + paramInt2 + " instanceId=" + paramInteger + ")");
- this.mContext = paramContext;
- this.mCdmaSubscription = paramInt2;
- this.mPreferredNetworkType = paramInt1;
- this.mPhoneType = 0;
- this.mInstanceId = paramInteger;
- PowerManager localPowerManager = (PowerManager)paramContext.getSystemService("power");
- StringBuilder localStringBuilder = new StringBuilder().append("RILJ");
- if (this.mInstanceId == null)
- {
- paramInteger = "";
- this.mWakeLock = localPowerManager.newWakeLock(1, paramInteger);
- this.mWakeLock.setReferenceCounted(false);
- this.mWakeLockTimeout = SystemProperties.getInt("ro.ril.wake_lock_timeout", 60000);
- this.mWakeLockCount = 0;
- this.mSenderThread = new HandlerThread("RILSender");
- this.mSenderThread.start();
- this.mSender = new RILSender(this.mSenderThread.getLooper());
- if (((ConnectivityManager)paramContext.getSystemService("connectivity")).isNetworkSupported(0)) {
- break label296;
- }
- riljLog("Not starting RILReceiver: wifi-only");
- }
- for (;;)
- {
- TelephonyDevController.getInstance();
- TelephonyDevController.registerRIL(this);
- return;
- paramInteger = this.mInstanceId;
- break;
- label296:
- riljLog("Starting RILReceiver");
- this.mReceiver = new RILReceiver();
- this.mReceiverThread = new Thread(this.mReceiver, "RILReceiver");
- this.mReceiverThread.start();
- paramInteger = new IntentFilter();
- paramInteger.addAction("jp.co.android.softbankCBM.ETWS");
- paramInteger.addAction("jp.co.android.ETWS_WAPPUSH");
- paramContext.registerReceiver(this.mIntentReceiver, paramInteger);
- paramContext = (DisplayManager)paramContext.getSystemService("display");
- this.mDefaultDisplay = paramContext.getDisplay(0);
- paramContext.registerDisplayListener(this.mDisplayListener, null);
- }
- }
- private void acquireWakeLock()
- {
- synchronized (this.mWakeLock)
- {
- this.mWakeLock.acquire();
- this.mWakeLockCount += 1;
- this.mSender.removeMessages(2);
- Message localMessage = this.mSender.obtainMessage(2);
- this.mSender.sendMessageDelayed(localMessage, this.mWakeLockTimeout);
- return;
- }
- }
- private void clearRequestList(int paramInt, boolean paramBoolean)
- {
- for (;;)
- {
- synchronized (this.mRequestList)
- {
- int j = this.mRequestList.size();
- if (paramBoolean)
- {
- Rlog.d("RILJ", "clearRequestList mWakeLockCount=" + this.mWakeLockCount + " mRequestList=" + j);
- break label181;
- if (i < j)
- {
- RILRequest localRILRequest = (RILRequest)this.mRequestList.valueAt(i);
- if (paramBoolean) {
- Rlog.d("RILJ", i + ": [" + localRILRequest.mSerial + "] " + requestToString(localRILRequest.mRequest));
- }
- localRILRequest.onError(paramInt, null);
- localRILRequest.release();
- decrementWakeLock();
- i += 1;
- continue;
- }
- this.mRequestList.clear();
- return;
- }
- }
- label181:
- int i = 0;
- }
- }
- private boolean clearWakeLock()
- {
- synchronized (this.mWakeLock)
- {
- if ((this.mWakeLockCount == 0) && (!this.mWakeLock.isHeld())) {
- return false;
- }
- Rlog.d("RILJ", "NOTE: mWakeLockCount is " + this.mWakeLockCount + "at time of clearing");
- this.mWakeLockCount = 0;
- this.mWakeLock.release();
- this.mSender.removeMessages(2);
- return true;
- }
- }
- private void constructCdmaSendSmsRilRequest(RILRequest paramRILRequest, byte[] paramArrayOfByte)
- {
- paramArrayOfByte = new DataInputStream(new ByteArrayInputStream(paramArrayOfByte));
- try
- {
- paramRILRequest.mParcel.writeInt(paramArrayOfByte.readInt());
- paramRILRequest.mParcel.writeByte((byte)paramArrayOfByte.readInt());
- paramRILRequest.mParcel.writeInt(paramArrayOfByte.readInt());
- paramRILRequest.mParcel.writeInt(paramArrayOfByte.read());
- paramRILRequest.mParcel.writeInt(paramArrayOfByte.read());
- paramRILRequest.mParcel.writeInt(paramArrayOfByte.read());
- paramRILRequest.mParcel.writeInt(paramArrayOfByte.read());
- int j = (byte)paramArrayOfByte.read();
- paramRILRequest.mParcel.writeByte((byte)j);
- int i = 0;
- while (i < j)
- {
- paramRILRequest.mParcel.writeByte(paramArrayOfByte.readByte());
- i += 1;
- }
- paramRILRequest.mParcel.writeInt(paramArrayOfByte.read());
- paramRILRequest.mParcel.writeByte((byte)paramArrayOfByte.read());
- j = (byte)paramArrayOfByte.read();
- paramRILRequest.mParcel.writeByte((byte)j);
- i = 0;
- while (i < j)
- {
- paramRILRequest.mParcel.writeByte(paramArrayOfByte.readByte());
- i += 1;
- }
- j = paramArrayOfByte.read();
- paramRILRequest.mParcel.writeInt(j);
- i = 0;
- while (i < j)
- {
- paramRILRequest.mParcel.writeByte(paramArrayOfByte.readByte());
- i += 1;
- }
- return;
- }
- catch (IOException paramRILRequest)
- {
- riljLog("sendSmsCdma: conversion from input stream to object failed: " + paramRILRequest);
- }
- }
- private void constructGsmSendSmsRilRequest(RILRequest paramRILRequest, String paramString1, String paramString2)
- {
- paramRILRequest.mParcel.writeInt(2);
- paramRILRequest.mParcel.writeString(paramString1);
- paramRILRequest.mParcel.writeString(paramString2);
- }
- private void decrementWakeLock()
- {
- synchronized (this.mWakeLock)
- {
- if (this.mWakeLockCount > 1)
- {
- this.mWakeLockCount -= 1;
- return;
- }
- this.mWakeLockCount = 0;
- this.mWakeLock.release();
- this.mSender.removeMessages(2);
- }
- }
- private RILRequest findAndRemoveRequestFromList(int paramInt)
- {
- synchronized (this.mRequestList)
- {
- RILRequest localRILRequest = (RILRequest)this.mRequestList.get(paramInt);
- if (localRILRequest != null) {
- this.mRequestList.remove(paramInt);
- }
- return localRILRequest;
- }
- }
- private DataCallResponse getDataCallResponse(Parcel paramParcel, int paramInt)
- {
- DataCallResponse localDataCallResponse = new DataCallResponse();
- localDataCallResponse.version = paramInt;
- if (paramInt < 5)
- {
- localDataCallResponse.cid = paramParcel.readInt();
- localDataCallResponse.active = paramParcel.readInt();
- localDataCallResponse.type = paramParcel.readString();
- paramParcel = paramParcel.readString();
- if (!TextUtils.isEmpty(paramParcel)) {
- localDataCallResponse.addresses = paramParcel.split(" ");
- }
- }
- do
- {
- return localDataCallResponse;
- localDataCallResponse.status = paramParcel.readInt();
- localDataCallResponse.suggestedRetryTime = paramParcel.readInt();
- localDataCallResponse.cid = paramParcel.readInt();
- localDataCallResponse.active = paramParcel.readInt();
- localDataCallResponse.type = paramParcel.readString();
- localDataCallResponse.ifname = paramParcel.readString();
- if ((localDataCallResponse.status == DcFailCause.NONE.getErrorCode()) && (TextUtils.isEmpty(localDataCallResponse.ifname))) {
- throw new RuntimeException("getDataCallResponse, no ifname");
- }
- String str = paramParcel.readString();
- if (!TextUtils.isEmpty(str)) {
- localDataCallResponse.addresses = str.split(" ");
- }
- str = paramParcel.readString();
- if (!TextUtils.isEmpty(str)) {
- localDataCallResponse.dnses = str.split(" ");
- }
- str = paramParcel.readString();
- if (!TextUtils.isEmpty(str)) {
- localDataCallResponse.gateways = str.split(" ");
- }
- if (paramInt >= 10)
- {
- str = paramParcel.readString();
- if (!TextUtils.isEmpty(str)) {
- localDataCallResponse.pcscf = str.split(" ");
- }
- }
- } while (paramInt < 11);
- localDataCallResponse.mtu = paramParcel.readInt();
- return localDataCallResponse;
- }
- private CommandsInterface.RadioState getRadioStateFromInt(int paramInt)
- {
- switch (paramInt)
- {
- default:
- throw new RuntimeException("Unrecognized RIL_RadioState: " + paramInt);
- case 0:
- return CommandsInterface.RadioState.RADIO_OFF;
- case 1:
- return CommandsInterface.RadioState.RADIO_UNAVAILABLE;
- }
- return CommandsInterface.RadioState.RADIO_ON;
- }
- private void iccTransmitApduHelper(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6, int paramInt7, String paramString, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(paramInt1, paramMessage);
- paramMessage.mParcel.writeInt(paramInt2);
- paramMessage.mParcel.writeInt(paramInt3);
- paramMessage.mParcel.writeInt(paramInt4);
- paramMessage.mParcel.writeInt(paramInt5);
- paramMessage.mParcel.writeInt(paramInt6);
- paramMessage.mParcel.writeInt(paramInt7);
- paramMessage.mParcel.writeString(paramString);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- private boolean isDebugLevelNotLow()
- {
- return !SystemProperties.get("ro.debug_level", "0x4f4c").equalsIgnoreCase("0x4f4c");
- }
- private void notifyRegistrantsCdmaInfoRec(CdmaInformationRecords paramCdmaInformationRecords)
- {
- if ((paramCdmaInformationRecords.record instanceof CdmaInformationRecords.CdmaDisplayInfoRec)) {
- if (this.mDisplayInfoRegistrants != null)
- {
- unsljLogRet(1027, paramCdmaInformationRecords.record);
- this.mDisplayInfoRegistrants.notifyRegistrants(new AsyncResult(null, paramCdmaInformationRecords.record, null));
- }
- }
- do
- {
- do
- {
- do
- {
- do
- {
- do
- {
- do
- {
- return;
- if (!(paramCdmaInformationRecords.record instanceof CdmaInformationRecords.CdmaSignalInfoRec)) {
- break;
- }
- } while (this.mSignalInfoRegistrants == null);
- unsljLogRet(1027, paramCdmaInformationRecords.record);
- this.mSignalInfoRegistrants.notifyRegistrants(new AsyncResult(null, paramCdmaInformationRecords.record, null));
- return;
- if (!(paramCdmaInformationRecords.record instanceof CdmaInformationRecords.CdmaNumberInfoRec)) {
- break;
- }
- } while (this.mNumberInfoRegistrants == null);
- unsljLogRet(1027, paramCdmaInformationRecords.record);
- this.mNumberInfoRegistrants.notifyRegistrants(new AsyncResult(null, paramCdmaInformationRecords.record, null));
- return;
- if (!(paramCdmaInformationRecords.record instanceof CdmaInformationRecords.CdmaRedirectingNumberInfoRec)) {
- break;
- }
- } while (this.mRedirNumInfoRegistrants == null);
- unsljLogRet(1027, paramCdmaInformationRecords.record);
- this.mRedirNumInfoRegistrants.notifyRegistrants(new AsyncResult(null, paramCdmaInformationRecords.record, null));
- return;
- if (!(paramCdmaInformationRecords.record instanceof CdmaInformationRecords.CdmaLineControlInfoRec)) {
- break;
- }
- } while (this.mLineControlInfoRegistrants == null);
- unsljLogRet(1027, paramCdmaInformationRecords.record);
- this.mLineControlInfoRegistrants.notifyRegistrants(new AsyncResult(null, paramCdmaInformationRecords.record, null));
- return;
- if (!(paramCdmaInformationRecords.record instanceof CdmaInformationRecords.CdmaT53ClirInfoRec)) {
- break;
- }
- } while (this.mT53ClirInfoRegistrants == null);
- unsljLogRet(1027, paramCdmaInformationRecords.record);
- this.mT53ClirInfoRegistrants.notifyRegistrants(new AsyncResult(null, paramCdmaInformationRecords.record, null));
- return;
- } while ((!(paramCdmaInformationRecords.record instanceof CdmaInformationRecords.CdmaT53AudioControlInfoRec)) || (this.mT53AudCntrlInfoRegistrants == null));
- unsljLogRet(1027, paramCdmaInformationRecords.record);
- this.mT53AudCntrlInfoRegistrants.notifyRegistrants(new AsyncResult(null, paramCdmaInformationRecords.record, null));
- }
- private void notifyRegistrantsRilConnectionChanged(int paramInt)
- {
- this.mRilVersion = paramInt;
- if (this.mRilConnectedRegistrants != null) {
- this.mRilConnectedRegistrants.notifyRegistrants(new AsyncResult(null, new Integer(paramInt), null));
- }
- }
- private void processResponse(Parcel paramParcel)
- {
- int i = paramParcel.readInt();
- if (i == 1) {
- processUnsolicited(paramParcel);
- }
- do
- {
- do
- {
- return;
- } while (i != 0);
- paramParcel = processSolicited(paramParcel);
- } while (paramParcel == null);
- paramParcel.release();
- decrementWakeLock();
- }
- private static int readRilMessage(InputStream paramInputStream, byte[] paramArrayOfByte)
- throws IOException
- {
- int j = 0;
- int i = 4;
- do
- {
- k = paramInputStream.read(paramArrayOfByte, j, i);
- if (k < 0)
- {
- Rlog.e("RILJ", "Hit EOS reading message length");
- return -1;
- }
- j += k;
- k = i - k;
- i = k;
- } while (k > 0);
- int k = (paramArrayOfByte[0] & 0xFF) << 24 | (paramArrayOfByte[1] & 0xFF) << 16 | (paramArrayOfByte[2] & 0xFF) << 8 | paramArrayOfByte[3] & 0xFF;
- j = 0;
- i = k;
- int m;
- do
- {
- m = paramInputStream.read(paramArrayOfByte, j, i);
- if (m < 0)
- {
- Rlog.e("RILJ", "Hit EOS reading message. messageLength=" + k + " remaining=" + i);
- return -1;
- }
- j += m;
- m = i - m;
- i = m;
- } while (m > 0);
- return k;
- }
- static String requestToString(int paramInt)
- {
- switch (paramInt)
- {
- default:
- return "<unknown request>";
- case 1:
- return "GET_SIM_STATUS";
- case 2:
- return "ENTER_SIM_PIN";
- case 3:
- return "ENTER_SIM_PUK";
- case 4:
- return "ENTER_SIM_PIN2";
- case 5:
- return "ENTER_SIM_PUK2";
- case 6:
- return "CHANGE_SIM_PIN";
- case 7:
- return "CHANGE_SIM_PIN2";
- case 8:
- return "ENTER_NETWORK_DEPERSONALIZATION";
- case 9:
- return "GET_CURRENT_CALLS";
- case 10:
- return "DIAL";
- case 11:
- return "GET_IMSI";
- case 12:
- return "HANGUP";
- case 13:
- return "HANGUP_WAITING_OR_BACKGROUND";
- case 14:
- return "HANGUP_FOREGROUND_RESUME_BACKGROUND";
- case 15:
- return "REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE";
- case 16:
- return "CONFERENCE";
- case 17:
- return "UDUB";
- case 18:
- return "LAST_CALL_FAIL_CAUSE";
- case 19:
- return "SIGNAL_STRENGTH";
- case 20:
- return "VOICE_REGISTRATION_STATE";
- case 21:
- return "DATA_REGISTRATION_STATE";
- case 22:
- return "OPERATOR";
- case 23:
- return "RADIO_POWER";
- case 24:
- return "DTMF";
- case 25:
- return "SEND_SMS";
- case 26:
- return "SEND_SMS_EXPECT_MORE";
- case 27:
- return "SETUP_DATA_CALL";
- case 28:
- return "SIM_IO";
- case 29:
- return "SEND_USSD";
- case 30:
- return "CANCEL_USSD";
- case 31:
- return "GET_CLIR";
- case 32:
- return "SET_CLIR";
- case 33:
- return "QUERY_CALL_FORWARD_STATUS";
- case 34:
- return "SET_CALL_FORWARD";
- case 35:
- return "QUERY_CALL_WAITING";
- case 36:
- return "SET_CALL_WAITING";
- case 37:
- return "SMS_ACKNOWLEDGE";
- case 38:
- return "GET_IMEI";
- case 39:
- return "GET_IMEISV";
- case 40:
- return "ANSWER";
- case 41:
- return "DEACTIVATE_DATA_CALL";
- case 42:
- return "QUERY_FACILITY_LOCK";
- case 43:
- return "SET_FACILITY_LOCK";
- case 44:
- return "CHANGE_BARRING_PASSWORD";
- case 45:
- return "QUERY_NETWORK_SELECTION_MODE";
- case 46:
- return "SET_NETWORK_SELECTION_AUTOMATIC";
- case 47:
- return "SET_NETWORK_SELECTION_MANUAL";
- case 48:
- return "QUERY_AVAILABLE_NETWORKS ";
- case 49:
- return "DTMF_START";
- case 50:
- return "DTMF_STOP";
- case 51:
- return "BASEBAND_VERSION";
- case 52:
- return "SEPARATE_CONNECTION";
- case 53:
- return "SET_MUTE";
- case 54:
- return "GET_MUTE";
- case 55:
- return "QUERY_CLIP";
- case 56:
- return "LAST_DATA_CALL_FAIL_CAUSE";
- case 57:
- return "DATA_CALL_LIST";
- case 58:
- return "RESET_RADIO";
- case 59:
- return "OEM_HOOK_RAW";
- case 60:
- return "OEM_HOOK_STRINGS";
- case 61:
- return "SCREEN_STATE";
- case 62:
- return "SET_SUPP_SVC_NOTIFICATION";
- case 63:
- return "WRITE_SMS_TO_SIM";
- case 64:
- return "DELETE_SMS_ON_SIM";
- case 65:
- return "SET_BAND_MODE";
- case 66:
- return "QUERY_AVAILABLE_BAND_MODE";
- case 67:
- return "REQUEST_STK_GET_PROFILE";
- case 68:
- return "REQUEST_STK_SET_PROFILE";
- case 69:
- return "REQUEST_STK_SEND_ENVELOPE_COMMAND";
- case 70:
- return "REQUEST_STK_SEND_TERMINAL_RESPONSE";
- case 71:
- return "REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM";
- case 72:
- return "REQUEST_EXPLICIT_CALL_TRANSFER";
- case 73:
- return "REQUEST_SET_PREFERRED_NETWORK_TYPE";
- case 74:
- return "REQUEST_GET_PREFERRED_NETWORK_TYPE";
- case 75:
- return "REQUEST_GET_NEIGHBORING_CELL_IDS";
- case 76:
- return "REQUEST_SET_LOCATION_UPDATES";
- case 77:
- return "RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE";
- case 78:
- return "RIL_REQUEST_CDMA_SET_ROAMING_PREFERENCE";
- case 79:
- return "RIL_REQUEST_CDMA_QUERY_ROAMING_PREFERENCE";
- case 80:
- return "RIL_REQUEST_SET_TTY_MODE";
- case 81:
- return "RIL_REQUEST_QUERY_TTY_MODE";
- case 82:
- return "RIL_REQUEST_CDMA_SET_PREFERRED_VOICE_PRIVACY_MODE";
- case 83:
- return "RIL_REQUEST_CDMA_QUERY_PREFERRED_VOICE_PRIVACY_MODE";
- case 84:
- return "RIL_REQUEST_CDMA_FLASH";
- case 85:
- return "RIL_REQUEST_CDMA_BURST_DTMF";
- case 87:
- return "RIL_REQUEST_CDMA_SEND_SMS";
- case 88:
- return "RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE";
- case 89:
- return "RIL_REQUEST_GSM_GET_BROADCAST_CONFIG";
- case 90:
- return "RIL_REQUEST_GSM_SET_BROADCAST_CONFIG";
- case 92:
- return "RIL_REQUEST_CDMA_GET_BROADCAST_CONFIG";
- case 93:
- return "RIL_REQUEST_CDMA_SET_BROADCAST_CONFIG";
- case 91:
- return "RIL_REQUEST_GSM_BROADCAST_ACTIVATION";
- case 86:
- return "RIL_REQUEST_CDMA_VALIDATE_AND_WRITE_AKEY";
- case 94:
- return "RIL_REQUEST_CDMA_BROADCAST_ACTIVATION";
- case 95:
- return "RIL_REQUEST_CDMA_SUBSCRIPTION";
- case 96:
- return "RIL_REQUEST_CDMA_WRITE_SMS_TO_RUIM";
- case 97:
- return "RIL_REQUEST_CDMA_DELETE_SMS_ON_RUIM";
- case 98:
- return "RIL_REQUEST_DEVICE_IDENTITY";
- case 100:
- return "RIL_REQUEST_GET_SMSC_ADDRESS";
- case 101:
- return "RIL_REQUEST_SET_SMSC_ADDRESS";
- case 99:
- return "REQUEST_EXIT_EMERGENCY_CALLBACK_MODE";
- case 102:
- return "RIL_REQUEST_REPORT_SMS_MEMORY_STATUS";
- case 103:
- return "RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING";
- case 104:
- return "RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE";
- case 105:
- return "RIL_REQUEST_ISIM_AUTHENTICATION";
- case 106:
- return "RIL_REQUEST_ACKNOWLEDGE_INCOMING_GSM_SMS_WITH_PDU";
- case 107:
- return "RIL_REQUEST_STK_SEND_ENVELOPE_WITH_STATUS";
- case 108:
- return "RIL_REQUEST_VOICE_RADIO_TECH";
- case 109:
- return "RIL_REQUEST_GET_CELL_INFO_LIST";
- case 110:
- return "RIL_REQUEST_SET_CELL_INFO_LIST_RATE";
- case 111:
- return "RIL_REQUEST_SET_INITIAL_ATTACH_APN";
- case 128:
- return "RIL_REQUEST_SET_DATA_PROFILE";
- case 112:
- return "RIL_REQUEST_IMS_REGISTRATION_STATE";
- case 113:
- return "RIL_REQUEST_IMS_SEND_SMS";
- case 114:
- return "RIL_REQUEST_SIM_TRANSMIT_APDU_BASIC";
- case 115:
- return "RIL_REQUEST_SIM_OPEN_CHANNEL";
- case 116:
- return "RIL_REQUEST_SIM_CLOSE_CHANNEL";
- case 117:
- return "RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL";
- case 118:
- return "RIL_REQUEST_NV_READ_ITEM";
- case 119:
- return "RIL_REQUEST_NV_WRITE_ITEM";
- case 120:
- return "RIL_REQUEST_NV_WRITE_CDMA_PRL";
- case 121:
- return "RIL_REQUEST_NV_RESET_CONFIG";
- case 122:
- return "RIL_REQUEST_SET_UICC_SUBSCRIPTION";
- case 123:
- return "RIL_REQUEST_ALLOW_DATA";
- case 124:
- return "GET_HARDWARE_CONFIG";
- case 125:
- return "RIL_REQUEST_SIM_AUTHENTICATION";
- case 129:
- return "RIL_REQUEST_SHUTDOWN";
- case 10001:
- return "DIAL_EMERGENCY_CALL";
- case 10002:
- return "CALL_DEFLECTION";
- case 10003:
- return "MODIFY_CALL_INITIATE";
- case 10004:
- return "MODIFY_CALL_CONFIRM";
- case 10005:
- return "SET_VOICE_DOMAIN_PREF";
- case 10006:
- return "SAFE_MODE";
- case 10007:
- return "SET_TRANSMIT_POWER";
- case 10008:
- return "GET_CELL_BROADCAST_CONFIG";
- case 10009:
- return "GET_PHONEBOOK_STORAGE_INFO";
- case 10010:
- return "GET_PHONEBOOK_ENTRY";
- case 10011:
- return "ACCESS_PHONEBOOK_ENTRY";
- case 10012:
- return "USIM_PB_CAPA";
- case 10013:
- return "LOCK_INFO";
- case 10014:
- return "STK_SIM_INIT_EVENT";
- case 10015:
- return "SET_PREFERRED_NETWORK_LIST";
- case 10016:
- return "GET_PREFERRED_NETWORK_LIST";
- case 10017:
- return "CHANGE_SIM_PERSO";
- case 10018:
- return "ENTER_SIM_PERSO";
- case 10019:
- return "SEND_ENCODED_USSD";
- case 10020:
- return "CDMA_SEND_SMS_EXPECT_MORE";
- case 10021:
- return "HANGUP_VT";
- case 10022:
- return "REQUEST_HOLD";
- case 10023:
- return "SET_SIM_POWER";
- case 10024:
- return "SET_LTE_BAND_MODE";
- case 10025:
- return "UICC_GBA_AUTHENTICATE_BOOTSTRAP";
- case 10026:
- return "UICC_GBA_AUTHENTICATE_NAF";
- case 10027:
- return "GET_INCOMING_COMMUNICATION_BARRING";
- }
- return "SET_INCOMING_COMMUNICATION_BARRING";
- }
- private Object responseBootstrap(Parcel paramParcel)
- {
- Bundle localBundle = new Bundle();
- localBundle.putByteArray("res", IccUtils.hexStringToBytes(paramParcel.readString()));
- localBundle.putByteArray("auts", IccUtils.hexStringToBytes(paramParcel.readString()));
- return localBundle;
- }
- private Object responseCallForward(Parcel paramParcel)
- {
- int j = paramParcel.readInt();
- CallForwardInfo[] arrayOfCallForwardInfo = new CallForwardInfo[j];
- int i = 0;
- while (i < j)
- {
- arrayOfCallForwardInfo[i] = new CallForwardInfo();
- arrayOfCallForwardInfo[i].status = paramParcel.readInt();
- arrayOfCallForwardInfo[i].reason = paramParcel.readInt();
- arrayOfCallForwardInfo[i].serviceClass = paramParcel.readInt();
- arrayOfCallForwardInfo[i].toa = paramParcel.readInt();
- arrayOfCallForwardInfo[i].number = paramParcel.readString();
- arrayOfCallForwardInfo[i].timeSeconds = paramParcel.readInt();
- i += 1;
- }
- return arrayOfCallForwardInfo;
- }
- private Object responseCallModify(Parcel paramParcel)
- {
- CallModify localCallModify = new CallModify();
- localCallModify.call_index = paramParcel.readInt();
- int i = paramParcel.readInt();
- int j = paramParcel.readInt();
- paramParcel = paramParcel.readString();
- localCallModify.call_details = new CallDetails(i, j, null);
- localCallModify.call_details.setExtrasFromCsv(paramParcel);
- return localCallModify;
- }
- private Object responseCallRing(Parcel paramParcel)
- {
- return new char[] { (char)paramParcel.readInt(), (char)paramParcel.readInt(), (char)paramParcel.readInt(), (char)paramParcel.readInt() };
- }
- private Object responseCbSettings(Parcel paramParcel)
- {
- int j = 0;
- CbConfig localCbConfig = new CbConfig();
- Rlog.d("RILJ", "responseCbSettings");
- int i = paramParcel.readInt();
- byte[] arrayOfByte;
- if (i == 1)
- {
- localCbConfig.bCBEnabled = true;
- localCbConfig.selectedId = ((char)paramParcel.readInt());
- localCbConfig.msgIdMaxCount = ((char)paramParcel.readInt());
- localCbConfig.msgIdCount = paramParcel.readInt();
- if (localCbConfig.msgIdMaxCount <= 0) {
- break label222;
- }
- arrayOfByte = new byte[localCbConfig.msgIdMaxCount * '\002'];
- label84:
- if (localCbConfig.msgIdCount > 100) {
- Rlog.d("RILJ", "No of CBMID Exceeded ");
- }
- localCbConfig.msgIDs = new short[localCbConfig.msgIdCount];
- paramParcel = paramParcel.readString();
- Rlog.d("RILJ", "ENABLED:" + localCbConfig.bCBEnabled + ", selectedId:" + localCbConfig.selectedId + ", msgIdCount:" + localCbConfig.msgIdCount + ", msgIdMaxCount:" + localCbConfig.msgIdMaxCount);
- if (paramParcel != null) {
- break label231;
- }
- Rlog.d("RILJ", "MessageIDs String is NULL");
- }
- for (;;)
- {
- return localCbConfig;
- if (i != 2) {
- break;
- }
- localCbConfig.bCBEnabled = false;
- break;
- label222:
- arrayOfByte = new byte[100];
- break label84;
- label231:
- Rlog.d("RILJ", ", MessageIDs:" + paramParcel);
- paramParcel = IccUtils.hexStringToBytes(paramParcel);
- i = 0;
- while (i < localCbConfig.msgIdCount)
- {
- int k = paramParcel[j];
- int m = paramParcel[(j + 1)];
- localCbConfig.msgIDs[i] = ((short)((k & 0xFF) << 8 | m & 0xFF));
- j += 2;
- i += 1;
- }
- }
- }
- private Object responseCdmaBroadcastConfig(Parcel paramParcel)
- {
- int i = paramParcel.readInt();
- Object localObject;
- if (i == 0)
- {
- paramParcel = new int[94];
- paramParcel[0] = 31;
- i = 1;
- for (;;)
- {
- localObject = paramParcel;
- if (i >= 94) {
- break;
- }
- paramParcel[(i + 0)] = (i / 3);
- paramParcel[(i + 1)] = 1;
- paramParcel[(i + 2)] = 0;
- i += 3;
- }
- }
- int j = i * 3 + 1;
- int[] arrayOfInt = new int[j];
- arrayOfInt[0] = i;
- i = 1;
- for (;;)
- {
- localObject = arrayOfInt;
- if (i >= j) {
- break;
- }
- arrayOfInt[i] = paramParcel.readInt();
- i += 1;
- }
- return localObject;
- }
- private ArrayList<CdmaInformationRecords> responseCdmaInformationRecord(Parcel paramParcel)
- {
- int j = paramParcel.readInt();
- ArrayList localArrayList = new ArrayList(j);
- int i = 0;
- while (i < j)
- {
- localArrayList.add(new CdmaInformationRecords(paramParcel));
- i += 1;
- }
- return localArrayList;
- }
- private Object responseCdmaSms(Parcel paramParcel)
- {
- return SmsMessage.newFromParcel(paramParcel);
- }
- private ArrayList<CellInfo> responseCellInfoList(Parcel paramParcel)
- {
- int j = paramParcel.readInt();
- ArrayList localArrayList = new ArrayList(j);
- int i = 0;
- while (i < j)
- {
- localArrayList.add((CellInfo)CellInfo.CREATOR.createFromParcel(paramParcel));
- i += 1;
- }
- return localArrayList;
- }
- private Object responseCellList(Parcel paramParcel)
- {
- int k = paramParcel.readInt();
- ArrayList localArrayList = new ArrayList();
- String[] arrayOfString = TelephonyManager.getTelephonyProperty("gsm.network.type", android.telephony.SubscriptionManager.getSubId(this.mInstanceId.intValue())[0], "unknown").split(":");
- Rlog.d("RILJ", "mDataType : " + arrayOfString[0]);
- int i;
- if (arrayOfString[0].equals("GPRS")) {
- i = 1;
- }
- while (i != 0)
- {
- int j = 0;
- while (j < k)
- {
- localArrayList.add(new NeighboringCellInfo(paramParcel.readInt(), paramParcel.readString(), i));
- j += 1;
- }
- if (arrayOfString[0].equals("EDGE")) {
- i = 2;
- } else if (arrayOfString[0].equals("UMTS")) {
- i = 3;
- } else if (arrayOfString[0].equals("HSDPA")) {
- i = 8;
- } else if (arrayOfString[0].equals("HSUPA")) {
- i = 9;
- } else if (arrayOfString[0].equals("HSPA")) {
- i = 10;
- } else {
- i = 0;
- }
- }
- return localArrayList;
- }
- private Object responseDataCallList(Parcel paramParcel)
- {
- int j = paramParcel.readInt();
- int k = paramParcel.readInt();
- riljLog("responseDataCallList ver=" + j + " num=" + k);
- ArrayList localArrayList = new ArrayList(k);
- int i = 0;
- while (i < k)
- {
- localArrayList.add(getDataCallResponse(paramParcel, j));
- i += 1;
- }
- return localArrayList;
- }
- private Object responseGetPreferredNetworkType(Parcel paramParcel)
- {
- paramParcel = (int[])responseInts(paramParcel);
- if (paramParcel.length >= 1)
- {
- this.mPreferredNetworkType = paramParcel[0];
- setInitialPhoneType(this.mPreferredNetworkType);
- }
- return paramParcel;
- }
- private Object responseGmsBroadcastConfig(Parcel paramParcel)
- {
- int j = paramParcel.readInt();
- ArrayList localArrayList = new ArrayList(j);
- int i = 0;
- if (i < j)
- {
- int k = paramParcel.readInt();
- int m = paramParcel.readInt();
- int n = paramParcel.readInt();
- int i1 = paramParcel.readInt();
- if (paramParcel.readInt() == 1) {}
- for (boolean bool = true;; bool = false)
- {
- localArrayList.add(new SmsBroadcastConfigInfo(k, m, n, i1, bool));
- i += 1;
- break;
- }
- }
- return localArrayList;
- }
- private Object responseHardwareConfig(Parcel paramParcel)
- {
- int j = paramParcel.readInt();
- ArrayList localArrayList = new ArrayList(j);
- int i = 0;
- if (i < j)
- {
- int k = paramParcel.readInt();
- HardwareConfig localHardwareConfig;
- switch (k)
- {
- default:
- throw new RuntimeException("RIL_REQUEST_GET_HARDWARE_CONFIG invalid hardward type:" + k);
- case 0:
- localHardwareConfig = new HardwareConfig(k);
- localHardwareConfig.assignModem(paramParcel.readString(), paramParcel.readInt(), paramParcel.readInt(), paramParcel.readInt(), paramParcel.readInt(), paramParcel.readInt(), paramParcel.readInt());
- }
- for (;;)
- {
- localArrayList.add(localHardwareConfig);
- i += 1;
- break;
- localHardwareConfig = new HardwareConfig(k);
- localHardwareConfig.assignSim(paramParcel.readString(), paramParcel.readInt(), paramParcel.readString());
- }
- }
- return localArrayList;
- }
- private Object responseICC_IO(Parcel paramParcel)
- {
- int i = paramParcel.readInt();
- int j = paramParcel.readInt();
- paramParcel = paramParcel.readString();
- String str = "< iccIO: 0x" + Integer.toHexString(i) + " 0x" + Integer.toHexString(j) + " ";
- if (!SHIP_BUILD) {
- new StringBuilder().append(str).append(paramParcel).toString();
- }
- return new IccIoResult(i, j, paramParcel);
- }
- private Object responseICC_IOBase64(Parcel paramParcel)
- {
- return new IccIoResult(paramParcel.readInt(), paramParcel.readInt(), Base64.decode(paramParcel.readString(), 0));
- }
- private Object responseIccCardStatus(Parcel paramParcel)
- {
- IccCardStatus localIccCardStatus = new IccCardStatus();
- localIccCardStatus.setCardState(paramParcel.readInt());
- localIccCardStatus.setUniversalPinState(paramParcel.readInt());
- localIccCardStatus.mGsmUmtsSubscriptionAppIndex = paramParcel.readInt();
- localIccCardStatus.mCdmaSubscriptionAppIndex = paramParcel.readInt();
- localIccCardStatus.mImsSubscriptionAppIndex = paramParcel.readInt();
- int j = paramParcel.readInt();
- int i = j;
- if (j > 8) {
- i = 8;
- }
- localIccCardStatus.mApplications = new IccCardApplicationStatus[i];
- j = 0;
- while (j < i)
- {
- IccCardApplicationStatus localIccCardApplicationStatus = new IccCardApplicationStatus();
- localIccCardApplicationStatus.app_type = localIccCardApplicationStatus.AppTypeFromRILInt(paramParcel.readInt());
- localIccCardApplicationStatus.app_state = localIccCardApplicationStatus.AppStateFromRILInt(paramParcel.readInt());
- localIccCardApplicationStatus.perso_substate = localIccCardApplicationStatus.PersoSubstateFromRILInt(paramParcel.readInt());
- localIccCardApplicationStatus.aid = paramParcel.readString();
- localIccCardApplicationStatus.app_label = paramParcel.readString();
- localIccCardApplicationStatus.pin1_replaced = paramParcel.readInt();
- localIccCardApplicationStatus.pin1 = localIccCardApplicationStatus.PinStateFromRILInt(paramParcel.readInt());
- localIccCardApplicationStatus.pin2 = localIccCardApplicationStatus.PinStateFromRILInt(paramParcel.readInt());
- localIccCardApplicationStatus.pin1_num_retries = paramParcel.readInt();
- localIccCardApplicationStatus.puk1_num_retries = paramParcel.readInt();
- localIccCardApplicationStatus.pin2_num_retries = paramParcel.readInt();
- localIccCardApplicationStatus.puk2_num_retries = paramParcel.readInt();
- localIccCardApplicationStatus.perso_unblock_retries = paramParcel.readInt();
- localIccCardStatus.mApplications[j] = localIccCardApplicationStatus;
- j += 1;
- }
- return localIccCardStatus;
- }
- private Object responseInts(Parcel paramParcel)
- {
- int j = paramParcel.readInt();
- int[] arrayOfInt = new int[j];
- int i = 0;
- while (i < j)
- {
- arrayOfInt[i] = paramParcel.readInt();
- i += 1;
- }
- return arrayOfInt;
- }
- private Object responseNaf(Parcel paramParcel)
- {
- return IccUtils.hexStringToBytes(paramParcel.readString());
- }
- private Object responseOperatorInfos(Parcel paramParcel)
- {
- String[] arrayOfString = (String[])responseStrings(paramParcel);
- if ((!CscFeature.getInstance().getEnableStatus("CscFeature_RIL_UseRatInfoDuringPlmnSelection")) && (!CscFeature.getInstance().getEnableStatus("CscFeature_RIL_DisplayRatInfoInManualNetSearchList")))
- {
- if (arrayOfString.length % 6 != 0) {
- throw new RuntimeException("RIL_REQUEST_QUERY_AVAILABLE_NETWORKS: invalid response. Got " + arrayOfString.length + " strings, expected multible of 6");
- }
- }
- else
- {
- if (arrayOfString.length % 6 != 0) {
- throw new RuntimeException("RIL_REQUEST_QUERY_AVAILABLE_NETWORKS: invalid response. Got " + arrayOfString.length + " strings, expected multible of 6");
- }
- localArrayList = new ArrayList(arrayOfString.length / 6);
- i = 0;
- for (;;)
- {
- paramParcel = localArrayList;
- if (i >= arrayOfString.length) {
- break;
- }
- localArrayList.add(new OperatorInfo(arrayOfString[(i + 0)], arrayOfString[(i + 1)], arrayOfString[(i + 2)], arrayOfString[(i + 3)], arrayOfString[(i + 4)], arrayOfString[(i + 5)]));
- Rlog.d("RILJ", "Add OperatorInfo is:" + arrayOfString[(i + 0)] + " " + arrayOfString[(i + 1)] + " " + arrayOfString[(i + 2)] + " " + arrayOfString[(i + 3)] + " " + arrayOfString[(i + 4)] + " " + arrayOfString[(i + 5)] + " ");
- i += 6;
- }
- }
- ArrayList localArrayList = new ArrayList(arrayOfString.length / 6);
- HashSet localHashSet = new HashSet(arrayOfString.length / 6);
- String str1 = TelephonyManager.getTelephonyProperty("gsm.sim.operator.numeric", this.mInstanceId.intValue(), "");
- String str2 = TelephonyManager.getTelephonyProperty("gsm.sim.operator.alpha", this.mInstanceId.intValue(), "");
- String str3 = TelephonyManager.getTelephonyProperty("gsm.operator.isroaming", this.mInstanceId.intValue(), "");
- int i = 0;
- paramParcel = localArrayList;
- if (i < arrayOfString.length)
- {
- if (localHashSet.contains(arrayOfString[(i + 2)])) {}
- for (;;)
- {
- i += 6;
- break;
- localHashSet.add(arrayOfString[(i + 2)]);
- if (("45400".equals(arrayOfString[(i + 2)])) || ("45402".equals(arrayOfString[(i + 2)])) || ("45410".equals(arrayOfString[(i + 2)])) || (("45418".equals(arrayOfString[(i + 2)])) && ("false".equals(str3))))
- {
- Rlog.d("RILJ", "CSL Network, SPN sholud be displayed instead of PLMN : " + str1 + "SPN : " + str2);
- if (("45400".equals(str1)) || ("45402".equals(str1)) || ("45410".equals(str1)) || ("45418".equals(str1)))
- {
- arrayOfString[(i + 0)] = str2;
- arrayOfString[(i + 1)] = arrayOfString[(i + 0)];
- }
- }
- if (("45416".equals(arrayOfString[(i + 2)])) || (("45419".equals(arrayOfString[(i + 2)])) && ("false".equals(str3))))
- {
- Rlog.d("RILJ", "PCCW-HKT Network, SPN sholud be displayed instead of PLMN : " + str1 + "SPN : " + str2);
- if (("45416".equals(str1)) || ("45419".equals(str1)))
- {
- arrayOfString[(i + 0)] = str2;
- arrayOfString[(i + 1)] = arrayOfString[(i + 0)];
- }
- }
- if (("46697".equals(arrayOfString[(i + 2)])) && ("false".equals(str3)))
- {
- Rlog.d("RILJ", "APT Network, SPN sholud be displayed instead of PLMN : " + str1 + "SPN : " + str2);
- if ("46605".equals(str1))
- {
- arrayOfString[(i + 0)] = str2;
- arrayOfString[(i + 1)] = arrayOfString[(i + 0)];
- }
- }
- localArrayList.add(new OperatorInfo(arrayOfString[(i + 0)], arrayOfString[(i + 1)], arrayOfString[(i + 2)], arrayOfString[(i + 3)], arrayOfString[(i + 4)], arrayOfString[(i + 5)]));
- Rlog.d("RILJ", "Add OperatorInfo is:" + arrayOfString[(i + 0)] + " " + arrayOfString[(i + 1)] + " " + arrayOfString[(i + 2)] + " " + arrayOfString[(i + 3)] + " " + arrayOfString[(i + 4)] + " " + arrayOfString[(i + 5)] + " ");
- }
- }
- return paramParcel;
- }
- private Object responsePreferredNetworkList(Parcel paramParcel)
- {
- int j = paramParcel.readInt();
- Rlog.d("RILJ", "number of network list = " + j);
- ArrayList localArrayList = new ArrayList(j);
- int i = 0;
- while (i < j)
- {
- PreferredNetworkListInfo localPreferredNetworkListInfo = new PreferredNetworkListInfo();
- localPreferredNetworkListInfo.mIndex = paramParcel.readInt();
- localPreferredNetworkListInfo.mOperator = paramParcel.readString();
- localPreferredNetworkListInfo.mPlmn = paramParcel.readString();
- localPreferredNetworkListInfo.mGsmAct = paramParcel.readInt();
- localPreferredNetworkListInfo.mGsmCompactAct = paramParcel.readInt();
- localPreferredNetworkListInfo.mUtranAct = paramParcel.readInt();
- localPreferredNetworkListInfo.mMode = paramParcel.readInt();
- localArrayList.add(localPreferredNetworkListInfo);
- i += 1;
- }
- return localArrayList;
- }
- private Object responseRaw(Parcel paramParcel)
- {
- return paramParcel.createByteArray();
- }
- private Object responseSIM_LockInfo(Parcel paramParcel)
- {
- int i = paramParcel.readInt();
- int j = paramParcel.readInt();
- int k = paramParcel.readInt();
- int m = paramParcel.readInt();
- Rlog.i("RILJ", "num:" + i + " lock_type:" + j + " lock_key:" + k + " num_of_retry:" + m);
- return new SimLockInfoResult(i, j, k, m);
- }
- private Object responseSIM_PB(Parcel paramParcel)
- {
- int[] arrayOfInt1 = new int[3];
- int[] arrayOfInt2 = new int[3];
- String[] arrayOfString1 = new String[3];
- int[] arrayOfInt3 = new int[5];
- int[] arrayOfInt4 = new int[5];
- String[] arrayOfString2 = new String[5];
- paramParcel.readIntArray(arrayOfInt1);
- paramParcel.readIntArray(arrayOfInt2);
- paramParcel.readStringArray(arrayOfString1);
- if (!SHIP_BUILD) {
- Rlog.i("RILJ", "alphaTag is " + arrayOfString1[0]);
- }
- if (!SHIP_BUILD) {
- Rlog.i("RILJ", "SNE is " + arrayOfString1[1]);
- }
- if (!SHIP_BUILD) {
- Rlog.i("RILJ", "email is " + arrayOfString1[2]);
- }
- paramParcel.readIntArray(arrayOfInt3);
- Rlog.i("RILJ", "lengthNumber is " + arrayOfInt3[0]);
- paramParcel.readIntArray(arrayOfInt4);
- paramParcel.readStringArray(arrayOfString2);
- if (!SHIP_BUILD) {
- Rlog.i("RILJ", "number is " + arrayOfString2[0]);
- }
- if (!SHIP_BUILD) {
- Rlog.i("RILJ", "ANR is " + arrayOfString2[1]);
- }
- return new SimPBEntryResult(arrayOfInt1, arrayOfInt2, arrayOfString1, arrayOfInt3, arrayOfInt4, arrayOfString2, paramParcel.readInt(), paramParcel.readInt());
- }
- private Object responseSMS(Parcel paramParcel)
- {
- return new SmsResponse(paramParcel.readInt(), paramParcel.readString(), paramParcel.readInt());
- }
- private Object responseSSData(Parcel paramParcel)
- {
- SsData localSsData = new SsData();
- localSsData.mServiceType = localSsData.ServiceTypeFromRILInt(paramParcel.readInt());
- localSsData.mRequestType = localSsData.RequestTypeFromRILInt(paramParcel.readInt());
- localSsData.mTeleserviceType = localSsData.TeleserviceTypeFromRILInt(paramParcel.readInt());
- localSsData.mServiceClass = paramParcel.readInt();
- localSsData.mResult = paramParcel.readInt();
- int j = paramParcel.readInt();
- int i;
- if ((localSsData.mServiceType.isTypeCF()) && (localSsData.mRequestType.isTypeInterrogation()))
- {
- localSsData.mCfInfo = new CallForwardInfo[j];
- i = 0;
- }
- while (i < j)
- {
- localSsData.mCfInfo[i] = new CallForwardInfo();
- localSsData.mCfInfo[i].status = paramParcel.readInt();
- localSsData.mCfInfo[i].reason = paramParcel.readInt();
- localSsData.mCfInfo[i].serviceClass = paramParcel.readInt();
- localSsData.mCfInfo[i].toa = paramParcel.readInt();
- localSsData.mCfInfo[i].number = paramParcel.readString();
- localSsData.mCfInfo[i].timeSeconds = paramParcel.readInt();
- riljLogv("[SS Data] CF Info " + i + " : " + localSsData.mCfInfo[i]);
- i += 1;
- continue;
- localSsData.mSsInfo = new int[j];
- i = 0;
- while (i < j)
- {
- localSsData.mSsInfo[i] = paramParcel.readInt();
- riljLogv("[SS Data] SS Info " + i + " : " + localSsData.mSsInfo[i]);
- i += 1;
- }
- }
- return localSsData;
- }
- private Object responseSSReleaseCompleteNotification(Parcel paramParcel)
- {
- SSReleaseCompleteNotification localSSReleaseCompleteNotification = new SSReleaseCompleteNotification();
- Rlog.i("RILJ", "responseSSReleaseCompleteNotification()");
- localSSReleaseCompleteNotification.size = paramParcel.readInt();
- localSSReleaseCompleteNotification.dataLen = paramParcel.readInt();
- localSSReleaseCompleteNotification.params = paramParcel.readInt();
- localSSReleaseCompleteNotification.status = paramParcel.readInt();
- localSSReleaseCompleteNotification.data = paramParcel.readString();
- Rlog.i("RILJ", "notification.data = " + localSSReleaseCompleteNotification.data);
- return localSSReleaseCompleteNotification;
- }
- private Object responseSignalStrength(Parcel paramParcel)
- {
- return SignalStrength.makeSignalStrengthFromRilParcel(paramParcel);
- }
- private Object responseSimPowerDone(Parcel paramParcel)
- {
- Rlog.d("RILJ", "ResponseSimPowerDone");
- int j = paramParcel.readInt();
- int[] arrayOfInt = new int[j];
- int i = 0;
- while (i < j)
- {
- arrayOfInt[i] = paramParcel.readInt();
- i += 1;
- }
- Rlog.d("RILJ", "ResponseSimPowerDone : " + arrayOfInt[0]);
- return Integer.valueOf(arrayOfInt[0]);
- }
- private Object responseSimRefresh(Parcel paramParcel)
- {
- IccRefreshResponse localIccRefreshResponse = new IccRefreshResponse();
- localIccRefreshResponse.refreshResult = paramParcel.readInt();
- localIccRefreshResponse.efId = paramParcel.readInt();
- return localIccRefreshResponse;
- }
- private Object responseString(Parcel paramParcel)
- {
- return paramParcel.readString();
- }
- private Object responseStrings(Parcel paramParcel)
- {
- return paramParcel.readStringArray();
- }
- private Object responseSuppServiceNotification(Parcel paramParcel)
- {
- SuppServiceNotification localSuppServiceNotification = new SuppServiceNotification();
- localSuppServiceNotification.notificationType = paramParcel.readInt();
- localSuppServiceNotification.code = paramParcel.readInt();
- localSuppServiceNotification.index = paramParcel.readInt();
- localSuppServiceNotification.type = paramParcel.readInt();
- localSuppServiceNotification.mtConference = 0;
- if ((CscFeature.getInstance().getEnableStatus("CscFeature_RIL_SupportVolte")) && ("VZW-CDMA".equals("")) && (localSuppServiceNotification.code == 3)) {
- localSuppServiceNotification.mtConference = paramParcel.readInt();
- }
- localSuppServiceNotification.number = paramParcel.readString();
- return localSuppServiceNotification;
- }
- static String responseToString(int paramInt)
- {
- switch (paramInt)
- {
- default:
- return "<unknown response>";
- case 1000:
- return "UNSOL_RESPONSE_RADIO_STATE_CHANGED";
- case 1001:
- return "UNSOL_RESPONSE_CALL_STATE_CHANGED";
- case 1002:
- return "UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED";
- case 1003:
- return "UNSOL_RESPONSE_NEW_SMS";
- case 1004:
- return "UNSOL_RESPONSE_NEW_SMS_STATUS_REPORT";
- case 1005:
- return "UNSOL_RESPONSE_NEW_SMS_ON_SIM";
- case 1006:
- return "UNSOL_ON_USSD";
- case 1007:
- return "UNSOL_ON_USSD_REQUEST";
- case 1008:
- return "UNSOL_NITZ_TIME_RECEIVED";
- case 1009:
- return "UNSOL_SIGNAL_STRENGTH";
- case 1010:
- return "UNSOL_DATA_CALL_LIST_CHANGED";
- case 1011:
- return "UNSOL_SUPP_SVC_NOTIFICATION";
- case 1012:
- return "UNSOL_STK_SESSION_END";
- case 1013:
- return "UNSOL_STK_PROACTIVE_COMMAND";
- case 1014:
- return "UNSOL_STK_EVENT_NOTIFY";
- case 1015:
- return "UNSOL_STK_CALL_SETUP";
- case 1016:
- return "UNSOL_SIM_SMS_STORAGE_FULL";
- case 1017:
- return "UNSOL_SIM_REFRESH";
- case 1018:
- return "UNSOL_CALL_RING";
- case 1019:
- return "UNSOL_RESPONSE_SIM_STATUS_CHANGED";
- case 1020:
- return "UNSOL_RESPONSE_CDMA_NEW_SMS";
- case 1021:
- return "UNSOL_RESPONSE_NEW_BROADCAST_SMS";
- case 1022:
- return "UNSOL_CDMA_RUIM_SMS_STORAGE_FULL";
- case 1023:
- return "UNSOL_RESTRICTED_STATE_CHANGED";
- case 1024:
- return "UNSOL_ENTER_EMERGENCY_CALLBACK_MODE";
- case 1025:
- return "UNSOL_CDMA_CALL_WAITING";
- case 1026:
- return "UNSOL_CDMA_OTA_PROVISION_STATUS";
- case 1027:
- return "UNSOL_CDMA_INFO_REC";
- case 1028:
- return "UNSOL_OEM_HOOK_RAW";
- case 1029:
- return "UNSOL_RINGBACK_TONE";
- case 1030:
- return "UNSOL_RESEND_INCALL_MUTE";
- case 1031:
- return "CDMA_SUBSCRIPTION_SOURCE_CHANGED";
- case 1032:
- return "UNSOL_CDMA_PRL_CHANGED";
- case 1033:
- return "UNSOL_EXIT_EMERGENCY_CALLBACK_MODE";
- case 1034:
- return "UNSOL_RIL_CONNECTED";
- case 1035:
- return "UNSOL_VOICE_RADIO_TECH_CHANGED";
- case 1036:
- return "UNSOL_CELL_INFO_LIST";
- case 1037:
- return "UNSOL_RESPONSE_IMS_NETWORK_STATE_CHANGED";
- case 1038:
- return "RIL_UNSOL_UICC_SUBSCRIPTION_STATUS_CHANGED";
- case 1039:
- return "UNSOL_SRVCC_STATE_NOTIFY";
- case 1040:
- return "RIL_UNSOL_HARDWARE_CONFIG_CHANGED";
- case 11000:
- return "UNSOL_RESPONSE_NEW_CB_MSG";
- case 11001:
- return "UNSOL_RELEASE_COMPLETE_MESSAGE";
- case 11002:
- return "UNSOL_STK_SEND_SMS_RESULT";
- case 11003:
- return "UNSOL_STK_CALL_CONTROL_RESULT";
- case 11008:
- return "UNSOL_DEVICE_READY_NOTI";
- case 11009:
- return "UNSOL_GPS_NOTI";
- case 11010:
- return "UNSOL_AM";
- case 11013:
- return "UNSOL_SAP";
- case 11020:
- return "UNSOL_UART";
- case 11021:
- return "UNSOL_SIM_PB_READY";
- case 11024:
- return "UNSOL_VE";
- case 11026:
- return "UNSOL_FACTORY_AM";
- case 11027:
- return "UNSOL_IMS_REGISTRATION_STATE_CHANGED";
- case 11028:
- return "UNSOL_MODIFY_CALL";
- case 11030:
- return "UNSOL_CS_FALLBACK";
- case 11032:
- return "UNSOL_VOICE_SYSTEM_ID";
- case 11034:
- return "UNSOL_IMS_RETRYOVER";
- case 11035:
- return "UNSOL_PB_INIT_COMPLETE";
- case 11037:
- return "UNSOL_HYSTERESIS_DCN";
- case 11038:
- return "UNSOL_CP_POSITION";
- case 11043:
- return "UNSOL_HOME_NETWORK_NOTI";
- case 11054:
- return "UNSOL_STK_CALL_STATUS";
- case 11055:
- return "UNSOL_ON_SS";
- case 11056:
- return "UNSOL_MODEM_CAP";
- case 11060:
- return "UNSOL_DUN";
- case 11061:
- return "UNSOL_IMS_PREFERENCE_CHANGED";
- case 11062:
- return "UNSOL_SIM_APPLICATION_REFRESH";
- }
- return "UNSOL_UICC_APPLICATION_STATUS";
- }
- private Object responseUSSD(Parcel paramParcel)
- {
- int j = paramParcel.readInt();
- int k = paramParcel.readInt();
- Rlog.d("RILJ", "responseUSSD - num " + j);
- String[] arrayOfString = new String[j];
- int i = 0;
- if (i < j)
- {
- byte[] arrayOfByte;
- if ((k == 148) && (i > 0)) {
- arrayOfByte = IccUtils.hexStringToBytes(paramParcel.readString());
- }
- for (;;)
- {
- try
- {
- arrayOfString[i] = new String(arrayOfByte, "EUC_KR");
- Rlog.d("RILJ", "responseUSSD :: USSD_DCS_KS5601, response" + arrayOfString[i]);
- i += 1;
- }
- catch (UnsupportedEncodingException localUnsupportedEncodingException)
- {
- arrayOfString[i] = "";
- continue;
- }
- arrayOfString[i] = paramParcel.readString();
- }
- }
- return arrayOfString;
- }
- private Object responseVoid(Parcel paramParcel)
- {
- return null;
- }
- static String retToString(int paramInt, Object paramObject)
- {
- if (paramObject == null) {
- paramObject = "";
- }
- Object localObject1;
- do
- {
- do
- {
- return (String)paramObject;
- switch (paramInt)
- {
- }
- int i;
- while ((paramObject instanceof int[]))
- {
- paramObject = (int[])paramObject;
- i = paramObject.length;
- localObject1 = new StringBuilder("{");
- if (i > 0)
- {
- paramInt = 0 + 1;
- ((StringBuilder)localObject1).append(paramObject[0]);
- for (;;)
- {
- if (paramInt < i)
- {
- ((StringBuilder)localObject1).append(", ").append(paramObject[paramInt]);
- paramInt += 1;
- continue;
- if (!SHIP_BUILD) {
- break;
- }
- return "";
- return "";
- if (!SHIP_BUILD) {
- break;
- }
- return "{xx,xx,xx,xx,xx}";
- if (SHIP_BUILD) {
- return "{xx,xx,xx,xx}";
- }
- if (!SHIP_BUILD) {
- break;
- }
- return "{xx,xx,xx,xx,xx}";
- }
- }
- }
- ((StringBuilder)localObject1).append("}");
- return ((StringBuilder)localObject1).toString();
- }
- if ((paramObject instanceof String[]))
- {
- paramObject = (String[])paramObject;
- i = paramObject.length;
- localObject1 = new StringBuilder("{");
- if (i > 0)
- {
- paramInt = 0 + 1;
- ((StringBuilder)localObject1).append(paramObject[0]);
- while (paramInt < i)
- {
- ((StringBuilder)localObject1).append(", ").append(paramObject[paramInt]);
- paramInt += 1;
- }
- }
- ((StringBuilder)localObject1).append("}");
- return ((StringBuilder)localObject1).toString();
- }
- Object localObject2;
- if (paramInt == 9)
- {
- localObject1 = (ArrayList)paramObject;
- paramObject = new StringBuilder(" ");
- localObject1 = ((ArrayList)localObject1).iterator();
- while (((Iterator)localObject1).hasNext())
- {
- localObject2 = (DriverCall)((Iterator)localObject1).next();
- ((StringBuilder)paramObject).append("[").append(localObject2).append("] ");
- }
- return ((StringBuilder)paramObject).toString();
- }
- if (paramInt == 75)
- {
- localObject1 = (ArrayList)paramObject;
- paramObject = new StringBuilder(" ");
- localObject1 = ((ArrayList)localObject1).iterator();
- while (((Iterator)localObject1).hasNext()) {
- ((StringBuilder)paramObject).append((NeighboringCellInfo)((Iterator)localObject1).next()).append(" ");
- }
- return ((StringBuilder)paramObject).toString();
- }
- if (paramInt == 124)
- {
- localObject1 = (ArrayList)paramObject;
- paramObject = new StringBuilder(" ");
- localObject1 = ((ArrayList)localObject1).iterator();
- while (((Iterator)localObject1).hasNext())
- {
- localObject2 = (HardwareConfig)((Iterator)localObject1).next();
- ((StringBuilder)paramObject).append("[").append(localObject2).append("] ");
- }
- return ((StringBuilder)paramObject).toString();
- }
- if (paramInt != 59) {
- break;
- }
- localObject1 = paramObject.toString();
- paramObject = localObject1;
- } while (!SHIP_BUILD);
- paramObject = localObject1;
- } while (((String)localObject1).length() <= 5);
- return ((String)localObject1).substring(0, 5) + "...";
- return paramObject.toString();
- }
- private void riljLog(String paramString)
- {
- StringBuilder localStringBuilder = new StringBuilder().append(paramString);
- if (this.mInstanceId != null) {}
- for (paramString = " [SUB" + this.mInstanceId + "]";; paramString = "")
- {
- Rlog.d("RILJ", paramString);
- return;
- }
- }
- private void riljLogv(String paramString)
- {
- StringBuilder localStringBuilder = new StringBuilder().append(paramString);
- if (this.mInstanceId != null) {}
- for (paramString = " [SUB" + this.mInstanceId + "]";; paramString = "")
- {
- Rlog.v("RILJ", paramString);
- return;
- }
- }
- private void sendSafemode(boolean paramBoolean)
- {
- int i = 1;
- RILRequest localRILRequest = RILRequest.obtain(10006, null);
- localRILRequest.mParcel.writeInt(1);
- Parcel localParcel = localRILRequest.mParcel;
- if (paramBoolean) {}
- for (;;)
- {
- localParcel.writeInt(i);
- localRILRequest.mParcel.writeInt(0);
- riljLog(localRILRequest.serialString() + "> " + requestToString(localRILRequest.mRequest) + " " + paramBoolean);
- send(localRILRequest);
- return;
- i = 0;
- }
- }
- private void sendScreenState(boolean paramBoolean)
- {
- int i = 1;
- RILRequest localRILRequest = RILRequest.obtain(61, null);
- localRILRequest.mParcel.writeInt(1);
- Parcel localParcel = localRILRequest.mParcel;
- if (paramBoolean) {}
- for (;;)
- {
- localParcel.writeInt(i);
- riljLog(localRILRequest.serialString() + "> " + requestToString(localRILRequest.mRequest) + ": " + paramBoolean);
- send(localRILRequest);
- return;
- i = 0;
- }
- }
- private void setInitialPhoneType(int paramInt)
- {
- paramInt = TelephonyManager.getPhoneType(paramInt);
- if (paramInt != this.initPhoneType)
- {
- SystemProperties.set("persist.radio.initphone-type", String.valueOf(paramInt));
- Rlog.d("RILJ", "Initial PhoneType is changed: " + this.initPhoneType + " -> " + paramInt);
- this.initPhoneType = paramInt;
- }
- }
- private void setPreferredData() {}
- private void switchToRadioState(CommandsInterface.RadioState paramRadioState)
- {
- getRadioState();
- setRadioState(paramRadioState);
- paramRadioState = SystemProperties.get("ro.csc.sales_code");
- String str = SystemProperties.get("persist.sys.bpmsetting.default", "FirstTime");
- if ((paramRadioState != null) && ("COL".equals(paramRadioState)) && (str != null) && ("FirstTime".equals(str)))
- {
- SystemProperties.set("persist.sys.bpmsetting.enable", "1");
- SystemProperties.set("persist.sys.bpmsetting.default", "1");
- }
- }
- private int translateStatus(int paramInt)
- {
- switch (paramInt & 0x7)
- {
- case 1:
- case 2:
- case 4:
- case 6:
- default:
- return 1;
- case 3:
- return 0;
- case 5:
- return 3;
- }
- return 2;
- }
- private void unsljLog(int paramInt)
- {
- riljLog("[UNSL]< " + responseToString(paramInt));
- }
- private void unsljLogMore(int paramInt, String paramString)
- {
- riljLog("[UNSL]< " + responseToString(paramInt) + " " + paramString);
- }
- private void unsljLogRet(int paramInt, Object paramObject)
- {
- riljLog("[UNSL]< " + responseToString(paramInt) + " " + retToString(paramInt, paramObject));
- }
- private void unsljLogvRet(int paramInt, Object paramObject)
- {
- riljLogv("[UNSL]< " + responseToString(paramInt) + " " + retToString(paramInt, paramObject));
- }
- private void updateScreenState()
- {
- int i = this.mDefaultDisplayState;
- if (this.mDefaultDisplay == null)
- {
- this.mDefaultDisplay = ((DisplayManager)this.mContext.getSystemService("display")).getDisplay(0);
- if (this.mDefaultDisplay == null) {
- riljLog("updateScreenState, mDefaultDisplay is null");
- }
- }
- do
- {
- do
- {
- return;
- this.mDefaultDisplayState = this.mDefaultDisplay.getState();
- } while (this.mDefaultDisplayState == i);
- if ((i != 2) && (this.mDefaultDisplayState == 2))
- {
- sendScreenState(true);
- return;
- }
- } while (((i != 2) && (i != 0)) || (this.mDefaultDisplayState == 2));
- sendScreenState(false);
- }
- public void acceptCall(int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(40, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeInt(paramInt);
- send(paramMessage);
- }
- public void acceptCall(Message paramMessage)
- {
- acceptCall(0, paramMessage);
- }
- public void accessPhoneBookEntry(int paramInt1, int paramInt2, int paramInt3, AdnRecord paramAdnRecord, String paramString, Message paramMessage)
- {
- RILRequest localRILRequest = RILRequest.obtain(10011, paramMessage);
- riljLog(localRILRequest.serialString() + "> " + requestToString(localRILRequest.mRequest));
- Object localObject5 = paramAdnRecord.mAlphaTag;
- Object localObject6 = paramAdnRecord.mNumber;
- String str2 = paramAdnRecord.mEmails[0];
- Object localObject1 = paramAdnRecord.mAnr;
- Object localObject2 = paramAdnRecord.mAnrA;
- Object localObject3 = paramAdnRecord.mAnrB;
- Object localObject4 = paramAdnRecord.mAnrC;
- String str1 = paramAdnRecord.mSne;
- paramMessage = (Message)localObject1;
- if (((String)localObject1).length() == 0) {
- paramMessage = null;
- }
- localObject1 = localObject2;
- if (((String)localObject2).length() == 0) {
- localObject1 = null;
- }
- localObject2 = localObject3;
- if (((String)localObject3).length() == 0) {
- localObject2 = null;
- }
- localObject3 = localObject4;
- if (((String)localObject4).length() == 0) {
- localObject3 = null;
- }
- localObject4 = new byte[0];
- byte[] arrayOfByte2 = new byte[0];
- byte[] arrayOfByte3 = new byte[0];
- localRILRequest.mParcel.writeInt(paramInt1);
- localRILRequest.mParcel.writeInt(paramInt2);
- localRILRequest.mParcel.writeInt(paramInt3);
- try
- {
- GsmAlphabet.countGsmSeptets((CharSequence)localObject5, true);
- paramInt1 = 1;
- }
- catch (Exception paramAdnRecord)
- {
- try
- {
- byte[] arrayOfByte4 = ((String)localObject5).getBytes("ISO-10646-UCS-2");
- paramAdnRecord = (AdnRecord)localObject4;
- localObject4 = new byte[arrayOfByte4.length - 2];
- paramInt1 = 0;
- for (;;)
- {
- paramAdnRecord = (AdnRecord)localObject4;
- localObject5 = localObject4;
- if (paramInt1 >= arrayOfByte4.length - 2) {
- break;
- }
- localObject4[paramInt1] = arrayOfByte4[(paramInt1 + 2)];
- paramInt1 += 1;
- }
- paramAdnRecord = paramAdnRecord;
- paramInt1 = 0;
- }
- catch (Exception localException1)
- {
- localObject5 = paramAdnRecord;
- paramInt1 = 0;
- while (paramInt1 < localObject5.length)
- {
- riljLog("name[" + paramInt1 + " ] = " + localObject5[paramInt1]);
- paramInt1 += 1;
- }
- localRILRequest.mParcel.writeByteArray((byte[])localObject5);
- localRILRequest.mParcel.writeInt(localObject5.length);
- localRILRequest.mParcel.writeInt(3);
- localRILRequest.mParcel.writeString((String)localObject6);
- if (0 == 0) {
- break label645;
- }
- paramAdnRecord = arrayOfByte3;
- try
- {
- localObject6 = str2.getBytes("ISO-10646-UCS-2");
- paramAdnRecord = arrayOfByte3;
- byte[] arrayOfByte1 = new byte[localObject6.length - 2];
- paramInt1 = 0;
- for (;;)
- {
- paramAdnRecord = arrayOfByte1;
- localObject5 = arrayOfByte1;
- if (paramInt1 >= localObject6.length - 2) {
- break;
- }
- arrayOfByte1[paramInt1] = localObject6[(paramInt1 + 2)];
- paramInt1 += 1;
- }
- riljLog("anr = " + paramMessage);
- }
- catch (Exception localException2)
- {
- localObject5 = paramAdnRecord;
- riljLog("email = " + str2);
- localRILRequest.mParcel.writeByteArray((byte[])localObject5);
- localRILRequest.mParcel.writeInt(localObject5.length);
- }
- for (;;)
- {
- localRILRequest.mParcel.writeString(paramMessage);
- localRILRequest.mParcel.writeString((String)localObject1);
- localRILRequest.mParcel.writeString((String)localObject2);
- localRILRequest.mParcel.writeString((String)localObject3);
- try
- {
- GsmAlphabet.countGsmSeptets(str1, true);
- paramAdnRecord = arrayOfByte2;
- }
- catch (Exception paramAdnRecord)
- {
- for (;;)
- {
- try
- {
- localObject2 = str1.getBytes("ISO-10646-UCS-2");
- paramAdnRecord = arrayOfByte2;
- paramMessage = new byte[localObject2.length - 2];
- paramInt1 = 0;
- paramAdnRecord = paramMessage;
- localObject1 = paramMessage;
- if (paramInt1 >= localObject2.length - 2) {
- continue;
- }
- paramMessage[paramInt1] = localObject2[(paramInt1 + 2)];
- paramInt1 += 1;
- continue;
- label645:
- paramAdnRecord = GsmAlphabet.stringToGsm8BitPacked(str2);
- localRILRequest.mParcel.writeByteArray(paramAdnRecord);
- localRILRequest.mParcel.writeInt(paramAdnRecord.length);
- }
- catch (Exception paramMessage)
- {
- localObject1 = paramAdnRecord;
- riljLog("sne = " + str1);
- paramInt1 = 0;
- if (paramInt1 >= localObject1.length) {
- continue;
- }
- riljLog("sne[" + paramInt1 + " ] = " + localObject1[paramInt1]);
- paramInt1 += 1;
- continue;
- localRILRequest.mParcel.writeByteArray((byte[])localObject1);
- localRILRequest.mParcel.writeInt(localObject1.length);
- localRILRequest.mParcel.writeInt(3);
- localRILRequest.mParcel.writeString(paramString);
- send(localRILRequest);
- }
- paramAdnRecord = paramAdnRecord;
- }
- }
- }
- }
- }
- if (paramInt1 != 0) {}
- paramAdnRecord = (AdnRecord)localObject4;
- }
- public void acknowledgeIncomingGsmSmsWithPdu(boolean paramBoolean, String paramString, Message paramMessage)
- {
- RILRequest localRILRequest = RILRequest.obtain(106, paramMessage);
- localRILRequest.mParcel.writeInt(2);
- Parcel localParcel = localRILRequest.mParcel;
- if (paramBoolean) {}
- for (paramMessage = "1";; paramMessage = "0")
- {
- localParcel.writeString(paramMessage);
- localRILRequest.mParcel.writeString(paramString);
- riljLog(localRILRequest.serialString() + "> " + requestToString(localRILRequest.mRequest) + ' ' + paramBoolean + " [" + paramString + ']');
- send(localRILRequest);
- return;
- }
- }
- public void acknowledgeLastIncomingCdmaSms(boolean paramBoolean, int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(88, paramMessage);
- Parcel localParcel = paramMessage.mParcel;
- if (paramBoolean) {}
- for (int i = 0;; i = 1)
- {
- localParcel.writeInt(i);
- paramMessage.mParcel.writeInt(paramInt);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramBoolean + " " + paramInt);
- send(paramMessage);
- return;
- }
- }
- public void acknowledgeLastIncomingGsmSms(boolean paramBoolean, int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(37, paramMessage);
- paramMessage.mParcel.writeInt(2);
- Parcel localParcel = paramMessage.mParcel;
- if (paramBoolean) {}
- for (int i = 1;; i = 0)
- {
- localParcel.writeInt(i);
- paramMessage.mParcel.writeInt(paramInt);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramBoolean + " " + paramInt);
- send(paramMessage);
- return;
- }
- }
- public void cancelPendingUssd(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(30, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void changeBarringPassword(String paramString1, String paramString2, String paramString3, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(44, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- paramMessage.mParcel.writeInt(3);
- paramMessage.mParcel.writeString(paramString1);
- paramMessage.mParcel.writeString(paramString2);
- paramMessage.mParcel.writeString(paramString3);
- send(paramMessage);
- }
- public void changeBarringPassword(String paramString1, String paramString2, String paramString3, String paramString4, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(44, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- paramMessage.mParcel.writeInt(4);
- paramMessage.mParcel.writeString(paramString1);
- paramMessage.mParcel.writeString(paramString2);
- paramMessage.mParcel.writeString(paramString3);
- paramMessage.mParcel.writeString(paramString4);
- send(paramMessage);
- }
- public void changeIccPin(String paramString1, String paramString2, Message paramMessage)
- {
- changeIccPinForApp(paramString1, paramString2, null, paramMessage);
- }
- public void changeIccPin2(String paramString1, String paramString2, Message paramMessage)
- {
- changeIccPin2ForApp(paramString1, paramString2, null, paramMessage);
- }
- public void changeIccPin2ForApp(String paramString1, String paramString2, String paramString3, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(7, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- paramMessage.mParcel.writeInt(3);
- paramMessage.mParcel.writeString(paramString1);
- paramMessage.mParcel.writeString(paramString2);
- paramMessage.mParcel.writeString(paramString3);
- send(paramMessage);
- }
- public void changeIccPinForApp(String paramString1, String paramString2, String paramString3, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(6, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- paramMessage.mParcel.writeInt(3);
- paramMessage.mParcel.writeString(paramString1);
- paramMessage.mParcel.writeString(paramString2);
- paramMessage.mParcel.writeString(paramString3);
- send(paramMessage);
- }
- public void changeIccSimPerso(String paramString1, String paramString2, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10017, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- paramMessage.mParcel.writeInt(2);
- paramMessage.mParcel.writeString(paramString1);
- paramMessage.mParcel.writeString(paramString2);
- send(paramMessage);
- }
- public void conference(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(16, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void deactivateDataCall(int paramInt1, int paramInt2, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(41, paramMessage);
- paramMessage.mParcel.writeInt(2);
- paramMessage.mParcel.writeString(Integer.toString(paramInt1));
- paramMessage.mParcel.writeString(Integer.toString(paramInt2));
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt1 + " " + paramInt2);
- send(paramMessage);
- }
- public void deflect(String paramString, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10002, paramMessage);
- paramMessage.mParcel.writeString(paramString);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void deleteSmsOnRuim(int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(97, paramMessage);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeInt(paramInt);
- send(paramMessage);
- }
- public void deleteSmsOnSim(int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(64, paramMessage);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeInt(paramInt);
- send(paramMessage);
- }
- public void dial(String paramString, int paramInt, Message paramMessage)
- {
- dial(paramString, paramInt, null, paramMessage);
- }
- public void dial(String paramString, int paramInt, UUSInfo paramUUSInfo, Message paramMessage)
- {
- dial(paramString, paramInt, paramUUSInfo, null, paramMessage);
- }
- public void dial(String paramString, int paramInt, UUSInfo paramUUSInfo, CallDetails paramCallDetails, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10, paramMessage);
- paramMessage.mParcel.writeString(paramString);
- paramMessage.mParcel.writeInt(paramInt);
- if (paramCallDetails != null)
- {
- paramMessage.mParcel.writeInt(paramCallDetails.call_type);
- paramMessage.mParcel.writeInt(paramCallDetails.call_domain);
- paramMessage.mParcel.writeString(paramCallDetails.getCsvFromExtras());
- if (paramUUSInfo != null) {
- break label172;
- }
- paramMessage.mParcel.writeInt(0);
- }
- for (;;)
- {
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramCallDetails);
- send(paramMessage);
- return;
- paramMessage.mParcel.writeInt(0);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeString("");
- break;
- label172:
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeInt(paramUUSInfo.getType());
- paramMessage.mParcel.writeInt(paramUUSInfo.getDcs());
- paramMessage.mParcel.writeByteArray(paramUUSInfo.getUserData());
- }
- }
- public void dialEmergencyCall(String paramString, int paramInt, Message paramMessage)
- {
- dialEmergencyCall(paramString, paramInt, null, paramMessage);
- }
- public void dialEmergencyCall(String paramString, int paramInt, CallDetails paramCallDetails, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10001, paramMessage);
- paramMessage.mParcel.writeString(paramString);
- paramMessage.mParcel.writeInt(paramInt);
- if (paramCallDetails != null)
- {
- paramMessage.mParcel.writeInt(paramCallDetails.call_type);
- paramMessage.mParcel.writeInt(paramCallDetails.call_domain);
- paramMessage.mParcel.writeString("");
- paramMessage.mParcel.writeInt(0);
- if (paramCallDetails == null) {
- break label166;
- }
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramCallDetails);
- }
- for (;;)
- {
- send(paramMessage);
- return;
- paramMessage.mParcel.writeInt(0);
- paramMessage.mParcel.writeInt(3);
- paramMessage.mParcel.writeString("");
- break;
- label166:
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- }
- }
- public void dump(FileDescriptor arg1, PrintWriter paramPrintWriter, String[] arg3)
- {
- paramPrintWriter.println("RIL: " + this);
- paramPrintWriter.println(" mSocket=" + this.mSocket);
- paramPrintWriter.println(" mSenderThread=" + this.mSenderThread);
- paramPrintWriter.println(" mSender=" + this.mSender);
- paramPrintWriter.println(" mReceiverThread=" + this.mReceiverThread);
- paramPrintWriter.println(" mReceiver=" + this.mReceiver);
- paramPrintWriter.println(" mWakeLock=" + this.mWakeLock);
- paramPrintWriter.println(" mWakeLockTimeout=" + this.mWakeLockTimeout);
- synchronized (this.mRequestList)
- {
- synchronized (this.mWakeLock)
- {
- paramPrintWriter.println(" mWakeLockCount=" + this.mWakeLockCount);
- int j = this.mRequestList.size();
- paramPrintWriter.println(" mRequestList count=" + j);
- int i = 0;
- if (i < j)
- {
- ??? = (RILRequest)this.mRequestList.valueAt(i);
- paramPrintWriter.println(" [" + ???.mSerial + "] " + requestToString(???.mRequest));
- i += 1;
- }
- }
- }
- paramPrintWriter.println(" mLastNITZTimeInfo=" + this.mLastNITZTimeInfo);
- paramPrintWriter.println(" mTestingEmergencyCall=" + this.mTestingEmergencyCall.get());
- }
- public void exitEmergencyCallbackMode(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(99, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void explicitCallTransfer(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(72, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getAvailableNetworks(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(48, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getBasebandVersion(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(51, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getCDMASubscription(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(95, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getCLIR(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(31, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getCbConfig(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10008, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getCdmaBroadcastConfig(Message paramMessage)
- {
- send(RILRequest.obtain(92, paramMessage));
- }
- public void getCdmaSubscriptionSource(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(104, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getCellInfoList(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(109, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getCurrentCalls(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(9, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getDataCallList(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(57, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getDataRegistrationState(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(21, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getDeviceIdentity(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(98, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getGsmBroadcastConfig(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(89, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getHardwareConfig(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(124, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getICBarring(String paramString1, String paramString2, int paramInt, Message paramMessage)
- {
- RILRequest localRILRequest = RILRequest.obtain(10027, paramMessage);
- String str = localRILRequest.serialString() + "> " + requestToString(localRILRequest.mRequest);
- paramMessage = str;
- if (!SHIP_BUILD) {
- paramMessage = str + " [" + paramString1 + " " + paramInt + "]";
- }
- riljLog(paramMessage);
- localRILRequest.mParcel.writeInt(4);
- localRILRequest.mParcel.writeString(paramString1);
- localRILRequest.mParcel.writeString(paramString2);
- localRILRequest.mParcel.writeString(Integer.toString(paramInt));
- localRILRequest.mParcel.writeString("");
- send(localRILRequest);
- }
- public void getIMEI(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(38, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getIMEISV(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(39, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getIMSI(Message paramMessage)
- {
- getIMSIForApp(null, paramMessage);
- }
- public void getIMSIForApp(String paramString, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(11, paramMessage);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeString(paramString);
- String str = paramMessage.serialString() + "> getIMSI: " + requestToString(paramMessage.mRequest) + " aid: ";
- if (!SHIP_BUILD) {}
- for (paramString = str + paramString;; paramString = str + "xxx")
- {
- riljLog(paramString);
- send(paramMessage);
- return;
- }
- }
- public void getIccCardStatus(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(1, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getImsRegistrationState(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(112, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getLastCallFailCause(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(18, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getLastDataCallFailCause(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(56, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- @Deprecated
- public void getLastPdpFailCause(Message paramMessage)
- {
- getLastDataCallFailCause(paramMessage);
- }
- /* Error */
- public void getModemCapability(Message paramMessage)
- {
- // Byte code:
- // 0: new 2074 java/io/ByteArrayOutputStream
- // 3: dup
- // 4: invokespecial 2075 java/io/ByteArrayOutputStream:<init> ()V
- // 7: astore_3
- // 8: new 2077 java/io/DataOutputStream
- // 11: dup
- // 12: aload_3
- // 13: invokespecial 2080 java/io/DataOutputStream:<init> (Ljava/io/OutputStream;)V
- // 16: astore_2
- // 17: ldc 63
- // 19: ldc_w 2081
- // 22: invokestatic 406 android/telephony/Rlog:d (Ljava/lang/String;Ljava/lang/String;)I
- // 25: pop
- // 26: aload_2
- // 27: iconst_2
- // 28: invokevirtual 2083 java/io/DataOutputStream:writeByte (I)V
- // 31: aload_2
- // 32: bipush 97
- // 34: invokevirtual 2083 java/io/DataOutputStream:writeByte (I)V
- // 37: aload_2
- // 38: iconst_4
- // 39: invokevirtual 2086 java/io/DataOutputStream:writeShort (I)V
- // 42: aload_2
- // 43: invokevirtual 2089 java/io/DataOutputStream:close ()V
- // 46: aload_0
- // 47: aload_3
- // 48: invokevirtual 2092 java/io/ByteArrayOutputStream:toByteArray ()[B
- // 51: aload_1
- // 52: invokevirtual 2096 com/android/internal/telephony/RIL:invokeOemRilRequestRaw ([BLandroid/os/Message;)V
- // 55: return
- // 56: astore_1
- // 57: aload_2
- // 58: invokevirtual 2089 java/io/DataOutputStream:close ()V
- // 61: return
- // 62: astore_1
- // 63: return
- // 64: astore_1
- // 65: aload_2
- // 66: invokevirtual 2089 java/io/DataOutputStream:close ()V
- // 69: aload_1
- // 70: athrow
- // 71: astore_2
- // 72: goto -26 -> 46
- // 75: astore_2
- // 76: goto -7 -> 69
- // Local variable table:
- // start length slot name signature
- // 0 79 0 this RIL
- // 0 79 1 paramMessage Message
- // 16 50 2 localDataOutputStream java.io.DataOutputStream
- // 71 1 2 localException1 Exception
- // 75 1 2 localException2 Exception
- // 7 41 3 localByteArrayOutputStream java.io.ByteArrayOutputStream
- // Exception table:
- // from to target type
- // 26 42 56 java/io/IOException
- // 57 61 62 java/lang/Exception
- // 26 42 64 finally
- // 42 46 71 java/lang/Exception
- // 65 69 75 java/lang/Exception
- }
- public void getMute(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(54, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getNeighboringCids(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(75, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getNetworkSelectionMode(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(45, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getOperator(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(22, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- @Deprecated
- public void getPDPContextList(Message paramMessage)
- {
- getDataCallList(paramMessage);
- }
- public void getPhoneBookEntry(int paramInt1, int paramInt2, int paramInt3, String paramString, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10010, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- paramMessage.mParcel.writeInt(paramInt1);
- paramMessage.mParcel.writeInt(paramInt2);
- paramMessage.mParcel.writeString(null);
- paramMessage.mParcel.writeInt(paramInt3);
- paramMessage.mParcel.writeInt(0);
- paramMessage.mParcel.writeInt(0);
- paramMessage.mParcel.writeString(null);
- paramMessage.mParcel.writeString(paramString);
- send(paramMessage);
- }
- public void getPhoneBookStorageInfo(int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10009, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeInt(paramInt);
- send(paramMessage);
- }
- public void getPreferredNetworkList(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10016, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getPreferredNetworkType(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(74, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getPreferredVoicePrivacy(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(83, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getSIMLockInfo(int paramInt1, int paramInt2, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10013, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- paramMessage.mParcel.writeInt(paramInt1);
- paramMessage.mParcel.writeInt(paramInt2);
- send(paramMessage);
- }
- public void getSignalStrength(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(19, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getSmscAddress(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(100, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getUsimPBCapa(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10012, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getVoiceRadioTechnology(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(108, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void getVoiceRegistrationState(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(20, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void handleCallSetupRequestFromSim(boolean paramBoolean, Message paramMessage)
- {
- int i = 1;
- riljLog("handleCallSetupRequestFromSim");
- paramMessage = RILRequest.obtain(71, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- if (paramBoolean) {}
- for (;;)
- {
- paramMessage.mParcel.writeIntArray(new int[] { i });
- send(paramMessage);
- return;
- i = 0;
- }
- }
- public void hangupConnection(int paramInt, Message paramMessage)
- {
- riljLog("hangupConnection: gsmIndex=" + paramInt);
- paramMessage = RILRequest.obtain(12, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeInt(paramInt);
- send(paramMessage);
- }
- public void hangupForegroundResumeBackground(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(14, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void hangupVT(int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10021, paramMessage);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeInt(paramInt);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " rejectCause: " + paramInt);
- send(paramMessage);
- }
- public void hangupWaitingOrBackground(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(13, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void holdCall(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10022, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void iccCloseLogicalChannel(int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(116, paramMessage);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeInt(paramInt);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void iccIO(int paramInt1, int paramInt2, String paramString1, int paramInt3, int paramInt4, int paramInt5, String paramString2, String paramString3, Message paramMessage)
- {
- iccIOForApp(paramInt1, paramInt2, paramString1, paramInt3, paramInt4, paramInt5, paramString2, paramString3, null, paramMessage);
- }
- public void iccIOForApp(int paramInt1, int paramInt2, String paramString1, int paramInt3, int paramInt4, int paramInt5, String paramString2, String paramString3, String paramString4, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(28, paramMessage);
- paramMessage.mParcel.writeInt(paramInt1);
- paramMessage.mParcel.writeInt(paramInt2);
- paramMessage.mParcel.writeString(paramString1);
- paramMessage.mParcel.writeInt(paramInt3);
- paramMessage.mParcel.writeInt(paramInt4);
- paramMessage.mParcel.writeInt(paramInt5);
- paramMessage.mParcel.writeString(paramString2);
- paramMessage.mParcel.writeString(paramString3);
- paramMessage.mParcel.writeString(paramString4);
- paramString1 = paramMessage.serialString() + "> iccIO: " + requestToString(paramMessage.mRequest) + " 0x" + Integer.toHexString(paramInt1) + " 0x" + Integer.toHexString(paramInt2) + " " + " path: " + paramString1 + "," + paramInt3 + "," + paramInt4 + "," + paramInt5 + " aid: ";
- if (!SHIP_BUILD) {}
- for (paramString1 = paramString1 + paramString4;; paramString1 = paramString1 + "xxx")
- {
- riljLog(paramString1);
- send(paramMessage);
- return;
- }
- }
- public void iccOpenLogicalChannel(String paramString, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(115, paramMessage);
- paramMessage.mParcel.writeString(paramString);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void iccTransmitApduBasicChannel(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, String paramString, Message paramMessage)
- {
- iccTransmitApduHelper(114, 0, paramInt1, paramInt2, paramInt3, paramInt4, paramInt5, paramString, paramMessage);
- }
- public void iccTransmitApduLogicalChannel(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6, String paramString, Message paramMessage)
- {
- if (paramInt1 <= 0) {
- throw new RuntimeException("Invalid channel in iccTransmitApduLogicalChannel: " + paramInt1);
- }
- iccTransmitApduHelper(117, paramInt1, paramInt2, paramInt3, paramInt4, paramInt5, paramInt6, paramString, paramMessage);
- }
- public void invokeOemRilRequestRaw(byte[] paramArrayOfByte, Message paramMessage)
- {
- RILRequest localRILRequest = RILRequest.obtain(59, paramMessage);
- String str = IccUtils.bytesToHexString(paramArrayOfByte);
- paramMessage = str;
- if (SHIP_BUILD)
- {
- if (!"15".equals(str.substring(0, 2))) {
- break label111;
- }
- paramMessage = "****";
- }
- for (;;)
- {
- riljLog(localRILRequest.serialString() + "> " + requestToString(localRILRequest.mRequest) + "[" + paramMessage + "]");
- localRILRequest.mParcel.writeByteArray(paramArrayOfByte);
- send(localRILRequest);
- return;
- label111:
- paramMessage = str;
- if ("1627".equals(str.substring(0, 4)))
- {
- paramMessage = str;
- if ("KOREA".equals(SystemProperties.get("ro.csc.country_code"))) {
- paramMessage = "****";
- }
- }
- }
- }
- public void invokeOemRilRequestStrings(String[] paramArrayOfString, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(60, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- paramMessage.mParcel.writeStringArray(paramArrayOfString);
- send(paramMessage);
- }
- public void modifyCallConfirm(CallModify paramCallModify, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10004, paramMessage);
- paramMessage.mParcel.writeInt(paramCallModify.call_index);
- paramMessage.mParcel.writeInt(paramCallModify.call_details.call_type);
- paramMessage.mParcel.writeInt(paramCallModify.call_details.call_domain);
- paramMessage.mParcel.writeString(paramCallModify.call_details.getCsvFromExtras());
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramCallModify);
- send(paramMessage);
- }
- public void modifyCallInitiate(CallModify paramCallModify, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10003, paramMessage);
- paramMessage.mParcel.writeInt(paramCallModify.call_index);
- paramMessage.mParcel.writeInt(paramCallModify.call_details.call_type);
- paramMessage.mParcel.writeInt(paramCallModify.call_details.call_domain);
- paramMessage.mParcel.writeString(paramCallModify.call_details.getCsvFromExtras());
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramCallModify);
- send(paramMessage);
- }
- public String modifyDnsByCpa(String paramString1, String paramString2)
- {
- if (Settings.Secure.getInt(this.mContext.getContentResolver(), "kddi_cpa_on", 0) != 0) {}
- String str3;
- for (boolean bool = true;; bool = false)
- {
- String str2 = Settings.Secure.getString(this.mContext.getContentResolver(), "kddi_cpa_static_dns1");
- String str1 = Settings.Secure.getString(this.mContext.getContentResolver(), "kddi_cpa_static_dns2");
- riljLog("modifyDnsByCpa (isKddiCpaOn:" + bool + ", cpaDns1:" + str2 + "cpaDns2:" + str1 + ", dnses:" + paramString1 + ")");
- if (!bool) {
- return paramString1;
- }
- str3 = "net." + paramString2 + ".";
- paramString2 = new String[2];
- if (str2 != null)
- {
- paramString2 = str2;
- if (!str2.equals("")) {}
- }
- else
- {
- if (!TextUtils.isEmpty(paramString1)) {
- break;
- }
- paramString2 = "1.0.0.0";
- str1 = "1.0.0.0";
- }
- SystemProperties.set(str3 + "dns1", paramString2);
- SystemProperties.set(str3 + "dns2", str1);
- return paramString2 + " " + str1;
- }
- paramString1 = paramString1.split(" ");
- riljLog("tmpdns[0]:" + paramString1[0] + ", tmpDns[1]:" + paramString1[1]);
- if (paramString1[0].equals("0.0.0.0")) {
- paramString1[0] = "1.0.0.0";
- }
- if (paramString1[1].equals("0.0.0.0")) {
- paramString1[1] = "1.0.0.0";
- }
- SystemProperties.set(str3 + "dns1", paramString1[0]);
- SystemProperties.set(str3 + "dns2", paramString1[1]);
- return paramString1[0] + " " + paramString1[1];
- return paramString1;
- }
- public int modifyNetworkTypeByOperator(int paramInt)
- {
- SystemProperties.getBoolean("persist.radio.dcmlte", true);
- SystemProperties.getBoolean("gsm.operator.isroaming", false);
- int k = SystemProperties.getInt("persist.radio.setnwkmode", 9);
- boolean bool2;
- boolean bool3;
- if (Settings.Global.getInt(this.mContext.getContentResolver(), "mobile_data", 1) == 1)
- {
- bool2 = true;
- if (Settings.Global.getInt(this.mContext.getContentResolver(), "data_roaming", 1) != 1) {
- break label147;
- }
- bool3 = true;
- label68:
- if (Settings.System.getInt(this.mContext.getContentResolver(), "voicecall_type", 1) != 0) {
- break label153;
- }
- }
- String str1;
- String str2;
- label147:
- label153:
- for (;;)
- {
- str1 = SystemProperties.get("gsm.operator.numeric", "");
- str2 = SystemProperties.get("gsm.sim.operator.numeric", "44050");
- if ((!"00101".equals(str2)) && (!"99999".equals(str2)) && (!"45001".equals(str2))) {
- break label156;
- }
- return paramInt;
- bool2 = false;
- break;
- bool3 = false;
- break label68;
- }
- label156:
- boolean bool1;
- label248:
- int i;
- if (str1.length() < 3)
- {
- bool1 = false;
- riljLog("modifyNetworkTypeByOperator (preferredNetworkType:" + k + ", userDataEnabled:" + bool2 + ", isRoaming:" + bool1 + ", userDataRoamingEnabled:" + bool3 + ")");
- if ((!bool2) || ((bool1) && (!bool3))) {
- break label436;
- }
- paramInt = 1;
- i = paramInt;
- if ("KDI".equals(""))
- {
- bool2 = PreferenceManager.getDefaultSharedPreferences(this.mContext).getBoolean("japan_system_select_key", true);
- riljLog("... LteDataComm:" + bool2);
- if (!bool1) {
- break label446;
- }
- if ((paramInt == 0) || (!bool2)) {
- break label441;
- }
- i = 1;
- }
- label320:
- int j = k;
- paramInt = j;
- if (i == 0)
- {
- paramInt = j;
- switch (k)
- {
- default:
- paramInt = j;
- }
- }
- }
- for (;;)
- {
- return paramInt;
- if ((str2.substring(0, 3).equals(str1.substring(0, 3))) || ("000".equals(str1.substring(0, 3))) || ("000".equals(str2.substring(0, 3))))
- {
- bool1 = false;
- break;
- }
- bool1 = true;
- break;
- label436:
- paramInt = 0;
- break label248;
- label441:
- i = 0;
- break label320;
- label446:
- i = 1;
- break label320;
- paramInt = 2;
- continue;
- paramInt = 3;
- continue;
- paramInt = 4;
- continue;
- paramInt = 7;
- }
- }
- protected void notifyModemCap(byte[] paramArrayOfByte, Integer paramInteger)
- {
- paramArrayOfByte = new AsyncResult(null, new UnsolOemHookBuffer(paramInteger.intValue(), paramArrayOfByte), null);
- this.mModemCapRegistrants.notifyRegistrants(paramArrayOfByte);
- Rlog.d("RILJ", "MODEM_CAPABILITY on phone=" + paramInteger + " notified to registrants");
- }
- public void nvReadItem(int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(118, paramMessage);
- paramMessage.mParcel.writeInt(paramInt);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + ' ' + paramInt);
- send(paramMessage);
- }
- public void nvResetConfig(int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(121, paramMessage);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeInt(paramInt);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + ' ' + paramInt);
- send(paramMessage);
- }
- public void nvWriteCdmaPrl(byte[] paramArrayOfByte, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(120, paramMessage);
- paramMessage.mParcel.writeByteArray(paramArrayOfByte);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " (" + paramArrayOfByte.length + " bytes)");
- send(paramMessage);
- }
- public void nvWriteItem(int paramInt, String paramString, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(119, paramMessage);
- paramMessage.mParcel.writeInt(paramInt);
- paramMessage.mParcel.writeString(paramString);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + ' ' + paramInt + ": " + paramString);
- send(paramMessage);
- }
- protected void onRadioAvailable()
- {
- updateScreenState();
- }
- protected RILRequest processSolicited(Parcel paramParcel)
- {
- String str = SystemProperties.get("ro.csc.sales_code");
- int i = paramParcel.readInt();
- int j = paramParcel.readInt();
- RILRequest localRILRequest = findAndRemoveRequestFromList(i);
- if (localRILRequest == null)
- {
- Rlog.w("RILJ", "Unexpected solicited response! sn: " + i + " error: " + j);
- paramParcel = null;
- return paramParcel;
- }
- Object localObject1 = null;
- if ((j == 0) || (paramParcel.dataAvail() > 0)) {}
- for (;;)
- {
- try
- {
- switch (localRILRequest.mRequest)
- {
- case 1:
- throw new RuntimeException("Unrecognized solicited response: " + localRILRequest.mRequest);
- }
- }
- catch (Throwable localThrowable)
- {
- Rlog.w("RILJ", localRILRequest.serialString() + "< " + requestToString(localRILRequest.mRequest) + " exception, possible invalid RIL response", localThrowable);
- paramParcel = localRILRequest;
- }
- if (localRILRequest.mResult == null) {
- break;
- }
- AsyncResult.forMessage(localRILRequest.mResult, null, localThrowable);
- localRILRequest.mResult.sendToTarget();
- return localRILRequest;
- Object localObject2 = responseIccCardStatus(paramParcel);
- if (localRILRequest.mRequest == 129)
- {
- riljLog("Response to RIL_REQUEST_SHUTDOWN received. Error is " + j + " Setting Radio State to Unavailable regardless of error.");
- setRadioState(CommandsInterface.RadioState.RADIO_UNAVAILABLE);
- if (("DCGS".equals("")) && ("1".equals(SystemProperties.get("sys.deviceOffReq", "0"))))
- {
- if (this.mInstanceId.intValue() != 0) {
- break label3235;
- }
- SystemProperties.set("ril.deviceOffRes", "1");
- }
- }
- label1560:
- switch (localRILRequest.mRequest)
- {
- case 4:
- default:
- label1592:
- if (j == 0) {
- break;
- }
- switch (localRILRequest.mRequest)
- {
- }
- break;
- }
- for (;;)
- {
- localRILRequest.onError(j, localObject2);
- return localRILRequest;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseCallList(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseString(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- if ((this.mTestingEmergencyCall.getAndSet(false)) && (this.mEmergencyCallbackModeRegistrant != null))
- {
- riljLog("testing emergency call, notify ECM Registrants");
- this.mEmergencyCallbackModeRegistrant.notifyRegistrant();
- }
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseSignalStrength(paramParcel);
- break;
- localObject2 = responseStrings(paramParcel);
- break;
- localObject2 = responseStrings(paramParcel);
- break;
- localObject2 = responseStrings(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseSMS(paramParcel);
- break;
- localObject2 = responseSMS(paramParcel);
- break;
- localObject2 = responseSetupDataCall(paramParcel);
- break;
- localObject2 = responseICC_IO(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseCallForward(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseString(paramParcel);
- break;
- localObject2 = responseString(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseOperatorInfos(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseString(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseDataCallList(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseRaw(paramParcel);
- break;
- localObject2 = responseStrings(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseString(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseString(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseGetPreferredNetworkType(paramParcel);
- break;
- localObject2 = responseCellList(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseSMS(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseGmsBroadcastConfig(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseCdmaBroadcastConfig(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseStrings(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseStrings(paramParcel);
- break;
- localObject2 = responseString(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseString(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseICC_IO(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseCellInfoList(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseSMS(paramParcel);
- break;
- localObject2 = responseICC_IO(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseICC_IO(paramParcel);
- break;
- localObject2 = responseString(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseHardwareConfig(paramParcel);
- break;
- localObject2 = responseICC_IO(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseCbSettings(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseSIM_PB(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseSIM_LockInfo(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responsePreferredNetworkList(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseInts(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseSMS(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseSimPowerDone(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- localObject2 = responseBootstrap(paramParcel);
- break;
- localObject2 = responseNaf(paramParcel);
- break;
- localObject2 = responseString(paramParcel);
- break;
- localObject2 = responseVoid(paramParcel);
- break;
- label3235:
- if (this.mInstanceId.intValue() != 1) {
- break label1560;
- }
- SystemProperties.set("ril.deviceOffRes2", "1");
- break label1560;
- if (this.mIccStatusChangedRegistrants == null) {
- break label1592;
- }
- riljLog("ON enter sim puk fakeSimStatusChanged: reg count=" + this.mIccStatusChangedRegistrants.size());
- this.mIccStatusChangedRegistrants.notifyRegistrants();
- break label1592;
- if (this.mIccStatusChangedRegistrants != null)
- {
- riljLog("ON some errors fakeSimStatusChanged: reg count=" + this.mIccStatusChangedRegistrants.size());
- this.mIccStatusChangedRegistrants.notifyRegistrants();
- }
- }
- if (("CTC".equals(str)) && (localRILRequest.mRequest == 73))
- {
- if ((this.mPreferredNetworkType >= 8) && (this.mPreferredNetworkType <= 12)) {
- break label3507;
- }
- Settings.System.putInt(this.mContext.getContentResolver(), "lte_mode_switch", 0);
- Rlog.d("RILJ", "Set LTE_MODE_SWITCH off");
- }
- for (;;)
- {
- riljLog(localRILRequest.serialString() + "< " + requestToString(localRILRequest.mRequest) + " " + retToString(localRILRequest.mRequest, localObject2));
- paramParcel = localRILRequest;
- if (localRILRequest.mResult == null) {
- break;
- }
- AsyncResult.forMessage(localRILRequest.mResult, localObject2, null);
- localRILRequest.mResult.sendToTarget();
- return localRILRequest;
- label3507:
- Settings.System.putInt(this.mContext.getContentResolver(), "lte_mode_switch", 1);
- Rlog.d("RILJ", "Set LTE_MODE_SWITCH on");
- }
- }
- }
- protected void processUnsolicited(Parcel paramParcel)
- {
- int i = paramParcel.readInt();
- switch (i)
- {
- default:
- try
- {
- throw new RuntimeException("Unrecognized unsol response: " + i);
- }
- catch (Throwable paramParcel)
- {
- Rlog.e("RILJ", "Exception processing unsol response: " + i + "Exception:" + paramParcel.toString());
- }
- }
- for (;;)
- {
- return;
- Object localObject1 = responseVoid(paramParcel);
- for (;;)
- {
- switch (i)
- {
- default:
- return;
- case 1000:
- paramParcel = getRadioStateFromInt(paramParcel.readInt());
- unsljLogMore(i, paramParcel.toString());
- switchToRadioState(paramParcel);
- return;
- localObject1 = responseVoid(paramParcel);
- continue;
- localObject1 = responseVoid(paramParcel);
- continue;
- localObject1 = responseString(paramParcel);
- continue;
- localObject1 = responseString(paramParcel);
- continue;
- localObject1 = responseInts(paramParcel);
- continue;
- localObject1 = responseStrings(paramParcel);
- continue;
- localObject1 = responseString(paramParcel);
- continue;
- localObject1 = responseSignalStrength(paramParcel);
- continue;
- localObject1 = responseDataCallList(paramParcel);
- continue;
- localObject1 = responseSuppServiceNotification(paramParcel);
- continue;
- localObject1 = responseVoid(paramParcel);
- continue;
- localObject1 = responseString(paramParcel);
- continue;
- localObject1 = responseString(paramParcel);
- continue;
- localObject1 = responseInts(paramParcel);
- continue;
- localObject1 = responseVoid(paramParcel);
- continue;
- localObject1 = responseSimRefresh(paramParcel);
- continue;
- localObject1 = responseCallRing(paramParcel);
- continue;
- localObject1 = responseInts(paramParcel);
- continue;
- localObject1 = responseVoid(paramParcel);
- continue;
- localObject1 = responseCdmaSms(paramParcel);
- continue;
- localObject1 = responseRaw(paramParcel);
- continue;
- localObject1 = responseVoid(paramParcel);
- continue;
- localObject1 = responseVoid(paramParcel);
- continue;
- localObject1 = responseCdmaCallWaiting(paramParcel);
- continue;
- localObject1 = responseInts(paramParcel);
- continue;
- localObject1 = responseCdmaInformationRecord(paramParcel);
- continue;
- localObject1 = responseRaw(paramParcel);
- continue;
- localObject1 = responseInts(paramParcel);
- continue;
- localObject1 = responseVoid(paramParcel);
- continue;
- localObject1 = responseInts(paramParcel);
- continue;
- localObject1 = responseInts(paramParcel);
- continue;
- localObject1 = responseVoid(paramParcel);
- continue;
- localObject1 = responseInts(paramParcel);
- continue;
- localObject1 = responseInts(paramParcel);
- continue;
- localObject1 = responseCellInfoList(paramParcel);
- continue;
- localObject1 = responseVoid(paramParcel);
- continue;
- localObject1 = responseInts(paramParcel);
- continue;
- localObject1 = responseInts(paramParcel);
- continue;
- localObject1 = responseHardwareConfig(paramParcel);
- continue;
- localObject1 = responseSSReleaseCompleteNotification(paramParcel);
- continue;
- localObject1 = responseInts(paramParcel);
- continue;
- localObject1 = responseString(paramParcel);
- continue;
- localObject1 = responseVoid(paramParcel);
- continue;
- localObject1 = responseVoid(paramParcel);
- continue;
- localObject1 = responseString(paramParcel);
- continue;
- localObject1 = responseRaw(paramParcel);
- continue;
- localObject1 = responseRaw(paramParcel);
- continue;
- localObject1 = responseVoid(paramParcel);
- continue;
- localObject1 = responseRaw(paramParcel);
- continue;
- localObject1 = responseInts(paramParcel);
- continue;
- localObject1 = responseCallModify(paramParcel);
- continue;
- localObject1 = responseInts(paramParcel);
- continue;
- localObject1 = responseInts(paramParcel);
- continue;
- localObject1 = responseVoid(paramParcel);
- continue;
- localObject1 = responseVoid(paramParcel);
- continue;
- localObject1 = responseVoid(paramParcel);
- continue;
- localObject1 = responseVoid(paramParcel);
- continue;
- localObject1 = responseInts(paramParcel);
- continue;
- localObject1 = responseSSData(paramParcel);
- continue;
- localObject1 = responseRaw(paramParcel);
- continue;
- localObject1 = responseStrings(paramParcel);
- continue;
- localObject1 = responseInts(paramParcel);
- continue;
- localObject1 = responseInts(paramParcel);
- }
- }
- unsljLog(i);
- this.mImsNetworkStateChangedRegistrants.notifyRegistrants(new AsyncResult(null, null, null));
- return;
- unsljLog(i);
- this.mCallStateRegistrants.notifyRegistrants(new AsyncResult(null, null, null));
- return;
- unsljLog(i);
- this.mVoiceNetworkStateRegistrants.notifyRegistrants(new AsyncResult(null, null, null));
- return;
- unsljLog(i);
- paramParcel = new String[2];
- paramParcel[1] = ((String)localObject1);
- paramParcel = SmsMessage.newFromCMT(paramParcel);
- if (this.mGsmSmsRegistrant == null) {
- continue;
- }
- this.mGsmSmsRegistrant.notifyRegistrant(new AsyncResult(null, paramParcel, null));
- return;
- unsljLogRet(i, localObject1);
- if (this.mSmsStatusRegistrant == null) {
- continue;
- }
- this.mSmsStatusRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- unsljLogRet(i, localObject1);
- paramParcel = (int[])localObject1;
- if (paramParcel.length == 1)
- {
- if (this.mSmsOnSimRegistrant == null) {
- continue;
- }
- this.mSmsOnSimRegistrant.notifyRegistrant(new AsyncResult(null, paramParcel, null));
- return;
- }
- riljLog(" NEW_SMS_ON_SIM ERROR with wrong length " + paramParcel.length);
- return;
- Object localObject2 = (String[])localObject1;
- paramParcel = (Parcel)localObject2;
- if (localObject2.length < 2)
- {
- paramParcel = new String[2];
- paramParcel[0] = ((String[])(String[])localObject1)[0];
- paramParcel[1] = null;
- }
- unsljLogMore(i, paramParcel[0]);
- if (this.mUSSDRegistrant == null) {
- continue;
- }
- this.mUSSDRegistrant.notifyRegistrant(new AsyncResult(null, paramParcel, null));
- return;
- unsljLogRet(i, localObject1);
- long l = paramParcel.readLong();
- paramParcel = new Object[2];
- paramParcel[0] = localObject1;
- paramParcel[1] = Long.valueOf(l);
- if (SystemProperties.getBoolean("telephony.test.ignore.nitz", false))
- {
- riljLog("ignoring UNSOL_NITZ_TIME_RECEIVED");
- return;
- }
- if (this.mNITZTimeRegistrant != null)
- {
- this.mNITZTimeRegistrant.notifyRegistrant(new AsyncResult(null, paramParcel, null));
- return;
- }
- this.mLastNITZTimeInfo = paramParcel;
- return;
- if (this.mSignalStrengthRegistrant == null) {
- continue;
- }
- this.mSignalStrengthRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- unsljLogRet(i, localObject1);
- this.mDataNetworkStateRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
- return;
- unsljLogRet(i, localObject1);
- if (this.mSsnRegistrant == null) {
- continue;
- }
- this.mSsnRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- unsljLog(i);
- if (this.mCatSessionEndRegistrant == null) {
- continue;
- }
- this.mCatSessionEndRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- unsljLog(i);
- if (this.mCatProCmdRegistrant == null) {
- continue;
- }
- this.mCatProCmdRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- unsljLog(i);
- if (this.mCatEventRegistrant == null) {
- continue;
- }
- this.mCatEventRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- unsljLogRet(i, localObject1);
- if (this.mCatCallSetUpRegistrant == null) {
- continue;
- }
- this.mCatCallSetUpRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- unsljLog(i);
- if (this.mIccSmsFullRegistrant == null) {
- continue;
- }
- this.mIccSmsFullRegistrant.notifyRegistrant();
- return;
- unsljLogRet(i, localObject1);
- if (this.mIccRefreshRegistrants == null) {
- continue;
- }
- this.mIccRefreshRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
- return;
- unsljLogRet(i, localObject1);
- if (this.mRingRegistrant == null) {
- continue;
- }
- this.mRingRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- unsljLogvRet(i, localObject1);
- if (this.mRestrictedStateRegistrant == null) {
- continue;
- }
- this.mRestrictedStateRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- unsljLog(i);
- if (this.mIccStatusChangedRegistrants == null) {
- continue;
- }
- this.mIccStatusChangedRegistrants.notifyRegistrants();
- return;
- unsljLog(i);
- paramParcel = (SmsMessage)localObject1;
- if (this.mCdmaSmsRegistrant == null) {
- continue;
- }
- this.mCdmaSmsRegistrant.notifyRegistrant(new AsyncResult(null, paramParcel, null));
- return;
- unsljLog(i);
- if (this.mGsmBroadcastSmsRegistrant == null) {
- continue;
- }
- this.mGsmBroadcastSmsRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- unsljLog(i);
- if (this.mIccSmsFullRegistrant == null) {
- continue;
- }
- this.mIccSmsFullRegistrant.notifyRegistrant();
- return;
- unsljLog(i);
- if (this.mEmergencyCallbackModeRegistrant == null) {
- continue;
- }
- this.mEmergencyCallbackModeRegistrant.notifyRegistrant();
- return;
- unsljLogRet(i, localObject1);
- if (this.mCallWaitingInfoRegistrants == null) {
- continue;
- }
- this.mCallWaitingInfoRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
- return;
- unsljLogRet(i, localObject1);
- if (this.mOtaProvisionRegistrants == null) {
- continue;
- }
- this.mOtaProvisionRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
- return;
- try
- {
- paramParcel = (ArrayList)localObject1;
- paramParcel = paramParcel.iterator();
- while (paramParcel.hasNext())
- {
- localObject1 = (CdmaInformationRecords)paramParcel.next();
- unsljLogRet(i, localObject1);
- notifyRegistrantsCdmaInfoRec((CdmaInformationRecords)localObject1);
- }
- unsljLogvRet(i, IccUtils.bytesToHexString((byte[])localObject1));
- }
- catch (ClassCastException paramParcel)
- {
- Rlog.e("RILJ", "Unexpected exception casting to listInfoRecs", paramParcel);
- return;
- }
- if (this.mUnsolOemHookRawRegistrant == null) {
- continue;
- }
- this.mUnsolOemHookRawRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- unsljLogvRet(i, localObject1);
- if (this.mRingbackToneRegistrants == null) {
- continue;
- }
- if (((int[])(int[])localObject1)[0] == 1) {}
- for (boolean bool = true;; bool = false)
- {
- this.mRingbackToneRegistrants.notifyRegistrants(new AsyncResult(null, Boolean.valueOf(bool), null));
- return;
- }
- unsljLogRet(i, localObject1);
- if (this.mResendIncallMuteRegistrants == null) {
- continue;
- }
- this.mResendIncallMuteRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
- return;
- unsljLogRet(i, localObject1);
- if (this.mVoiceRadioTechChangedRegistrants == null) {
- continue;
- }
- this.mVoiceRadioTechChangedRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
- return;
- unsljLogRet(i, localObject1);
- if (this.mCdmaSubscriptionChangedRegistrants == null) {
- continue;
- }
- this.mCdmaSubscriptionChangedRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
- return;
- unsljLogRet(i, localObject1);
- if (this.mCdmaPrlChangedRegistrants == null) {
- continue;
- }
- this.mCdmaPrlChangedRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
- return;
- unsljLogRet(i, localObject1);
- if (this.mExitEmergencyCallbackModeRegistrants == null) {
- continue;
- }
- this.mExitEmergencyCallbackModeRegistrants.notifyRegistrants(new AsyncResult(null, null, null));
- return;
- unsljLogRet(i, localObject1);
- if ("DCGG".equals("")) {
- Rlog.d("RILJ", "do not power off radio");
- }
- for (;;)
- {
- label3009:
- if (!"DCGS".equals("")) {
- setPreferredData();
- }
- setCellInfoListRate(Integer.MAX_VALUE, null);
- notifyRegistrantsRilConnectionChanged(((int[])(int[])localObject1)[0]);
- return;
- if ((!"DGG".equals("")) || (this.mInstanceId.intValue() != 1)) {
- break;
- }
- Rlog.d("RILJ", "do not power off radio");
- }
- if ("DCGGS".equals(""))
- {
- localObject2 = SystemProperties.get("ril.rildreset", "");
- if ("8".equals(localObject2))
- {
- paramParcel = SystemProperties.get("ril.RildInit", "");
- i = 1;
- label3124:
- if ((!"1".equals(paramParcel)) && (i < 8)) {
- Rlog.d("RILJ", "Rild is not ready, reTry " + i + "times");
- }
- }
- }
- try
- {
- Thread.sleep(500L);
- paramParcel = SystemProperties.get("ril.RildInit", "");
- i += 1;
- break label3124;
- Rlog.d("RILJ", "[CGG] Notify ril connected event to CP!");
- setSimPower(9, null);
- if ((!"8".equals(localObject2)) && (!"9".equals(localObject2))) {
- break label3009;
- }
- Rlog.d("RILJ", "[CGG] rildreset property value set as zero!");
- SystemProperties.set("ril.rildreset", "0");
- break label3009;
- if ((TelephonyManager.getDefault().getPhoneCount() > 1) && (this.mInstanceId.intValue() == 1))
- {
- Rlog.d("RILJ", "Do not power off radio for slot2");
- break label3009;
- }
- setRadioPower(false, null);
- break label3009;
- unsljLogRet(i, localObject1);
- if (this.mRilCellInfoListRegistrants == null) {
- continue;
- }
- this.mRilCellInfoListRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
- return;
- unsljLogRet(i, localObject1);
- if (this.mSubscriptionStatusRegistrants == null) {
- continue;
- }
- this.mSubscriptionStatusRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
- return;
- unsljLogRet(i, localObject1);
- if (this.mSrvccStateRegistrants == null) {
- continue;
- }
- this.mSrvccStateRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
- return;
- unsljLogRet(i, localObject1);
- if (this.mHardwareConfigChangeRegistrants == null) {
- continue;
- }
- this.mHardwareConfigChangeRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
- return;
- paramParcel = (String)localObject1;
- Rlog.d("RILJ", "Executing Am " + paramParcel);
- Am.main(paramParcel.split(" "));
- return;
- unsljLogvRet(i, localObject1);
- if (this.mImsRegistrationStateChangedRegistrants == null) {
- continue;
- }
- this.mImsRegistrationStateChangedRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
- return;
- unsljLogvRet(i, localObject1);
- if (this.mModifyCallRegistrants == null) {
- continue;
- }
- this.mModifyCallRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
- return;
- unsljLogRet(i, localObject1);
- if (this.mCatSendSmsResultRegistrant == null) {
- continue;
- }
- this.mCatSendSmsResultRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- unsljLogRet(i, localObject1);
- if (this.mCatCallControlResultRegistrant == null) {
- continue;
- }
- this.mCatCallControlResultRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- unsljLog(i);
- if (this.mReleaseCompleteMessageRegistrant == null) {
- continue;
- }
- this.mReleaseCompleteMessageRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- unsljLogRet(i, localObject1);
- if (this.mPbInitCompleteRegistrant == null) {
- continue;
- }
- this.mPbInitCompleteRegistrant.notifyRegistrant(new AsyncResult(null, null, null));
- return;
- unsljLogRet(i, localObject1);
- if (this.mSimPbReadyRegistrant == null) {
- continue;
- }
- this.mSimPbReadyRegistrant.notifyRegistrant(new AsyncResult(null, null, null));
- return;
- unsljLogRet(i, localObject1);
- if (this.mHysteresisDCNRegistant == null) {
- continue;
- }
- this.mHysteresisDCNRegistant.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- unsljLog(i);
- if (this.mSmsDeviceReadyRegistrant == null) {
- continue;
- }
- this.mSmsDeviceReadyRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- unsljLog(i);
- if (this.mHomeNetworkRegistant == null) {
- continue;
- }
- this.mHomeNetworkRegistant.notifyRegistrant();
- return;
- unsljLogRet(i, localObject1);
- if (this.mCsFallbackRegistant == null) {
- continue;
- }
- this.mCsFallbackRegistant.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- unsljLogvRet(i, localObject1);
- if (this.mVoiceSystemIdRegistrant == null) {
- continue;
- }
- this.mVoiceSystemIdRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- unsljLogRet(i, localObject1);
- if (this.mStkSetupCallStatus == null) {
- continue;
- }
- this.mStkSetupCallStatus.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- unsljLogRet(i, localObject1);
- if (this.mImsPrefNotiRegistrant == null) {
- continue;
- }
- this.mImsPrefNotiRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- unsljLogRet(i, localObject1);
- if (this.mSSRegistrant == null) {
- continue;
- }
- this.mSSRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- unsljLogRet(i, localObject1);
- Rlog.d("RILJ", "UNSOL_MODEM_CAPABILITY = mInstanceId" + this.mInstanceId);
- notifyModemCap((byte[])localObject1, this.mInstanceId);
- return;
- unsljLogRet(i, localObject1);
- if (this.mDunStateChangedRegistrant == null) {
- continue;
- }
- return;
- unsljLog(i);
- Rlog.d("RILJ", "RIL_UNSOL_IMS_RETRYOVER");
- if (this.mImsRegistrationRetryOver == null) {
- continue;
- }
- this.mImsRegistrationRetryOver.notifyRegistrants(new AsyncResult(null, null, null));
- return;
- unsljLogRet(i, localObject1);
- if (this.mSapRegistant == null) {
- continue;
- }
- this.mSapRegistant.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- unsljLogRet(i, localObject1);
- if (this.mIccAppRefreshRegistrant == null) {
- continue;
- }
- this.mIccAppRefreshRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
- return;
- }
- catch (InterruptedException paramParcel)
- {
- for (;;) {}
- }
- }
- }
- public void queryAvailableBandMode(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(66, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void queryCLIP(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(55, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void queryCallForwardStatus(int paramInt1, int paramInt2, String paramString, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(33, paramMessage);
- paramMessage.mParcel.writeInt(2);
- paramMessage.mParcel.writeInt(paramInt1);
- paramMessage.mParcel.writeInt(paramInt2);
- paramMessage.mParcel.writeInt(PhoneNumberUtils.toaFromString(paramString));
- paramMessage.mParcel.writeString(paramString);
- paramMessage.mParcel.writeInt(0);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt1 + " " + paramInt2);
- send(paramMessage);
- }
- public void queryCallWaiting(int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(35, paramMessage);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeInt(paramInt);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt);
- send(paramMessage);
- }
- public void queryCdmaRoamingPreference(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(79, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void queryFacilityLock(String paramString1, String paramString2, int paramInt, Message paramMessage)
- {
- queryFacilityLockForApp(paramString1, paramString2, paramInt, null, paramMessage);
- }
- public void queryFacilityLockForApp(String paramString1, String paramString2, int paramInt, String paramString3, Message paramMessage)
- {
- RILRequest localRILRequest = RILRequest.obtain(42, paramMessage);
- String str = localRILRequest.serialString() + "> " + requestToString(localRILRequest.mRequest);
- paramMessage = str;
- if (!SHIP_BUILD) {
- paramMessage = str + " [" + paramString1 + " " + paramInt + " " + paramString3 + "]";
- }
- riljLog(paramMessage);
- localRILRequest.mParcel.writeInt(4);
- localRILRequest.mParcel.writeString(paramString1);
- localRILRequest.mParcel.writeString(paramString2);
- localRILRequest.mParcel.writeString(Integer.toString(paramInt));
- localRILRequest.mParcel.writeString(paramString3);
- send(localRILRequest);
- }
- public void queryTTYMode(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(81, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void rejectCall(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(17, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void reportSmsMemoryStatus(boolean paramBoolean, Message paramMessage)
- {
- int i = 1;
- paramMessage = RILRequest.obtain(102, paramMessage);
- paramMessage.mParcel.writeInt(1);
- Parcel localParcel = paramMessage.mParcel;
- if (paramBoolean) {}
- for (;;)
- {
- localParcel.writeInt(i);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + ": " + paramBoolean);
- send(paramMessage);
- return;
- i = 0;
- }
- }
- public void reportStkServiceIsRunning(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(103, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void requestIccSimAuthentication(int paramInt, String paramString1, String paramString2, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(125, paramMessage);
- paramMessage.mParcel.writeInt(paramInt);
- paramMessage.mParcel.writeString(paramString1);
- paramMessage.mParcel.writeString(paramString2);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void requestIsimAuthentication(String paramString, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(105, paramMessage);
- paramMessage.mParcel.writeString(paramString);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void requestShutdown(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(129, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void resetRadio(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(58, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- protected Object responseCallList(Parcel paramParcel)
- {
- int j = paramParcel.readInt();
- ArrayList localArrayList = new ArrayList(j);
- int i = 0;
- if (i < j)
- {
- DriverCall localDriverCall = new DriverCall();
- localDriverCall.state = DriverCall.stateFromCLCC(paramParcel.readInt());
- localDriverCall.index = paramParcel.readInt();
- localDriverCall.id = (localDriverCall.index >> 8 & 0xFF);
- localDriverCall.index &= 0xFF;
- localDriverCall.TOA = paramParcel.readInt();
- boolean bool;
- if (paramParcel.readInt() != 0)
- {
- bool = true;
- label102:
- localDriverCall.isMpty = bool;
- if (paramParcel.readInt() == 0) {
- break label594;
- }
- bool = true;
- label119:
- localDriverCall.isMT = bool;
- localDriverCall.als = paramParcel.readInt();
- if (paramParcel.readInt() != 0) {
- break label600;
- }
- bool = false;
- label145:
- localDriverCall.isVoice = bool;
- int k = paramParcel.readInt();
- int m = paramParcel.readInt();
- Object localObject = paramParcel.readString();
- localDriverCall.callDetails = new CallDetails(k, m, null);
- localDriverCall.callDetails.setExtrasFromCsv((String)localObject);
- Rlog.d("RILJ", "dc.index " + localDriverCall.index + " dc.id " + localDriverCall.id + " dc.callDetails " + localDriverCall.callDetails);
- if (paramParcel.readInt() == 0) {
- break label606;
- }
- bool = true;
- label265:
- localDriverCall.isVoicePrivacy = bool;
- localDriverCall.number = paramParcel.readString();
- localDriverCall.numberPresentation = DriverCall.presentationFromCLIP(paramParcel.readInt());
- localDriverCall.name = paramParcel.readString();
- Rlog.d("RILJ", "responseCallList dc.name" + localDriverCall.name);
- localDriverCall.namePresentation = DriverCall.presentationFromCLIP(paramParcel.readInt());
- if (paramParcel.readInt() != 1) {
- break label612;
- }
- localDriverCall.uusInfo = new UUSInfo();
- localDriverCall.uusInfo.setType(paramParcel.readInt());
- localDriverCall.uusInfo.setDcs(paramParcel.readInt());
- localObject = paramParcel.createByteArray();
- localDriverCall.uusInfo.setUserData((byte[])localObject);
- riljLogv(String.format("Incoming UUS : type=%d, dcs=%d, length=%d", new Object[] { Integer.valueOf(localDriverCall.uusInfo.getType()), Integer.valueOf(localDriverCall.uusInfo.getDcs()), Integer.valueOf(localDriverCall.uusInfo.getUserData().length) }));
- riljLogv("Incoming UUS : data (string)=" + new String(localDriverCall.uusInfo.getUserData()));
- riljLogv("Incoming UUS : data (hex): " + IccUtils.bytesToHexString(localDriverCall.uusInfo.getUserData()));
- label533:
- localDriverCall.number = PhoneNumberUtils.stringFromStringAndTOA(localDriverCall.number, localDriverCall.TOA);
- localArrayList.add(localDriverCall);
- if (!localDriverCall.isVoicePrivacy) {
- break label622;
- }
- this.mVoicePrivacyOnRegistrants.notifyRegistrants();
- riljLog("InCall VoicePrivacy is enabled");
- }
- for (;;)
- {
- i += 1;
- break;
- bool = false;
- break label102;
- label594:
- bool = false;
- break label119;
- label600:
- bool = true;
- break label145;
- label606:
- bool = false;
- break label265;
- label612:
- riljLogv("Incoming UUS : NOT present!");
- break label533;
- label622:
- this.mVoicePrivacyOffRegistrants.notifyRegistrants();
- riljLog("InCall VoicePrivacy is disabled");
- }
- }
- Collections.sort(localArrayList);
- if ((j == 0) && (this.mTestingEmergencyCall.getAndSet(false)) && (this.mEmergencyCallbackModeRegistrant != null))
- {
- riljLog("responseCallList: call ended, testing emergency call, notify ECM Registrants");
- this.mEmergencyCallbackModeRegistrant.notifyRegistrant();
- }
- return localArrayList;
- }
- protected Object responseCdmaCallWaiting(Parcel paramParcel)
- {
- CdmaCallWaitingNotification localCdmaCallWaitingNotification = new CdmaCallWaitingNotification();
- localCdmaCallWaitingNotification.number = paramParcel.readString();
- localCdmaCallWaitingNotification.numberPresentation = CdmaCallWaitingNotification.presentationFromCLIP(paramParcel.readInt());
- localCdmaCallWaitingNotification.name = paramParcel.readString();
- localCdmaCallWaitingNotification.namePresentation = localCdmaCallWaitingNotification.numberPresentation;
- localCdmaCallWaitingNotification.isPresent = paramParcel.readInt();
- localCdmaCallWaitingNotification.signalType = paramParcel.readInt();
- localCdmaCallWaitingNotification.alertPitch = paramParcel.readInt();
- localCdmaCallWaitingNotification.signal = paramParcel.readInt();
- localCdmaCallWaitingNotification.numberType = paramParcel.readInt();
- localCdmaCallWaitingNotification.numberPlan = paramParcel.readInt();
- return localCdmaCallWaitingNotification;
- }
- protected Object responseSetupDataCall(Parcel paramParcel)
- {
- int i = paramParcel.readInt();
- int j = paramParcel.readInt();
- if (i < 5)
- {
- DataCallResponse localDataCallResponse = new DataCallResponse();
- localDataCallResponse.version = i;
- localDataCallResponse.cid = Integer.parseInt(paramParcel.readString());
- localDataCallResponse.ifname = paramParcel.readString();
- if (TextUtils.isEmpty(localDataCallResponse.ifname)) {
- throw new RuntimeException("RIL_REQUEST_SETUP_DATA_CALL response, no ifname");
- }
- String str = paramParcel.readString();
- if (!TextUtils.isEmpty(str)) {
- localDataCallResponse.addresses = str.split(" ");
- }
- if (j >= 4)
- {
- str = paramParcel.readString();
- riljLog("responseSetupDataCall got dnses=" + str);
- if (!TextUtils.isEmpty(str)) {
- localDataCallResponse.dnses = str.split(" ");
- }
- }
- if (j >= 5)
- {
- str = paramParcel.readString();
- riljLog("responseSetupDataCall got gateways=" + str);
- if (!TextUtils.isEmpty(str)) {
- localDataCallResponse.gateways = str.split(" ");
- }
- }
- if (j >= 6)
- {
- paramParcel = paramParcel.readString();
- riljLog("responseSetupDataCall got pcscf=" + paramParcel);
- if (!TextUtils.isEmpty(paramParcel)) {
- localDataCallResponse.pcscf = paramParcel.split(" ");
- }
- }
- return localDataCallResponse;
- }
- if (j != 1) {
- throw new RuntimeException("RIL_REQUEST_SETUP_DATA_CALL response expecting 1 RIL_Data_Call_response_v5 got " + j);
- }
- return getDataCallResponse(paramParcel, i);
- }
- protected void send(RILRequest paramRILRequest)
- {
- if (this.mSocket == null)
- {
- paramRILRequest.onError(1, null);
- paramRILRequest.release();
- return;
- }
- paramRILRequest = this.mSender.obtainMessage(1, paramRILRequest);
- acquireWakeLock();
- paramRILRequest.sendToTarget();
- }
- public void sendBurstDtmf(String paramString, int paramInt1, int paramInt2, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(85, paramMessage);
- paramMessage.mParcel.writeInt(3);
- paramMessage.mParcel.writeString(paramString);
- paramMessage.mParcel.writeString(Integer.toString(paramInt1));
- paramMessage.mParcel.writeString(Integer.toString(paramInt2));
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " : " + paramString);
- send(paramMessage);
- }
- public void sendCDMAFeatureCode(String paramString, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(84, paramMessage);
- paramMessage.mParcel.writeString(paramString);
- if (SHIP_BUILD)
- {
- if ((paramString == null) || (TextUtils.isEmpty(paramString))) {
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- }
- for (;;)
- {
- send(paramMessage);
- return;
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " : ...(" + paramString.length() + ")");
- }
- }
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " : " + paramString);
- send(paramMessage);
- }
- public void sendCdmaSms(byte[] paramArrayOfByte, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(87, paramMessage);
- constructCdmaSendSmsRilRequest(paramMessage, paramArrayOfByte);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void sendCdmaSmsMore(byte[] paramArrayOfByte, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10020, paramMessage);
- constructCdmaSendSmsRilRequest(paramMessage, paramArrayOfByte);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void sendDtmf(char paramChar, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(24, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- paramMessage.mParcel.writeString(Character.toString(paramChar));
- send(paramMessage);
- }
- public void sendEncodedUSSD(byte[] paramArrayOfByte, int paramInt1, int paramInt2, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10019, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + IccUtils.bytesToHexString(paramArrayOfByte) + ", DCS : " + paramInt2);
- paramMessage.mParcel.writeByteArray(paramArrayOfByte);
- paramMessage.mParcel.writeInt(paramInt1);
- paramMessage.mParcel.writeInt(paramInt2);
- send(paramMessage);
- }
- public void sendEnvelope(String paramString, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(69, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- paramMessage.mParcel.writeString(paramString);
- send(paramMessage);
- }
- public void sendEnvelopeWithStatus(String paramString, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(107, paramMessage);
- if (SHIP_BUILD) {
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- }
- for (;;)
- {
- paramMessage.mParcel.writeString(paramString);
- send(paramMessage);
- return;
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + '[' + paramString + ']');
- }
- }
- public void sendImsCdmaSms(byte[] paramArrayOfByte, int paramInt1, int paramInt2, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(113, paramMessage);
- paramMessage.mParcel.writeInt(2);
- paramMessage.mParcel.writeByte((byte)paramInt1);
- paramMessage.mParcel.writeInt(paramInt2);
- constructCdmaSendSmsRilRequest(paramMessage, paramArrayOfByte);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void sendImsGsmSms(String paramString1, String paramString2, int paramInt1, int paramInt2, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(113, paramMessage);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeByte((byte)paramInt1);
- paramMessage.mParcel.writeInt(paramInt2);
- constructGsmSendSmsRilRequest(paramMessage, paramString1, paramString2);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void sendSMS(String paramString1, String paramString2, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(25, paramMessage);
- constructGsmSendSmsRilRequest(paramMessage, paramString1, paramString2);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void sendSMSExpectMore(String paramString1, String paramString2, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(26, paramMessage);
- constructGsmSendSmsRilRequest(paramMessage, paramString1, paramString2);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void sendSMSmore(String paramString1, String paramString2, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(26, paramMessage);
- Rlog.d("RILJ", "smscPDU: " + paramString1);
- Rlog.d("RILJ", "pdu: " + paramString2);
- constructGsmSendSmsRilRequest(paramMessage, paramString1, paramString2);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void sendTerminalResponse(String paramString, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(70, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- paramMessage.mParcel.writeString(paramString);
- send(paramMessage);
- }
- public void sendUSSD(String paramString, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(29, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + "*******");
- paramMessage.mParcel.writeString(paramString);
- send(paramMessage);
- }
- public void separateConnection(int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(52, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeInt(paramInt);
- send(paramMessage);
- }
- public void setBandMode(int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(65, paramMessage);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeInt(paramInt);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt);
- send(paramMessage);
- }
- public void setCLIR(int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(32, paramMessage);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeInt(paramInt);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt);
- send(paramMessage);
- }
- public void setCallForward(int paramInt1, int paramInt2, int paramInt3, String paramString, int paramInt4, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(34, paramMessage);
- paramMessage.mParcel.writeInt(paramInt1);
- paramMessage.mParcel.writeInt(paramInt2);
- paramMessage.mParcel.writeInt(paramInt3);
- paramMessage.mParcel.writeInt(PhoneNumberUtils.toaFromString(paramString));
- paramMessage.mParcel.writeString(paramString);
- paramMessage.mParcel.writeInt(paramInt4);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt1 + " " + paramInt2 + " " + paramInt3 + " " + paramInt4);
- send(paramMessage);
- }
- public void setCallWaiting(boolean paramBoolean, int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(36, paramMessage);
- paramMessage.mParcel.writeInt(2);
- Parcel localParcel = paramMessage.mParcel;
- if (paramBoolean) {}
- for (int i = 1;; i = 0)
- {
- localParcel.writeInt(i);
- paramMessage.mParcel.writeInt(paramInt);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramBoolean + ", " + paramInt);
- send(paramMessage);
- return;
- }
- }
- public void setCdmaBroadcastActivation(boolean paramBoolean, Message paramMessage)
- {
- int i = 1;
- paramMessage = RILRequest.obtain(94, paramMessage);
- paramMessage.mParcel.writeInt(1);
- Parcel localParcel = paramMessage.mParcel;
- if (paramBoolean) {
- i = 0;
- }
- localParcel.writeInt(i);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void setCdmaBroadcastConfig(CdmaSmsBroadcastConfigInfo[] paramArrayOfCdmaSmsBroadcastConfigInfo, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(93, paramMessage);
- Object localObject = new ArrayList();
- int k = paramArrayOfCdmaSmsBroadcastConfigInfo.length;
- int i = 0;
- int j;
- while (i < k)
- {
- CdmaSmsBroadcastConfigInfo localCdmaSmsBroadcastConfigInfo = paramArrayOfCdmaSmsBroadcastConfigInfo[i];
- j = localCdmaSmsBroadcastConfigInfo.getFromServiceCategory();
- while (j <= localCdmaSmsBroadcastConfigInfo.getToServiceCategory())
- {
- ((ArrayList)localObject).add(new CdmaSmsBroadcastConfigInfo(j, j, localCdmaSmsBroadcastConfigInfo.getLanguage(), localCdmaSmsBroadcastConfigInfo.isSelected()));
- j += 1;
- }
- i += 1;
- }
- paramArrayOfCdmaSmsBroadcastConfigInfo = (CdmaSmsBroadcastConfigInfo[])((ArrayList)localObject).toArray(paramArrayOfCdmaSmsBroadcastConfigInfo);
- paramMessage.mParcel.writeInt(paramArrayOfCdmaSmsBroadcastConfigInfo.length);
- i = 0;
- if (i < paramArrayOfCdmaSmsBroadcastConfigInfo.length)
- {
- paramMessage.mParcel.writeInt(paramArrayOfCdmaSmsBroadcastConfigInfo[i].getFromServiceCategory());
- paramMessage.mParcel.writeInt(paramArrayOfCdmaSmsBroadcastConfigInfo[i].getLanguage());
- localObject = paramMessage.mParcel;
- if (paramArrayOfCdmaSmsBroadcastConfigInfo[i].isSelected()) {}
- for (j = 1;; j = 0)
- {
- ((Parcel)localObject).writeInt(j);
- i += 1;
- break;
- }
- }
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " with " + paramArrayOfCdmaSmsBroadcastConfigInfo.length + " configs : ");
- send(paramMessage);
- }
- public void setCdmaRoamingPreference(int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(78, paramMessage);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeInt(paramInt);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " : " + paramInt);
- send(paramMessage);
- }
- public void setCdmaSubscriptionSource(int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(77, paramMessage);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeInt(paramInt);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " : " + paramInt);
- send(paramMessage);
- }
- public void setCellInfoListRate(int paramInt, Message paramMessage)
- {
- riljLog("setCellInfoListRate: " + paramInt);
- paramMessage = RILRequest.obtain(110, paramMessage);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeInt(paramInt);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void setDataAllowed(boolean paramBoolean, Message paramMessage)
- {
- int i = 1;
- paramMessage = RILRequest.obtain(123, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- paramMessage.mParcel.writeInt(1);
- Parcel localParcel = paramMessage.mParcel;
- if (paramBoolean) {}
- for (;;)
- {
- localParcel.writeInt(i);
- send(paramMessage);
- return;
- i = 0;
- }
- }
- public void setDataProfile(DataProfile[] paramArrayOfDataProfile, Message paramMessage)
- {
- riljLog("Set RIL_REQUEST_SET_DATA_PROFILE");
- paramMessage = RILRequest.obtain(128, null);
- DataProfile.toParcel(paramMessage.mParcel, paramArrayOfDataProfile);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " with " + paramArrayOfDataProfile + " Data Profiles : ");
- int i = 0;
- while (i < paramArrayOfDataProfile.length)
- {
- riljLog(paramArrayOfDataProfile[i].toString());
- i += 1;
- }
- send(paramMessage);
- }
- public void setFacilityLock(String paramString1, boolean paramBoolean, String paramString2, int paramInt, Message paramMessage)
- {
- setFacilityLockForApp(paramString1, paramBoolean, paramString2, paramInt, null, paramMessage);
- }
- public void setFacilityLockForApp(String paramString1, boolean paramBoolean, String paramString2, int paramInt, String paramString3, Message paramMessage)
- {
- RILRequest localRILRequest = RILRequest.obtain(43, paramMessage);
- String str = localRILRequest.serialString() + "> " + requestToString(localRILRequest.mRequest) + " [" + paramString1 + " " + paramBoolean + " " + paramInt + " ";
- paramMessage = str;
- if (!SHIP_BUILD) {
- paramMessage = str + paramString3;
- }
- riljLog(paramMessage + "]");
- localRILRequest.mParcel.writeInt(5);
- localRILRequest.mParcel.writeString(paramString1);
- if (paramBoolean) {}
- for (paramString1 = "1";; paramString1 = "0")
- {
- localRILRequest.mParcel.writeString(paramString1);
- localRILRequest.mParcel.writeString(paramString2);
- localRILRequest.mParcel.writeString(Integer.toString(paramInt));
- localRILRequest.mParcel.writeString(paramString3);
- send(localRILRequest);
- return;
- }
- }
- public void setGsmBroadcastActivation(boolean paramBoolean, Message paramMessage)
- {
- int i = 1;
- paramMessage = RILRequest.obtain(91, paramMessage);
- paramMessage.mParcel.writeInt(1);
- Parcel localParcel = paramMessage.mParcel;
- if (paramBoolean) {
- i = 0;
- }
- localParcel.writeInt(i);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void setGsmBroadcastConfig(SmsBroadcastConfigInfo[] paramArrayOfSmsBroadcastConfigInfo, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(90, paramMessage);
- int k = paramArrayOfSmsBroadcastConfigInfo.length;
- paramMessage.mParcel.writeInt(k);
- int i = 0;
- if (i < k)
- {
- paramMessage.mParcel.writeInt(paramArrayOfSmsBroadcastConfigInfo[i].getFromServiceId());
- paramMessage.mParcel.writeInt(paramArrayOfSmsBroadcastConfigInfo[i].getToServiceId());
- paramMessage.mParcel.writeInt(paramArrayOfSmsBroadcastConfigInfo[i].getFromCodeScheme());
- paramMessage.mParcel.writeInt(paramArrayOfSmsBroadcastConfigInfo[i].getToCodeScheme());
- Parcel localParcel = paramMessage.mParcel;
- if (paramArrayOfSmsBroadcastConfigInfo[i].isSelected()) {}
- for (int j = 1;; j = 0)
- {
- localParcel.writeInt(j);
- i += 1;
- break;
- }
- }
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " with " + k + " configs : ");
- i = 0;
- while (i < k)
- {
- riljLog(paramArrayOfSmsBroadcastConfigInfo[i].toString());
- i += 1;
- }
- send(paramMessage);
- }
- public void setICBarring(String paramString1, int paramInt1, String paramString2, int paramInt2, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10028, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " [" + paramString1 + " " + paramInt1 + " " + paramInt2 + " ]");
- paramMessage.mParcel.writeInt(5);
- paramMessage.mParcel.writeString(paramString1);
- if (paramInt1 == 0) {
- paramString1 = "0";
- }
- for (;;)
- {
- paramMessage.mParcel.writeString(paramString1);
- paramMessage.mParcel.writeString(paramString2);
- paramMessage.mParcel.writeString(Integer.toString(paramInt2));
- paramMessage.mParcel.writeString("");
- send(paramMessage);
- return;
- if (paramInt1 == 1)
- {
- paramString1 = "1";
- }
- else if (paramInt1 == 3)
- {
- paramString1 = "3";
- }
- else if (paramInt1 == 4)
- {
- paramString1 = "4";
- }
- else
- {
- Rlog.d("RILJ", "setICBarring: barring state is wrong value");
- paramString1 = "1";
- }
- }
- }
- public void setInitialAttachApn(String paramString1, String paramString2, int paramInt, String paramString3, String paramString4, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(111, null);
- riljLog("Set RIL_REQUEST_SET_INITIAL_ATTACH_APN");
- paramMessage.mParcel.writeString(paramString1);
- paramMessage.mParcel.writeString(paramString2);
- paramMessage.mParcel.writeInt(paramInt);
- paramMessage.mParcel.writeString(paramString3);
- paramMessage.mParcel.writeString(paramString4);
- if (isDebugLevelNotLow()) {
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + ", apn:" + paramString1 + ", protocol:" + paramString2 + ", authType:" + paramInt + ", username:" + paramString3 + ", password:" + paramString4);
- }
- send(paramMessage);
- }
- public void setLocationUpdates(boolean paramBoolean, Message paramMessage)
- {
- int i = 1;
- paramMessage = RILRequest.obtain(76, paramMessage);
- paramMessage.mParcel.writeInt(1);
- Parcel localParcel = paramMessage.mParcel;
- if (paramBoolean) {}
- for (;;)
- {
- localParcel.writeInt(i);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + ": " + paramBoolean);
- send(paramMessage);
- return;
- i = 0;
- }
- }
- public void setLteBandMode(int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10024, paramMessage);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeInt(paramInt);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt);
- send(paramMessage);
- }
- public void setMute(boolean paramBoolean, Message paramMessage)
- {
- int i = 1;
- paramMessage = RILRequest.obtain(53, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramBoolean);
- paramMessage.mParcel.writeInt(1);
- Parcel localParcel = paramMessage.mParcel;
- if (paramBoolean) {}
- for (;;)
- {
- localParcel.writeInt(i);
- send(paramMessage);
- return;
- i = 0;
- }
- }
- public void setNetworkSelectionModeAutomatic(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(46, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void setNetworkSelectionModeManual(String paramString, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(47, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramString);
- paramMessage.mParcel.writeString(paramString);
- send(paramMessage);
- }
- public void setOnNITZTime(Handler paramHandler, int paramInt, Object paramObject)
- {
- super.setOnNITZTime(paramHandler, paramInt, paramObject);
- if (this.mLastNITZTimeInfo != null)
- {
- this.mNITZTimeRegistrant.notifyRegistrant(new AsyncResult(null, this.mLastNITZTimeInfo, null));
- this.mLastNITZTimeInfo = null;
- }
- }
- public void setPhoneType(int paramInt)
- {
- riljLog("setPhoneType=" + paramInt + " old value=" + this.mPhoneType);
- this.mPhoneType = paramInt;
- }
- public void setPreferredNetworkList(int paramInt1, String paramString1, String paramString2, int paramInt2, int paramInt3, int paramInt4, int paramInt5, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10015, paramMessage);
- paramMessage.mParcel.writeInt(paramInt1);
- paramMessage.mParcel.writeString(paramString1);
- paramMessage.mParcel.writeString(paramString2);
- paramMessage.mParcel.writeInt(paramInt2);
- paramMessage.mParcel.writeInt(paramInt3);
- paramMessage.mParcel.writeInt(paramInt4);
- paramMessage.mParcel.writeInt(paramInt5);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + ", " + paramInt1 + ", " + paramString1 + ", " + paramString2 + ", " + paramInt2 + "," + paramInt3 + ", " + paramInt4 + ", " + paramInt5);
- send(paramMessage);
- }
- public void setPreferredNetworkType(int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(73, paramMessage);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeInt(paramInt);
- setInitialPhoneType(paramInt);
- this.mPreferredNetworkType = paramInt;
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " : " + paramInt);
- send(paramMessage);
- }
- public void setPreferredVoicePrivacy(boolean paramBoolean, Message paramMessage)
- {
- int i = 1;
- paramMessage = RILRequest.obtain(82, paramMessage);
- paramMessage.mParcel.writeInt(1);
- Parcel localParcel = paramMessage.mParcel;
- if (paramBoolean) {}
- for (;;)
- {
- localParcel.writeInt(i);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramBoolean);
- send(paramMessage);
- return;
- i = 0;
- }
- }
- public void setRadioPower(boolean paramBoolean, Message paramMessage)
- {
- int i = 1;
- RILRequest localRILRequest = RILRequest.obtain(23, paramMessage);
- localRILRequest.mParcel.writeInt(1);
- paramMessage = localRILRequest.mParcel;
- StringBuilder localStringBuilder;
- if (paramBoolean)
- {
- paramMessage.writeInt(i);
- localStringBuilder = new StringBuilder().append(localRILRequest.serialString()).append("> ").append(requestToString(localRILRequest.mRequest));
- if (!paramBoolean) {
- break label101;
- }
- }
- label101:
- for (paramMessage = " on";; paramMessage = " off")
- {
- riljLog(paramMessage);
- send(localRILRequest);
- return;
- i = 0;
- break;
- }
- }
- public void setSimInitEvent(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10014, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void setSimPower(int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10023, paramMessage);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeInt(paramInt);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " int : " + paramInt);
- send(paramMessage);
- }
- public void setSmscAddress(String paramString, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(101, paramMessage);
- paramMessage.mParcel.writeString(paramString);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " : " + paramString);
- send(paramMessage);
- }
- public void setSuppServiceNotifications(boolean paramBoolean, Message paramMessage)
- {
- int i = 1;
- paramMessage = RILRequest.obtain(62, paramMessage);
- paramMessage.mParcel.writeInt(1);
- Parcel localParcel = paramMessage.mParcel;
- if (paramBoolean) {}
- for (;;)
- {
- localParcel.writeInt(i);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- return;
- i = 0;
- }
- }
- public void setTTYMode(int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(80, paramMessage);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeInt(paramInt);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " : " + paramInt);
- send(paramMessage);
- }
- public void setTransmitPower(int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10007, paramMessage);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeInt(paramInt);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt);
- send(paramMessage);
- }
- public void setUiccSubscription(int paramInt1, int paramInt2, int paramInt3, int paramInt4, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(122, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " slot: " + paramInt1 + " appIndex: " + paramInt2 + " subId: " + paramInt3 + " subStatus: " + paramInt4);
- paramMessage.mParcel.writeInt(paramInt1);
- paramMessage.mParcel.writeInt(paramInt2);
- paramMessage.mParcel.writeInt(paramInt3);
- paramMessage.mParcel.writeInt(paramInt4);
- send(paramMessage);
- }
- public void setVoiceDomainPref(int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10005, paramMessage);
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeInt(paramInt);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt);
- send(paramMessage);
- }
- public void setupDataCall(String paramString1, String paramString2, String paramString3, String paramString4, String paramString5, String paramString6, String paramString7, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(27, paramMessage);
- paramMessage.mParcel.writeInt(7);
- paramMessage.mParcel.writeString(paramString1);
- paramMessage.mParcel.writeString(paramString2);
- paramMessage.mParcel.writeString(paramString3);
- paramMessage.mParcel.writeString(paramString4);
- paramMessage.mParcel.writeString(paramString5);
- paramMessage.mParcel.writeString(paramString6);
- paramMessage.mParcel.writeString(paramString7);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramString1 + " " + paramString2 + " " + paramString3 + " " + paramString4 + " " + paramString5 + " " + paramString6 + " " + paramString7);
- send(paramMessage);
- }
- public void startDtmf(char paramChar, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(49, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- paramMessage.mParcel.writeString(Character.toString(paramChar));
- send(paramMessage);
- }
- public void stopDtmf(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(50, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void supplyIccPerso(String paramString, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10018, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeString(paramString);
- send(paramMessage);
- }
- public void supplyIccPin(String paramString, Message paramMessage)
- {
- supplyIccPinForApp(paramString, null, paramMessage);
- }
- public void supplyIccPin2(String paramString, Message paramMessage)
- {
- supplyIccPin2ForApp(paramString, null, paramMessage);
- }
- public void supplyIccPin2ForApp(String paramString1, String paramString2, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(4, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- paramMessage.mParcel.writeInt(2);
- paramMessage.mParcel.writeString(paramString1);
- paramMessage.mParcel.writeString(paramString2);
- send(paramMessage);
- }
- public void supplyIccPinForApp(String paramString1, String paramString2, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(2, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- paramMessage.mParcel.writeInt(2);
- paramMessage.mParcel.writeString(paramString1);
- paramMessage.mParcel.writeString(paramString2);
- send(paramMessage);
- }
- public void supplyIccPuk(String paramString1, String paramString2, Message paramMessage)
- {
- supplyIccPukForApp(paramString1, paramString2, null, paramMessage);
- }
- public void supplyIccPuk2(String paramString1, String paramString2, Message paramMessage)
- {
- supplyIccPuk2ForApp(paramString1, paramString2, null, paramMessage);
- }
- public void supplyIccPuk2ForApp(String paramString1, String paramString2, String paramString3, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(5, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- paramMessage.mParcel.writeInt(3);
- paramMessage.mParcel.writeString(paramString1);
- paramMessage.mParcel.writeString(paramString2);
- paramMessage.mParcel.writeString(paramString3);
- send(paramMessage);
- }
- public void supplyIccPukForApp(String paramString1, String paramString2, String paramString3, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(3, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- paramMessage.mParcel.writeInt(3);
- paramMessage.mParcel.writeString(paramString1);
- paramMessage.mParcel.writeString(paramString2);
- paramMessage.mParcel.writeString(paramString3);
- send(paramMessage);
- }
- public void supplyNetworkDepersonalization(String paramString, int paramInt, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(8, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " Type:" + "PERSOSUBSTATE_SIM_NETWORK");
- paramMessage.mParcel.writeInt(paramInt);
- paramMessage.mParcel.writeString(paramString);
- send(paramMessage);
- }
- public void supplyNetworkDepersonalization(String paramString, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(8, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- paramMessage.mParcel.writeInt(1);
- paramMessage.mParcel.writeString(paramString);
- send(paramMessage);
- }
- public void switchWaitingOrHoldingAndActive(Message paramMessage)
- {
- paramMessage = RILRequest.obtain(15, paramMessage);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
- send(paramMessage);
- }
- public void testingEmergencyCall()
- {
- riljLog("testingEmergencyCall");
- this.mTestingEmergencyCall.set(true);
- }
- public void uiccGbaAuthenticateBootstrap(String paramString, byte[] paramArrayOfByte1, byte[] paramArrayOfByte2, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10025, paramMessage);
- paramArrayOfByte1 = IccUtils.bytesToHexString(paramArrayOfByte1);
- paramArrayOfByte2 = IccUtils.bytesToHexString(paramArrayOfByte2);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + "[" + paramString + "," + paramArrayOfByte1 + "," + paramArrayOfByte2 + "]");
- paramMessage.mParcel.writeString(paramString);
- paramMessage.mParcel.writeString(paramArrayOfByte1);
- paramMessage.mParcel.writeString(paramArrayOfByte2);
- send(paramMessage);
- }
- public void uiccGbaAuthenticateNaf(String paramString, byte[] paramArrayOfByte1, byte[] paramArrayOfByte2, Message paramMessage)
- {
- paramMessage = RILRequest.obtain(10026, paramMessage);
- paramArrayOfByte1 = IccUtils.bytesToHexString(paramArrayOfByte1);
- paramArrayOfByte2 = IccUtils.bytesToHexString(paramArrayOfByte2);
- riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + "[" + paramString + "," + paramArrayOfByte1 + "]");
- paramMessage.mParcel.writeString(paramString);
- paramMessage.mParcel.writeString(paramArrayOfByte1);
- paramMessage.mParcel.writeString(paramArrayOfByte2);
- send(paramMessage);
- }
- /* Error */
- public void updateStackBinding(int paramInt1, int paramInt2, Message paramMessage)
- {
- // Byte code:
- // 0: new 2074 java/io/ByteArrayOutputStream
- // 3: dup
- // 4: invokespecial 2075 java/io/ByteArrayOutputStream:<init> ()V
- // 7: astore 5
- // 9: new 2077 java/io/DataOutputStream
- // 12: dup
- // 13: aload 5
- // 15: invokespecial 2080 java/io/DataOutputStream:<init> (Ljava/io/OutputStream;)V
- // 18: astore 4
- // 20: ldc 63
- // 22: ldc_w 3119
- // 25: invokestatic 406 android/telephony/Rlog:d (Ljava/lang/String;Ljava/lang/String;)I
- // 28: pop
- // 29: aload 4
- // 31: iconst_2
- // 32: invokevirtual 2083 java/io/DataOutputStream:writeByte (I)V
- // 35: aload 4
- // 37: bipush 98
- // 39: invokevirtual 2083 java/io/DataOutputStream:writeByte (I)V
- // 42: aload 4
- // 44: bipush 6
- // 46: invokevirtual 2086 java/io/DataOutputStream:writeShort (I)V
- // 49: aload 4
- // 51: iload_1
- // 52: invokevirtual 2083 java/io/DataOutputStream:writeByte (I)V
- // 55: aload 4
- // 57: iload_2
- // 58: invokevirtual 2083 java/io/DataOutputStream:writeByte (I)V
- // 61: aload 4
- // 63: invokevirtual 2089 java/io/DataOutputStream:close ()V
- // 66: aload_0
- // 67: aload 5
- // 69: invokevirtual 2092 java/io/ByteArrayOutputStream:toByteArray ()[B
- // 72: aload_3
- // 73: invokevirtual 2096 com/android/internal/telephony/RIL:invokeOemRilRequestRaw ([BLandroid/os/Message;)V
- // 76: return
- // 77: astore_3
- // 78: aload 4
- // 80: invokevirtual 2089 java/io/DataOutputStream:close ()V
- // 83: return
- // 84: astore_3
- // 85: return
- // 86: astore_3
- // 87: aload 4
- // 89: invokevirtual 2089 java/io/DataOutputStream:close ()V
- // 92: aload_3
- // 93: athrow
- // 94: astore 4
- // 96: goto -30 -> 66
- // 99: astore 4
- // 101: goto -9 -> 92
- // Local variable table:
- // start length slot name signature
- // 0 104 0 this RIL
- // 0 104 1 paramInt1 int
- // 0 104 2 paramInt2 int
- // 0 104 3 paramMessage Message
- // 18 70 4 localDataOutputStream java.io.DataOutputStream
- // 94 1 4 localException1 Exception
- // 99 1 4 localException2 Exception
- // 7 61 5 localByteArrayOutputStream java.io.ByteArrayOutputStream
- // Exception table:
- // from to target type
- // 29 61 77 java/io/IOException
- // 78 83 84 java/lang/Exception
- // 29 61 86 finally
- // 61 66 94 java/lang/Exception
- // 87 92 99 java/lang/Exception
- }
- public void writeSmsToRuim(int paramInt, String paramString, Message paramMessage)
- {
- paramInt = translateStatus(paramInt);
- paramMessage = RILRequest.obtain(96, paramMessage);
- paramMessage.mParcel.writeInt(paramInt);
- paramMessage.mParcel.writeString(paramString);
- send(paramMessage);
- }
- public void writeSmsToSim(int paramInt, String paramString1, String paramString2, Message paramMessage)
- {
- paramInt = translateStatus(paramInt);
- paramMessage = RILRequest.obtain(63, paramMessage);
- paramMessage.mParcel.writeInt(paramInt);
- paramMessage.mParcel.writeString(paramString2);
- paramMessage.mParcel.writeString(paramString1);
- send(paramMessage);
- }
- class RILReceiver
- implements Runnable
- {
- byte[] buffer = new byte['?'];
- RILReceiver() {}
- /* Error */
- public void run()
- {
- // Byte code:
- // 0: iconst_0
- // 1: istore_1
- // 2: aconst_null
- // 3: astore 5
- // 5: aload_0
- // 6: getfield 17 com/android/internal/telephony/RIL$RILReceiver:this$0 Lcom/android/internal/telephony/RIL;
- // 9: invokestatic 34 com/android/internal/telephony/RIL:access$500 (Lcom/android/internal/telephony/RIL;)Ljava/lang/Integer;
- // 12: ifnull +16 -> 28
- // 15: aload_0
- // 16: getfield 17 com/android/internal/telephony/RIL$RILReceiver:this$0 Lcom/android/internal/telephony/RIL;
- // 19: invokestatic 34 com/android/internal/telephony/RIL:access$500 (Lcom/android/internal/telephony/RIL;)Ljava/lang/Integer;
- // 22: invokevirtual 40 java/lang/Integer:intValue ()I
- // 25: ifne +207 -> 232
- // 28: getstatic 44 com/android/internal/telephony/RIL:SOCKET_NAME_RIL [Ljava/lang/String;
- // 31: iconst_0
- // 32: aaload
- // 33: astore 4
- // 35: new 46 android/net/LocalSocket
- // 38: dup
- // 39: invokespecial 47 android/net/LocalSocket:<init> ()V
- // 42: astore 6
- // 44: aload 6
- // 46: new 49 android/net/LocalSocketAddress
- // 49: dup
- // 50: aload 4
- // 52: getstatic 55 android/net/LocalSocketAddress$Namespace:RESERVED Landroid/net/LocalSocketAddress$Namespace;
- // 55: invokespecial 58 android/net/LocalSocketAddress:<init> (Ljava/lang/String;Landroid/net/LocalSocketAddress$Namespace;)V
- // 58: invokevirtual 62 android/net/LocalSocket:connect (Landroid/net/LocalSocketAddress;)V
- // 61: iconst_0
- // 62: istore_3
- // 63: aload_0
- // 64: getfield 17 com/android/internal/telephony/RIL$RILReceiver:this$0 Lcom/android/internal/telephony/RIL;
- // 67: aload 6
- // 69: putfield 66 com/android/internal/telephony/RIL:mSocket Landroid/net/LocalSocket;
- // 72: ldc 68
- // 74: new 70 java/lang/StringBuilder
- // 77: dup
- // 78: invokespecial 71 java/lang/StringBuilder:<init> ()V
- // 81: ldc 73
- // 83: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 86: aload 4
- // 88: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 91: ldc 79
- // 93: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 96: invokevirtual 83 java/lang/StringBuilder:toString ()Ljava/lang/String;
- // 99: invokestatic 89 android/telephony/Rlog:i (Ljava/lang/String;Ljava/lang/String;)I
- // 102: pop
- // 103: iconst_0
- // 104: istore_1
- // 105: iconst_0
- // 106: istore_2
- // 107: aload_0
- // 108: getfield 17 com/android/internal/telephony/RIL$RILReceiver:this$0 Lcom/android/internal/telephony/RIL;
- // 111: getfield 66 com/android/internal/telephony/RIL:mSocket Landroid/net/LocalSocket;
- // 114: invokevirtual 93 android/net/LocalSocket:getInputStream ()Ljava/io/InputStream;
- // 117: astore 5
- // 119: iload_2
- // 120: istore_1
- // 121: aload 5
- // 123: aload_0
- // 124: getfield 22 com/android/internal/telephony/RIL$RILReceiver:buffer [B
- // 127: invokestatic 97 com/android/internal/telephony/RIL:access$600 (Ljava/io/InputStream;[B)I
- // 130: istore_2
- // 131: iload_2
- // 132: ifge +239 -> 371
- // 135: ldc 68
- // 137: new 70 java/lang/StringBuilder
- // 140: dup
- // 141: invokespecial 71 java/lang/StringBuilder:<init> ()V
- // 144: ldc 99
- // 146: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 149: aload 4
- // 151: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 154: ldc 79
- // 156: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 159: invokevirtual 83 java/lang/StringBuilder:toString ()Ljava/lang/String;
- // 162: invokestatic 89 android/telephony/Rlog:i (Ljava/lang/String;Ljava/lang/String;)I
- // 165: pop
- // 166: aload_0
- // 167: getfield 17 com/android/internal/telephony/RIL$RILReceiver:this$0 Lcom/android/internal/telephony/RIL;
- // 170: getstatic 105 com/android/internal/telephony/CommandsInterface$RadioState:RADIO_UNAVAILABLE Lcom/android/internal/telephony/CommandsInterface$RadioState;
- // 173: invokevirtual 109 com/android/internal/telephony/RIL:setRadioState (Lcom/android/internal/telephony/CommandsInterface$RadioState;)V
- // 176: aload_0
- // 177: getfield 17 com/android/internal/telephony/RIL$RILReceiver:this$0 Lcom/android/internal/telephony/RIL;
- // 180: getfield 66 com/android/internal/telephony/RIL:mSocket Landroid/net/LocalSocket;
- // 183: invokevirtual 112 android/net/LocalSocket:close ()V
- // 186: aload_0
- // 187: getfield 17 com/android/internal/telephony/RIL$RILReceiver:this$0 Lcom/android/internal/telephony/RIL;
- // 190: aconst_null
- // 191: putfield 66 com/android/internal/telephony/RIL:mSocket Landroid/net/LocalSocket;
- // 194: invokestatic 117 com/android/internal/telephony/RILRequest:resetSerial ()V
- // 197: aload_0
- // 198: getfield 17 com/android/internal/telephony/RIL$RILReceiver:this$0 Lcom/android/internal/telephony/RIL;
- // 201: iconst_1
- // 202: iconst_0
- // 203: invokestatic 121 com/android/internal/telephony/RIL:access$800 (Lcom/android/internal/telephony/RIL;IZ)V
- // 206: iload_3
- // 207: istore_1
- // 208: goto -206 -> 2
- // 211: astore 4
- // 213: ldc 68
- // 215: ldc 123
- // 217: aload 4
- // 219: invokestatic 127 android/telephony/Rlog:e (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
- // 222: pop
- // 223: aload_0
- // 224: getfield 17 com/android/internal/telephony/RIL$RILReceiver:this$0 Lcom/android/internal/telephony/RIL;
- // 227: iconst_m1
- // 228: invokestatic 131 com/android/internal/telephony/RIL:access$900 (Lcom/android/internal/telephony/RIL;I)V
- // 231: return
- // 232: getstatic 44 com/android/internal/telephony/RIL:SOCKET_NAME_RIL [Ljava/lang/String;
- // 235: aload_0
- // 236: getfield 17 com/android/internal/telephony/RIL$RILReceiver:this$0 Lcom/android/internal/telephony/RIL;
- // 239: invokestatic 34 com/android/internal/telephony/RIL:access$500 (Lcom/android/internal/telephony/RIL;)Ljava/lang/Integer;
- // 242: invokevirtual 40 java/lang/Integer:intValue ()I
- // 245: aaload
- // 246: astore 4
- // 248: goto -213 -> 35
- // 251: astore 6
- // 253: aload 5
- // 255: ifnull +8 -> 263
- // 258: aload 5
- // 260: invokevirtual 112 android/net/LocalSocket:close ()V
- // 263: iload_1
- // 264: bipush 8
- // 266: if_icmpne +56 -> 322
- // 269: ldc 68
- // 271: new 70 java/lang/StringBuilder
- // 274: dup
- // 275: invokespecial 71 java/lang/StringBuilder:<init> ()V
- // 278: ldc -123
- // 280: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 283: aload 4
- // 285: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 288: ldc -121
- // 290: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 293: iload_1
- // 294: invokevirtual 138 java/lang/StringBuilder:append (I)Ljava/lang/StringBuilder;
- // 297: ldc -116
- // 299: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 302: invokevirtual 83 java/lang/StringBuilder:toString ()Ljava/lang/String;
- // 305: invokestatic 142 android/telephony/Rlog:e (Ljava/lang/String;Ljava/lang/String;)I
- // 308: pop
- // 309: ldc2_w 143
- // 312: invokestatic 150 java/lang/Thread:sleep (J)V
- // 315: iload_1
- // 316: iconst_1
- // 317: iadd
- // 318: istore_1
- // 319: goto -317 -> 2
- // 322: iload_1
- // 323: ifle -14 -> 309
- // 326: iload_1
- // 327: bipush 8
- // 329: if_icmpge -20 -> 309
- // 332: ldc 68
- // 334: new 70 java/lang/StringBuilder
- // 337: dup
- // 338: invokespecial 71 java/lang/StringBuilder:<init> ()V
- // 341: ldc -123
- // 343: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 346: aload 4
- // 348: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 351: ldc -104
- // 353: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 356: invokevirtual 83 java/lang/StringBuilder:toString ()Ljava/lang/String;
- // 359: invokestatic 89 android/telephony/Rlog:i (Ljava/lang/String;Ljava/lang/String;)I
- // 362: pop
- // 363: goto -54 -> 309
- // 366: astore 4
- // 368: goto -155 -> 213
- // 371: iload_2
- // 372: istore_1
- // 373: invokestatic 158 android/os/Parcel:obtain ()Landroid/os/Parcel;
- // 376: astore 6
- // 378: iload_2
- // 379: istore_1
- // 380: aload 6
- // 382: aload_0
- // 383: getfield 22 com/android/internal/telephony/RIL$RILReceiver:buffer [B
- // 386: iconst_0
- // 387: iload_2
- // 388: invokevirtual 162 android/os/Parcel:unmarshall ([BII)V
- // 391: iload_2
- // 392: istore_1
- // 393: aload 6
- // 395: iconst_0
- // 396: invokevirtual 166 android/os/Parcel:setDataPosition (I)V
- // 399: iload_2
- // 400: istore_1
- // 401: aload_0
- // 402: getfield 17 com/android/internal/telephony/RIL$RILReceiver:this$0 Lcom/android/internal/telephony/RIL;
- // 405: aload 6
- // 407: invokestatic 170 com/android/internal/telephony/RIL:access$700 (Lcom/android/internal/telephony/RIL;Landroid/os/Parcel;)V
- // 410: iload_2
- // 411: istore_1
- // 412: aload 6
- // 414: invokevirtual 173 android/os/Parcel:recycle ()V
- // 417: iload_2
- // 418: istore_1
- // 419: goto -298 -> 121
- // 422: astore 5
- // 424: ldc 68
- // 426: new 70 java/lang/StringBuilder
- // 429: dup
- // 430: invokespecial 71 java/lang/StringBuilder:<init> ()V
- // 433: ldc -81
- // 435: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 438: aload 4
- // 440: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 443: ldc -79
- // 445: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 448: invokevirtual 83 java/lang/StringBuilder:toString ()Ljava/lang/String;
- // 451: aload 5
- // 453: invokestatic 179 android/telephony/Rlog:i (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
- // 456: pop
- // 457: goto -322 -> 135
- // 460: astore 5
- // 462: ldc 68
- // 464: new 70 java/lang/StringBuilder
- // 467: dup
- // 468: invokespecial 71 java/lang/StringBuilder:<init> ()V
- // 471: ldc -75
- // 473: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 476: iload_1
- // 477: invokevirtual 138 java/lang/StringBuilder:append (I)Ljava/lang/StringBuilder;
- // 480: ldc -73
- // 482: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 485: aload 5
- // 487: invokevirtual 184 java/lang/Throwable:toString ()Ljava/lang/String;
- // 490: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 493: invokevirtual 83 java/lang/StringBuilder:toString ()Ljava/lang/String;
- // 496: invokestatic 142 android/telephony/Rlog:e (Ljava/lang/String;Ljava/lang/String;)I
- // 499: pop
- // 500: goto -365 -> 135
- // 503: astore 5
- // 505: goto -242 -> 263
- // 508: astore 4
- // 510: goto -195 -> 315
- // 513: astore 4
- // 515: goto -329 -> 186
- // 518: astore 5
- // 520: aload 6
- // 522: astore 5
- // 524: goto -271 -> 253
- // Local variable table:
- // start length slot name signature
- // 0 527 0 this RILReceiver
- // 1 476 1 i int
- // 106 312 2 j int
- // 62 145 3 k int
- // 33 117 4 str1 String
- // 211 7 4 localThrowable1 Throwable
- // 246 101 4 str2 String
- // 366 73 4 localThrowable2 Throwable
- // 508 1 4 localInterruptedException InterruptedException
- // 513 1 4 localIOException1 IOException
- // 3 256 5 localInputStream InputStream
- // 422 30 5 localIOException2 IOException
- // 460 26 5 localThrowable3 Throwable
- // 503 1 5 localIOException3 IOException
- // 518 1 5 localIOException4 IOException
- // 522 1 5 localObject Object
- // 42 26 6 localLocalSocket LocalSocket
- // 251 1 6 localIOException5 IOException
- // 376 145 6 localParcel Parcel
- // Exception table:
- // from to target type
- // 44 61 211 java/lang/Throwable
- // 63 103 211 java/lang/Throwable
- // 135 176 211 java/lang/Throwable
- // 176 186 211 java/lang/Throwable
- // 186 206 211 java/lang/Throwable
- // 424 457 211 java/lang/Throwable
- // 462 500 211 java/lang/Throwable
- // 35 44 251 java/io/IOException
- // 5 28 366 java/lang/Throwable
- // 28 35 366 java/lang/Throwable
- // 35 44 366 java/lang/Throwable
- // 232 248 366 java/lang/Throwable
- // 258 263 366 java/lang/Throwable
- // 269 309 366 java/lang/Throwable
- // 309 315 366 java/lang/Throwable
- // 332 363 366 java/lang/Throwable
- // 107 119 422 java/io/IOException
- // 121 131 422 java/io/IOException
- // 373 378 422 java/io/IOException
- // 380 391 422 java/io/IOException
- // 393 399 422 java/io/IOException
- // 401 410 422 java/io/IOException
- // 412 417 422 java/io/IOException
- // 107 119 460 java/lang/Throwable
- // 121 131 460 java/lang/Throwable
- // 373 378 460 java/lang/Throwable
- // 380 391 460 java/lang/Throwable
- // 393 399 460 java/lang/Throwable
- // 401 410 460 java/lang/Throwable
- // 412 417 460 java/lang/Throwable
- // 258 263 503 java/io/IOException
- // 309 315 508 java/lang/InterruptedException
- // 176 186 513 java/io/IOException
- // 44 61 518 java/io/IOException
- }
- }
- class RILSender
- extends Handler
- implements Runnable
- {
- byte[] dataLength = new byte[4];
- public RILSender(Looper paramLooper)
- {
- super();
- }
- /* Error */
- public void handleMessage(Message arg1)
- {
- // Byte code:
- // 0: aload_1
- // 1: getfield 35 android/os/Message:obj Ljava/lang/Object;
- // 4: checkcast 37 com/android/internal/telephony/RILRequest
- // 7: checkcast 37 com/android/internal/telephony/RILRequest
- // 10: astore 4
- // 12: aload_1
- // 13: getfield 41 android/os/Message:what I
- // 16: tableswitch default:+24->40, 1:+25->41, 2:+317->333
- // 40: return
- // 41: aload_0
- // 42: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
- // 45: getfield 45 com/android/internal/telephony/RIL:mSocket Landroid/net/LocalSocket;
- // 48: astore_1
- // 49: aload_1
- // 50: ifnonnull +68 -> 118
- // 53: aload 4
- // 55: iconst_1
- // 56: aconst_null
- // 57: invokevirtual 49 com/android/internal/telephony/RILRequest:onError (ILjava/lang/Object;)V
- // 60: aload 4
- // 62: invokevirtual 53 com/android/internal/telephony/RILRequest:release ()V
- // 65: aload_0
- // 66: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
- // 69: invokestatic 57 com/android/internal/telephony/RIL:access$200 (Lcom/android/internal/telephony/RIL;)V
- // 72: return
- // 73: astore_1
- // 74: ldc 59
- // 76: ldc 61
- // 78: aload_1
- // 79: invokestatic 67 android/telephony/Rlog:e (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
- // 82: pop
- // 83: aload_0
- // 84: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
- // 87: aload 4
- // 89: getfield 70 com/android/internal/telephony/RILRequest:mSerial I
- // 92: invokestatic 74 com/android/internal/telephony/RIL:access$300 (Lcom/android/internal/telephony/RIL;I)Lcom/android/internal/telephony/RILRequest;
- // 95: ifnull -55 -> 40
- // 98: aload 4
- // 100: iconst_1
- // 101: aconst_null
- // 102: invokevirtual 49 com/android/internal/telephony/RILRequest:onError (ILjava/lang/Object;)V
- // 105: aload 4
- // 107: invokevirtual 53 com/android/internal/telephony/RILRequest:release ()V
- // 110: aload_0
- // 111: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
- // 114: invokestatic 57 com/android/internal/telephony/RIL:access$200 (Lcom/android/internal/telephony/RIL;)V
- // 117: return
- // 118: aload_0
- // 119: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
- // 122: getfield 78 com/android/internal/telephony/RIL:mRequestList Landroid/util/SparseArray;
- // 125: astore 5
- // 127: aload 5
- // 129: monitorenter
- // 130: aload_0
- // 131: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
- // 134: getfield 78 com/android/internal/telephony/RIL:mRequestList Landroid/util/SparseArray;
- // 137: aload 4
- // 139: getfield 70 com/android/internal/telephony/RILRequest:mSerial I
- // 142: aload 4
- // 144: invokevirtual 83 android/util/SparseArray:append (ILjava/lang/Object;)V
- // 147: aload 5
- // 149: monitorexit
- // 150: aload 4
- // 152: getfield 87 com/android/internal/telephony/RILRequest:mParcel Landroid/os/Parcel;
- // 155: invokevirtual 93 android/os/Parcel:marshall ()[B
- // 158: astore 5
- // 160: aload 4
- // 162: getfield 87 com/android/internal/telephony/RILRequest:mParcel Landroid/os/Parcel;
- // 165: invokevirtual 96 android/os/Parcel:recycle ()V
- // 168: aload 4
- // 170: aconst_null
- // 171: putfield 87 com/android/internal/telephony/RILRequest:mParcel Landroid/os/Parcel;
- // 174: aload 5
- // 176: arraylength
- // 177: sipush 8192
- // 180: if_icmple +83 -> 263
- // 183: new 29 java/lang/RuntimeException
- // 186: dup
- // 187: new 98 java/lang/StringBuilder
- // 190: dup
- // 191: invokespecial 100 java/lang/StringBuilder:<init> ()V
- // 194: ldc 102
- // 196: invokevirtual 105 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 199: aload 5
- // 201: arraylength
- // 202: invokevirtual 108 java/lang/StringBuilder:append (I)Ljava/lang/StringBuilder;
- // 205: invokevirtual 112 java/lang/StringBuilder:toString ()Ljava/lang/String;
- // 208: invokespecial 115 java/lang/RuntimeException:<init> (Ljava/lang/String;)V
- // 211: athrow
- // 212: astore_1
- // 213: ldc 59
- // 215: ldc 117
- // 217: aload_1
- // 218: invokestatic 67 android/telephony/Rlog:e (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
- // 221: pop
- // 222: aload_0
- // 223: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
- // 226: aload 4
- // 228: getfield 70 com/android/internal/telephony/RILRequest:mSerial I
- // 231: invokestatic 74 com/android/internal/telephony/RIL:access$300 (Lcom/android/internal/telephony/RIL;I)Lcom/android/internal/telephony/RILRequest;
- // 234: ifnull -194 -> 40
- // 237: aload 4
- // 239: iconst_2
- // 240: aconst_null
- // 241: invokevirtual 49 com/android/internal/telephony/RILRequest:onError (ILjava/lang/Object;)V
- // 244: aload 4
- // 246: invokevirtual 53 com/android/internal/telephony/RILRequest:release ()V
- // 249: aload_0
- // 250: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
- // 253: invokestatic 57 com/android/internal/telephony/RIL:access$200 (Lcom/android/internal/telephony/RIL;)V
- // 256: return
- // 257: astore_1
- // 258: aload 5
- // 260: monitorexit
- // 261: aload_1
- // 262: athrow
- // 263: aload_0
- // 264: getfield 22 com/android/internal/telephony/RIL$RILSender:dataLength [B
- // 267: astore 6
- // 269: aload_0
- // 270: getfield 22 com/android/internal/telephony/RIL$RILSender:dataLength [B
- // 273: iconst_1
- // 274: iconst_0
- // 275: bastore
- // 276: aload 6
- // 278: iconst_0
- // 279: iconst_0
- // 280: bastore
- // 281: aload_0
- // 282: getfield 22 com/android/internal/telephony/RIL$RILSender:dataLength [B
- // 285: iconst_2
- // 286: aload 5
- // 288: arraylength
- // 289: bipush 8
- // 291: ishr
- // 292: sipush 255
- // 295: iand
- // 296: i2b
- // 297: bastore
- // 298: aload_0
- // 299: getfield 22 com/android/internal/telephony/RIL$RILSender:dataLength [B
- // 302: iconst_3
- // 303: aload 5
- // 305: arraylength
- // 306: sipush 255
- // 309: iand
- // 310: i2b
- // 311: bastore
- // 312: aload_1
- // 313: invokevirtual 123 android/net/LocalSocket:getOutputStream ()Ljava/io/OutputStream;
- // 316: aload_0
- // 317: getfield 22 com/android/internal/telephony/RIL$RILSender:dataLength [B
- // 320: invokevirtual 129 java/io/OutputStream:write ([B)V
- // 323: aload_1
- // 324: invokevirtual 123 android/net/LocalSocket:getOutputStream ()Ljava/io/OutputStream;
- // 327: aload 5
- // 329: invokevirtual 129 java/io/OutputStream:write ([B)V
- // 332: return
- // 333: aload_0
- // 334: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
- // 337: getfield 78 com/android/internal/telephony/RIL:mRequestList Landroid/util/SparseArray;
- // 340: astore_1
- // 341: aload_1
- // 342: monitorenter
- // 343: aload_0
- // 344: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
- // 347: invokestatic 133 com/android/internal/telephony/RIL:access$400 (Lcom/android/internal/telephony/RIL;)Z
- // 350: ifeq +118 -> 468
- // 353: aload_0
- // 354: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
- // 357: getfield 78 com/android/internal/telephony/RIL:mRequestList Landroid/util/SparseArray;
- // 360: invokevirtual 137 android/util/SparseArray:size ()I
- // 363: istore_3
- // 364: ldc 59
- // 366: new 98 java/lang/StringBuilder
- // 369: dup
- // 370: invokespecial 100 java/lang/StringBuilder:<init> ()V
- // 373: ldc -117
- // 375: invokevirtual 105 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 378: iload_3
- // 379: invokevirtual 108 java/lang/StringBuilder:append (I)Ljava/lang/StringBuilder;
- // 382: invokevirtual 112 java/lang/StringBuilder:toString ()Ljava/lang/String;
- // 385: invokestatic 143 android/telephony/Rlog:d (Ljava/lang/String;Ljava/lang/String;)I
- // 388: pop
- // 389: iconst_0
- // 390: istore_2
- // 391: iload_2
- // 392: iload_3
- // 393: if_icmpge +75 -> 468
- // 396: aload_0
- // 397: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
- // 400: getfield 78 com/android/internal/telephony/RIL:mRequestList Landroid/util/SparseArray;
- // 403: iload_2
- // 404: invokevirtual 147 android/util/SparseArray:valueAt (I)Ljava/lang/Object;
- // 407: checkcast 37 com/android/internal/telephony/RILRequest
- // 410: astore 4
- // 412: ldc 59
- // 414: new 98 java/lang/StringBuilder
- // 417: dup
- // 418: invokespecial 100 java/lang/StringBuilder:<init> ()V
- // 421: iload_2
- // 422: invokevirtual 108 java/lang/StringBuilder:append (I)Ljava/lang/StringBuilder;
- // 425: ldc -107
- // 427: invokevirtual 105 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 430: aload 4
- // 432: getfield 70 com/android/internal/telephony/RILRequest:mSerial I
- // 435: invokevirtual 108 java/lang/StringBuilder:append (I)Ljava/lang/StringBuilder;
- // 438: ldc -105
- // 440: invokevirtual 105 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 443: aload 4
- // 445: getfield 154 com/android/internal/telephony/RILRequest:mRequest I
- // 448: invokestatic 158 com/android/internal/telephony/RIL:requestToString (I)Ljava/lang/String;
- // 451: invokevirtual 105 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
- // 454: invokevirtual 112 java/lang/StringBuilder:toString ()Ljava/lang/String;
- // 457: invokestatic 143 android/telephony/Rlog:d (Ljava/lang/String;Ljava/lang/String;)I
- // 460: pop
- // 461: iload_2
- // 462: iconst_1
- // 463: iadd
- // 464: istore_2
- // 465: goto -74 -> 391
- // 468: aload_1
- // 469: monitorexit
- // 470: return
- // 471: astore 4
- // 473: aload_1
- // 474: monitorexit
- // 475: aload 4
- // 477: athrow
- // Local variable table:
- // start length slot name signature
- // 0 478 0 this RILSender
- // 390 75 2 i int
- // 363 31 3 j int
- // 10 434 4 localRILRequest RILRequest
- // 471 5 4 localObject1 Object
- // 267 10 6 arrayOfByte byte[]
- // Exception table:
- // from to target type
- // 41 49 73 java/io/IOException
- // 53 72 73 java/io/IOException
- // 118 130 73 java/io/IOException
- // 150 212 73 java/io/IOException
- // 261 263 73 java/io/IOException
- // 263 276 73 java/io/IOException
- // 281 332 73 java/io/IOException
- // 41 49 212 java/lang/RuntimeException
- // 53 72 212 java/lang/RuntimeException
- // 118 130 212 java/lang/RuntimeException
- // 150 212 212 java/lang/RuntimeException
- // 261 263 212 java/lang/RuntimeException
- // 263 276 212 java/lang/RuntimeException
- // 281 332 212 java/lang/RuntimeException
- // 130 150 257 finally
- // 258 261 257 finally
- // 343 389 471 finally
- // 396 461 471 finally
- // 468 470 471 finally
- // 473 475 471 finally
- }
- public void run() {}
- }
- public final class UnsolOemHookBuffer
- {
- private byte[] mData;
- private int mRilInstance;
- public UnsolOemHookBuffer(int paramInt, byte[] paramArrayOfByte)
- {
- this.mRilInstance = paramInt;
- this.mData = paramArrayOfByte;
- }
- public int getRilInstance()
- {
- return this.mRilInstance;
- }
- public byte[] getUnsolOemHookBuffer()
- {
- return this.mData;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement