Advertisement
deadman96385

Untitled

Feb 8th, 2016
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 223.27 KB | None | 0 0
  1. package com.android.internal.telephony;
  2.  
  3. import android.content.BroadcastReceiver;
  4. import android.content.Context;
  5. import android.content.Intent;
  6. import android.content.IntentFilter;
  7. import android.content.SharedPreferences;
  8. import android.hardware.display.DisplayManager;
  9. import android.hardware.display.DisplayManager.DisplayListener;
  10. import android.net.ConnectivityManager;
  11. import android.net.LocalSocket;
  12. import android.os.AsyncResult;
  13. import android.os.Build;
  14. import android.os.Bundle;
  15. import android.os.Handler;
  16. import android.os.HandlerThread;
  17. import android.os.Looper;
  18. import android.os.Message;
  19. import android.os.Parcel;
  20. import android.os.Parcelable.Creator;
  21. import android.os.PowerManager;
  22. import android.os.PowerManager.WakeLock;
  23. import android.os.Registrant;
  24. import android.os.RegistrantList;
  25. import android.os.SystemProperties;
  26. import android.preference.PreferenceManager;
  27. import android.provider.Settings.Global;
  28. import android.provider.Settings.Secure;
  29. import android.provider.Settings.System;
  30. import android.telephony.CellInfo;
  31. import android.telephony.NeighboringCellInfo;
  32. import android.telephony.PhoneNumberUtils;
  33. import android.telephony.Rlog;
  34. import android.telephony.SignalStrength;
  35. import android.telephony.SmsMessage;
  36. import android.telephony.TelephonyManager;
  37. import android.telephony.gsm.CbConfig;
  38. import android.text.TextUtils;
  39. import android.util.Base64;
  40. import android.util.SparseArray;
  41. import android.view.Display;
  42. import com.android.internal.telephony.cdma.CdmaCallWaitingNotification;
  43. import com.android.internal.telephony.cdma.CdmaInformationRecords;
  44. import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaDisplayInfoRec;
  45. import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaLineControlInfoRec;
  46. import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaNumberInfoRec;
  47. import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaRedirectingNumberInfoRec;
  48. import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaSignalInfoRec;
  49. import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaT53AudioControlInfoRec;
  50. import com.android.internal.telephony.cdma.CdmaInformationRecords.CdmaT53ClirInfoRec;
  51. import com.android.internal.telephony.cdma.CdmaSmsBroadcastConfigInfo;
  52. import com.android.internal.telephony.dataconnection.DataCallResponse;
  53. import com.android.internal.telephony.dataconnection.DataProfile;
  54. import com.android.internal.telephony.dataconnection.DcFailCause;
  55. import com.android.internal.telephony.gsm.SmsBroadcastConfigInfo;
  56. import com.android.internal.telephony.gsm.SsData;
  57. import com.android.internal.telephony.gsm.SsData.RequestType;
  58. import com.android.internal.telephony.gsm.SsData.ServiceType;
  59. import com.android.internal.telephony.gsm.SuppServiceNotification;
  60. import com.android.internal.telephony.uicc.AdnRecord;
  61. import com.android.internal.telephony.uicc.IccCardApplicationStatus;
  62. import com.android.internal.telephony.uicc.IccCardStatus;
  63. import com.android.internal.telephony.uicc.IccIoResult;
  64. import com.android.internal.telephony.uicc.IccRefreshResponse;
  65. import com.android.internal.telephony.uicc.IccUtils;
  66. import com.android.internal.telephony.uicc.SimLockInfoResult;
  67. import com.android.internal.telephony.uicc.SimPBEntryResult;
  68. import com.sec.android.app.CscFeature;
  69. import java.io.ByteArrayInputStream;
  70. import java.io.DataInputStream;
  71. import java.io.FileDescriptor;
  72. import java.io.IOException;
  73. import java.io.InputStream;
  74. import java.io.PrintWriter;
  75. import java.io.UnsupportedEncodingException;
  76. import java.util.ArrayList;
  77. import java.util.Collections;
  78. import java.util.HashSet;
  79. import java.util.Iterator;
  80. import java.util.Set;
  81. import java.util.concurrent.atomic.AtomicBoolean;
  82.  
  83. public class RIL
  84. extends BaseCommands
  85. implements CommandsInterface
  86. {
  87. private static final int CDMA_BROADCAST_SMS_NO_OF_SERVICE_CATEGORIES = 31;
  88. private static final int CDMA_BSI_NO_OF_INTS_STRUCT = 3;
  89. public static final boolean CELL_BROADCAST_ENABLE = true;
  90. private static final int DEFAULT_WAKE_LOCK_TIMEOUT = 60000;
  91. static final String ETWS_TEST = "jp.co.android.softbankCBM.ETWS";
  92. static final int EVENT_SEND = 1;
  93. static final int EVENT_WAKE_LOCK_TIMEOUT = 2;
  94. static final String LOG_LEVEL_PROP = "ro.debug_level";
  95. static final String LOG_LEVEL_PROP_HIGH = "0x4948";
  96. static final String LOG_LEVEL_PROP_LOW = "0x4f4c";
  97. static final String LOG_LEVEL_PROP_MID = "0x494d";
  98. static final int NETTEXT_GSM_SMS_CBMI_LIST_SIZE_MAX = 100;
  99. private static final int OEM_FUNCTION_ID_NETWORK = 2;
  100. private static final int OEM_NET_GET_MODEM_CAP = 97;
  101. private static final int OEM_NET_UPDATE_SUB_BINDING = 98;
  102. static final int RESPONSE_SOLICITED = 0;
  103. static final int RESPONSE_UNSOLICITED = 1;
  104. static final boolean RILJ_LOGD = true;
  105. static final boolean RILJ_LOGV = false;
  106. static final String RILJ_LOG_TAG = "RILJ";
  107. static final int RIL_MAX_COMMAND_BYTES = 8192;
  108. static final boolean SHIP_BUILD = "true".equals(SystemProperties.get("ro.product_ship", "false"));
  109. static final String[] SOCKET_NAME_RIL = { "rild", "rild2", "rild3" };
  110. static final int SOCKET_OPEN_RETRY_MILLIS = 4000;
  111. static final int USSD_DCS_KS5601 = 148;
  112. static final String WAPPUSH_TEST = "jp.co.android.ETWS_WAPPUSH";
  113. private int initPhoneType = 0;
  114. Display mDefaultDisplay;
  115. int mDefaultDisplayState = 0;
  116. private final DisplayManager.DisplayListener mDisplayListener = new DisplayManager.DisplayListener()
  117. {
  118. public void onDisplayAdded(int paramAnonymousInt) {}
  119.  
  120. public void onDisplayChanged(int paramAnonymousInt)
  121. {
  122. if (paramAnonymousInt == 0) {
  123. RIL.this.updateScreenState();
  124. }
  125. }
  126.  
  127. public void onDisplayRemoved(int paramAnonymousInt) {}
  128. };
  129. private Integer mInstanceId;
  130. BroadcastReceiver mIntentReceiver = new BroadcastReceiver()
  131. {
  132. public void onReceive(Context paramAnonymousContext, Intent paramAnonymousIntent)
  133. {
  134. int i;
  135. int j;
  136. if (paramAnonymousIntent.getAction().equals("com.samsung.intent.action.EMERGENCY_STATE_CHANGED"))
  137. {
  138. i = paramAnonymousIntent.getIntExtra("reason", 0);
  139. j = paramAnonymousIntent.getIntExtra("enterType", 0);
  140. if ((i == 2) && (j != 512)) {
  141. RIL.this.sendSafemode(true);
  142. }
  143. }
  144. do
  145. {
  146. do
  147. {
  148. do
  149. {
  150. return;
  151. } while ((i != 4) || (j == 512));
  152. RIL.this.sendSafemode(false);
  153. return;
  154. if ((!paramAnonymousIntent.getAction().equals("jp.co.android.softbankCBM.ETWS")) && (!paramAnonymousIntent.getAction().equals("jp.co.android.ETWS_WAPPUSH"))) {
  155. break;
  156. }
  157. } while ((!"eng".equals(Build.TYPE)) || (!SystemProperties.getBoolean("persist.EarthquakeTestmode", false)));
  158. paramAnonymousContext = paramAnonymousIntent.getExtras();
  159. if (paramAnonymousContext == null)
  160. {
  161. Rlog.d("RILJ", "intent.getExtras() = null");
  162. return;
  163. }
  164. if ((paramAnonymousIntent.getAction().equals("jp.co.android.softbankCBM.ETWS")) && (RIL.this.mGsmBroadcastSmsRegistrant != null))
  165. {
  166. Rlog.d("RILJ", "ETWS_TEST receive");
  167. paramAnonymousContext = paramAnonymousContext.get("pdus");
  168. RIL.this.mGsmBroadcastSmsRegistrant.notifyRegistrant(new AsyncResult(null, paramAnonymousContext, null));
  169. return;
  170. }
  171. } while ((!paramAnonymousIntent.getAction().equals("jp.co.android.ETWS_WAPPUSH")) || (RIL.this.mGsmSmsRegistrant == null));
  172. Rlog.d("RILJ", "WAPPUSH_TEST receive");
  173. paramAnonymousContext = (String)paramAnonymousContext.get("pdus");
  174. paramAnonymousIntent = new String[2];
  175. paramAnonymousIntent[1] = paramAnonymousContext;
  176. Rlog.d("RILJ", "call newFromCMT");
  177. paramAnonymousContext = SmsMessage.newFromCMT(paramAnonymousIntent);
  178. Rlog.d("RILJ", "call mGsmSmsRegistrant notifyRegistrant");
  179. RIL.this.mGsmSmsRegistrant.notifyRegistrant(new AsyncResult(null, paramAnonymousContext, null));
  180. return;
  181. Rlog.w("RILJ", "RIL received unexpected Intent: " + paramAnonymousIntent.getAction());
  182. }
  183. };
  184. Object mLastNITZTimeInfo;
  185. RILReceiver mReceiver;
  186. Thread mReceiverThread;
  187. SparseArray<RILRequest> mRequestList = new SparseArray();
  188. RILSender mSender;
  189. HandlerThread mSenderThread;
  190. LocalSocket mSocket;
  191. AtomicBoolean mTestingEmergencyCall = new AtomicBoolean(false);
  192. PowerManager.WakeLock mWakeLock;
  193. int mWakeLockCount;
  194. final int mWakeLockTimeout;
  195.  
  196. public RIL(Context paramContext, int paramInt1, int paramInt2)
  197. {
  198. this(paramContext, paramInt1, paramInt2, null);
  199. }
  200.  
  201. public RIL(Context paramContext, int paramInt1, int paramInt2, Integer paramInteger)
  202. {
  203. super(paramContext);
  204. riljLog("RIL(context, preferredNetworkType=" + paramInt1 + " cdmaSubscription=" + paramInt2 + " instanceId=" + paramInteger + ")");
  205. this.mContext = paramContext;
  206. this.mCdmaSubscription = paramInt2;
  207. this.mPreferredNetworkType = paramInt1;
  208. this.mPhoneType = 0;
  209. this.mInstanceId = paramInteger;
  210. PowerManager localPowerManager = (PowerManager)paramContext.getSystemService("power");
  211. StringBuilder localStringBuilder = new StringBuilder().append("RILJ");
  212. if (this.mInstanceId == null)
  213. {
  214. paramInteger = "";
  215. this.mWakeLock = localPowerManager.newWakeLock(1, paramInteger);
  216. this.mWakeLock.setReferenceCounted(false);
  217. this.mWakeLockTimeout = SystemProperties.getInt("ro.ril.wake_lock_timeout", 60000);
  218. this.mWakeLockCount = 0;
  219. this.mSenderThread = new HandlerThread("RILSender");
  220. this.mSenderThread.start();
  221. this.mSender = new RILSender(this.mSenderThread.getLooper());
  222. if (((ConnectivityManager)paramContext.getSystemService("connectivity")).isNetworkSupported(0)) {
  223. break label296;
  224. }
  225. riljLog("Not starting RILReceiver: wifi-only");
  226. }
  227. for (;;)
  228. {
  229. TelephonyDevController.getInstance();
  230. TelephonyDevController.registerRIL(this);
  231. return;
  232. paramInteger = this.mInstanceId;
  233. break;
  234. label296:
  235. riljLog("Starting RILReceiver");
  236. this.mReceiver = new RILReceiver();
  237. this.mReceiverThread = new Thread(this.mReceiver, "RILReceiver");
  238. this.mReceiverThread.start();
  239. paramInteger = new IntentFilter();
  240. paramInteger.addAction("jp.co.android.softbankCBM.ETWS");
  241. paramInteger.addAction("jp.co.android.ETWS_WAPPUSH");
  242. paramContext.registerReceiver(this.mIntentReceiver, paramInteger);
  243. paramContext = (DisplayManager)paramContext.getSystemService("display");
  244. this.mDefaultDisplay = paramContext.getDisplay(0);
  245. paramContext.registerDisplayListener(this.mDisplayListener, null);
  246. }
  247. }
  248.  
  249. private void acquireWakeLock()
  250. {
  251. synchronized (this.mWakeLock)
  252. {
  253. this.mWakeLock.acquire();
  254. this.mWakeLockCount += 1;
  255. this.mSender.removeMessages(2);
  256. Message localMessage = this.mSender.obtainMessage(2);
  257. this.mSender.sendMessageDelayed(localMessage, this.mWakeLockTimeout);
  258. return;
  259. }
  260. }
  261.  
  262. private void clearRequestList(int paramInt, boolean paramBoolean)
  263. {
  264. for (;;)
  265. {
  266. synchronized (this.mRequestList)
  267. {
  268. int j = this.mRequestList.size();
  269. if (paramBoolean)
  270. {
  271. Rlog.d("RILJ", "clearRequestList mWakeLockCount=" + this.mWakeLockCount + " mRequestList=" + j);
  272. break label181;
  273. if (i < j)
  274. {
  275. RILRequest localRILRequest = (RILRequest)this.mRequestList.valueAt(i);
  276. if (paramBoolean) {
  277. Rlog.d("RILJ", i + ": [" + localRILRequest.mSerial + "] " + requestToString(localRILRequest.mRequest));
  278. }
  279. localRILRequest.onError(paramInt, null);
  280. localRILRequest.release();
  281. decrementWakeLock();
  282. i += 1;
  283. continue;
  284. }
  285. this.mRequestList.clear();
  286. return;
  287. }
  288. }
  289. label181:
  290. int i = 0;
  291. }
  292. }
  293.  
  294. private boolean clearWakeLock()
  295. {
  296. synchronized (this.mWakeLock)
  297. {
  298. if ((this.mWakeLockCount == 0) && (!this.mWakeLock.isHeld())) {
  299. return false;
  300. }
  301. Rlog.d("RILJ", "NOTE: mWakeLockCount is " + this.mWakeLockCount + "at time of clearing");
  302. this.mWakeLockCount = 0;
  303. this.mWakeLock.release();
  304. this.mSender.removeMessages(2);
  305. return true;
  306. }
  307. }
  308.  
  309. private void constructCdmaSendSmsRilRequest(RILRequest paramRILRequest, byte[] paramArrayOfByte)
  310. {
  311. paramArrayOfByte = new DataInputStream(new ByteArrayInputStream(paramArrayOfByte));
  312. try
  313. {
  314. paramRILRequest.mParcel.writeInt(paramArrayOfByte.readInt());
  315. paramRILRequest.mParcel.writeByte((byte)paramArrayOfByte.readInt());
  316. paramRILRequest.mParcel.writeInt(paramArrayOfByte.readInt());
  317. paramRILRequest.mParcel.writeInt(paramArrayOfByte.read());
  318. paramRILRequest.mParcel.writeInt(paramArrayOfByte.read());
  319. paramRILRequest.mParcel.writeInt(paramArrayOfByte.read());
  320. paramRILRequest.mParcel.writeInt(paramArrayOfByte.read());
  321. int j = (byte)paramArrayOfByte.read();
  322. paramRILRequest.mParcel.writeByte((byte)j);
  323. int i = 0;
  324. while (i < j)
  325. {
  326. paramRILRequest.mParcel.writeByte(paramArrayOfByte.readByte());
  327. i += 1;
  328. }
  329. paramRILRequest.mParcel.writeInt(paramArrayOfByte.read());
  330. paramRILRequest.mParcel.writeByte((byte)paramArrayOfByte.read());
  331. j = (byte)paramArrayOfByte.read();
  332. paramRILRequest.mParcel.writeByte((byte)j);
  333. i = 0;
  334. while (i < j)
  335. {
  336. paramRILRequest.mParcel.writeByte(paramArrayOfByte.readByte());
  337. i += 1;
  338. }
  339. j = paramArrayOfByte.read();
  340. paramRILRequest.mParcel.writeInt(j);
  341. i = 0;
  342. while (i < j)
  343. {
  344. paramRILRequest.mParcel.writeByte(paramArrayOfByte.readByte());
  345. i += 1;
  346. }
  347. return;
  348. }
  349. catch (IOException paramRILRequest)
  350. {
  351. riljLog("sendSmsCdma: conversion from input stream to object failed: " + paramRILRequest);
  352. }
  353. }
  354.  
  355. private void constructGsmSendSmsRilRequest(RILRequest paramRILRequest, String paramString1, String paramString2)
  356. {
  357. paramRILRequest.mParcel.writeInt(2);
  358. paramRILRequest.mParcel.writeString(paramString1);
  359. paramRILRequest.mParcel.writeString(paramString2);
  360. }
  361.  
  362. private void decrementWakeLock()
  363. {
  364. synchronized (this.mWakeLock)
  365. {
  366. if (this.mWakeLockCount > 1)
  367. {
  368. this.mWakeLockCount -= 1;
  369. return;
  370. }
  371. this.mWakeLockCount = 0;
  372. this.mWakeLock.release();
  373. this.mSender.removeMessages(2);
  374. }
  375. }
  376.  
  377. private RILRequest findAndRemoveRequestFromList(int paramInt)
  378. {
  379. synchronized (this.mRequestList)
  380. {
  381. RILRequest localRILRequest = (RILRequest)this.mRequestList.get(paramInt);
  382. if (localRILRequest != null) {
  383. this.mRequestList.remove(paramInt);
  384. }
  385. return localRILRequest;
  386. }
  387. }
  388.  
  389. private DataCallResponse getDataCallResponse(Parcel paramParcel, int paramInt)
  390. {
  391. DataCallResponse localDataCallResponse = new DataCallResponse();
  392. localDataCallResponse.version = paramInt;
  393. if (paramInt < 5)
  394. {
  395. localDataCallResponse.cid = paramParcel.readInt();
  396. localDataCallResponse.active = paramParcel.readInt();
  397. localDataCallResponse.type = paramParcel.readString();
  398. paramParcel = paramParcel.readString();
  399. if (!TextUtils.isEmpty(paramParcel)) {
  400. localDataCallResponse.addresses = paramParcel.split(" ");
  401. }
  402. }
  403. do
  404. {
  405. return localDataCallResponse;
  406. localDataCallResponse.status = paramParcel.readInt();
  407. localDataCallResponse.suggestedRetryTime = paramParcel.readInt();
  408. localDataCallResponse.cid = paramParcel.readInt();
  409. localDataCallResponse.active = paramParcel.readInt();
  410. localDataCallResponse.type = paramParcel.readString();
  411. localDataCallResponse.ifname = paramParcel.readString();
  412. if ((localDataCallResponse.status == DcFailCause.NONE.getErrorCode()) && (TextUtils.isEmpty(localDataCallResponse.ifname))) {
  413. throw new RuntimeException("getDataCallResponse, no ifname");
  414. }
  415. String str = paramParcel.readString();
  416. if (!TextUtils.isEmpty(str)) {
  417. localDataCallResponse.addresses = str.split(" ");
  418. }
  419. str = paramParcel.readString();
  420. if (!TextUtils.isEmpty(str)) {
  421. localDataCallResponse.dnses = str.split(" ");
  422. }
  423. str = paramParcel.readString();
  424. if (!TextUtils.isEmpty(str)) {
  425. localDataCallResponse.gateways = str.split(" ");
  426. }
  427. if (paramInt >= 10)
  428. {
  429. str = paramParcel.readString();
  430. if (!TextUtils.isEmpty(str)) {
  431. localDataCallResponse.pcscf = str.split(" ");
  432. }
  433. }
  434. } while (paramInt < 11);
  435. localDataCallResponse.mtu = paramParcel.readInt();
  436. return localDataCallResponse;
  437. }
  438.  
  439. private CommandsInterface.RadioState getRadioStateFromInt(int paramInt)
  440. {
  441. switch (paramInt)
  442. {
  443. default:
  444. throw new RuntimeException("Unrecognized RIL_RadioState: " + paramInt);
  445. case 0:
  446. return CommandsInterface.RadioState.RADIO_OFF;
  447. case 1:
  448. return CommandsInterface.RadioState.RADIO_UNAVAILABLE;
  449. }
  450. return CommandsInterface.RadioState.RADIO_ON;
  451. }
  452.  
  453. private void iccTransmitApduHelper(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6, int paramInt7, String paramString, Message paramMessage)
  454. {
  455. paramMessage = RILRequest.obtain(paramInt1, paramMessage);
  456. paramMessage.mParcel.writeInt(paramInt2);
  457. paramMessage.mParcel.writeInt(paramInt3);
  458. paramMessage.mParcel.writeInt(paramInt4);
  459. paramMessage.mParcel.writeInt(paramInt5);
  460. paramMessage.mParcel.writeInt(paramInt6);
  461. paramMessage.mParcel.writeInt(paramInt7);
  462. paramMessage.mParcel.writeString(paramString);
  463. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  464. send(paramMessage);
  465. }
  466.  
  467. private boolean isDebugLevelNotLow()
  468. {
  469. return !SystemProperties.get("ro.debug_level", "0x4f4c").equalsIgnoreCase("0x4f4c");
  470. }
  471.  
  472. private void notifyRegistrantsCdmaInfoRec(CdmaInformationRecords paramCdmaInformationRecords)
  473. {
  474. if ((paramCdmaInformationRecords.record instanceof CdmaInformationRecords.CdmaDisplayInfoRec)) {
  475. if (this.mDisplayInfoRegistrants != null)
  476. {
  477. unsljLogRet(1027, paramCdmaInformationRecords.record);
  478. this.mDisplayInfoRegistrants.notifyRegistrants(new AsyncResult(null, paramCdmaInformationRecords.record, null));
  479. }
  480. }
  481. do
  482. {
  483. do
  484. {
  485. do
  486. {
  487. do
  488. {
  489. do
  490. {
  491. do
  492. {
  493. return;
  494. if (!(paramCdmaInformationRecords.record instanceof CdmaInformationRecords.CdmaSignalInfoRec)) {
  495. break;
  496. }
  497. } while (this.mSignalInfoRegistrants == null);
  498. unsljLogRet(1027, paramCdmaInformationRecords.record);
  499. this.mSignalInfoRegistrants.notifyRegistrants(new AsyncResult(null, paramCdmaInformationRecords.record, null));
  500. return;
  501. if (!(paramCdmaInformationRecords.record instanceof CdmaInformationRecords.CdmaNumberInfoRec)) {
  502. break;
  503. }
  504. } while (this.mNumberInfoRegistrants == null);
  505. unsljLogRet(1027, paramCdmaInformationRecords.record);
  506. this.mNumberInfoRegistrants.notifyRegistrants(new AsyncResult(null, paramCdmaInformationRecords.record, null));
  507. return;
  508. if (!(paramCdmaInformationRecords.record instanceof CdmaInformationRecords.CdmaRedirectingNumberInfoRec)) {
  509. break;
  510. }
  511. } while (this.mRedirNumInfoRegistrants == null);
  512. unsljLogRet(1027, paramCdmaInformationRecords.record);
  513. this.mRedirNumInfoRegistrants.notifyRegistrants(new AsyncResult(null, paramCdmaInformationRecords.record, null));
  514. return;
  515. if (!(paramCdmaInformationRecords.record instanceof CdmaInformationRecords.CdmaLineControlInfoRec)) {
  516. break;
  517. }
  518. } while (this.mLineControlInfoRegistrants == null);
  519. unsljLogRet(1027, paramCdmaInformationRecords.record);
  520. this.mLineControlInfoRegistrants.notifyRegistrants(new AsyncResult(null, paramCdmaInformationRecords.record, null));
  521. return;
  522. if (!(paramCdmaInformationRecords.record instanceof CdmaInformationRecords.CdmaT53ClirInfoRec)) {
  523. break;
  524. }
  525. } while (this.mT53ClirInfoRegistrants == null);
  526. unsljLogRet(1027, paramCdmaInformationRecords.record);
  527. this.mT53ClirInfoRegistrants.notifyRegistrants(new AsyncResult(null, paramCdmaInformationRecords.record, null));
  528. return;
  529. } while ((!(paramCdmaInformationRecords.record instanceof CdmaInformationRecords.CdmaT53AudioControlInfoRec)) || (this.mT53AudCntrlInfoRegistrants == null));
  530. unsljLogRet(1027, paramCdmaInformationRecords.record);
  531. this.mT53AudCntrlInfoRegistrants.notifyRegistrants(new AsyncResult(null, paramCdmaInformationRecords.record, null));
  532. }
  533.  
  534. private void notifyRegistrantsRilConnectionChanged(int paramInt)
  535. {
  536. this.mRilVersion = paramInt;
  537. if (this.mRilConnectedRegistrants != null) {
  538. this.mRilConnectedRegistrants.notifyRegistrants(new AsyncResult(null, new Integer(paramInt), null));
  539. }
  540. }
  541.  
  542. private void processResponse(Parcel paramParcel)
  543. {
  544. int i = paramParcel.readInt();
  545. if (i == 1) {
  546. processUnsolicited(paramParcel);
  547. }
  548. do
  549. {
  550. do
  551. {
  552. return;
  553. } while (i != 0);
  554. paramParcel = processSolicited(paramParcel);
  555. } while (paramParcel == null);
  556. paramParcel.release();
  557. decrementWakeLock();
  558. }
  559.  
  560. private static int readRilMessage(InputStream paramInputStream, byte[] paramArrayOfByte)
  561. throws IOException
  562. {
  563. int j = 0;
  564. int i = 4;
  565. do
  566. {
  567. k = paramInputStream.read(paramArrayOfByte, j, i);
  568. if (k < 0)
  569. {
  570. Rlog.e("RILJ", "Hit EOS reading message length");
  571. return -1;
  572. }
  573. j += k;
  574. k = i - k;
  575. i = k;
  576. } while (k > 0);
  577. int k = (paramArrayOfByte[0] & 0xFF) << 24 | (paramArrayOfByte[1] & 0xFF) << 16 | (paramArrayOfByte[2] & 0xFF) << 8 | paramArrayOfByte[3] & 0xFF;
  578. j = 0;
  579. i = k;
  580. int m;
  581. do
  582. {
  583. m = paramInputStream.read(paramArrayOfByte, j, i);
  584. if (m < 0)
  585. {
  586. Rlog.e("RILJ", "Hit EOS reading message. messageLength=" + k + " remaining=" + i);
  587. return -1;
  588. }
  589. j += m;
  590. m = i - m;
  591. i = m;
  592. } while (m > 0);
  593. return k;
  594. }
  595.  
  596. static String requestToString(int paramInt)
  597. {
  598. switch (paramInt)
  599. {
  600. default:
  601. return "<unknown request>";
  602. case 1:
  603. return "GET_SIM_STATUS";
  604. case 2:
  605. return "ENTER_SIM_PIN";
  606. case 3:
  607. return "ENTER_SIM_PUK";
  608. case 4:
  609. return "ENTER_SIM_PIN2";
  610. case 5:
  611. return "ENTER_SIM_PUK2";
  612. case 6:
  613. return "CHANGE_SIM_PIN";
  614. case 7:
  615. return "CHANGE_SIM_PIN2";
  616. case 8:
  617. return "ENTER_NETWORK_DEPERSONALIZATION";
  618. case 9:
  619. return "GET_CURRENT_CALLS";
  620. case 10:
  621. return "DIAL";
  622. case 11:
  623. return "GET_IMSI";
  624. case 12:
  625. return "HANGUP";
  626. case 13:
  627. return "HANGUP_WAITING_OR_BACKGROUND";
  628. case 14:
  629. return "HANGUP_FOREGROUND_RESUME_BACKGROUND";
  630. case 15:
  631. return "REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE";
  632. case 16:
  633. return "CONFERENCE";
  634. case 17:
  635. return "UDUB";
  636. case 18:
  637. return "LAST_CALL_FAIL_CAUSE";
  638. case 19:
  639. return "SIGNAL_STRENGTH";
  640. case 20:
  641. return "VOICE_REGISTRATION_STATE";
  642. case 21:
  643. return "DATA_REGISTRATION_STATE";
  644. case 22:
  645. return "OPERATOR";
  646. case 23:
  647. return "RADIO_POWER";
  648. case 24:
  649. return "DTMF";
  650. case 25:
  651. return "SEND_SMS";
  652. case 26:
  653. return "SEND_SMS_EXPECT_MORE";
  654. case 27:
  655. return "SETUP_DATA_CALL";
  656. case 28:
  657. return "SIM_IO";
  658. case 29:
  659. return "SEND_USSD";
  660. case 30:
  661. return "CANCEL_USSD";
  662. case 31:
  663. return "GET_CLIR";
  664. case 32:
  665. return "SET_CLIR";
  666. case 33:
  667. return "QUERY_CALL_FORWARD_STATUS";
  668. case 34:
  669. return "SET_CALL_FORWARD";
  670. case 35:
  671. return "QUERY_CALL_WAITING";
  672. case 36:
  673. return "SET_CALL_WAITING";
  674. case 37:
  675. return "SMS_ACKNOWLEDGE";
  676. case 38:
  677. return "GET_IMEI";
  678. case 39:
  679. return "GET_IMEISV";
  680. case 40:
  681. return "ANSWER";
  682. case 41:
  683. return "DEACTIVATE_DATA_CALL";
  684. case 42:
  685. return "QUERY_FACILITY_LOCK";
  686. case 43:
  687. return "SET_FACILITY_LOCK";
  688. case 44:
  689. return "CHANGE_BARRING_PASSWORD";
  690. case 45:
  691. return "QUERY_NETWORK_SELECTION_MODE";
  692. case 46:
  693. return "SET_NETWORK_SELECTION_AUTOMATIC";
  694. case 47:
  695. return "SET_NETWORK_SELECTION_MANUAL";
  696. case 48:
  697. return "QUERY_AVAILABLE_NETWORKS ";
  698. case 49:
  699. return "DTMF_START";
  700. case 50:
  701. return "DTMF_STOP";
  702. case 51:
  703. return "BASEBAND_VERSION";
  704. case 52:
  705. return "SEPARATE_CONNECTION";
  706. case 53:
  707. return "SET_MUTE";
  708. case 54:
  709. return "GET_MUTE";
  710. case 55:
  711. return "QUERY_CLIP";
  712. case 56:
  713. return "LAST_DATA_CALL_FAIL_CAUSE";
  714. case 57:
  715. return "DATA_CALL_LIST";
  716. case 58:
  717. return "RESET_RADIO";
  718. case 59:
  719. return "OEM_HOOK_RAW";
  720. case 60:
  721. return "OEM_HOOK_STRINGS";
  722. case 61:
  723. return "SCREEN_STATE";
  724. case 62:
  725. return "SET_SUPP_SVC_NOTIFICATION";
  726. case 63:
  727. return "WRITE_SMS_TO_SIM";
  728. case 64:
  729. return "DELETE_SMS_ON_SIM";
  730. case 65:
  731. return "SET_BAND_MODE";
  732. case 66:
  733. return "QUERY_AVAILABLE_BAND_MODE";
  734. case 67:
  735. return "REQUEST_STK_GET_PROFILE";
  736. case 68:
  737. return "REQUEST_STK_SET_PROFILE";
  738. case 69:
  739. return "REQUEST_STK_SEND_ENVELOPE_COMMAND";
  740. case 70:
  741. return "REQUEST_STK_SEND_TERMINAL_RESPONSE";
  742. case 71:
  743. return "REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM";
  744. case 72:
  745. return "REQUEST_EXPLICIT_CALL_TRANSFER";
  746. case 73:
  747. return "REQUEST_SET_PREFERRED_NETWORK_TYPE";
  748. case 74:
  749. return "REQUEST_GET_PREFERRED_NETWORK_TYPE";
  750. case 75:
  751. return "REQUEST_GET_NEIGHBORING_CELL_IDS";
  752. case 76:
  753. return "REQUEST_SET_LOCATION_UPDATES";
  754. case 77:
  755. return "RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE";
  756. case 78:
  757. return "RIL_REQUEST_CDMA_SET_ROAMING_PREFERENCE";
  758. case 79:
  759. return "RIL_REQUEST_CDMA_QUERY_ROAMING_PREFERENCE";
  760. case 80:
  761. return "RIL_REQUEST_SET_TTY_MODE";
  762. case 81:
  763. return "RIL_REQUEST_QUERY_TTY_MODE";
  764. case 82:
  765. return "RIL_REQUEST_CDMA_SET_PREFERRED_VOICE_PRIVACY_MODE";
  766. case 83:
  767. return "RIL_REQUEST_CDMA_QUERY_PREFERRED_VOICE_PRIVACY_MODE";
  768. case 84:
  769. return "RIL_REQUEST_CDMA_FLASH";
  770. case 85:
  771. return "RIL_REQUEST_CDMA_BURST_DTMF";
  772. case 87:
  773. return "RIL_REQUEST_CDMA_SEND_SMS";
  774. case 88:
  775. return "RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE";
  776. case 89:
  777. return "RIL_REQUEST_GSM_GET_BROADCAST_CONFIG";
  778. case 90:
  779. return "RIL_REQUEST_GSM_SET_BROADCAST_CONFIG";
  780. case 92:
  781. return "RIL_REQUEST_CDMA_GET_BROADCAST_CONFIG";
  782. case 93:
  783. return "RIL_REQUEST_CDMA_SET_BROADCAST_CONFIG";
  784. case 91:
  785. return "RIL_REQUEST_GSM_BROADCAST_ACTIVATION";
  786. case 86:
  787. return "RIL_REQUEST_CDMA_VALIDATE_AND_WRITE_AKEY";
  788. case 94:
  789. return "RIL_REQUEST_CDMA_BROADCAST_ACTIVATION";
  790. case 95:
  791. return "RIL_REQUEST_CDMA_SUBSCRIPTION";
  792. case 96:
  793. return "RIL_REQUEST_CDMA_WRITE_SMS_TO_RUIM";
  794. case 97:
  795. return "RIL_REQUEST_CDMA_DELETE_SMS_ON_RUIM";
  796. case 98:
  797. return "RIL_REQUEST_DEVICE_IDENTITY";
  798. case 100:
  799. return "RIL_REQUEST_GET_SMSC_ADDRESS";
  800. case 101:
  801. return "RIL_REQUEST_SET_SMSC_ADDRESS";
  802. case 99:
  803. return "REQUEST_EXIT_EMERGENCY_CALLBACK_MODE";
  804. case 102:
  805. return "RIL_REQUEST_REPORT_SMS_MEMORY_STATUS";
  806. case 103:
  807. return "RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING";
  808. case 104:
  809. return "RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE";
  810. case 105:
  811. return "RIL_REQUEST_ISIM_AUTHENTICATION";
  812. case 106:
  813. return "RIL_REQUEST_ACKNOWLEDGE_INCOMING_GSM_SMS_WITH_PDU";
  814. case 107:
  815. return "RIL_REQUEST_STK_SEND_ENVELOPE_WITH_STATUS";
  816. case 108:
  817. return "RIL_REQUEST_VOICE_RADIO_TECH";
  818. case 109:
  819. return "RIL_REQUEST_GET_CELL_INFO_LIST";
  820. case 110:
  821. return "RIL_REQUEST_SET_CELL_INFO_LIST_RATE";
  822. case 111:
  823. return "RIL_REQUEST_SET_INITIAL_ATTACH_APN";
  824. case 128:
  825. return "RIL_REQUEST_SET_DATA_PROFILE";
  826. case 112:
  827. return "RIL_REQUEST_IMS_REGISTRATION_STATE";
  828. case 113:
  829. return "RIL_REQUEST_IMS_SEND_SMS";
  830. case 114:
  831. return "RIL_REQUEST_SIM_TRANSMIT_APDU_BASIC";
  832. case 115:
  833. return "RIL_REQUEST_SIM_OPEN_CHANNEL";
  834. case 116:
  835. return "RIL_REQUEST_SIM_CLOSE_CHANNEL";
  836. case 117:
  837. return "RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL";
  838. case 118:
  839. return "RIL_REQUEST_NV_READ_ITEM";
  840. case 119:
  841. return "RIL_REQUEST_NV_WRITE_ITEM";
  842. case 120:
  843. return "RIL_REQUEST_NV_WRITE_CDMA_PRL";
  844. case 121:
  845. return "RIL_REQUEST_NV_RESET_CONFIG";
  846. case 122:
  847. return "RIL_REQUEST_SET_UICC_SUBSCRIPTION";
  848. case 123:
  849. return "RIL_REQUEST_ALLOW_DATA";
  850. case 124:
  851. return "GET_HARDWARE_CONFIG";
  852. case 125:
  853. return "RIL_REQUEST_SIM_AUTHENTICATION";
  854. case 129:
  855. return "RIL_REQUEST_SHUTDOWN";
  856. case 10001:
  857. return "DIAL_EMERGENCY_CALL";
  858. case 10002:
  859. return "CALL_DEFLECTION";
  860. case 10003:
  861. return "MODIFY_CALL_INITIATE";
  862. case 10004:
  863. return "MODIFY_CALL_CONFIRM";
  864. case 10005:
  865. return "SET_VOICE_DOMAIN_PREF";
  866. case 10006:
  867. return "SAFE_MODE";
  868. case 10007:
  869. return "SET_TRANSMIT_POWER";
  870. case 10008:
  871. return "GET_CELL_BROADCAST_CONFIG";
  872. case 10009:
  873. return "GET_PHONEBOOK_STORAGE_INFO";
  874. case 10010:
  875. return "GET_PHONEBOOK_ENTRY";
  876. case 10011:
  877. return "ACCESS_PHONEBOOK_ENTRY";
  878. case 10012:
  879. return "USIM_PB_CAPA";
  880. case 10013:
  881. return "LOCK_INFO";
  882. case 10014:
  883. return "STK_SIM_INIT_EVENT";
  884. case 10015:
  885. return "SET_PREFERRED_NETWORK_LIST";
  886. case 10016:
  887. return "GET_PREFERRED_NETWORK_LIST";
  888. case 10017:
  889. return "CHANGE_SIM_PERSO";
  890. case 10018:
  891. return "ENTER_SIM_PERSO";
  892. case 10019:
  893. return "SEND_ENCODED_USSD";
  894. case 10020:
  895. return "CDMA_SEND_SMS_EXPECT_MORE";
  896. case 10021:
  897. return "HANGUP_VT";
  898. case 10022:
  899. return "REQUEST_HOLD";
  900. case 10023:
  901. return "SET_SIM_POWER";
  902. case 10024:
  903. return "SET_LTE_BAND_MODE";
  904. case 10025:
  905. return "UICC_GBA_AUTHENTICATE_BOOTSTRAP";
  906. case 10026:
  907. return "UICC_GBA_AUTHENTICATE_NAF";
  908. case 10027:
  909. return "GET_INCOMING_COMMUNICATION_BARRING";
  910. }
  911. return "SET_INCOMING_COMMUNICATION_BARRING";
  912. }
  913.  
  914. private Object responseBootstrap(Parcel paramParcel)
  915. {
  916. Bundle localBundle = new Bundle();
  917. localBundle.putByteArray("res", IccUtils.hexStringToBytes(paramParcel.readString()));
  918. localBundle.putByteArray("auts", IccUtils.hexStringToBytes(paramParcel.readString()));
  919. return localBundle;
  920. }
  921.  
  922. private Object responseCallForward(Parcel paramParcel)
  923. {
  924. int j = paramParcel.readInt();
  925. CallForwardInfo[] arrayOfCallForwardInfo = new CallForwardInfo[j];
  926. int i = 0;
  927. while (i < j)
  928. {
  929. arrayOfCallForwardInfo[i] = new CallForwardInfo();
  930. arrayOfCallForwardInfo[i].status = paramParcel.readInt();
  931. arrayOfCallForwardInfo[i].reason = paramParcel.readInt();
  932. arrayOfCallForwardInfo[i].serviceClass = paramParcel.readInt();
  933. arrayOfCallForwardInfo[i].toa = paramParcel.readInt();
  934. arrayOfCallForwardInfo[i].number = paramParcel.readString();
  935. arrayOfCallForwardInfo[i].timeSeconds = paramParcel.readInt();
  936. i += 1;
  937. }
  938. return arrayOfCallForwardInfo;
  939. }
  940.  
  941. private Object responseCallModify(Parcel paramParcel)
  942. {
  943. CallModify localCallModify = new CallModify();
  944. localCallModify.call_index = paramParcel.readInt();
  945. int i = paramParcel.readInt();
  946. int j = paramParcel.readInt();
  947. paramParcel = paramParcel.readString();
  948. localCallModify.call_details = new CallDetails(i, j, null);
  949. localCallModify.call_details.setExtrasFromCsv(paramParcel);
  950. return localCallModify;
  951. }
  952.  
  953. private Object responseCallRing(Parcel paramParcel)
  954. {
  955. return new char[] { (char)paramParcel.readInt(), (char)paramParcel.readInt(), (char)paramParcel.readInt(), (char)paramParcel.readInt() };
  956. }
  957.  
  958. private Object responseCbSettings(Parcel paramParcel)
  959. {
  960. int j = 0;
  961. CbConfig localCbConfig = new CbConfig();
  962. Rlog.d("RILJ", "responseCbSettings");
  963. int i = paramParcel.readInt();
  964. byte[] arrayOfByte;
  965. if (i == 1)
  966. {
  967. localCbConfig.bCBEnabled = true;
  968. localCbConfig.selectedId = ((char)paramParcel.readInt());
  969. localCbConfig.msgIdMaxCount = ((char)paramParcel.readInt());
  970. localCbConfig.msgIdCount = paramParcel.readInt();
  971. if (localCbConfig.msgIdMaxCount <= 0) {
  972. break label222;
  973. }
  974. arrayOfByte = new byte[localCbConfig.msgIdMaxCount * '\002'];
  975. label84:
  976. if (localCbConfig.msgIdCount > 100) {
  977. Rlog.d("RILJ", "No of CBMID Exceeded ");
  978. }
  979. localCbConfig.msgIDs = new short[localCbConfig.msgIdCount];
  980. paramParcel = paramParcel.readString();
  981. Rlog.d("RILJ", "ENABLED:" + localCbConfig.bCBEnabled + ", selectedId:" + localCbConfig.selectedId + ", msgIdCount:" + localCbConfig.msgIdCount + ", msgIdMaxCount:" + localCbConfig.msgIdMaxCount);
  982. if (paramParcel != null) {
  983. break label231;
  984. }
  985. Rlog.d("RILJ", "MessageIDs String is NULL");
  986. }
  987. for (;;)
  988. {
  989. return localCbConfig;
  990. if (i != 2) {
  991. break;
  992. }
  993. localCbConfig.bCBEnabled = false;
  994. break;
  995. label222:
  996. arrayOfByte = new byte[100];
  997. break label84;
  998. label231:
  999. Rlog.d("RILJ", ", MessageIDs:" + paramParcel);
  1000. paramParcel = IccUtils.hexStringToBytes(paramParcel);
  1001. i = 0;
  1002. while (i < localCbConfig.msgIdCount)
  1003. {
  1004. int k = paramParcel[j];
  1005. int m = paramParcel[(j + 1)];
  1006. localCbConfig.msgIDs[i] = ((short)((k & 0xFF) << 8 | m & 0xFF));
  1007. j += 2;
  1008. i += 1;
  1009. }
  1010. }
  1011. }
  1012.  
  1013. private Object responseCdmaBroadcastConfig(Parcel paramParcel)
  1014. {
  1015. int i = paramParcel.readInt();
  1016. Object localObject;
  1017. if (i == 0)
  1018. {
  1019. paramParcel = new int[94];
  1020. paramParcel[0] = 31;
  1021. i = 1;
  1022. for (;;)
  1023. {
  1024. localObject = paramParcel;
  1025. if (i >= 94) {
  1026. break;
  1027. }
  1028. paramParcel[(i + 0)] = (i / 3);
  1029. paramParcel[(i + 1)] = 1;
  1030. paramParcel[(i + 2)] = 0;
  1031. i += 3;
  1032. }
  1033. }
  1034. int j = i * 3 + 1;
  1035. int[] arrayOfInt = new int[j];
  1036. arrayOfInt[0] = i;
  1037. i = 1;
  1038. for (;;)
  1039. {
  1040. localObject = arrayOfInt;
  1041. if (i >= j) {
  1042. break;
  1043. }
  1044. arrayOfInt[i] = paramParcel.readInt();
  1045. i += 1;
  1046. }
  1047. return localObject;
  1048. }
  1049.  
  1050. private ArrayList<CdmaInformationRecords> responseCdmaInformationRecord(Parcel paramParcel)
  1051. {
  1052. int j = paramParcel.readInt();
  1053. ArrayList localArrayList = new ArrayList(j);
  1054. int i = 0;
  1055. while (i < j)
  1056. {
  1057. localArrayList.add(new CdmaInformationRecords(paramParcel));
  1058. i += 1;
  1059. }
  1060. return localArrayList;
  1061. }
  1062.  
  1063. private Object responseCdmaSms(Parcel paramParcel)
  1064. {
  1065. return SmsMessage.newFromParcel(paramParcel);
  1066. }
  1067.  
  1068. private ArrayList<CellInfo> responseCellInfoList(Parcel paramParcel)
  1069. {
  1070. int j = paramParcel.readInt();
  1071. ArrayList localArrayList = new ArrayList(j);
  1072. int i = 0;
  1073. while (i < j)
  1074. {
  1075. localArrayList.add((CellInfo)CellInfo.CREATOR.createFromParcel(paramParcel));
  1076. i += 1;
  1077. }
  1078. return localArrayList;
  1079. }
  1080.  
  1081. private Object responseCellList(Parcel paramParcel)
  1082. {
  1083. int k = paramParcel.readInt();
  1084. ArrayList localArrayList = new ArrayList();
  1085. String[] arrayOfString = TelephonyManager.getTelephonyProperty("gsm.network.type", android.telephony.SubscriptionManager.getSubId(this.mInstanceId.intValue())[0], "unknown").split(":");
  1086. Rlog.d("RILJ", "mDataType : " + arrayOfString[0]);
  1087. int i;
  1088. if (arrayOfString[0].equals("GPRS")) {
  1089. i = 1;
  1090. }
  1091. while (i != 0)
  1092. {
  1093. int j = 0;
  1094. while (j < k)
  1095. {
  1096. localArrayList.add(new NeighboringCellInfo(paramParcel.readInt(), paramParcel.readString(), i));
  1097. j += 1;
  1098. }
  1099. if (arrayOfString[0].equals("EDGE")) {
  1100. i = 2;
  1101. } else if (arrayOfString[0].equals("UMTS")) {
  1102. i = 3;
  1103. } else if (arrayOfString[0].equals("HSDPA")) {
  1104. i = 8;
  1105. } else if (arrayOfString[0].equals("HSUPA")) {
  1106. i = 9;
  1107. } else if (arrayOfString[0].equals("HSPA")) {
  1108. i = 10;
  1109. } else {
  1110. i = 0;
  1111. }
  1112. }
  1113. return localArrayList;
  1114. }
  1115.  
  1116. private Object responseDataCallList(Parcel paramParcel)
  1117. {
  1118. int j = paramParcel.readInt();
  1119. int k = paramParcel.readInt();
  1120. riljLog("responseDataCallList ver=" + j + " num=" + k);
  1121. ArrayList localArrayList = new ArrayList(k);
  1122. int i = 0;
  1123. while (i < k)
  1124. {
  1125. localArrayList.add(getDataCallResponse(paramParcel, j));
  1126. i += 1;
  1127. }
  1128. return localArrayList;
  1129. }
  1130.  
  1131. private Object responseGetPreferredNetworkType(Parcel paramParcel)
  1132. {
  1133. paramParcel = (int[])responseInts(paramParcel);
  1134. if (paramParcel.length >= 1)
  1135. {
  1136. this.mPreferredNetworkType = paramParcel[0];
  1137. setInitialPhoneType(this.mPreferredNetworkType);
  1138. }
  1139. return paramParcel;
  1140. }
  1141.  
  1142. private Object responseGmsBroadcastConfig(Parcel paramParcel)
  1143. {
  1144. int j = paramParcel.readInt();
  1145. ArrayList localArrayList = new ArrayList(j);
  1146. int i = 0;
  1147. if (i < j)
  1148. {
  1149. int k = paramParcel.readInt();
  1150. int m = paramParcel.readInt();
  1151. int n = paramParcel.readInt();
  1152. int i1 = paramParcel.readInt();
  1153. if (paramParcel.readInt() == 1) {}
  1154. for (boolean bool = true;; bool = false)
  1155. {
  1156. localArrayList.add(new SmsBroadcastConfigInfo(k, m, n, i1, bool));
  1157. i += 1;
  1158. break;
  1159. }
  1160. }
  1161. return localArrayList;
  1162. }
  1163.  
  1164. private Object responseHardwareConfig(Parcel paramParcel)
  1165. {
  1166. int j = paramParcel.readInt();
  1167. ArrayList localArrayList = new ArrayList(j);
  1168. int i = 0;
  1169. if (i < j)
  1170. {
  1171. int k = paramParcel.readInt();
  1172. HardwareConfig localHardwareConfig;
  1173. switch (k)
  1174. {
  1175. default:
  1176. throw new RuntimeException("RIL_REQUEST_GET_HARDWARE_CONFIG invalid hardward type:" + k);
  1177. case 0:
  1178. localHardwareConfig = new HardwareConfig(k);
  1179. localHardwareConfig.assignModem(paramParcel.readString(), paramParcel.readInt(), paramParcel.readInt(), paramParcel.readInt(), paramParcel.readInt(), paramParcel.readInt(), paramParcel.readInt());
  1180. }
  1181. for (;;)
  1182. {
  1183. localArrayList.add(localHardwareConfig);
  1184. i += 1;
  1185. break;
  1186. localHardwareConfig = new HardwareConfig(k);
  1187. localHardwareConfig.assignSim(paramParcel.readString(), paramParcel.readInt(), paramParcel.readString());
  1188. }
  1189. }
  1190. return localArrayList;
  1191. }
  1192.  
  1193. private Object responseICC_IO(Parcel paramParcel)
  1194. {
  1195. int i = paramParcel.readInt();
  1196. int j = paramParcel.readInt();
  1197. paramParcel = paramParcel.readString();
  1198. String str = "< iccIO: 0x" + Integer.toHexString(i) + " 0x" + Integer.toHexString(j) + " ";
  1199. if (!SHIP_BUILD) {
  1200. new StringBuilder().append(str).append(paramParcel).toString();
  1201. }
  1202. return new IccIoResult(i, j, paramParcel);
  1203. }
  1204.  
  1205. private Object responseICC_IOBase64(Parcel paramParcel)
  1206. {
  1207. return new IccIoResult(paramParcel.readInt(), paramParcel.readInt(), Base64.decode(paramParcel.readString(), 0));
  1208. }
  1209.  
  1210. private Object responseIccCardStatus(Parcel paramParcel)
  1211. {
  1212. IccCardStatus localIccCardStatus = new IccCardStatus();
  1213. localIccCardStatus.setCardState(paramParcel.readInt());
  1214. localIccCardStatus.setUniversalPinState(paramParcel.readInt());
  1215. localIccCardStatus.mGsmUmtsSubscriptionAppIndex = paramParcel.readInt();
  1216. localIccCardStatus.mCdmaSubscriptionAppIndex = paramParcel.readInt();
  1217. localIccCardStatus.mImsSubscriptionAppIndex = paramParcel.readInt();
  1218. int j = paramParcel.readInt();
  1219. int i = j;
  1220. if (j > 8) {
  1221. i = 8;
  1222. }
  1223. localIccCardStatus.mApplications = new IccCardApplicationStatus[i];
  1224. j = 0;
  1225. while (j < i)
  1226. {
  1227. IccCardApplicationStatus localIccCardApplicationStatus = new IccCardApplicationStatus();
  1228. localIccCardApplicationStatus.app_type = localIccCardApplicationStatus.AppTypeFromRILInt(paramParcel.readInt());
  1229. localIccCardApplicationStatus.app_state = localIccCardApplicationStatus.AppStateFromRILInt(paramParcel.readInt());
  1230. localIccCardApplicationStatus.perso_substate = localIccCardApplicationStatus.PersoSubstateFromRILInt(paramParcel.readInt());
  1231. localIccCardApplicationStatus.aid = paramParcel.readString();
  1232. localIccCardApplicationStatus.app_label = paramParcel.readString();
  1233. localIccCardApplicationStatus.pin1_replaced = paramParcel.readInt();
  1234. localIccCardApplicationStatus.pin1 = localIccCardApplicationStatus.PinStateFromRILInt(paramParcel.readInt());
  1235. localIccCardApplicationStatus.pin2 = localIccCardApplicationStatus.PinStateFromRILInt(paramParcel.readInt());
  1236. localIccCardApplicationStatus.pin1_num_retries = paramParcel.readInt();
  1237. localIccCardApplicationStatus.puk1_num_retries = paramParcel.readInt();
  1238. localIccCardApplicationStatus.pin2_num_retries = paramParcel.readInt();
  1239. localIccCardApplicationStatus.puk2_num_retries = paramParcel.readInt();
  1240. localIccCardApplicationStatus.perso_unblock_retries = paramParcel.readInt();
  1241. localIccCardStatus.mApplications[j] = localIccCardApplicationStatus;
  1242. j += 1;
  1243. }
  1244. return localIccCardStatus;
  1245. }
  1246.  
  1247. private Object responseInts(Parcel paramParcel)
  1248. {
  1249. int j = paramParcel.readInt();
  1250. int[] arrayOfInt = new int[j];
  1251. int i = 0;
  1252. while (i < j)
  1253. {
  1254. arrayOfInt[i] = paramParcel.readInt();
  1255. i += 1;
  1256. }
  1257. return arrayOfInt;
  1258. }
  1259.  
  1260. private Object responseNaf(Parcel paramParcel)
  1261. {
  1262. return IccUtils.hexStringToBytes(paramParcel.readString());
  1263. }
  1264.  
  1265. private Object responseOperatorInfos(Parcel paramParcel)
  1266. {
  1267. String[] arrayOfString = (String[])responseStrings(paramParcel);
  1268. if ((!CscFeature.getInstance().getEnableStatus("CscFeature_RIL_UseRatInfoDuringPlmnSelection")) && (!CscFeature.getInstance().getEnableStatus("CscFeature_RIL_DisplayRatInfoInManualNetSearchList")))
  1269. {
  1270. if (arrayOfString.length % 6 != 0) {
  1271. throw new RuntimeException("RIL_REQUEST_QUERY_AVAILABLE_NETWORKS: invalid response. Got " + arrayOfString.length + " strings, expected multible of 6");
  1272. }
  1273. }
  1274. else
  1275. {
  1276. if (arrayOfString.length % 6 != 0) {
  1277. throw new RuntimeException("RIL_REQUEST_QUERY_AVAILABLE_NETWORKS: invalid response. Got " + arrayOfString.length + " strings, expected multible of 6");
  1278. }
  1279. localArrayList = new ArrayList(arrayOfString.length / 6);
  1280. i = 0;
  1281. for (;;)
  1282. {
  1283. paramParcel = localArrayList;
  1284. if (i >= arrayOfString.length) {
  1285. break;
  1286. }
  1287. localArrayList.add(new OperatorInfo(arrayOfString[(i + 0)], arrayOfString[(i + 1)], arrayOfString[(i + 2)], arrayOfString[(i + 3)], arrayOfString[(i + 4)], arrayOfString[(i + 5)]));
  1288. Rlog.d("RILJ", "Add OperatorInfo is:" + arrayOfString[(i + 0)] + " " + arrayOfString[(i + 1)] + " " + arrayOfString[(i + 2)] + " " + arrayOfString[(i + 3)] + " " + arrayOfString[(i + 4)] + " " + arrayOfString[(i + 5)] + " ");
  1289. i += 6;
  1290. }
  1291. }
  1292. ArrayList localArrayList = new ArrayList(arrayOfString.length / 6);
  1293. HashSet localHashSet = new HashSet(arrayOfString.length / 6);
  1294. String str1 = TelephonyManager.getTelephonyProperty("gsm.sim.operator.numeric", this.mInstanceId.intValue(), "");
  1295. String str2 = TelephonyManager.getTelephonyProperty("gsm.sim.operator.alpha", this.mInstanceId.intValue(), "");
  1296. String str3 = TelephonyManager.getTelephonyProperty("gsm.operator.isroaming", this.mInstanceId.intValue(), "");
  1297. int i = 0;
  1298. paramParcel = localArrayList;
  1299. if (i < arrayOfString.length)
  1300. {
  1301. if (localHashSet.contains(arrayOfString[(i + 2)])) {}
  1302. for (;;)
  1303. {
  1304. i += 6;
  1305. break;
  1306. localHashSet.add(arrayOfString[(i + 2)]);
  1307. if (("45400".equals(arrayOfString[(i + 2)])) || ("45402".equals(arrayOfString[(i + 2)])) || ("45410".equals(arrayOfString[(i + 2)])) || (("45418".equals(arrayOfString[(i + 2)])) && ("false".equals(str3))))
  1308. {
  1309. Rlog.d("RILJ", "CSL Network, SPN sholud be displayed instead of PLMN : " + str1 + "SPN : " + str2);
  1310. if (("45400".equals(str1)) || ("45402".equals(str1)) || ("45410".equals(str1)) || ("45418".equals(str1)))
  1311. {
  1312. arrayOfString[(i + 0)] = str2;
  1313. arrayOfString[(i + 1)] = arrayOfString[(i + 0)];
  1314. }
  1315. }
  1316. if (("45416".equals(arrayOfString[(i + 2)])) || (("45419".equals(arrayOfString[(i + 2)])) && ("false".equals(str3))))
  1317. {
  1318. Rlog.d("RILJ", "PCCW-HKT Network, SPN sholud be displayed instead of PLMN : " + str1 + "SPN : " + str2);
  1319. if (("45416".equals(str1)) || ("45419".equals(str1)))
  1320. {
  1321. arrayOfString[(i + 0)] = str2;
  1322. arrayOfString[(i + 1)] = arrayOfString[(i + 0)];
  1323. }
  1324. }
  1325. if (("46697".equals(arrayOfString[(i + 2)])) && ("false".equals(str3)))
  1326. {
  1327. Rlog.d("RILJ", "APT Network, SPN sholud be displayed instead of PLMN : " + str1 + "SPN : " + str2);
  1328. if ("46605".equals(str1))
  1329. {
  1330. arrayOfString[(i + 0)] = str2;
  1331. arrayOfString[(i + 1)] = arrayOfString[(i + 0)];
  1332. }
  1333. }
  1334. localArrayList.add(new OperatorInfo(arrayOfString[(i + 0)], arrayOfString[(i + 1)], arrayOfString[(i + 2)], arrayOfString[(i + 3)], arrayOfString[(i + 4)], arrayOfString[(i + 5)]));
  1335. Rlog.d("RILJ", "Add OperatorInfo is:" + arrayOfString[(i + 0)] + " " + arrayOfString[(i + 1)] + " " + arrayOfString[(i + 2)] + " " + arrayOfString[(i + 3)] + " " + arrayOfString[(i + 4)] + " " + arrayOfString[(i + 5)] + " ");
  1336. }
  1337. }
  1338. return paramParcel;
  1339. }
  1340.  
  1341. private Object responsePreferredNetworkList(Parcel paramParcel)
  1342. {
  1343. int j = paramParcel.readInt();
  1344. Rlog.d("RILJ", "number of network list = " + j);
  1345. ArrayList localArrayList = new ArrayList(j);
  1346. int i = 0;
  1347. while (i < j)
  1348. {
  1349. PreferredNetworkListInfo localPreferredNetworkListInfo = new PreferredNetworkListInfo();
  1350. localPreferredNetworkListInfo.mIndex = paramParcel.readInt();
  1351. localPreferredNetworkListInfo.mOperator = paramParcel.readString();
  1352. localPreferredNetworkListInfo.mPlmn = paramParcel.readString();
  1353. localPreferredNetworkListInfo.mGsmAct = paramParcel.readInt();
  1354. localPreferredNetworkListInfo.mGsmCompactAct = paramParcel.readInt();
  1355. localPreferredNetworkListInfo.mUtranAct = paramParcel.readInt();
  1356. localPreferredNetworkListInfo.mMode = paramParcel.readInt();
  1357. localArrayList.add(localPreferredNetworkListInfo);
  1358. i += 1;
  1359. }
  1360. return localArrayList;
  1361. }
  1362.  
  1363. private Object responseRaw(Parcel paramParcel)
  1364. {
  1365. return paramParcel.createByteArray();
  1366. }
  1367.  
  1368. private Object responseSIM_LockInfo(Parcel paramParcel)
  1369. {
  1370. int i = paramParcel.readInt();
  1371. int j = paramParcel.readInt();
  1372. int k = paramParcel.readInt();
  1373. int m = paramParcel.readInt();
  1374. Rlog.i("RILJ", "num:" + i + " lock_type:" + j + " lock_key:" + k + " num_of_retry:" + m);
  1375. return new SimLockInfoResult(i, j, k, m);
  1376. }
  1377.  
  1378. private Object responseSIM_PB(Parcel paramParcel)
  1379. {
  1380. int[] arrayOfInt1 = new int[3];
  1381. int[] arrayOfInt2 = new int[3];
  1382. String[] arrayOfString1 = new String[3];
  1383. int[] arrayOfInt3 = new int[5];
  1384. int[] arrayOfInt4 = new int[5];
  1385. String[] arrayOfString2 = new String[5];
  1386. paramParcel.readIntArray(arrayOfInt1);
  1387. paramParcel.readIntArray(arrayOfInt2);
  1388. paramParcel.readStringArray(arrayOfString1);
  1389. if (!SHIP_BUILD) {
  1390. Rlog.i("RILJ", "alphaTag is " + arrayOfString1[0]);
  1391. }
  1392. if (!SHIP_BUILD) {
  1393. Rlog.i("RILJ", "SNE is " + arrayOfString1[1]);
  1394. }
  1395. if (!SHIP_BUILD) {
  1396. Rlog.i("RILJ", "email is " + arrayOfString1[2]);
  1397. }
  1398. paramParcel.readIntArray(arrayOfInt3);
  1399. Rlog.i("RILJ", "lengthNumber is " + arrayOfInt3[0]);
  1400. paramParcel.readIntArray(arrayOfInt4);
  1401. paramParcel.readStringArray(arrayOfString2);
  1402. if (!SHIP_BUILD) {
  1403. Rlog.i("RILJ", "number is " + arrayOfString2[0]);
  1404. }
  1405. if (!SHIP_BUILD) {
  1406. Rlog.i("RILJ", "ANR is " + arrayOfString2[1]);
  1407. }
  1408. return new SimPBEntryResult(arrayOfInt1, arrayOfInt2, arrayOfString1, arrayOfInt3, arrayOfInt4, arrayOfString2, paramParcel.readInt(), paramParcel.readInt());
  1409. }
  1410.  
  1411. private Object responseSMS(Parcel paramParcel)
  1412. {
  1413. return new SmsResponse(paramParcel.readInt(), paramParcel.readString(), paramParcel.readInt());
  1414. }
  1415.  
  1416. private Object responseSSData(Parcel paramParcel)
  1417. {
  1418. SsData localSsData = new SsData();
  1419. localSsData.mServiceType = localSsData.ServiceTypeFromRILInt(paramParcel.readInt());
  1420. localSsData.mRequestType = localSsData.RequestTypeFromRILInt(paramParcel.readInt());
  1421. localSsData.mTeleserviceType = localSsData.TeleserviceTypeFromRILInt(paramParcel.readInt());
  1422. localSsData.mServiceClass = paramParcel.readInt();
  1423. localSsData.mResult = paramParcel.readInt();
  1424. int j = paramParcel.readInt();
  1425. int i;
  1426. if ((localSsData.mServiceType.isTypeCF()) && (localSsData.mRequestType.isTypeInterrogation()))
  1427. {
  1428. localSsData.mCfInfo = new CallForwardInfo[j];
  1429. i = 0;
  1430. }
  1431. while (i < j)
  1432. {
  1433. localSsData.mCfInfo[i] = new CallForwardInfo();
  1434. localSsData.mCfInfo[i].status = paramParcel.readInt();
  1435. localSsData.mCfInfo[i].reason = paramParcel.readInt();
  1436. localSsData.mCfInfo[i].serviceClass = paramParcel.readInt();
  1437. localSsData.mCfInfo[i].toa = paramParcel.readInt();
  1438. localSsData.mCfInfo[i].number = paramParcel.readString();
  1439. localSsData.mCfInfo[i].timeSeconds = paramParcel.readInt();
  1440. riljLogv("[SS Data] CF Info " + i + " : " + localSsData.mCfInfo[i]);
  1441. i += 1;
  1442. continue;
  1443. localSsData.mSsInfo = new int[j];
  1444. i = 0;
  1445. while (i < j)
  1446. {
  1447. localSsData.mSsInfo[i] = paramParcel.readInt();
  1448. riljLogv("[SS Data] SS Info " + i + " : " + localSsData.mSsInfo[i]);
  1449. i += 1;
  1450. }
  1451. }
  1452. return localSsData;
  1453. }
  1454.  
  1455. private Object responseSSReleaseCompleteNotification(Parcel paramParcel)
  1456. {
  1457. SSReleaseCompleteNotification localSSReleaseCompleteNotification = new SSReleaseCompleteNotification();
  1458. Rlog.i("RILJ", "responseSSReleaseCompleteNotification()");
  1459. localSSReleaseCompleteNotification.size = paramParcel.readInt();
  1460. localSSReleaseCompleteNotification.dataLen = paramParcel.readInt();
  1461. localSSReleaseCompleteNotification.params = paramParcel.readInt();
  1462. localSSReleaseCompleteNotification.status = paramParcel.readInt();
  1463. localSSReleaseCompleteNotification.data = paramParcel.readString();
  1464. Rlog.i("RILJ", "notification.data = " + localSSReleaseCompleteNotification.data);
  1465. return localSSReleaseCompleteNotification;
  1466. }
  1467.  
  1468. private Object responseSignalStrength(Parcel paramParcel)
  1469. {
  1470. return SignalStrength.makeSignalStrengthFromRilParcel(paramParcel);
  1471. }
  1472.  
  1473. private Object responseSimPowerDone(Parcel paramParcel)
  1474. {
  1475. Rlog.d("RILJ", "ResponseSimPowerDone");
  1476. int j = paramParcel.readInt();
  1477. int[] arrayOfInt = new int[j];
  1478. int i = 0;
  1479. while (i < j)
  1480. {
  1481. arrayOfInt[i] = paramParcel.readInt();
  1482. i += 1;
  1483. }
  1484. Rlog.d("RILJ", "ResponseSimPowerDone : " + arrayOfInt[0]);
  1485. return Integer.valueOf(arrayOfInt[0]);
  1486. }
  1487.  
  1488. private Object responseSimRefresh(Parcel paramParcel)
  1489. {
  1490. IccRefreshResponse localIccRefreshResponse = new IccRefreshResponse();
  1491. localIccRefreshResponse.refreshResult = paramParcel.readInt();
  1492. localIccRefreshResponse.efId = paramParcel.readInt();
  1493. return localIccRefreshResponse;
  1494. }
  1495.  
  1496. private Object responseString(Parcel paramParcel)
  1497. {
  1498. return paramParcel.readString();
  1499. }
  1500.  
  1501. private Object responseStrings(Parcel paramParcel)
  1502. {
  1503. return paramParcel.readStringArray();
  1504. }
  1505.  
  1506. private Object responseSuppServiceNotification(Parcel paramParcel)
  1507. {
  1508. SuppServiceNotification localSuppServiceNotification = new SuppServiceNotification();
  1509. localSuppServiceNotification.notificationType = paramParcel.readInt();
  1510. localSuppServiceNotification.code = paramParcel.readInt();
  1511. localSuppServiceNotification.index = paramParcel.readInt();
  1512. localSuppServiceNotification.type = paramParcel.readInt();
  1513. localSuppServiceNotification.mtConference = 0;
  1514. if ((CscFeature.getInstance().getEnableStatus("CscFeature_RIL_SupportVolte")) && ("VZW-CDMA".equals("")) && (localSuppServiceNotification.code == 3)) {
  1515. localSuppServiceNotification.mtConference = paramParcel.readInt();
  1516. }
  1517. localSuppServiceNotification.number = paramParcel.readString();
  1518. return localSuppServiceNotification;
  1519. }
  1520.  
  1521. static String responseToString(int paramInt)
  1522. {
  1523. switch (paramInt)
  1524. {
  1525. default:
  1526. return "<unknown response>";
  1527. case 1000:
  1528. return "UNSOL_RESPONSE_RADIO_STATE_CHANGED";
  1529. case 1001:
  1530. return "UNSOL_RESPONSE_CALL_STATE_CHANGED";
  1531. case 1002:
  1532. return "UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED";
  1533. case 1003:
  1534. return "UNSOL_RESPONSE_NEW_SMS";
  1535. case 1004:
  1536. return "UNSOL_RESPONSE_NEW_SMS_STATUS_REPORT";
  1537. case 1005:
  1538. return "UNSOL_RESPONSE_NEW_SMS_ON_SIM";
  1539. case 1006:
  1540. return "UNSOL_ON_USSD";
  1541. case 1007:
  1542. return "UNSOL_ON_USSD_REQUEST";
  1543. case 1008:
  1544. return "UNSOL_NITZ_TIME_RECEIVED";
  1545. case 1009:
  1546. return "UNSOL_SIGNAL_STRENGTH";
  1547. case 1010:
  1548. return "UNSOL_DATA_CALL_LIST_CHANGED";
  1549. case 1011:
  1550. return "UNSOL_SUPP_SVC_NOTIFICATION";
  1551. case 1012:
  1552. return "UNSOL_STK_SESSION_END";
  1553. case 1013:
  1554. return "UNSOL_STK_PROACTIVE_COMMAND";
  1555. case 1014:
  1556. return "UNSOL_STK_EVENT_NOTIFY";
  1557. case 1015:
  1558. return "UNSOL_STK_CALL_SETUP";
  1559. case 1016:
  1560. return "UNSOL_SIM_SMS_STORAGE_FULL";
  1561. case 1017:
  1562. return "UNSOL_SIM_REFRESH";
  1563. case 1018:
  1564. return "UNSOL_CALL_RING";
  1565. case 1019:
  1566. return "UNSOL_RESPONSE_SIM_STATUS_CHANGED";
  1567. case 1020:
  1568. return "UNSOL_RESPONSE_CDMA_NEW_SMS";
  1569. case 1021:
  1570. return "UNSOL_RESPONSE_NEW_BROADCAST_SMS";
  1571. case 1022:
  1572. return "UNSOL_CDMA_RUIM_SMS_STORAGE_FULL";
  1573. case 1023:
  1574. return "UNSOL_RESTRICTED_STATE_CHANGED";
  1575. case 1024:
  1576. return "UNSOL_ENTER_EMERGENCY_CALLBACK_MODE";
  1577. case 1025:
  1578. return "UNSOL_CDMA_CALL_WAITING";
  1579. case 1026:
  1580. return "UNSOL_CDMA_OTA_PROVISION_STATUS";
  1581. case 1027:
  1582. return "UNSOL_CDMA_INFO_REC";
  1583. case 1028:
  1584. return "UNSOL_OEM_HOOK_RAW";
  1585. case 1029:
  1586. return "UNSOL_RINGBACK_TONE";
  1587. case 1030:
  1588. return "UNSOL_RESEND_INCALL_MUTE";
  1589. case 1031:
  1590. return "CDMA_SUBSCRIPTION_SOURCE_CHANGED";
  1591. case 1032:
  1592. return "UNSOL_CDMA_PRL_CHANGED";
  1593. case 1033:
  1594. return "UNSOL_EXIT_EMERGENCY_CALLBACK_MODE";
  1595. case 1034:
  1596. return "UNSOL_RIL_CONNECTED";
  1597. case 1035:
  1598. return "UNSOL_VOICE_RADIO_TECH_CHANGED";
  1599. case 1036:
  1600. return "UNSOL_CELL_INFO_LIST";
  1601. case 1037:
  1602. return "UNSOL_RESPONSE_IMS_NETWORK_STATE_CHANGED";
  1603. case 1038:
  1604. return "RIL_UNSOL_UICC_SUBSCRIPTION_STATUS_CHANGED";
  1605. case 1039:
  1606. return "UNSOL_SRVCC_STATE_NOTIFY";
  1607. case 1040:
  1608. return "RIL_UNSOL_HARDWARE_CONFIG_CHANGED";
  1609. case 11000:
  1610. return "UNSOL_RESPONSE_NEW_CB_MSG";
  1611. case 11001:
  1612. return "UNSOL_RELEASE_COMPLETE_MESSAGE";
  1613. case 11002:
  1614. return "UNSOL_STK_SEND_SMS_RESULT";
  1615. case 11003:
  1616. return "UNSOL_STK_CALL_CONTROL_RESULT";
  1617. case 11008:
  1618. return "UNSOL_DEVICE_READY_NOTI";
  1619. case 11009:
  1620. return "UNSOL_GPS_NOTI";
  1621. case 11010:
  1622. return "UNSOL_AM";
  1623. case 11013:
  1624. return "UNSOL_SAP";
  1625. case 11020:
  1626. return "UNSOL_UART";
  1627. case 11021:
  1628. return "UNSOL_SIM_PB_READY";
  1629. case 11024:
  1630. return "UNSOL_VE";
  1631. case 11026:
  1632. return "UNSOL_FACTORY_AM";
  1633. case 11027:
  1634. return "UNSOL_IMS_REGISTRATION_STATE_CHANGED";
  1635. case 11028:
  1636. return "UNSOL_MODIFY_CALL";
  1637. case 11030:
  1638. return "UNSOL_CS_FALLBACK";
  1639. case 11032:
  1640. return "UNSOL_VOICE_SYSTEM_ID";
  1641. case 11034:
  1642. return "UNSOL_IMS_RETRYOVER";
  1643. case 11035:
  1644. return "UNSOL_PB_INIT_COMPLETE";
  1645. case 11037:
  1646. return "UNSOL_HYSTERESIS_DCN";
  1647. case 11038:
  1648. return "UNSOL_CP_POSITION";
  1649. case 11043:
  1650. return "UNSOL_HOME_NETWORK_NOTI";
  1651. case 11054:
  1652. return "UNSOL_STK_CALL_STATUS";
  1653. case 11055:
  1654. return "UNSOL_ON_SS";
  1655. case 11056:
  1656. return "UNSOL_MODEM_CAP";
  1657. case 11060:
  1658. return "UNSOL_DUN";
  1659. case 11061:
  1660. return "UNSOL_IMS_PREFERENCE_CHANGED";
  1661. case 11062:
  1662. return "UNSOL_SIM_APPLICATION_REFRESH";
  1663. }
  1664. return "UNSOL_UICC_APPLICATION_STATUS";
  1665. }
  1666.  
  1667. private Object responseUSSD(Parcel paramParcel)
  1668. {
  1669. int j = paramParcel.readInt();
  1670. int k = paramParcel.readInt();
  1671. Rlog.d("RILJ", "responseUSSD - num " + j);
  1672. String[] arrayOfString = new String[j];
  1673. int i = 0;
  1674. if (i < j)
  1675. {
  1676. byte[] arrayOfByte;
  1677. if ((k == 148) && (i > 0)) {
  1678. arrayOfByte = IccUtils.hexStringToBytes(paramParcel.readString());
  1679. }
  1680. for (;;)
  1681. {
  1682. try
  1683. {
  1684. arrayOfString[i] = new String(arrayOfByte, "EUC_KR");
  1685. Rlog.d("RILJ", "responseUSSD :: USSD_DCS_KS5601, response" + arrayOfString[i]);
  1686. i += 1;
  1687. }
  1688. catch (UnsupportedEncodingException localUnsupportedEncodingException)
  1689. {
  1690. arrayOfString[i] = "";
  1691. continue;
  1692. }
  1693. arrayOfString[i] = paramParcel.readString();
  1694. }
  1695. }
  1696. return arrayOfString;
  1697. }
  1698.  
  1699. private Object responseVoid(Parcel paramParcel)
  1700. {
  1701. return null;
  1702. }
  1703.  
  1704. static String retToString(int paramInt, Object paramObject)
  1705. {
  1706. if (paramObject == null) {
  1707. paramObject = "";
  1708. }
  1709. Object localObject1;
  1710. do
  1711. {
  1712. do
  1713. {
  1714. return (String)paramObject;
  1715. switch (paramInt)
  1716. {
  1717. }
  1718. int i;
  1719. while ((paramObject instanceof int[]))
  1720. {
  1721. paramObject = (int[])paramObject;
  1722. i = paramObject.length;
  1723. localObject1 = new StringBuilder("{");
  1724. if (i > 0)
  1725. {
  1726. paramInt = 0 + 1;
  1727. ((StringBuilder)localObject1).append(paramObject[0]);
  1728. for (;;)
  1729. {
  1730. if (paramInt < i)
  1731. {
  1732. ((StringBuilder)localObject1).append(", ").append(paramObject[paramInt]);
  1733. paramInt += 1;
  1734. continue;
  1735. if (!SHIP_BUILD) {
  1736. break;
  1737. }
  1738. return "";
  1739. return "";
  1740. if (!SHIP_BUILD) {
  1741. break;
  1742. }
  1743. return "{xx,xx,xx,xx,xx}";
  1744. if (SHIP_BUILD) {
  1745. return "{xx,xx,xx,xx}";
  1746. }
  1747. if (!SHIP_BUILD) {
  1748. break;
  1749. }
  1750. return "{xx,xx,xx,xx,xx}";
  1751. }
  1752. }
  1753. }
  1754. ((StringBuilder)localObject1).append("}");
  1755. return ((StringBuilder)localObject1).toString();
  1756. }
  1757. if ((paramObject instanceof String[]))
  1758. {
  1759. paramObject = (String[])paramObject;
  1760. i = paramObject.length;
  1761. localObject1 = new StringBuilder("{");
  1762. if (i > 0)
  1763. {
  1764. paramInt = 0 + 1;
  1765. ((StringBuilder)localObject1).append(paramObject[0]);
  1766. while (paramInt < i)
  1767. {
  1768. ((StringBuilder)localObject1).append(", ").append(paramObject[paramInt]);
  1769. paramInt += 1;
  1770. }
  1771. }
  1772. ((StringBuilder)localObject1).append("}");
  1773. return ((StringBuilder)localObject1).toString();
  1774. }
  1775. Object localObject2;
  1776. if (paramInt == 9)
  1777. {
  1778. localObject1 = (ArrayList)paramObject;
  1779. paramObject = new StringBuilder(" ");
  1780. localObject1 = ((ArrayList)localObject1).iterator();
  1781. while (((Iterator)localObject1).hasNext())
  1782. {
  1783. localObject2 = (DriverCall)((Iterator)localObject1).next();
  1784. ((StringBuilder)paramObject).append("[").append(localObject2).append("] ");
  1785. }
  1786. return ((StringBuilder)paramObject).toString();
  1787. }
  1788. if (paramInt == 75)
  1789. {
  1790. localObject1 = (ArrayList)paramObject;
  1791. paramObject = new StringBuilder(" ");
  1792. localObject1 = ((ArrayList)localObject1).iterator();
  1793. while (((Iterator)localObject1).hasNext()) {
  1794. ((StringBuilder)paramObject).append((NeighboringCellInfo)((Iterator)localObject1).next()).append(" ");
  1795. }
  1796. return ((StringBuilder)paramObject).toString();
  1797. }
  1798. if (paramInt == 124)
  1799. {
  1800. localObject1 = (ArrayList)paramObject;
  1801. paramObject = new StringBuilder(" ");
  1802. localObject1 = ((ArrayList)localObject1).iterator();
  1803. while (((Iterator)localObject1).hasNext())
  1804. {
  1805. localObject2 = (HardwareConfig)((Iterator)localObject1).next();
  1806. ((StringBuilder)paramObject).append("[").append(localObject2).append("] ");
  1807. }
  1808. return ((StringBuilder)paramObject).toString();
  1809. }
  1810. if (paramInt != 59) {
  1811. break;
  1812. }
  1813. localObject1 = paramObject.toString();
  1814. paramObject = localObject1;
  1815. } while (!SHIP_BUILD);
  1816. paramObject = localObject1;
  1817. } while (((String)localObject1).length() <= 5);
  1818. return ((String)localObject1).substring(0, 5) + "...";
  1819. return paramObject.toString();
  1820. }
  1821.  
  1822. private void riljLog(String paramString)
  1823. {
  1824. StringBuilder localStringBuilder = new StringBuilder().append(paramString);
  1825. if (this.mInstanceId != null) {}
  1826. for (paramString = " [SUB" + this.mInstanceId + "]";; paramString = "")
  1827. {
  1828. Rlog.d("RILJ", paramString);
  1829. return;
  1830. }
  1831. }
  1832.  
  1833. private void riljLogv(String paramString)
  1834. {
  1835. StringBuilder localStringBuilder = new StringBuilder().append(paramString);
  1836. if (this.mInstanceId != null) {}
  1837. for (paramString = " [SUB" + this.mInstanceId + "]";; paramString = "")
  1838. {
  1839. Rlog.v("RILJ", paramString);
  1840. return;
  1841. }
  1842. }
  1843.  
  1844. private void sendSafemode(boolean paramBoolean)
  1845. {
  1846. int i = 1;
  1847. RILRequest localRILRequest = RILRequest.obtain(10006, null);
  1848. localRILRequest.mParcel.writeInt(1);
  1849. Parcel localParcel = localRILRequest.mParcel;
  1850. if (paramBoolean) {}
  1851. for (;;)
  1852. {
  1853. localParcel.writeInt(i);
  1854. localRILRequest.mParcel.writeInt(0);
  1855. riljLog(localRILRequest.serialString() + "> " + requestToString(localRILRequest.mRequest) + " " + paramBoolean);
  1856. send(localRILRequest);
  1857. return;
  1858. i = 0;
  1859. }
  1860. }
  1861.  
  1862. private void sendScreenState(boolean paramBoolean)
  1863. {
  1864. int i = 1;
  1865. RILRequest localRILRequest = RILRequest.obtain(61, null);
  1866. localRILRequest.mParcel.writeInt(1);
  1867. Parcel localParcel = localRILRequest.mParcel;
  1868. if (paramBoolean) {}
  1869. for (;;)
  1870. {
  1871. localParcel.writeInt(i);
  1872. riljLog(localRILRequest.serialString() + "> " + requestToString(localRILRequest.mRequest) + ": " + paramBoolean);
  1873. send(localRILRequest);
  1874. return;
  1875. i = 0;
  1876. }
  1877. }
  1878.  
  1879. private void setInitialPhoneType(int paramInt)
  1880. {
  1881. paramInt = TelephonyManager.getPhoneType(paramInt);
  1882. if (paramInt != this.initPhoneType)
  1883. {
  1884. SystemProperties.set("persist.radio.initphone-type", String.valueOf(paramInt));
  1885. Rlog.d("RILJ", "Initial PhoneType is changed: " + this.initPhoneType + " -> " + paramInt);
  1886. this.initPhoneType = paramInt;
  1887. }
  1888. }
  1889.  
  1890. private void setPreferredData() {}
  1891.  
  1892. private void switchToRadioState(CommandsInterface.RadioState paramRadioState)
  1893. {
  1894. getRadioState();
  1895. setRadioState(paramRadioState);
  1896. paramRadioState = SystemProperties.get("ro.csc.sales_code");
  1897. String str = SystemProperties.get("persist.sys.bpmsetting.default", "FirstTime");
  1898. if ((paramRadioState != null) && ("COL".equals(paramRadioState)) && (str != null) && ("FirstTime".equals(str)))
  1899. {
  1900. SystemProperties.set("persist.sys.bpmsetting.enable", "1");
  1901. SystemProperties.set("persist.sys.bpmsetting.default", "1");
  1902. }
  1903. }
  1904.  
  1905. private int translateStatus(int paramInt)
  1906. {
  1907. switch (paramInt & 0x7)
  1908. {
  1909. case 1:
  1910. case 2:
  1911. case 4:
  1912. case 6:
  1913. default:
  1914. return 1;
  1915. case 3:
  1916. return 0;
  1917. case 5:
  1918. return 3;
  1919. }
  1920. return 2;
  1921. }
  1922.  
  1923. private void unsljLog(int paramInt)
  1924. {
  1925. riljLog("[UNSL]< " + responseToString(paramInt));
  1926. }
  1927.  
  1928. private void unsljLogMore(int paramInt, String paramString)
  1929. {
  1930. riljLog("[UNSL]< " + responseToString(paramInt) + " " + paramString);
  1931. }
  1932.  
  1933. private void unsljLogRet(int paramInt, Object paramObject)
  1934. {
  1935. riljLog("[UNSL]< " + responseToString(paramInt) + " " + retToString(paramInt, paramObject));
  1936. }
  1937.  
  1938. private void unsljLogvRet(int paramInt, Object paramObject)
  1939. {
  1940. riljLogv("[UNSL]< " + responseToString(paramInt) + " " + retToString(paramInt, paramObject));
  1941. }
  1942.  
  1943. private void updateScreenState()
  1944. {
  1945. int i = this.mDefaultDisplayState;
  1946. if (this.mDefaultDisplay == null)
  1947. {
  1948. this.mDefaultDisplay = ((DisplayManager)this.mContext.getSystemService("display")).getDisplay(0);
  1949. if (this.mDefaultDisplay == null) {
  1950. riljLog("updateScreenState, mDefaultDisplay is null");
  1951. }
  1952. }
  1953. do
  1954. {
  1955. do
  1956. {
  1957. return;
  1958. this.mDefaultDisplayState = this.mDefaultDisplay.getState();
  1959. } while (this.mDefaultDisplayState == i);
  1960. if ((i != 2) && (this.mDefaultDisplayState == 2))
  1961. {
  1962. sendScreenState(true);
  1963. return;
  1964. }
  1965. } while (((i != 2) && (i != 0)) || (this.mDefaultDisplayState == 2));
  1966. sendScreenState(false);
  1967. }
  1968.  
  1969. public void acceptCall(int paramInt, Message paramMessage)
  1970. {
  1971. paramMessage = RILRequest.obtain(40, paramMessage);
  1972. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt);
  1973. paramMessage.mParcel.writeInt(1);
  1974. paramMessage.mParcel.writeInt(paramInt);
  1975. send(paramMessage);
  1976. }
  1977.  
  1978. public void acceptCall(Message paramMessage)
  1979. {
  1980. acceptCall(0, paramMessage);
  1981. }
  1982.  
  1983. public void accessPhoneBookEntry(int paramInt1, int paramInt2, int paramInt3, AdnRecord paramAdnRecord, String paramString, Message paramMessage)
  1984. {
  1985. RILRequest localRILRequest = RILRequest.obtain(10011, paramMessage);
  1986. riljLog(localRILRequest.serialString() + "> " + requestToString(localRILRequest.mRequest));
  1987. Object localObject5 = paramAdnRecord.mAlphaTag;
  1988. Object localObject6 = paramAdnRecord.mNumber;
  1989. String str2 = paramAdnRecord.mEmails[0];
  1990. Object localObject1 = paramAdnRecord.mAnr;
  1991. Object localObject2 = paramAdnRecord.mAnrA;
  1992. Object localObject3 = paramAdnRecord.mAnrB;
  1993. Object localObject4 = paramAdnRecord.mAnrC;
  1994. String str1 = paramAdnRecord.mSne;
  1995. paramMessage = (Message)localObject1;
  1996. if (((String)localObject1).length() == 0) {
  1997. paramMessage = null;
  1998. }
  1999. localObject1 = localObject2;
  2000. if (((String)localObject2).length() == 0) {
  2001. localObject1 = null;
  2002. }
  2003. localObject2 = localObject3;
  2004. if (((String)localObject3).length() == 0) {
  2005. localObject2 = null;
  2006. }
  2007. localObject3 = localObject4;
  2008. if (((String)localObject4).length() == 0) {
  2009. localObject3 = null;
  2010. }
  2011. localObject4 = new byte[0];
  2012. byte[] arrayOfByte2 = new byte[0];
  2013. byte[] arrayOfByte3 = new byte[0];
  2014. localRILRequest.mParcel.writeInt(paramInt1);
  2015. localRILRequest.mParcel.writeInt(paramInt2);
  2016. localRILRequest.mParcel.writeInt(paramInt3);
  2017. try
  2018. {
  2019. GsmAlphabet.countGsmSeptets((CharSequence)localObject5, true);
  2020. paramInt1 = 1;
  2021. }
  2022. catch (Exception paramAdnRecord)
  2023. {
  2024. try
  2025. {
  2026. byte[] arrayOfByte4 = ((String)localObject5).getBytes("ISO-10646-UCS-2");
  2027. paramAdnRecord = (AdnRecord)localObject4;
  2028. localObject4 = new byte[arrayOfByte4.length - 2];
  2029. paramInt1 = 0;
  2030. for (;;)
  2031. {
  2032. paramAdnRecord = (AdnRecord)localObject4;
  2033. localObject5 = localObject4;
  2034. if (paramInt1 >= arrayOfByte4.length - 2) {
  2035. break;
  2036. }
  2037. localObject4[paramInt1] = arrayOfByte4[(paramInt1 + 2)];
  2038. paramInt1 += 1;
  2039. }
  2040. paramAdnRecord = paramAdnRecord;
  2041. paramInt1 = 0;
  2042. }
  2043. catch (Exception localException1)
  2044. {
  2045. localObject5 = paramAdnRecord;
  2046. paramInt1 = 0;
  2047. while (paramInt1 < localObject5.length)
  2048. {
  2049. riljLog("name[" + paramInt1 + " ] = " + localObject5[paramInt1]);
  2050. paramInt1 += 1;
  2051. }
  2052. localRILRequest.mParcel.writeByteArray((byte[])localObject5);
  2053. localRILRequest.mParcel.writeInt(localObject5.length);
  2054. localRILRequest.mParcel.writeInt(3);
  2055. localRILRequest.mParcel.writeString((String)localObject6);
  2056. if (0 == 0) {
  2057. break label645;
  2058. }
  2059. paramAdnRecord = arrayOfByte3;
  2060. try
  2061. {
  2062. localObject6 = str2.getBytes("ISO-10646-UCS-2");
  2063. paramAdnRecord = arrayOfByte3;
  2064. byte[] arrayOfByte1 = new byte[localObject6.length - 2];
  2065. paramInt1 = 0;
  2066. for (;;)
  2067. {
  2068. paramAdnRecord = arrayOfByte1;
  2069. localObject5 = arrayOfByte1;
  2070. if (paramInt1 >= localObject6.length - 2) {
  2071. break;
  2072. }
  2073. arrayOfByte1[paramInt1] = localObject6[(paramInt1 + 2)];
  2074. paramInt1 += 1;
  2075. }
  2076. riljLog("anr = " + paramMessage);
  2077. }
  2078. catch (Exception localException2)
  2079. {
  2080. localObject5 = paramAdnRecord;
  2081. riljLog("email = " + str2);
  2082. localRILRequest.mParcel.writeByteArray((byte[])localObject5);
  2083. localRILRequest.mParcel.writeInt(localObject5.length);
  2084. }
  2085. for (;;)
  2086. {
  2087. localRILRequest.mParcel.writeString(paramMessage);
  2088. localRILRequest.mParcel.writeString((String)localObject1);
  2089. localRILRequest.mParcel.writeString((String)localObject2);
  2090. localRILRequest.mParcel.writeString((String)localObject3);
  2091. try
  2092. {
  2093. GsmAlphabet.countGsmSeptets(str1, true);
  2094. paramAdnRecord = arrayOfByte2;
  2095. }
  2096. catch (Exception paramAdnRecord)
  2097. {
  2098. for (;;)
  2099. {
  2100. try
  2101. {
  2102. localObject2 = str1.getBytes("ISO-10646-UCS-2");
  2103. paramAdnRecord = arrayOfByte2;
  2104. paramMessage = new byte[localObject2.length - 2];
  2105. paramInt1 = 0;
  2106. paramAdnRecord = paramMessage;
  2107. localObject1 = paramMessage;
  2108. if (paramInt1 >= localObject2.length - 2) {
  2109. continue;
  2110. }
  2111. paramMessage[paramInt1] = localObject2[(paramInt1 + 2)];
  2112. paramInt1 += 1;
  2113. continue;
  2114. label645:
  2115. paramAdnRecord = GsmAlphabet.stringToGsm8BitPacked(str2);
  2116. localRILRequest.mParcel.writeByteArray(paramAdnRecord);
  2117. localRILRequest.mParcel.writeInt(paramAdnRecord.length);
  2118. }
  2119. catch (Exception paramMessage)
  2120. {
  2121. localObject1 = paramAdnRecord;
  2122. riljLog("sne = " + str1);
  2123. paramInt1 = 0;
  2124. if (paramInt1 >= localObject1.length) {
  2125. continue;
  2126. }
  2127. riljLog("sne[" + paramInt1 + " ] = " + localObject1[paramInt1]);
  2128. paramInt1 += 1;
  2129. continue;
  2130. localRILRequest.mParcel.writeByteArray((byte[])localObject1);
  2131. localRILRequest.mParcel.writeInt(localObject1.length);
  2132. localRILRequest.mParcel.writeInt(3);
  2133. localRILRequest.mParcel.writeString(paramString);
  2134. send(localRILRequest);
  2135. }
  2136. paramAdnRecord = paramAdnRecord;
  2137. }
  2138. }
  2139. }
  2140. }
  2141. }
  2142. if (paramInt1 != 0) {}
  2143. paramAdnRecord = (AdnRecord)localObject4;
  2144. }
  2145.  
  2146. public void acknowledgeIncomingGsmSmsWithPdu(boolean paramBoolean, String paramString, Message paramMessage)
  2147. {
  2148. RILRequest localRILRequest = RILRequest.obtain(106, paramMessage);
  2149. localRILRequest.mParcel.writeInt(2);
  2150. Parcel localParcel = localRILRequest.mParcel;
  2151. if (paramBoolean) {}
  2152. for (paramMessage = "1";; paramMessage = "0")
  2153. {
  2154. localParcel.writeString(paramMessage);
  2155. localRILRequest.mParcel.writeString(paramString);
  2156. riljLog(localRILRequest.serialString() + "> " + requestToString(localRILRequest.mRequest) + ' ' + paramBoolean + " [" + paramString + ']');
  2157. send(localRILRequest);
  2158. return;
  2159. }
  2160. }
  2161.  
  2162. public void acknowledgeLastIncomingCdmaSms(boolean paramBoolean, int paramInt, Message paramMessage)
  2163. {
  2164. paramMessage = RILRequest.obtain(88, paramMessage);
  2165. Parcel localParcel = paramMessage.mParcel;
  2166. if (paramBoolean) {}
  2167. for (int i = 0;; i = 1)
  2168. {
  2169. localParcel.writeInt(i);
  2170. paramMessage.mParcel.writeInt(paramInt);
  2171. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramBoolean + " " + paramInt);
  2172. send(paramMessage);
  2173. return;
  2174. }
  2175. }
  2176.  
  2177. public void acknowledgeLastIncomingGsmSms(boolean paramBoolean, int paramInt, Message paramMessage)
  2178. {
  2179. paramMessage = RILRequest.obtain(37, paramMessage);
  2180. paramMessage.mParcel.writeInt(2);
  2181. Parcel localParcel = paramMessage.mParcel;
  2182. if (paramBoolean) {}
  2183. for (int i = 1;; i = 0)
  2184. {
  2185. localParcel.writeInt(i);
  2186. paramMessage.mParcel.writeInt(paramInt);
  2187. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramBoolean + " " + paramInt);
  2188. send(paramMessage);
  2189. return;
  2190. }
  2191. }
  2192.  
  2193. public void cancelPendingUssd(Message paramMessage)
  2194. {
  2195. paramMessage = RILRequest.obtain(30, paramMessage);
  2196. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2197. send(paramMessage);
  2198. }
  2199.  
  2200. public void changeBarringPassword(String paramString1, String paramString2, String paramString3, Message paramMessage)
  2201. {
  2202. paramMessage = RILRequest.obtain(44, paramMessage);
  2203. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2204. paramMessage.mParcel.writeInt(3);
  2205. paramMessage.mParcel.writeString(paramString1);
  2206. paramMessage.mParcel.writeString(paramString2);
  2207. paramMessage.mParcel.writeString(paramString3);
  2208. send(paramMessage);
  2209. }
  2210.  
  2211. public void changeBarringPassword(String paramString1, String paramString2, String paramString3, String paramString4, Message paramMessage)
  2212. {
  2213. paramMessage = RILRequest.obtain(44, paramMessage);
  2214. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2215. paramMessage.mParcel.writeInt(4);
  2216. paramMessage.mParcel.writeString(paramString1);
  2217. paramMessage.mParcel.writeString(paramString2);
  2218. paramMessage.mParcel.writeString(paramString3);
  2219. paramMessage.mParcel.writeString(paramString4);
  2220. send(paramMessage);
  2221. }
  2222.  
  2223. public void changeIccPin(String paramString1, String paramString2, Message paramMessage)
  2224. {
  2225. changeIccPinForApp(paramString1, paramString2, null, paramMessage);
  2226. }
  2227.  
  2228. public void changeIccPin2(String paramString1, String paramString2, Message paramMessage)
  2229. {
  2230. changeIccPin2ForApp(paramString1, paramString2, null, paramMessage);
  2231. }
  2232.  
  2233. public void changeIccPin2ForApp(String paramString1, String paramString2, String paramString3, Message paramMessage)
  2234. {
  2235. paramMessage = RILRequest.obtain(7, paramMessage);
  2236. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2237. paramMessage.mParcel.writeInt(3);
  2238. paramMessage.mParcel.writeString(paramString1);
  2239. paramMessage.mParcel.writeString(paramString2);
  2240. paramMessage.mParcel.writeString(paramString3);
  2241. send(paramMessage);
  2242. }
  2243.  
  2244. public void changeIccPinForApp(String paramString1, String paramString2, String paramString3, Message paramMessage)
  2245. {
  2246. paramMessage = RILRequest.obtain(6, paramMessage);
  2247. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2248. paramMessage.mParcel.writeInt(3);
  2249. paramMessage.mParcel.writeString(paramString1);
  2250. paramMessage.mParcel.writeString(paramString2);
  2251. paramMessage.mParcel.writeString(paramString3);
  2252. send(paramMessage);
  2253. }
  2254.  
  2255. public void changeIccSimPerso(String paramString1, String paramString2, Message paramMessage)
  2256. {
  2257. paramMessage = RILRequest.obtain(10017, paramMessage);
  2258. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2259. paramMessage.mParcel.writeInt(2);
  2260. paramMessage.mParcel.writeString(paramString1);
  2261. paramMessage.mParcel.writeString(paramString2);
  2262. send(paramMessage);
  2263. }
  2264.  
  2265. public void conference(Message paramMessage)
  2266. {
  2267. paramMessage = RILRequest.obtain(16, paramMessage);
  2268. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2269. send(paramMessage);
  2270. }
  2271.  
  2272. public void deactivateDataCall(int paramInt1, int paramInt2, Message paramMessage)
  2273. {
  2274. paramMessage = RILRequest.obtain(41, paramMessage);
  2275. paramMessage.mParcel.writeInt(2);
  2276. paramMessage.mParcel.writeString(Integer.toString(paramInt1));
  2277. paramMessage.mParcel.writeString(Integer.toString(paramInt2));
  2278. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt1 + " " + paramInt2);
  2279. send(paramMessage);
  2280. }
  2281.  
  2282. public void deflect(String paramString, Message paramMessage)
  2283. {
  2284. paramMessage = RILRequest.obtain(10002, paramMessage);
  2285. paramMessage.mParcel.writeString(paramString);
  2286. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2287. send(paramMessage);
  2288. }
  2289.  
  2290. public void deleteSmsOnRuim(int paramInt, Message paramMessage)
  2291. {
  2292. paramMessage = RILRequest.obtain(97, paramMessage);
  2293. paramMessage.mParcel.writeInt(1);
  2294. paramMessage.mParcel.writeInt(paramInt);
  2295. send(paramMessage);
  2296. }
  2297.  
  2298. public void deleteSmsOnSim(int paramInt, Message paramMessage)
  2299. {
  2300. paramMessage = RILRequest.obtain(64, paramMessage);
  2301. paramMessage.mParcel.writeInt(1);
  2302. paramMessage.mParcel.writeInt(paramInt);
  2303. send(paramMessage);
  2304. }
  2305.  
  2306. public void dial(String paramString, int paramInt, Message paramMessage)
  2307. {
  2308. dial(paramString, paramInt, null, paramMessage);
  2309. }
  2310.  
  2311. public void dial(String paramString, int paramInt, UUSInfo paramUUSInfo, Message paramMessage)
  2312. {
  2313. dial(paramString, paramInt, paramUUSInfo, null, paramMessage);
  2314. }
  2315.  
  2316. public void dial(String paramString, int paramInt, UUSInfo paramUUSInfo, CallDetails paramCallDetails, Message paramMessage)
  2317. {
  2318. paramMessage = RILRequest.obtain(10, paramMessage);
  2319. paramMessage.mParcel.writeString(paramString);
  2320. paramMessage.mParcel.writeInt(paramInt);
  2321. if (paramCallDetails != null)
  2322. {
  2323. paramMessage.mParcel.writeInt(paramCallDetails.call_type);
  2324. paramMessage.mParcel.writeInt(paramCallDetails.call_domain);
  2325. paramMessage.mParcel.writeString(paramCallDetails.getCsvFromExtras());
  2326. if (paramUUSInfo != null) {
  2327. break label172;
  2328. }
  2329. paramMessage.mParcel.writeInt(0);
  2330. }
  2331. for (;;)
  2332. {
  2333. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramCallDetails);
  2334. send(paramMessage);
  2335. return;
  2336. paramMessage.mParcel.writeInt(0);
  2337. paramMessage.mParcel.writeInt(1);
  2338. paramMessage.mParcel.writeString("");
  2339. break;
  2340. label172:
  2341. paramMessage.mParcel.writeInt(1);
  2342. paramMessage.mParcel.writeInt(paramUUSInfo.getType());
  2343. paramMessage.mParcel.writeInt(paramUUSInfo.getDcs());
  2344. paramMessage.mParcel.writeByteArray(paramUUSInfo.getUserData());
  2345. }
  2346. }
  2347.  
  2348. public void dialEmergencyCall(String paramString, int paramInt, Message paramMessage)
  2349. {
  2350. dialEmergencyCall(paramString, paramInt, null, paramMessage);
  2351. }
  2352.  
  2353. public void dialEmergencyCall(String paramString, int paramInt, CallDetails paramCallDetails, Message paramMessage)
  2354. {
  2355. paramMessage = RILRequest.obtain(10001, paramMessage);
  2356. paramMessage.mParcel.writeString(paramString);
  2357. paramMessage.mParcel.writeInt(paramInt);
  2358. if (paramCallDetails != null)
  2359. {
  2360. paramMessage.mParcel.writeInt(paramCallDetails.call_type);
  2361. paramMessage.mParcel.writeInt(paramCallDetails.call_domain);
  2362. paramMessage.mParcel.writeString("");
  2363. paramMessage.mParcel.writeInt(0);
  2364. if (paramCallDetails == null) {
  2365. break label166;
  2366. }
  2367. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramCallDetails);
  2368. }
  2369. for (;;)
  2370. {
  2371. send(paramMessage);
  2372. return;
  2373. paramMessage.mParcel.writeInt(0);
  2374. paramMessage.mParcel.writeInt(3);
  2375. paramMessage.mParcel.writeString("");
  2376. break;
  2377. label166:
  2378. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2379. }
  2380. }
  2381.  
  2382. public void dump(FileDescriptor arg1, PrintWriter paramPrintWriter, String[] arg3)
  2383. {
  2384. paramPrintWriter.println("RIL: " + this);
  2385. paramPrintWriter.println(" mSocket=" + this.mSocket);
  2386. paramPrintWriter.println(" mSenderThread=" + this.mSenderThread);
  2387. paramPrintWriter.println(" mSender=" + this.mSender);
  2388. paramPrintWriter.println(" mReceiverThread=" + this.mReceiverThread);
  2389. paramPrintWriter.println(" mReceiver=" + this.mReceiver);
  2390. paramPrintWriter.println(" mWakeLock=" + this.mWakeLock);
  2391. paramPrintWriter.println(" mWakeLockTimeout=" + this.mWakeLockTimeout);
  2392. synchronized (this.mRequestList)
  2393. {
  2394. synchronized (this.mWakeLock)
  2395. {
  2396. paramPrintWriter.println(" mWakeLockCount=" + this.mWakeLockCount);
  2397. int j = this.mRequestList.size();
  2398. paramPrintWriter.println(" mRequestList count=" + j);
  2399. int i = 0;
  2400. if (i < j)
  2401. {
  2402. ??? = (RILRequest)this.mRequestList.valueAt(i);
  2403. paramPrintWriter.println(" [" + ???.mSerial + "] " + requestToString(???.mRequest));
  2404. i += 1;
  2405. }
  2406. }
  2407. }
  2408. paramPrintWriter.println(" mLastNITZTimeInfo=" + this.mLastNITZTimeInfo);
  2409. paramPrintWriter.println(" mTestingEmergencyCall=" + this.mTestingEmergencyCall.get());
  2410. }
  2411.  
  2412. public void exitEmergencyCallbackMode(Message paramMessage)
  2413. {
  2414. paramMessage = RILRequest.obtain(99, paramMessage);
  2415. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2416. send(paramMessage);
  2417. }
  2418.  
  2419. public void explicitCallTransfer(Message paramMessage)
  2420. {
  2421. paramMessage = RILRequest.obtain(72, paramMessage);
  2422. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2423. send(paramMessage);
  2424. }
  2425.  
  2426. public void getAvailableNetworks(Message paramMessage)
  2427. {
  2428. paramMessage = RILRequest.obtain(48, paramMessage);
  2429. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2430. send(paramMessage);
  2431. }
  2432.  
  2433. public void getBasebandVersion(Message paramMessage)
  2434. {
  2435. paramMessage = RILRequest.obtain(51, paramMessage);
  2436. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2437. send(paramMessage);
  2438. }
  2439.  
  2440. public void getCDMASubscription(Message paramMessage)
  2441. {
  2442. paramMessage = RILRequest.obtain(95, paramMessage);
  2443. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2444. send(paramMessage);
  2445. }
  2446.  
  2447. public void getCLIR(Message paramMessage)
  2448. {
  2449. paramMessage = RILRequest.obtain(31, paramMessage);
  2450. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2451. send(paramMessage);
  2452. }
  2453.  
  2454. public void getCbConfig(Message paramMessage)
  2455. {
  2456. paramMessage = RILRequest.obtain(10008, paramMessage);
  2457. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2458. send(paramMessage);
  2459. }
  2460.  
  2461. public void getCdmaBroadcastConfig(Message paramMessage)
  2462. {
  2463. send(RILRequest.obtain(92, paramMessage));
  2464. }
  2465.  
  2466. public void getCdmaSubscriptionSource(Message paramMessage)
  2467. {
  2468. paramMessage = RILRequest.obtain(104, paramMessage);
  2469. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2470. send(paramMessage);
  2471. }
  2472.  
  2473. public void getCellInfoList(Message paramMessage)
  2474. {
  2475. paramMessage = RILRequest.obtain(109, paramMessage);
  2476. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2477. send(paramMessage);
  2478. }
  2479.  
  2480. public void getCurrentCalls(Message paramMessage)
  2481. {
  2482. paramMessage = RILRequest.obtain(9, paramMessage);
  2483. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2484. send(paramMessage);
  2485. }
  2486.  
  2487. public void getDataCallList(Message paramMessage)
  2488. {
  2489. paramMessage = RILRequest.obtain(57, paramMessage);
  2490. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2491. send(paramMessage);
  2492. }
  2493.  
  2494. public void getDataRegistrationState(Message paramMessage)
  2495. {
  2496. paramMessage = RILRequest.obtain(21, paramMessage);
  2497. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2498. send(paramMessage);
  2499. }
  2500.  
  2501. public void getDeviceIdentity(Message paramMessage)
  2502. {
  2503. paramMessage = RILRequest.obtain(98, paramMessage);
  2504. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2505. send(paramMessage);
  2506. }
  2507.  
  2508. public void getGsmBroadcastConfig(Message paramMessage)
  2509. {
  2510. paramMessage = RILRequest.obtain(89, paramMessage);
  2511. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2512. send(paramMessage);
  2513. }
  2514.  
  2515. public void getHardwareConfig(Message paramMessage)
  2516. {
  2517. paramMessage = RILRequest.obtain(124, paramMessage);
  2518. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2519. send(paramMessage);
  2520. }
  2521.  
  2522. public void getICBarring(String paramString1, String paramString2, int paramInt, Message paramMessage)
  2523. {
  2524. RILRequest localRILRequest = RILRequest.obtain(10027, paramMessage);
  2525. String str = localRILRequest.serialString() + "> " + requestToString(localRILRequest.mRequest);
  2526. paramMessage = str;
  2527. if (!SHIP_BUILD) {
  2528. paramMessage = str + " [" + paramString1 + " " + paramInt + "]";
  2529. }
  2530. riljLog(paramMessage);
  2531. localRILRequest.mParcel.writeInt(4);
  2532. localRILRequest.mParcel.writeString(paramString1);
  2533. localRILRequest.mParcel.writeString(paramString2);
  2534. localRILRequest.mParcel.writeString(Integer.toString(paramInt));
  2535. localRILRequest.mParcel.writeString("");
  2536. send(localRILRequest);
  2537. }
  2538.  
  2539. public void getIMEI(Message paramMessage)
  2540. {
  2541. paramMessage = RILRequest.obtain(38, paramMessage);
  2542. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2543. send(paramMessage);
  2544. }
  2545.  
  2546. public void getIMEISV(Message paramMessage)
  2547. {
  2548. paramMessage = RILRequest.obtain(39, paramMessage);
  2549. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2550. send(paramMessage);
  2551. }
  2552.  
  2553. public void getIMSI(Message paramMessage)
  2554. {
  2555. getIMSIForApp(null, paramMessage);
  2556. }
  2557.  
  2558. public void getIMSIForApp(String paramString, Message paramMessage)
  2559. {
  2560. paramMessage = RILRequest.obtain(11, paramMessage);
  2561. paramMessage.mParcel.writeInt(1);
  2562. paramMessage.mParcel.writeString(paramString);
  2563. String str = paramMessage.serialString() + "> getIMSI: " + requestToString(paramMessage.mRequest) + " aid: ";
  2564. if (!SHIP_BUILD) {}
  2565. for (paramString = str + paramString;; paramString = str + "xxx")
  2566. {
  2567. riljLog(paramString);
  2568. send(paramMessage);
  2569. return;
  2570. }
  2571. }
  2572.  
  2573. public void getIccCardStatus(Message paramMessage)
  2574. {
  2575. paramMessage = RILRequest.obtain(1, paramMessage);
  2576. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2577. send(paramMessage);
  2578. }
  2579.  
  2580. public void getImsRegistrationState(Message paramMessage)
  2581. {
  2582. paramMessage = RILRequest.obtain(112, paramMessage);
  2583. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2584. send(paramMessage);
  2585. }
  2586.  
  2587. public void getLastCallFailCause(Message paramMessage)
  2588. {
  2589. paramMessage = RILRequest.obtain(18, paramMessage);
  2590. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2591. send(paramMessage);
  2592. }
  2593.  
  2594. public void getLastDataCallFailCause(Message paramMessage)
  2595. {
  2596. paramMessage = RILRequest.obtain(56, paramMessage);
  2597. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2598. send(paramMessage);
  2599. }
  2600.  
  2601. @Deprecated
  2602. public void getLastPdpFailCause(Message paramMessage)
  2603. {
  2604. getLastDataCallFailCause(paramMessage);
  2605. }
  2606.  
  2607. /* Error */
  2608. public void getModemCapability(Message paramMessage)
  2609. {
  2610. // Byte code:
  2611. // 0: new 2074 java/io/ByteArrayOutputStream
  2612. // 3: dup
  2613. // 4: invokespecial 2075 java/io/ByteArrayOutputStream:<init> ()V
  2614. // 7: astore_3
  2615. // 8: new 2077 java/io/DataOutputStream
  2616. // 11: dup
  2617. // 12: aload_3
  2618. // 13: invokespecial 2080 java/io/DataOutputStream:<init> (Ljava/io/OutputStream;)V
  2619. // 16: astore_2
  2620. // 17: ldc 63
  2621. // 19: ldc_w 2081
  2622. // 22: invokestatic 406 android/telephony/Rlog:d (Ljava/lang/String;Ljava/lang/String;)I
  2623. // 25: pop
  2624. // 26: aload_2
  2625. // 27: iconst_2
  2626. // 28: invokevirtual 2083 java/io/DataOutputStream:writeByte (I)V
  2627. // 31: aload_2
  2628. // 32: bipush 97
  2629. // 34: invokevirtual 2083 java/io/DataOutputStream:writeByte (I)V
  2630. // 37: aload_2
  2631. // 38: iconst_4
  2632. // 39: invokevirtual 2086 java/io/DataOutputStream:writeShort (I)V
  2633. // 42: aload_2
  2634. // 43: invokevirtual 2089 java/io/DataOutputStream:close ()V
  2635. // 46: aload_0
  2636. // 47: aload_3
  2637. // 48: invokevirtual 2092 java/io/ByteArrayOutputStream:toByteArray ()[B
  2638. // 51: aload_1
  2639. // 52: invokevirtual 2096 com/android/internal/telephony/RIL:invokeOemRilRequestRaw ([BLandroid/os/Message;)V
  2640. // 55: return
  2641. // 56: astore_1
  2642. // 57: aload_2
  2643. // 58: invokevirtual 2089 java/io/DataOutputStream:close ()V
  2644. // 61: return
  2645. // 62: astore_1
  2646. // 63: return
  2647. // 64: astore_1
  2648. // 65: aload_2
  2649. // 66: invokevirtual 2089 java/io/DataOutputStream:close ()V
  2650. // 69: aload_1
  2651. // 70: athrow
  2652. // 71: astore_2
  2653. // 72: goto -26 -> 46
  2654. // 75: astore_2
  2655. // 76: goto -7 -> 69
  2656. // Local variable table:
  2657. // start length slot name signature
  2658. // 0 79 0 this RIL
  2659. // 0 79 1 paramMessage Message
  2660. // 16 50 2 localDataOutputStream java.io.DataOutputStream
  2661. // 71 1 2 localException1 Exception
  2662. // 75 1 2 localException2 Exception
  2663. // 7 41 3 localByteArrayOutputStream java.io.ByteArrayOutputStream
  2664. // Exception table:
  2665. // from to target type
  2666. // 26 42 56 java/io/IOException
  2667. // 57 61 62 java/lang/Exception
  2668. // 26 42 64 finally
  2669. // 42 46 71 java/lang/Exception
  2670. // 65 69 75 java/lang/Exception
  2671. }
  2672.  
  2673. public void getMute(Message paramMessage)
  2674. {
  2675. paramMessage = RILRequest.obtain(54, paramMessage);
  2676. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2677. send(paramMessage);
  2678. }
  2679.  
  2680. public void getNeighboringCids(Message paramMessage)
  2681. {
  2682. paramMessage = RILRequest.obtain(75, paramMessage);
  2683. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2684. send(paramMessage);
  2685. }
  2686.  
  2687. public void getNetworkSelectionMode(Message paramMessage)
  2688. {
  2689. paramMessage = RILRequest.obtain(45, paramMessage);
  2690. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2691. send(paramMessage);
  2692. }
  2693.  
  2694. public void getOperator(Message paramMessage)
  2695. {
  2696. paramMessage = RILRequest.obtain(22, paramMessage);
  2697. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2698. send(paramMessage);
  2699. }
  2700.  
  2701. @Deprecated
  2702. public void getPDPContextList(Message paramMessage)
  2703. {
  2704. getDataCallList(paramMessage);
  2705. }
  2706.  
  2707. public void getPhoneBookEntry(int paramInt1, int paramInt2, int paramInt3, String paramString, Message paramMessage)
  2708. {
  2709. paramMessage = RILRequest.obtain(10010, paramMessage);
  2710. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2711. paramMessage.mParcel.writeInt(paramInt1);
  2712. paramMessage.mParcel.writeInt(paramInt2);
  2713. paramMessage.mParcel.writeString(null);
  2714. paramMessage.mParcel.writeInt(paramInt3);
  2715. paramMessage.mParcel.writeInt(0);
  2716. paramMessage.mParcel.writeInt(0);
  2717. paramMessage.mParcel.writeString(null);
  2718. paramMessage.mParcel.writeString(paramString);
  2719. send(paramMessage);
  2720. }
  2721.  
  2722. public void getPhoneBookStorageInfo(int paramInt, Message paramMessage)
  2723. {
  2724. paramMessage = RILRequest.obtain(10009, paramMessage);
  2725. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2726. paramMessage.mParcel.writeInt(1);
  2727. paramMessage.mParcel.writeInt(paramInt);
  2728. send(paramMessage);
  2729. }
  2730.  
  2731. public void getPreferredNetworkList(Message paramMessage)
  2732. {
  2733. paramMessage = RILRequest.obtain(10016, paramMessage);
  2734. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2735. send(paramMessage);
  2736. }
  2737.  
  2738. public void getPreferredNetworkType(Message paramMessage)
  2739. {
  2740. paramMessage = RILRequest.obtain(74, paramMessage);
  2741. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2742. send(paramMessage);
  2743. }
  2744.  
  2745. public void getPreferredVoicePrivacy(Message paramMessage)
  2746. {
  2747. paramMessage = RILRequest.obtain(83, paramMessage);
  2748. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2749. send(paramMessage);
  2750. }
  2751.  
  2752. public void getSIMLockInfo(int paramInt1, int paramInt2, Message paramMessage)
  2753. {
  2754. paramMessage = RILRequest.obtain(10013, paramMessage);
  2755. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2756. paramMessage.mParcel.writeInt(paramInt1);
  2757. paramMessage.mParcel.writeInt(paramInt2);
  2758. send(paramMessage);
  2759. }
  2760.  
  2761. public void getSignalStrength(Message paramMessage)
  2762. {
  2763. paramMessage = RILRequest.obtain(19, paramMessage);
  2764. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2765. send(paramMessage);
  2766. }
  2767.  
  2768. public void getSmscAddress(Message paramMessage)
  2769. {
  2770. paramMessage = RILRequest.obtain(100, paramMessage);
  2771. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2772. send(paramMessage);
  2773. }
  2774.  
  2775. public void getUsimPBCapa(Message paramMessage)
  2776. {
  2777. paramMessage = RILRequest.obtain(10012, paramMessage);
  2778. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2779. send(paramMessage);
  2780. }
  2781.  
  2782. public void getVoiceRadioTechnology(Message paramMessage)
  2783. {
  2784. paramMessage = RILRequest.obtain(108, paramMessage);
  2785. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2786. send(paramMessage);
  2787. }
  2788.  
  2789. public void getVoiceRegistrationState(Message paramMessage)
  2790. {
  2791. paramMessage = RILRequest.obtain(20, paramMessage);
  2792. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2793. send(paramMessage);
  2794. }
  2795.  
  2796. public void handleCallSetupRequestFromSim(boolean paramBoolean, Message paramMessage)
  2797. {
  2798. int i = 1;
  2799. riljLog("handleCallSetupRequestFromSim");
  2800. paramMessage = RILRequest.obtain(71, paramMessage);
  2801. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2802. if (paramBoolean) {}
  2803. for (;;)
  2804. {
  2805. paramMessage.mParcel.writeIntArray(new int[] { i });
  2806. send(paramMessage);
  2807. return;
  2808. i = 0;
  2809. }
  2810. }
  2811.  
  2812. public void hangupConnection(int paramInt, Message paramMessage)
  2813. {
  2814. riljLog("hangupConnection: gsmIndex=" + paramInt);
  2815. paramMessage = RILRequest.obtain(12, paramMessage);
  2816. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt);
  2817. paramMessage.mParcel.writeInt(1);
  2818. paramMessage.mParcel.writeInt(paramInt);
  2819. send(paramMessage);
  2820. }
  2821.  
  2822. public void hangupForegroundResumeBackground(Message paramMessage)
  2823. {
  2824. paramMessage = RILRequest.obtain(14, paramMessage);
  2825. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2826. send(paramMessage);
  2827. }
  2828.  
  2829. public void hangupVT(int paramInt, Message paramMessage)
  2830. {
  2831. paramMessage = RILRequest.obtain(10021, paramMessage);
  2832. paramMessage.mParcel.writeInt(1);
  2833. paramMessage.mParcel.writeInt(paramInt);
  2834. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " rejectCause: " + paramInt);
  2835. send(paramMessage);
  2836. }
  2837.  
  2838. public void hangupWaitingOrBackground(Message paramMessage)
  2839. {
  2840. paramMessage = RILRequest.obtain(13, paramMessage);
  2841. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2842. send(paramMessage);
  2843. }
  2844.  
  2845. public void holdCall(Message paramMessage)
  2846. {
  2847. paramMessage = RILRequest.obtain(10022, paramMessage);
  2848. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2849. send(paramMessage);
  2850. }
  2851.  
  2852. public void iccCloseLogicalChannel(int paramInt, Message paramMessage)
  2853. {
  2854. paramMessage = RILRequest.obtain(116, paramMessage);
  2855. paramMessage.mParcel.writeInt(1);
  2856. paramMessage.mParcel.writeInt(paramInt);
  2857. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2858. send(paramMessage);
  2859. }
  2860.  
  2861. public void iccIO(int paramInt1, int paramInt2, String paramString1, int paramInt3, int paramInt4, int paramInt5, String paramString2, String paramString3, Message paramMessage)
  2862. {
  2863. iccIOForApp(paramInt1, paramInt2, paramString1, paramInt3, paramInt4, paramInt5, paramString2, paramString3, null, paramMessage);
  2864. }
  2865.  
  2866. public void iccIOForApp(int paramInt1, int paramInt2, String paramString1, int paramInt3, int paramInt4, int paramInt5, String paramString2, String paramString3, String paramString4, Message paramMessage)
  2867. {
  2868. paramMessage = RILRequest.obtain(28, paramMessage);
  2869. paramMessage.mParcel.writeInt(paramInt1);
  2870. paramMessage.mParcel.writeInt(paramInt2);
  2871. paramMessage.mParcel.writeString(paramString1);
  2872. paramMessage.mParcel.writeInt(paramInt3);
  2873. paramMessage.mParcel.writeInt(paramInt4);
  2874. paramMessage.mParcel.writeInt(paramInt5);
  2875. paramMessage.mParcel.writeString(paramString2);
  2876. paramMessage.mParcel.writeString(paramString3);
  2877. paramMessage.mParcel.writeString(paramString4);
  2878. paramString1 = paramMessage.serialString() + "> iccIO: " + requestToString(paramMessage.mRequest) + " 0x" + Integer.toHexString(paramInt1) + " 0x" + Integer.toHexString(paramInt2) + " " + " path: " + paramString1 + "," + paramInt3 + "," + paramInt4 + "," + paramInt5 + " aid: ";
  2879. if (!SHIP_BUILD) {}
  2880. for (paramString1 = paramString1 + paramString4;; paramString1 = paramString1 + "xxx")
  2881. {
  2882. riljLog(paramString1);
  2883. send(paramMessage);
  2884. return;
  2885. }
  2886. }
  2887.  
  2888. public void iccOpenLogicalChannel(String paramString, Message paramMessage)
  2889. {
  2890. paramMessage = RILRequest.obtain(115, paramMessage);
  2891. paramMessage.mParcel.writeString(paramString);
  2892. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2893. send(paramMessage);
  2894. }
  2895.  
  2896. public void iccTransmitApduBasicChannel(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, String paramString, Message paramMessage)
  2897. {
  2898. iccTransmitApduHelper(114, 0, paramInt1, paramInt2, paramInt3, paramInt4, paramInt5, paramString, paramMessage);
  2899. }
  2900.  
  2901. public void iccTransmitApduLogicalChannel(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6, String paramString, Message paramMessage)
  2902. {
  2903. if (paramInt1 <= 0) {
  2904. throw new RuntimeException("Invalid channel in iccTransmitApduLogicalChannel: " + paramInt1);
  2905. }
  2906. iccTransmitApduHelper(117, paramInt1, paramInt2, paramInt3, paramInt4, paramInt5, paramInt6, paramString, paramMessage);
  2907. }
  2908.  
  2909. public void invokeOemRilRequestRaw(byte[] paramArrayOfByte, Message paramMessage)
  2910. {
  2911. RILRequest localRILRequest = RILRequest.obtain(59, paramMessage);
  2912. String str = IccUtils.bytesToHexString(paramArrayOfByte);
  2913. paramMessage = str;
  2914. if (SHIP_BUILD)
  2915. {
  2916. if (!"15".equals(str.substring(0, 2))) {
  2917. break label111;
  2918. }
  2919. paramMessage = "****";
  2920. }
  2921. for (;;)
  2922. {
  2923. riljLog(localRILRequest.serialString() + "> " + requestToString(localRILRequest.mRequest) + "[" + paramMessage + "]");
  2924. localRILRequest.mParcel.writeByteArray(paramArrayOfByte);
  2925. send(localRILRequest);
  2926. return;
  2927. label111:
  2928. paramMessage = str;
  2929. if ("1627".equals(str.substring(0, 4)))
  2930. {
  2931. paramMessage = str;
  2932. if ("KOREA".equals(SystemProperties.get("ro.csc.country_code"))) {
  2933. paramMessage = "****";
  2934. }
  2935. }
  2936. }
  2937. }
  2938.  
  2939. public void invokeOemRilRequestStrings(String[] paramArrayOfString, Message paramMessage)
  2940. {
  2941. paramMessage = RILRequest.obtain(60, paramMessage);
  2942. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  2943. paramMessage.mParcel.writeStringArray(paramArrayOfString);
  2944. send(paramMessage);
  2945. }
  2946.  
  2947. public void modifyCallConfirm(CallModify paramCallModify, Message paramMessage)
  2948. {
  2949. paramMessage = RILRequest.obtain(10004, paramMessage);
  2950. paramMessage.mParcel.writeInt(paramCallModify.call_index);
  2951. paramMessage.mParcel.writeInt(paramCallModify.call_details.call_type);
  2952. paramMessage.mParcel.writeInt(paramCallModify.call_details.call_domain);
  2953. paramMessage.mParcel.writeString(paramCallModify.call_details.getCsvFromExtras());
  2954. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramCallModify);
  2955. send(paramMessage);
  2956. }
  2957.  
  2958. public void modifyCallInitiate(CallModify paramCallModify, Message paramMessage)
  2959. {
  2960. paramMessage = RILRequest.obtain(10003, paramMessage);
  2961. paramMessage.mParcel.writeInt(paramCallModify.call_index);
  2962. paramMessage.mParcel.writeInt(paramCallModify.call_details.call_type);
  2963. paramMessage.mParcel.writeInt(paramCallModify.call_details.call_domain);
  2964. paramMessage.mParcel.writeString(paramCallModify.call_details.getCsvFromExtras());
  2965. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramCallModify);
  2966. send(paramMessage);
  2967. }
  2968.  
  2969. public String modifyDnsByCpa(String paramString1, String paramString2)
  2970. {
  2971. if (Settings.Secure.getInt(this.mContext.getContentResolver(), "kddi_cpa_on", 0) != 0) {}
  2972. String str3;
  2973. for (boolean bool = true;; bool = false)
  2974. {
  2975. String str2 = Settings.Secure.getString(this.mContext.getContentResolver(), "kddi_cpa_static_dns1");
  2976. String str1 = Settings.Secure.getString(this.mContext.getContentResolver(), "kddi_cpa_static_dns2");
  2977. riljLog("modifyDnsByCpa (isKddiCpaOn:" + bool + ", cpaDns1:" + str2 + "cpaDns2:" + str1 + ", dnses:" + paramString1 + ")");
  2978. if (!bool) {
  2979. return paramString1;
  2980. }
  2981. str3 = "net." + paramString2 + ".";
  2982. paramString2 = new String[2];
  2983. if (str2 != null)
  2984. {
  2985. paramString2 = str2;
  2986. if (!str2.equals("")) {}
  2987. }
  2988. else
  2989. {
  2990. if (!TextUtils.isEmpty(paramString1)) {
  2991. break;
  2992. }
  2993. paramString2 = "1.0.0.0";
  2994. str1 = "1.0.0.0";
  2995. }
  2996. SystemProperties.set(str3 + "dns1", paramString2);
  2997. SystemProperties.set(str3 + "dns2", str1);
  2998. return paramString2 + " " + str1;
  2999. }
  3000. paramString1 = paramString1.split(" ");
  3001. riljLog("tmpdns[0]:" + paramString1[0] + ", tmpDns[1]:" + paramString1[1]);
  3002. if (paramString1[0].equals("0.0.0.0")) {
  3003. paramString1[0] = "1.0.0.0";
  3004. }
  3005. if (paramString1[1].equals("0.0.0.0")) {
  3006. paramString1[1] = "1.0.0.0";
  3007. }
  3008. SystemProperties.set(str3 + "dns1", paramString1[0]);
  3009. SystemProperties.set(str3 + "dns2", paramString1[1]);
  3010. return paramString1[0] + " " + paramString1[1];
  3011. return paramString1;
  3012. }
  3013.  
  3014. public int modifyNetworkTypeByOperator(int paramInt)
  3015. {
  3016. SystemProperties.getBoolean("persist.radio.dcmlte", true);
  3017. SystemProperties.getBoolean("gsm.operator.isroaming", false);
  3018. int k = SystemProperties.getInt("persist.radio.setnwkmode", 9);
  3019. boolean bool2;
  3020. boolean bool3;
  3021. if (Settings.Global.getInt(this.mContext.getContentResolver(), "mobile_data", 1) == 1)
  3022. {
  3023. bool2 = true;
  3024. if (Settings.Global.getInt(this.mContext.getContentResolver(), "data_roaming", 1) != 1) {
  3025. break label147;
  3026. }
  3027. bool3 = true;
  3028. label68:
  3029. if (Settings.System.getInt(this.mContext.getContentResolver(), "voicecall_type", 1) != 0) {
  3030. break label153;
  3031. }
  3032. }
  3033. String str1;
  3034. String str2;
  3035. label147:
  3036. label153:
  3037. for (;;)
  3038. {
  3039. str1 = SystemProperties.get("gsm.operator.numeric", "");
  3040. str2 = SystemProperties.get("gsm.sim.operator.numeric", "44050");
  3041. if ((!"00101".equals(str2)) && (!"99999".equals(str2)) && (!"45001".equals(str2))) {
  3042. break label156;
  3043. }
  3044. return paramInt;
  3045. bool2 = false;
  3046. break;
  3047. bool3 = false;
  3048. break label68;
  3049. }
  3050. label156:
  3051. boolean bool1;
  3052. label248:
  3053. int i;
  3054. if (str1.length() < 3)
  3055. {
  3056. bool1 = false;
  3057. riljLog("modifyNetworkTypeByOperator (preferredNetworkType:" + k + ", userDataEnabled:" + bool2 + ", isRoaming:" + bool1 + ", userDataRoamingEnabled:" + bool3 + ")");
  3058. if ((!bool2) || ((bool1) && (!bool3))) {
  3059. break label436;
  3060. }
  3061. paramInt = 1;
  3062. i = paramInt;
  3063. if ("KDI".equals(""))
  3064. {
  3065. bool2 = PreferenceManager.getDefaultSharedPreferences(this.mContext).getBoolean("japan_system_select_key", true);
  3066. riljLog("... LteDataComm:" + bool2);
  3067. if (!bool1) {
  3068. break label446;
  3069. }
  3070. if ((paramInt == 0) || (!bool2)) {
  3071. break label441;
  3072. }
  3073. i = 1;
  3074. }
  3075. label320:
  3076. int j = k;
  3077. paramInt = j;
  3078. if (i == 0)
  3079. {
  3080. paramInt = j;
  3081. switch (k)
  3082. {
  3083. default:
  3084. paramInt = j;
  3085. }
  3086. }
  3087. }
  3088. for (;;)
  3089. {
  3090. return paramInt;
  3091. if ((str2.substring(0, 3).equals(str1.substring(0, 3))) || ("000".equals(str1.substring(0, 3))) || ("000".equals(str2.substring(0, 3))))
  3092. {
  3093. bool1 = false;
  3094. break;
  3095. }
  3096. bool1 = true;
  3097. break;
  3098. label436:
  3099. paramInt = 0;
  3100. break label248;
  3101. label441:
  3102. i = 0;
  3103. break label320;
  3104. label446:
  3105. i = 1;
  3106. break label320;
  3107. paramInt = 2;
  3108. continue;
  3109. paramInt = 3;
  3110. continue;
  3111. paramInt = 4;
  3112. continue;
  3113. paramInt = 7;
  3114. }
  3115. }
  3116.  
  3117. protected void notifyModemCap(byte[] paramArrayOfByte, Integer paramInteger)
  3118. {
  3119. paramArrayOfByte = new AsyncResult(null, new UnsolOemHookBuffer(paramInteger.intValue(), paramArrayOfByte), null);
  3120. this.mModemCapRegistrants.notifyRegistrants(paramArrayOfByte);
  3121. Rlog.d("RILJ", "MODEM_CAPABILITY on phone=" + paramInteger + " notified to registrants");
  3122. }
  3123.  
  3124. public void nvReadItem(int paramInt, Message paramMessage)
  3125. {
  3126. paramMessage = RILRequest.obtain(118, paramMessage);
  3127. paramMessage.mParcel.writeInt(paramInt);
  3128. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + ' ' + paramInt);
  3129. send(paramMessage);
  3130. }
  3131.  
  3132. public void nvResetConfig(int paramInt, Message paramMessage)
  3133. {
  3134. paramMessage = RILRequest.obtain(121, paramMessage);
  3135. paramMessage.mParcel.writeInt(1);
  3136. paramMessage.mParcel.writeInt(paramInt);
  3137. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + ' ' + paramInt);
  3138. send(paramMessage);
  3139. }
  3140.  
  3141. public void nvWriteCdmaPrl(byte[] paramArrayOfByte, Message paramMessage)
  3142. {
  3143. paramMessage = RILRequest.obtain(120, paramMessage);
  3144. paramMessage.mParcel.writeByteArray(paramArrayOfByte);
  3145. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " (" + paramArrayOfByte.length + " bytes)");
  3146. send(paramMessage);
  3147. }
  3148.  
  3149. public void nvWriteItem(int paramInt, String paramString, Message paramMessage)
  3150. {
  3151. paramMessage = RILRequest.obtain(119, paramMessage);
  3152. paramMessage.mParcel.writeInt(paramInt);
  3153. paramMessage.mParcel.writeString(paramString);
  3154. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + ' ' + paramInt + ": " + paramString);
  3155. send(paramMessage);
  3156. }
  3157.  
  3158. protected void onRadioAvailable()
  3159. {
  3160. updateScreenState();
  3161. }
  3162.  
  3163. protected RILRequest processSolicited(Parcel paramParcel)
  3164. {
  3165. String str = SystemProperties.get("ro.csc.sales_code");
  3166. int i = paramParcel.readInt();
  3167. int j = paramParcel.readInt();
  3168. RILRequest localRILRequest = findAndRemoveRequestFromList(i);
  3169. if (localRILRequest == null)
  3170. {
  3171. Rlog.w("RILJ", "Unexpected solicited response! sn: " + i + " error: " + j);
  3172. paramParcel = null;
  3173. return paramParcel;
  3174. }
  3175. Object localObject1 = null;
  3176. if ((j == 0) || (paramParcel.dataAvail() > 0)) {}
  3177. for (;;)
  3178. {
  3179. try
  3180. {
  3181. switch (localRILRequest.mRequest)
  3182. {
  3183. case 1:
  3184. throw new RuntimeException("Unrecognized solicited response: " + localRILRequest.mRequest);
  3185. }
  3186. }
  3187. catch (Throwable localThrowable)
  3188. {
  3189. Rlog.w("RILJ", localRILRequest.serialString() + "< " + requestToString(localRILRequest.mRequest) + " exception, possible invalid RIL response", localThrowable);
  3190. paramParcel = localRILRequest;
  3191. }
  3192. if (localRILRequest.mResult == null) {
  3193. break;
  3194. }
  3195. AsyncResult.forMessage(localRILRequest.mResult, null, localThrowable);
  3196. localRILRequest.mResult.sendToTarget();
  3197. return localRILRequest;
  3198. Object localObject2 = responseIccCardStatus(paramParcel);
  3199. if (localRILRequest.mRequest == 129)
  3200. {
  3201. riljLog("Response to RIL_REQUEST_SHUTDOWN received. Error is " + j + " Setting Radio State to Unavailable regardless of error.");
  3202. setRadioState(CommandsInterface.RadioState.RADIO_UNAVAILABLE);
  3203. if (("DCGS".equals("")) && ("1".equals(SystemProperties.get("sys.deviceOffReq", "0"))))
  3204. {
  3205. if (this.mInstanceId.intValue() != 0) {
  3206. break label3235;
  3207. }
  3208. SystemProperties.set("ril.deviceOffRes", "1");
  3209. }
  3210. }
  3211. label1560:
  3212. switch (localRILRequest.mRequest)
  3213. {
  3214. case 4:
  3215. default:
  3216. label1592:
  3217. if (j == 0) {
  3218. break;
  3219. }
  3220. switch (localRILRequest.mRequest)
  3221. {
  3222. }
  3223. break;
  3224. }
  3225. for (;;)
  3226. {
  3227. localRILRequest.onError(j, localObject2);
  3228. return localRILRequest;
  3229. localObject2 = responseInts(paramParcel);
  3230. break;
  3231. localObject2 = responseInts(paramParcel);
  3232. break;
  3233. localObject2 = responseInts(paramParcel);
  3234. break;
  3235. localObject2 = responseInts(paramParcel);
  3236. break;
  3237. localObject2 = responseInts(paramParcel);
  3238. break;
  3239. localObject2 = responseInts(paramParcel);
  3240. break;
  3241. localObject2 = responseInts(paramParcel);
  3242. break;
  3243. localObject2 = responseCallList(paramParcel);
  3244. break;
  3245. localObject2 = responseVoid(paramParcel);
  3246. break;
  3247. localObject2 = responseString(paramParcel);
  3248. break;
  3249. localObject2 = responseVoid(paramParcel);
  3250. break;
  3251. localObject2 = responseVoid(paramParcel);
  3252. break;
  3253. if ((this.mTestingEmergencyCall.getAndSet(false)) && (this.mEmergencyCallbackModeRegistrant != null))
  3254. {
  3255. riljLog("testing emergency call, notify ECM Registrants");
  3256. this.mEmergencyCallbackModeRegistrant.notifyRegistrant();
  3257. }
  3258. localObject2 = responseVoid(paramParcel);
  3259. break;
  3260. localObject2 = responseVoid(paramParcel);
  3261. break;
  3262. localObject2 = responseVoid(paramParcel);
  3263. break;
  3264. localObject2 = responseVoid(paramParcel);
  3265. break;
  3266. localObject2 = responseInts(paramParcel);
  3267. break;
  3268. localObject2 = responseSignalStrength(paramParcel);
  3269. break;
  3270. localObject2 = responseStrings(paramParcel);
  3271. break;
  3272. localObject2 = responseStrings(paramParcel);
  3273. break;
  3274. localObject2 = responseStrings(paramParcel);
  3275. break;
  3276. localObject2 = responseVoid(paramParcel);
  3277. break;
  3278. localObject2 = responseVoid(paramParcel);
  3279. break;
  3280. localObject2 = responseSMS(paramParcel);
  3281. break;
  3282. localObject2 = responseSMS(paramParcel);
  3283. break;
  3284. localObject2 = responseSetupDataCall(paramParcel);
  3285. break;
  3286. localObject2 = responseICC_IO(paramParcel);
  3287. break;
  3288. localObject2 = responseVoid(paramParcel);
  3289. break;
  3290. localObject2 = responseVoid(paramParcel);
  3291. break;
  3292. localObject2 = responseInts(paramParcel);
  3293. break;
  3294. localObject2 = responseVoid(paramParcel);
  3295. break;
  3296. localObject2 = responseCallForward(paramParcel);
  3297. break;
  3298. localObject2 = responseVoid(paramParcel);
  3299. break;
  3300. localObject2 = responseInts(paramParcel);
  3301. break;
  3302. localObject2 = responseVoid(paramParcel);
  3303. break;
  3304. localObject2 = responseVoid(paramParcel);
  3305. break;
  3306. localObject2 = responseString(paramParcel);
  3307. break;
  3308. localObject2 = responseString(paramParcel);
  3309. break;
  3310. localObject2 = responseVoid(paramParcel);
  3311. break;
  3312. localObject2 = responseVoid(paramParcel);
  3313. break;
  3314. localObject2 = responseInts(paramParcel);
  3315. break;
  3316. localObject2 = responseInts(paramParcel);
  3317. break;
  3318. localObject2 = responseVoid(paramParcel);
  3319. break;
  3320. localObject2 = responseInts(paramParcel);
  3321. break;
  3322. localObject2 = responseVoid(paramParcel);
  3323. break;
  3324. localObject2 = responseVoid(paramParcel);
  3325. break;
  3326. localObject2 = responseOperatorInfos(paramParcel);
  3327. break;
  3328. localObject2 = responseVoid(paramParcel);
  3329. break;
  3330. localObject2 = responseVoid(paramParcel);
  3331. break;
  3332. localObject2 = responseString(paramParcel);
  3333. break;
  3334. localObject2 = responseVoid(paramParcel);
  3335. break;
  3336. localObject2 = responseVoid(paramParcel);
  3337. break;
  3338. localObject2 = responseInts(paramParcel);
  3339. break;
  3340. localObject2 = responseInts(paramParcel);
  3341. break;
  3342. localObject2 = responseInts(paramParcel);
  3343. break;
  3344. localObject2 = responseDataCallList(paramParcel);
  3345. break;
  3346. localObject2 = responseVoid(paramParcel);
  3347. break;
  3348. localObject2 = responseRaw(paramParcel);
  3349. break;
  3350. localObject2 = responseStrings(paramParcel);
  3351. break;
  3352. localObject2 = responseVoid(paramParcel);
  3353. break;
  3354. localObject2 = responseVoid(paramParcel);
  3355. break;
  3356. localObject2 = responseInts(paramParcel);
  3357. break;
  3358. localObject2 = responseVoid(paramParcel);
  3359. break;
  3360. localObject2 = responseVoid(paramParcel);
  3361. break;
  3362. localObject2 = responseInts(paramParcel);
  3363. break;
  3364. localObject2 = responseString(paramParcel);
  3365. break;
  3366. localObject2 = responseVoid(paramParcel);
  3367. break;
  3368. localObject2 = responseString(paramParcel);
  3369. break;
  3370. localObject2 = responseVoid(paramParcel);
  3371. break;
  3372. localObject2 = responseInts(paramParcel);
  3373. break;
  3374. localObject2 = responseVoid(paramParcel);
  3375. break;
  3376. localObject2 = responseVoid(paramParcel);
  3377. break;
  3378. localObject2 = responseGetPreferredNetworkType(paramParcel);
  3379. break;
  3380. localObject2 = responseCellList(paramParcel);
  3381. break;
  3382. localObject2 = responseVoid(paramParcel);
  3383. break;
  3384. localObject2 = responseVoid(paramParcel);
  3385. break;
  3386. localObject2 = responseVoid(paramParcel);
  3387. break;
  3388. localObject2 = responseInts(paramParcel);
  3389. break;
  3390. localObject2 = responseVoid(paramParcel);
  3391. break;
  3392. localObject2 = responseInts(paramParcel);
  3393. break;
  3394. localObject2 = responseVoid(paramParcel);
  3395. break;
  3396. localObject2 = responseInts(paramParcel);
  3397. break;
  3398. localObject2 = responseVoid(paramParcel);
  3399. break;
  3400. localObject2 = responseVoid(paramParcel);
  3401. break;
  3402. localObject2 = responseSMS(paramParcel);
  3403. break;
  3404. localObject2 = responseVoid(paramParcel);
  3405. break;
  3406. localObject2 = responseGmsBroadcastConfig(paramParcel);
  3407. break;
  3408. localObject2 = responseVoid(paramParcel);
  3409. break;
  3410. localObject2 = responseVoid(paramParcel);
  3411. break;
  3412. localObject2 = responseCdmaBroadcastConfig(paramParcel);
  3413. break;
  3414. localObject2 = responseVoid(paramParcel);
  3415. break;
  3416. localObject2 = responseVoid(paramParcel);
  3417. break;
  3418. localObject2 = responseVoid(paramParcel);
  3419. break;
  3420. localObject2 = responseStrings(paramParcel);
  3421. break;
  3422. localObject2 = responseInts(paramParcel);
  3423. break;
  3424. localObject2 = responseVoid(paramParcel);
  3425. break;
  3426. localObject2 = responseStrings(paramParcel);
  3427. break;
  3428. localObject2 = responseString(paramParcel);
  3429. break;
  3430. localObject2 = responseVoid(paramParcel);
  3431. break;
  3432. localObject2 = responseVoid(paramParcel);
  3433. break;
  3434. localObject2 = responseVoid(paramParcel);
  3435. break;
  3436. localObject2 = responseVoid(paramParcel);
  3437. break;
  3438. localObject2 = responseInts(paramParcel);
  3439. break;
  3440. localObject2 = responseString(paramParcel);
  3441. break;
  3442. localObject2 = responseVoid(paramParcel);
  3443. break;
  3444. localObject2 = responseICC_IO(paramParcel);
  3445. break;
  3446. localObject2 = responseInts(paramParcel);
  3447. break;
  3448. localObject2 = responseCellInfoList(paramParcel);
  3449. break;
  3450. localObject2 = responseVoid(paramParcel);
  3451. break;
  3452. localObject2 = responseVoid(paramParcel);
  3453. break;
  3454. localObject2 = responseVoid(paramParcel);
  3455. break;
  3456. localObject2 = responseInts(paramParcel);
  3457. break;
  3458. localObject2 = responseSMS(paramParcel);
  3459. break;
  3460. localObject2 = responseICC_IO(paramParcel);
  3461. break;
  3462. localObject2 = responseInts(paramParcel);
  3463. break;
  3464. localObject2 = responseVoid(paramParcel);
  3465. break;
  3466. localObject2 = responseICC_IO(paramParcel);
  3467. break;
  3468. localObject2 = responseString(paramParcel);
  3469. break;
  3470. localObject2 = responseVoid(paramParcel);
  3471. break;
  3472. localObject2 = responseVoid(paramParcel);
  3473. break;
  3474. localObject2 = responseVoid(paramParcel);
  3475. break;
  3476. localObject2 = responseVoid(paramParcel);
  3477. break;
  3478. localObject2 = responseVoid(paramParcel);
  3479. break;
  3480. localObject2 = responseHardwareConfig(paramParcel);
  3481. break;
  3482. localObject2 = responseICC_IO(paramParcel);
  3483. break;
  3484. localObject2 = responseVoid(paramParcel);
  3485. break;
  3486. localObject2 = responseVoid(paramParcel);
  3487. break;
  3488. localObject2 = responseVoid(paramParcel);
  3489. break;
  3490. localObject2 = responseInts(paramParcel);
  3491. break;
  3492. localObject2 = responseVoid(paramParcel);
  3493. break;
  3494. localObject2 = responseVoid(paramParcel);
  3495. break;
  3496. localObject2 = responseVoid(paramParcel);
  3497. break;
  3498. localObject2 = responseVoid(paramParcel);
  3499. break;
  3500. localObject2 = responseCbSettings(paramParcel);
  3501. break;
  3502. localObject2 = responseInts(paramParcel);
  3503. break;
  3504. localObject2 = responseSIM_PB(paramParcel);
  3505. break;
  3506. localObject2 = responseInts(paramParcel);
  3507. break;
  3508. localObject2 = responseInts(paramParcel);
  3509. break;
  3510. localObject2 = responseSIM_LockInfo(paramParcel);
  3511. break;
  3512. localObject2 = responseVoid(paramParcel);
  3513. break;
  3514. localObject2 = responseVoid(paramParcel);
  3515. break;
  3516. localObject2 = responsePreferredNetworkList(paramParcel);
  3517. break;
  3518. localObject2 = responseInts(paramParcel);
  3519. break;
  3520. localObject2 = responseInts(paramParcel);
  3521. break;
  3522. localObject2 = responseVoid(paramParcel);
  3523. break;
  3524. localObject2 = responseSMS(paramParcel);
  3525. break;
  3526. localObject2 = responseVoid(paramParcel);
  3527. break;
  3528. localObject2 = responseVoid(paramParcel);
  3529. break;
  3530. localObject2 = responseSimPowerDone(paramParcel);
  3531. break;
  3532. localObject2 = responseVoid(paramParcel);
  3533. break;
  3534. localObject2 = responseBootstrap(paramParcel);
  3535. break;
  3536. localObject2 = responseNaf(paramParcel);
  3537. break;
  3538. localObject2 = responseString(paramParcel);
  3539. break;
  3540. localObject2 = responseVoid(paramParcel);
  3541. break;
  3542. label3235:
  3543. if (this.mInstanceId.intValue() != 1) {
  3544. break label1560;
  3545. }
  3546. SystemProperties.set("ril.deviceOffRes2", "1");
  3547. break label1560;
  3548. if (this.mIccStatusChangedRegistrants == null) {
  3549. break label1592;
  3550. }
  3551. riljLog("ON enter sim puk fakeSimStatusChanged: reg count=" + this.mIccStatusChangedRegistrants.size());
  3552. this.mIccStatusChangedRegistrants.notifyRegistrants();
  3553. break label1592;
  3554. if (this.mIccStatusChangedRegistrants != null)
  3555. {
  3556. riljLog("ON some errors fakeSimStatusChanged: reg count=" + this.mIccStatusChangedRegistrants.size());
  3557. this.mIccStatusChangedRegistrants.notifyRegistrants();
  3558. }
  3559. }
  3560. if (("CTC".equals(str)) && (localRILRequest.mRequest == 73))
  3561. {
  3562. if ((this.mPreferredNetworkType >= 8) && (this.mPreferredNetworkType <= 12)) {
  3563. break label3507;
  3564. }
  3565. Settings.System.putInt(this.mContext.getContentResolver(), "lte_mode_switch", 0);
  3566. Rlog.d("RILJ", "Set LTE_MODE_SWITCH off");
  3567. }
  3568. for (;;)
  3569. {
  3570. riljLog(localRILRequest.serialString() + "< " + requestToString(localRILRequest.mRequest) + " " + retToString(localRILRequest.mRequest, localObject2));
  3571. paramParcel = localRILRequest;
  3572. if (localRILRequest.mResult == null) {
  3573. break;
  3574. }
  3575. AsyncResult.forMessage(localRILRequest.mResult, localObject2, null);
  3576. localRILRequest.mResult.sendToTarget();
  3577. return localRILRequest;
  3578. label3507:
  3579. Settings.System.putInt(this.mContext.getContentResolver(), "lte_mode_switch", 1);
  3580. Rlog.d("RILJ", "Set LTE_MODE_SWITCH on");
  3581. }
  3582. }
  3583. }
  3584.  
  3585. protected void processUnsolicited(Parcel paramParcel)
  3586. {
  3587. int i = paramParcel.readInt();
  3588. switch (i)
  3589. {
  3590. default:
  3591. try
  3592. {
  3593. throw new RuntimeException("Unrecognized unsol response: " + i);
  3594. }
  3595. catch (Throwable paramParcel)
  3596. {
  3597. Rlog.e("RILJ", "Exception processing unsol response: " + i + "Exception:" + paramParcel.toString());
  3598. }
  3599. }
  3600. for (;;)
  3601. {
  3602. return;
  3603. Object localObject1 = responseVoid(paramParcel);
  3604. for (;;)
  3605. {
  3606. switch (i)
  3607. {
  3608. default:
  3609. return;
  3610. case 1000:
  3611. paramParcel = getRadioStateFromInt(paramParcel.readInt());
  3612. unsljLogMore(i, paramParcel.toString());
  3613. switchToRadioState(paramParcel);
  3614. return;
  3615. localObject1 = responseVoid(paramParcel);
  3616. continue;
  3617. localObject1 = responseVoid(paramParcel);
  3618. continue;
  3619. localObject1 = responseString(paramParcel);
  3620. continue;
  3621. localObject1 = responseString(paramParcel);
  3622. continue;
  3623. localObject1 = responseInts(paramParcel);
  3624. continue;
  3625. localObject1 = responseStrings(paramParcel);
  3626. continue;
  3627. localObject1 = responseString(paramParcel);
  3628. continue;
  3629. localObject1 = responseSignalStrength(paramParcel);
  3630. continue;
  3631. localObject1 = responseDataCallList(paramParcel);
  3632. continue;
  3633. localObject1 = responseSuppServiceNotification(paramParcel);
  3634. continue;
  3635. localObject1 = responseVoid(paramParcel);
  3636. continue;
  3637. localObject1 = responseString(paramParcel);
  3638. continue;
  3639. localObject1 = responseString(paramParcel);
  3640. continue;
  3641. localObject1 = responseInts(paramParcel);
  3642. continue;
  3643. localObject1 = responseVoid(paramParcel);
  3644. continue;
  3645. localObject1 = responseSimRefresh(paramParcel);
  3646. continue;
  3647. localObject1 = responseCallRing(paramParcel);
  3648. continue;
  3649. localObject1 = responseInts(paramParcel);
  3650. continue;
  3651. localObject1 = responseVoid(paramParcel);
  3652. continue;
  3653. localObject1 = responseCdmaSms(paramParcel);
  3654. continue;
  3655. localObject1 = responseRaw(paramParcel);
  3656. continue;
  3657. localObject1 = responseVoid(paramParcel);
  3658. continue;
  3659. localObject1 = responseVoid(paramParcel);
  3660. continue;
  3661. localObject1 = responseCdmaCallWaiting(paramParcel);
  3662. continue;
  3663. localObject1 = responseInts(paramParcel);
  3664. continue;
  3665. localObject1 = responseCdmaInformationRecord(paramParcel);
  3666. continue;
  3667. localObject1 = responseRaw(paramParcel);
  3668. continue;
  3669. localObject1 = responseInts(paramParcel);
  3670. continue;
  3671. localObject1 = responseVoid(paramParcel);
  3672. continue;
  3673. localObject1 = responseInts(paramParcel);
  3674. continue;
  3675. localObject1 = responseInts(paramParcel);
  3676. continue;
  3677. localObject1 = responseVoid(paramParcel);
  3678. continue;
  3679. localObject1 = responseInts(paramParcel);
  3680. continue;
  3681. localObject1 = responseInts(paramParcel);
  3682. continue;
  3683. localObject1 = responseCellInfoList(paramParcel);
  3684. continue;
  3685. localObject1 = responseVoid(paramParcel);
  3686. continue;
  3687. localObject1 = responseInts(paramParcel);
  3688. continue;
  3689. localObject1 = responseInts(paramParcel);
  3690. continue;
  3691. localObject1 = responseHardwareConfig(paramParcel);
  3692. continue;
  3693. localObject1 = responseSSReleaseCompleteNotification(paramParcel);
  3694. continue;
  3695. localObject1 = responseInts(paramParcel);
  3696. continue;
  3697. localObject1 = responseString(paramParcel);
  3698. continue;
  3699. localObject1 = responseVoid(paramParcel);
  3700. continue;
  3701. localObject1 = responseVoid(paramParcel);
  3702. continue;
  3703. localObject1 = responseString(paramParcel);
  3704. continue;
  3705. localObject1 = responseRaw(paramParcel);
  3706. continue;
  3707. localObject1 = responseRaw(paramParcel);
  3708. continue;
  3709. localObject1 = responseVoid(paramParcel);
  3710. continue;
  3711. localObject1 = responseRaw(paramParcel);
  3712. continue;
  3713. localObject1 = responseInts(paramParcel);
  3714. continue;
  3715. localObject1 = responseCallModify(paramParcel);
  3716. continue;
  3717. localObject1 = responseInts(paramParcel);
  3718. continue;
  3719. localObject1 = responseInts(paramParcel);
  3720. continue;
  3721. localObject1 = responseVoid(paramParcel);
  3722. continue;
  3723. localObject1 = responseVoid(paramParcel);
  3724. continue;
  3725. localObject1 = responseVoid(paramParcel);
  3726. continue;
  3727. localObject1 = responseVoid(paramParcel);
  3728. continue;
  3729. localObject1 = responseInts(paramParcel);
  3730. continue;
  3731. localObject1 = responseSSData(paramParcel);
  3732. continue;
  3733. localObject1 = responseRaw(paramParcel);
  3734. continue;
  3735. localObject1 = responseStrings(paramParcel);
  3736. continue;
  3737. localObject1 = responseInts(paramParcel);
  3738. continue;
  3739. localObject1 = responseInts(paramParcel);
  3740. }
  3741. }
  3742. unsljLog(i);
  3743. this.mImsNetworkStateChangedRegistrants.notifyRegistrants(new AsyncResult(null, null, null));
  3744. return;
  3745. unsljLog(i);
  3746. this.mCallStateRegistrants.notifyRegistrants(new AsyncResult(null, null, null));
  3747. return;
  3748. unsljLog(i);
  3749. this.mVoiceNetworkStateRegistrants.notifyRegistrants(new AsyncResult(null, null, null));
  3750. return;
  3751. unsljLog(i);
  3752. paramParcel = new String[2];
  3753. paramParcel[1] = ((String)localObject1);
  3754. paramParcel = SmsMessage.newFromCMT(paramParcel);
  3755. if (this.mGsmSmsRegistrant == null) {
  3756. continue;
  3757. }
  3758. this.mGsmSmsRegistrant.notifyRegistrant(new AsyncResult(null, paramParcel, null));
  3759. return;
  3760. unsljLogRet(i, localObject1);
  3761. if (this.mSmsStatusRegistrant == null) {
  3762. continue;
  3763. }
  3764. this.mSmsStatusRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
  3765. return;
  3766. unsljLogRet(i, localObject1);
  3767. paramParcel = (int[])localObject1;
  3768. if (paramParcel.length == 1)
  3769. {
  3770. if (this.mSmsOnSimRegistrant == null) {
  3771. continue;
  3772. }
  3773. this.mSmsOnSimRegistrant.notifyRegistrant(new AsyncResult(null, paramParcel, null));
  3774. return;
  3775. }
  3776. riljLog(" NEW_SMS_ON_SIM ERROR with wrong length " + paramParcel.length);
  3777. return;
  3778. Object localObject2 = (String[])localObject1;
  3779. paramParcel = (Parcel)localObject2;
  3780. if (localObject2.length < 2)
  3781. {
  3782. paramParcel = new String[2];
  3783. paramParcel[0] = ((String[])(String[])localObject1)[0];
  3784. paramParcel[1] = null;
  3785. }
  3786. unsljLogMore(i, paramParcel[0]);
  3787. if (this.mUSSDRegistrant == null) {
  3788. continue;
  3789. }
  3790. this.mUSSDRegistrant.notifyRegistrant(new AsyncResult(null, paramParcel, null));
  3791. return;
  3792. unsljLogRet(i, localObject1);
  3793. long l = paramParcel.readLong();
  3794. paramParcel = new Object[2];
  3795. paramParcel[0] = localObject1;
  3796. paramParcel[1] = Long.valueOf(l);
  3797. if (SystemProperties.getBoolean("telephony.test.ignore.nitz", false))
  3798. {
  3799. riljLog("ignoring UNSOL_NITZ_TIME_RECEIVED");
  3800. return;
  3801. }
  3802. if (this.mNITZTimeRegistrant != null)
  3803. {
  3804. this.mNITZTimeRegistrant.notifyRegistrant(new AsyncResult(null, paramParcel, null));
  3805. return;
  3806. }
  3807. this.mLastNITZTimeInfo = paramParcel;
  3808. return;
  3809. if (this.mSignalStrengthRegistrant == null) {
  3810. continue;
  3811. }
  3812. this.mSignalStrengthRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
  3813. return;
  3814. unsljLogRet(i, localObject1);
  3815. this.mDataNetworkStateRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
  3816. return;
  3817. unsljLogRet(i, localObject1);
  3818. if (this.mSsnRegistrant == null) {
  3819. continue;
  3820. }
  3821. this.mSsnRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
  3822. return;
  3823. unsljLog(i);
  3824. if (this.mCatSessionEndRegistrant == null) {
  3825. continue;
  3826. }
  3827. this.mCatSessionEndRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
  3828. return;
  3829. unsljLog(i);
  3830. if (this.mCatProCmdRegistrant == null) {
  3831. continue;
  3832. }
  3833. this.mCatProCmdRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
  3834. return;
  3835. unsljLog(i);
  3836. if (this.mCatEventRegistrant == null) {
  3837. continue;
  3838. }
  3839. this.mCatEventRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
  3840. return;
  3841. unsljLogRet(i, localObject1);
  3842. if (this.mCatCallSetUpRegistrant == null) {
  3843. continue;
  3844. }
  3845. this.mCatCallSetUpRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
  3846. return;
  3847. unsljLog(i);
  3848. if (this.mIccSmsFullRegistrant == null) {
  3849. continue;
  3850. }
  3851. this.mIccSmsFullRegistrant.notifyRegistrant();
  3852. return;
  3853. unsljLogRet(i, localObject1);
  3854. if (this.mIccRefreshRegistrants == null) {
  3855. continue;
  3856. }
  3857. this.mIccRefreshRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
  3858. return;
  3859. unsljLogRet(i, localObject1);
  3860. if (this.mRingRegistrant == null) {
  3861. continue;
  3862. }
  3863. this.mRingRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
  3864. return;
  3865. unsljLogvRet(i, localObject1);
  3866. if (this.mRestrictedStateRegistrant == null) {
  3867. continue;
  3868. }
  3869. this.mRestrictedStateRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
  3870. return;
  3871. unsljLog(i);
  3872. if (this.mIccStatusChangedRegistrants == null) {
  3873. continue;
  3874. }
  3875. this.mIccStatusChangedRegistrants.notifyRegistrants();
  3876. return;
  3877. unsljLog(i);
  3878. paramParcel = (SmsMessage)localObject1;
  3879. if (this.mCdmaSmsRegistrant == null) {
  3880. continue;
  3881. }
  3882. this.mCdmaSmsRegistrant.notifyRegistrant(new AsyncResult(null, paramParcel, null));
  3883. return;
  3884. unsljLog(i);
  3885. if (this.mGsmBroadcastSmsRegistrant == null) {
  3886. continue;
  3887. }
  3888. this.mGsmBroadcastSmsRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
  3889. return;
  3890. unsljLog(i);
  3891. if (this.mIccSmsFullRegistrant == null) {
  3892. continue;
  3893. }
  3894. this.mIccSmsFullRegistrant.notifyRegistrant();
  3895. return;
  3896. unsljLog(i);
  3897. if (this.mEmergencyCallbackModeRegistrant == null) {
  3898. continue;
  3899. }
  3900. this.mEmergencyCallbackModeRegistrant.notifyRegistrant();
  3901. return;
  3902. unsljLogRet(i, localObject1);
  3903. if (this.mCallWaitingInfoRegistrants == null) {
  3904. continue;
  3905. }
  3906. this.mCallWaitingInfoRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
  3907. return;
  3908. unsljLogRet(i, localObject1);
  3909. if (this.mOtaProvisionRegistrants == null) {
  3910. continue;
  3911. }
  3912. this.mOtaProvisionRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
  3913. return;
  3914. try
  3915. {
  3916. paramParcel = (ArrayList)localObject1;
  3917. paramParcel = paramParcel.iterator();
  3918. while (paramParcel.hasNext())
  3919. {
  3920. localObject1 = (CdmaInformationRecords)paramParcel.next();
  3921. unsljLogRet(i, localObject1);
  3922. notifyRegistrantsCdmaInfoRec((CdmaInformationRecords)localObject1);
  3923. }
  3924. unsljLogvRet(i, IccUtils.bytesToHexString((byte[])localObject1));
  3925. }
  3926. catch (ClassCastException paramParcel)
  3927. {
  3928. Rlog.e("RILJ", "Unexpected exception casting to listInfoRecs", paramParcel);
  3929. return;
  3930. }
  3931. if (this.mUnsolOemHookRawRegistrant == null) {
  3932. continue;
  3933. }
  3934. this.mUnsolOemHookRawRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
  3935. return;
  3936. unsljLogvRet(i, localObject1);
  3937. if (this.mRingbackToneRegistrants == null) {
  3938. continue;
  3939. }
  3940. if (((int[])(int[])localObject1)[0] == 1) {}
  3941. for (boolean bool = true;; bool = false)
  3942. {
  3943. this.mRingbackToneRegistrants.notifyRegistrants(new AsyncResult(null, Boolean.valueOf(bool), null));
  3944. return;
  3945. }
  3946. unsljLogRet(i, localObject1);
  3947. if (this.mResendIncallMuteRegistrants == null) {
  3948. continue;
  3949. }
  3950. this.mResendIncallMuteRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
  3951. return;
  3952. unsljLogRet(i, localObject1);
  3953. if (this.mVoiceRadioTechChangedRegistrants == null) {
  3954. continue;
  3955. }
  3956. this.mVoiceRadioTechChangedRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
  3957. return;
  3958. unsljLogRet(i, localObject1);
  3959. if (this.mCdmaSubscriptionChangedRegistrants == null) {
  3960. continue;
  3961. }
  3962. this.mCdmaSubscriptionChangedRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
  3963. return;
  3964. unsljLogRet(i, localObject1);
  3965. if (this.mCdmaPrlChangedRegistrants == null) {
  3966. continue;
  3967. }
  3968. this.mCdmaPrlChangedRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
  3969. return;
  3970. unsljLogRet(i, localObject1);
  3971. if (this.mExitEmergencyCallbackModeRegistrants == null) {
  3972. continue;
  3973. }
  3974. this.mExitEmergencyCallbackModeRegistrants.notifyRegistrants(new AsyncResult(null, null, null));
  3975. return;
  3976. unsljLogRet(i, localObject1);
  3977. if ("DCGG".equals("")) {
  3978. Rlog.d("RILJ", "do not power off radio");
  3979. }
  3980. for (;;)
  3981. {
  3982. label3009:
  3983. if (!"DCGS".equals("")) {
  3984. setPreferredData();
  3985. }
  3986. setCellInfoListRate(Integer.MAX_VALUE, null);
  3987. notifyRegistrantsRilConnectionChanged(((int[])(int[])localObject1)[0]);
  3988. return;
  3989. if ((!"DGG".equals("")) || (this.mInstanceId.intValue() != 1)) {
  3990. break;
  3991. }
  3992. Rlog.d("RILJ", "do not power off radio");
  3993. }
  3994. if ("DCGGS".equals(""))
  3995. {
  3996. localObject2 = SystemProperties.get("ril.rildreset", "");
  3997. if ("8".equals(localObject2))
  3998. {
  3999. paramParcel = SystemProperties.get("ril.RildInit", "");
  4000. i = 1;
  4001. label3124:
  4002. if ((!"1".equals(paramParcel)) && (i < 8)) {
  4003. Rlog.d("RILJ", "Rild is not ready, reTry " + i + "times");
  4004. }
  4005. }
  4006. }
  4007. try
  4008. {
  4009. Thread.sleep(500L);
  4010. paramParcel = SystemProperties.get("ril.RildInit", "");
  4011. i += 1;
  4012. break label3124;
  4013. Rlog.d("RILJ", "[CGG] Notify ril connected event to CP!");
  4014. setSimPower(9, null);
  4015. if ((!"8".equals(localObject2)) && (!"9".equals(localObject2))) {
  4016. break label3009;
  4017. }
  4018. Rlog.d("RILJ", "[CGG] rildreset property value set as zero!");
  4019. SystemProperties.set("ril.rildreset", "0");
  4020. break label3009;
  4021. if ((TelephonyManager.getDefault().getPhoneCount() > 1) && (this.mInstanceId.intValue() == 1))
  4022. {
  4023. Rlog.d("RILJ", "Do not power off radio for slot2");
  4024. break label3009;
  4025. }
  4026. setRadioPower(false, null);
  4027. break label3009;
  4028. unsljLogRet(i, localObject1);
  4029. if (this.mRilCellInfoListRegistrants == null) {
  4030. continue;
  4031. }
  4032. this.mRilCellInfoListRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
  4033. return;
  4034. unsljLogRet(i, localObject1);
  4035. if (this.mSubscriptionStatusRegistrants == null) {
  4036. continue;
  4037. }
  4038. this.mSubscriptionStatusRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
  4039. return;
  4040. unsljLogRet(i, localObject1);
  4041. if (this.mSrvccStateRegistrants == null) {
  4042. continue;
  4043. }
  4044. this.mSrvccStateRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
  4045. return;
  4046. unsljLogRet(i, localObject1);
  4047. if (this.mHardwareConfigChangeRegistrants == null) {
  4048. continue;
  4049. }
  4050. this.mHardwareConfigChangeRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
  4051. return;
  4052. paramParcel = (String)localObject1;
  4053. Rlog.d("RILJ", "Executing Am " + paramParcel);
  4054. Am.main(paramParcel.split(" "));
  4055. return;
  4056. unsljLogvRet(i, localObject1);
  4057. if (this.mImsRegistrationStateChangedRegistrants == null) {
  4058. continue;
  4059. }
  4060. this.mImsRegistrationStateChangedRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
  4061. return;
  4062. unsljLogvRet(i, localObject1);
  4063. if (this.mModifyCallRegistrants == null) {
  4064. continue;
  4065. }
  4066. this.mModifyCallRegistrants.notifyRegistrants(new AsyncResult(null, localObject1, null));
  4067. return;
  4068. unsljLogRet(i, localObject1);
  4069. if (this.mCatSendSmsResultRegistrant == null) {
  4070. continue;
  4071. }
  4072. this.mCatSendSmsResultRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
  4073. return;
  4074. unsljLogRet(i, localObject1);
  4075. if (this.mCatCallControlResultRegistrant == null) {
  4076. continue;
  4077. }
  4078. this.mCatCallControlResultRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
  4079. return;
  4080. unsljLog(i);
  4081. if (this.mReleaseCompleteMessageRegistrant == null) {
  4082. continue;
  4083. }
  4084. this.mReleaseCompleteMessageRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
  4085. return;
  4086. unsljLogRet(i, localObject1);
  4087. if (this.mPbInitCompleteRegistrant == null) {
  4088. continue;
  4089. }
  4090. this.mPbInitCompleteRegistrant.notifyRegistrant(new AsyncResult(null, null, null));
  4091. return;
  4092. unsljLogRet(i, localObject1);
  4093. if (this.mSimPbReadyRegistrant == null) {
  4094. continue;
  4095. }
  4096. this.mSimPbReadyRegistrant.notifyRegistrant(new AsyncResult(null, null, null));
  4097. return;
  4098. unsljLogRet(i, localObject1);
  4099. if (this.mHysteresisDCNRegistant == null) {
  4100. continue;
  4101. }
  4102. this.mHysteresisDCNRegistant.notifyRegistrant(new AsyncResult(null, localObject1, null));
  4103. return;
  4104. unsljLog(i);
  4105. if (this.mSmsDeviceReadyRegistrant == null) {
  4106. continue;
  4107. }
  4108. this.mSmsDeviceReadyRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
  4109. return;
  4110. unsljLog(i);
  4111. if (this.mHomeNetworkRegistant == null) {
  4112. continue;
  4113. }
  4114. this.mHomeNetworkRegistant.notifyRegistrant();
  4115. return;
  4116. unsljLogRet(i, localObject1);
  4117. if (this.mCsFallbackRegistant == null) {
  4118. continue;
  4119. }
  4120. this.mCsFallbackRegistant.notifyRegistrant(new AsyncResult(null, localObject1, null));
  4121. return;
  4122. unsljLogvRet(i, localObject1);
  4123. if (this.mVoiceSystemIdRegistrant == null) {
  4124. continue;
  4125. }
  4126. this.mVoiceSystemIdRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
  4127. return;
  4128. unsljLogRet(i, localObject1);
  4129. if (this.mStkSetupCallStatus == null) {
  4130. continue;
  4131. }
  4132. this.mStkSetupCallStatus.notifyRegistrant(new AsyncResult(null, localObject1, null));
  4133. return;
  4134. unsljLogRet(i, localObject1);
  4135. if (this.mImsPrefNotiRegistrant == null) {
  4136. continue;
  4137. }
  4138. this.mImsPrefNotiRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
  4139. return;
  4140. unsljLogRet(i, localObject1);
  4141. if (this.mSSRegistrant == null) {
  4142. continue;
  4143. }
  4144. this.mSSRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
  4145. return;
  4146. unsljLogRet(i, localObject1);
  4147. Rlog.d("RILJ", "UNSOL_MODEM_CAPABILITY = mInstanceId" + this.mInstanceId);
  4148. notifyModemCap((byte[])localObject1, this.mInstanceId);
  4149. return;
  4150. unsljLogRet(i, localObject1);
  4151. if (this.mDunStateChangedRegistrant == null) {
  4152. continue;
  4153. }
  4154. return;
  4155. unsljLog(i);
  4156. Rlog.d("RILJ", "RIL_UNSOL_IMS_RETRYOVER");
  4157. if (this.mImsRegistrationRetryOver == null) {
  4158. continue;
  4159. }
  4160. this.mImsRegistrationRetryOver.notifyRegistrants(new AsyncResult(null, null, null));
  4161. return;
  4162. unsljLogRet(i, localObject1);
  4163. if (this.mSapRegistant == null) {
  4164. continue;
  4165. }
  4166. this.mSapRegistant.notifyRegistrant(new AsyncResult(null, localObject1, null));
  4167. return;
  4168. unsljLogRet(i, localObject1);
  4169. if (this.mIccAppRefreshRegistrant == null) {
  4170. continue;
  4171. }
  4172. this.mIccAppRefreshRegistrant.notifyRegistrant(new AsyncResult(null, localObject1, null));
  4173. return;
  4174. }
  4175. catch (InterruptedException paramParcel)
  4176. {
  4177. for (;;) {}
  4178. }
  4179. }
  4180. }
  4181.  
  4182. public void queryAvailableBandMode(Message paramMessage)
  4183. {
  4184. paramMessage = RILRequest.obtain(66, paramMessage);
  4185. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4186. send(paramMessage);
  4187. }
  4188.  
  4189. public void queryCLIP(Message paramMessage)
  4190. {
  4191. paramMessage = RILRequest.obtain(55, paramMessage);
  4192. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4193. send(paramMessage);
  4194. }
  4195.  
  4196. public void queryCallForwardStatus(int paramInt1, int paramInt2, String paramString, Message paramMessage)
  4197. {
  4198. paramMessage = RILRequest.obtain(33, paramMessage);
  4199. paramMessage.mParcel.writeInt(2);
  4200. paramMessage.mParcel.writeInt(paramInt1);
  4201. paramMessage.mParcel.writeInt(paramInt2);
  4202. paramMessage.mParcel.writeInt(PhoneNumberUtils.toaFromString(paramString));
  4203. paramMessage.mParcel.writeString(paramString);
  4204. paramMessage.mParcel.writeInt(0);
  4205. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt1 + " " + paramInt2);
  4206. send(paramMessage);
  4207. }
  4208.  
  4209. public void queryCallWaiting(int paramInt, Message paramMessage)
  4210. {
  4211. paramMessage = RILRequest.obtain(35, paramMessage);
  4212. paramMessage.mParcel.writeInt(1);
  4213. paramMessage.mParcel.writeInt(paramInt);
  4214. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt);
  4215. send(paramMessage);
  4216. }
  4217.  
  4218. public void queryCdmaRoamingPreference(Message paramMessage)
  4219. {
  4220. paramMessage = RILRequest.obtain(79, paramMessage);
  4221. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4222. send(paramMessage);
  4223. }
  4224.  
  4225. public void queryFacilityLock(String paramString1, String paramString2, int paramInt, Message paramMessage)
  4226. {
  4227. queryFacilityLockForApp(paramString1, paramString2, paramInt, null, paramMessage);
  4228. }
  4229.  
  4230. public void queryFacilityLockForApp(String paramString1, String paramString2, int paramInt, String paramString3, Message paramMessage)
  4231. {
  4232. RILRequest localRILRequest = RILRequest.obtain(42, paramMessage);
  4233. String str = localRILRequest.serialString() + "> " + requestToString(localRILRequest.mRequest);
  4234. paramMessage = str;
  4235. if (!SHIP_BUILD) {
  4236. paramMessage = str + " [" + paramString1 + " " + paramInt + " " + paramString3 + "]";
  4237. }
  4238. riljLog(paramMessage);
  4239. localRILRequest.mParcel.writeInt(4);
  4240. localRILRequest.mParcel.writeString(paramString1);
  4241. localRILRequest.mParcel.writeString(paramString2);
  4242. localRILRequest.mParcel.writeString(Integer.toString(paramInt));
  4243. localRILRequest.mParcel.writeString(paramString3);
  4244. send(localRILRequest);
  4245. }
  4246.  
  4247. public void queryTTYMode(Message paramMessage)
  4248. {
  4249. paramMessage = RILRequest.obtain(81, paramMessage);
  4250. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4251. send(paramMessage);
  4252. }
  4253.  
  4254. public void rejectCall(Message paramMessage)
  4255. {
  4256. paramMessage = RILRequest.obtain(17, paramMessage);
  4257. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4258. send(paramMessage);
  4259. }
  4260.  
  4261. public void reportSmsMemoryStatus(boolean paramBoolean, Message paramMessage)
  4262. {
  4263. int i = 1;
  4264. paramMessage = RILRequest.obtain(102, paramMessage);
  4265. paramMessage.mParcel.writeInt(1);
  4266. Parcel localParcel = paramMessage.mParcel;
  4267. if (paramBoolean) {}
  4268. for (;;)
  4269. {
  4270. localParcel.writeInt(i);
  4271. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + ": " + paramBoolean);
  4272. send(paramMessage);
  4273. return;
  4274. i = 0;
  4275. }
  4276. }
  4277.  
  4278. public void reportStkServiceIsRunning(Message paramMessage)
  4279. {
  4280. paramMessage = RILRequest.obtain(103, paramMessage);
  4281. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4282. send(paramMessage);
  4283. }
  4284.  
  4285. public void requestIccSimAuthentication(int paramInt, String paramString1, String paramString2, Message paramMessage)
  4286. {
  4287. paramMessage = RILRequest.obtain(125, paramMessage);
  4288. paramMessage.mParcel.writeInt(paramInt);
  4289. paramMessage.mParcel.writeString(paramString1);
  4290. paramMessage.mParcel.writeString(paramString2);
  4291. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4292. send(paramMessage);
  4293. }
  4294.  
  4295. public void requestIsimAuthentication(String paramString, Message paramMessage)
  4296. {
  4297. paramMessage = RILRequest.obtain(105, paramMessage);
  4298. paramMessage.mParcel.writeString(paramString);
  4299. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4300. send(paramMessage);
  4301. }
  4302.  
  4303. public void requestShutdown(Message paramMessage)
  4304. {
  4305. paramMessage = RILRequest.obtain(129, paramMessage);
  4306. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4307. send(paramMessage);
  4308. }
  4309.  
  4310. public void resetRadio(Message paramMessage)
  4311. {
  4312. paramMessage = RILRequest.obtain(58, paramMessage);
  4313. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4314. send(paramMessage);
  4315. }
  4316.  
  4317. protected Object responseCallList(Parcel paramParcel)
  4318. {
  4319. int j = paramParcel.readInt();
  4320. ArrayList localArrayList = new ArrayList(j);
  4321. int i = 0;
  4322. if (i < j)
  4323. {
  4324. DriverCall localDriverCall = new DriverCall();
  4325. localDriverCall.state = DriverCall.stateFromCLCC(paramParcel.readInt());
  4326. localDriverCall.index = paramParcel.readInt();
  4327. localDriverCall.id = (localDriverCall.index >> 8 & 0xFF);
  4328. localDriverCall.index &= 0xFF;
  4329. localDriverCall.TOA = paramParcel.readInt();
  4330. boolean bool;
  4331. if (paramParcel.readInt() != 0)
  4332. {
  4333. bool = true;
  4334. label102:
  4335. localDriverCall.isMpty = bool;
  4336. if (paramParcel.readInt() == 0) {
  4337. break label594;
  4338. }
  4339. bool = true;
  4340. label119:
  4341. localDriverCall.isMT = bool;
  4342. localDriverCall.als = paramParcel.readInt();
  4343. if (paramParcel.readInt() != 0) {
  4344. break label600;
  4345. }
  4346. bool = false;
  4347. label145:
  4348. localDriverCall.isVoice = bool;
  4349. int k = paramParcel.readInt();
  4350. int m = paramParcel.readInt();
  4351. Object localObject = paramParcel.readString();
  4352. localDriverCall.callDetails = new CallDetails(k, m, null);
  4353. localDriverCall.callDetails.setExtrasFromCsv((String)localObject);
  4354. Rlog.d("RILJ", "dc.index " + localDriverCall.index + " dc.id " + localDriverCall.id + " dc.callDetails " + localDriverCall.callDetails);
  4355. if (paramParcel.readInt() == 0) {
  4356. break label606;
  4357. }
  4358. bool = true;
  4359. label265:
  4360. localDriverCall.isVoicePrivacy = bool;
  4361. localDriverCall.number = paramParcel.readString();
  4362. localDriverCall.numberPresentation = DriverCall.presentationFromCLIP(paramParcel.readInt());
  4363. localDriverCall.name = paramParcel.readString();
  4364. Rlog.d("RILJ", "responseCallList dc.name" + localDriverCall.name);
  4365. localDriverCall.namePresentation = DriverCall.presentationFromCLIP(paramParcel.readInt());
  4366. if (paramParcel.readInt() != 1) {
  4367. break label612;
  4368. }
  4369. localDriverCall.uusInfo = new UUSInfo();
  4370. localDriverCall.uusInfo.setType(paramParcel.readInt());
  4371. localDriverCall.uusInfo.setDcs(paramParcel.readInt());
  4372. localObject = paramParcel.createByteArray();
  4373. localDriverCall.uusInfo.setUserData((byte[])localObject);
  4374. 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) }));
  4375. riljLogv("Incoming UUS : data (string)=" + new String(localDriverCall.uusInfo.getUserData()));
  4376. riljLogv("Incoming UUS : data (hex): " + IccUtils.bytesToHexString(localDriverCall.uusInfo.getUserData()));
  4377. label533:
  4378. localDriverCall.number = PhoneNumberUtils.stringFromStringAndTOA(localDriverCall.number, localDriverCall.TOA);
  4379. localArrayList.add(localDriverCall);
  4380. if (!localDriverCall.isVoicePrivacy) {
  4381. break label622;
  4382. }
  4383. this.mVoicePrivacyOnRegistrants.notifyRegistrants();
  4384. riljLog("InCall VoicePrivacy is enabled");
  4385. }
  4386. for (;;)
  4387. {
  4388. i += 1;
  4389. break;
  4390. bool = false;
  4391. break label102;
  4392. label594:
  4393. bool = false;
  4394. break label119;
  4395. label600:
  4396. bool = true;
  4397. break label145;
  4398. label606:
  4399. bool = false;
  4400. break label265;
  4401. label612:
  4402. riljLogv("Incoming UUS : NOT present!");
  4403. break label533;
  4404. label622:
  4405. this.mVoicePrivacyOffRegistrants.notifyRegistrants();
  4406. riljLog("InCall VoicePrivacy is disabled");
  4407. }
  4408. }
  4409. Collections.sort(localArrayList);
  4410. if ((j == 0) && (this.mTestingEmergencyCall.getAndSet(false)) && (this.mEmergencyCallbackModeRegistrant != null))
  4411. {
  4412. riljLog("responseCallList: call ended, testing emergency call, notify ECM Registrants");
  4413. this.mEmergencyCallbackModeRegistrant.notifyRegistrant();
  4414. }
  4415. return localArrayList;
  4416. }
  4417.  
  4418. protected Object responseCdmaCallWaiting(Parcel paramParcel)
  4419. {
  4420. CdmaCallWaitingNotification localCdmaCallWaitingNotification = new CdmaCallWaitingNotification();
  4421. localCdmaCallWaitingNotification.number = paramParcel.readString();
  4422. localCdmaCallWaitingNotification.numberPresentation = CdmaCallWaitingNotification.presentationFromCLIP(paramParcel.readInt());
  4423. localCdmaCallWaitingNotification.name = paramParcel.readString();
  4424. localCdmaCallWaitingNotification.namePresentation = localCdmaCallWaitingNotification.numberPresentation;
  4425. localCdmaCallWaitingNotification.isPresent = paramParcel.readInt();
  4426. localCdmaCallWaitingNotification.signalType = paramParcel.readInt();
  4427. localCdmaCallWaitingNotification.alertPitch = paramParcel.readInt();
  4428. localCdmaCallWaitingNotification.signal = paramParcel.readInt();
  4429. localCdmaCallWaitingNotification.numberType = paramParcel.readInt();
  4430. localCdmaCallWaitingNotification.numberPlan = paramParcel.readInt();
  4431. return localCdmaCallWaitingNotification;
  4432. }
  4433.  
  4434. protected Object responseSetupDataCall(Parcel paramParcel)
  4435. {
  4436. int i = paramParcel.readInt();
  4437. int j = paramParcel.readInt();
  4438. if (i < 5)
  4439. {
  4440. DataCallResponse localDataCallResponse = new DataCallResponse();
  4441. localDataCallResponse.version = i;
  4442. localDataCallResponse.cid = Integer.parseInt(paramParcel.readString());
  4443. localDataCallResponse.ifname = paramParcel.readString();
  4444. if (TextUtils.isEmpty(localDataCallResponse.ifname)) {
  4445. throw new RuntimeException("RIL_REQUEST_SETUP_DATA_CALL response, no ifname");
  4446. }
  4447. String str = paramParcel.readString();
  4448. if (!TextUtils.isEmpty(str)) {
  4449. localDataCallResponse.addresses = str.split(" ");
  4450. }
  4451. if (j >= 4)
  4452. {
  4453. str = paramParcel.readString();
  4454. riljLog("responseSetupDataCall got dnses=" + str);
  4455. if (!TextUtils.isEmpty(str)) {
  4456. localDataCallResponse.dnses = str.split(" ");
  4457. }
  4458. }
  4459. if (j >= 5)
  4460. {
  4461. str = paramParcel.readString();
  4462. riljLog("responseSetupDataCall got gateways=" + str);
  4463. if (!TextUtils.isEmpty(str)) {
  4464. localDataCallResponse.gateways = str.split(" ");
  4465. }
  4466. }
  4467. if (j >= 6)
  4468. {
  4469. paramParcel = paramParcel.readString();
  4470. riljLog("responseSetupDataCall got pcscf=" + paramParcel);
  4471. if (!TextUtils.isEmpty(paramParcel)) {
  4472. localDataCallResponse.pcscf = paramParcel.split(" ");
  4473. }
  4474. }
  4475. return localDataCallResponse;
  4476. }
  4477. if (j != 1) {
  4478. throw new RuntimeException("RIL_REQUEST_SETUP_DATA_CALL response expecting 1 RIL_Data_Call_response_v5 got " + j);
  4479. }
  4480. return getDataCallResponse(paramParcel, i);
  4481. }
  4482.  
  4483. protected void send(RILRequest paramRILRequest)
  4484. {
  4485. if (this.mSocket == null)
  4486. {
  4487. paramRILRequest.onError(1, null);
  4488. paramRILRequest.release();
  4489. return;
  4490. }
  4491. paramRILRequest = this.mSender.obtainMessage(1, paramRILRequest);
  4492. acquireWakeLock();
  4493. paramRILRequest.sendToTarget();
  4494. }
  4495.  
  4496. public void sendBurstDtmf(String paramString, int paramInt1, int paramInt2, Message paramMessage)
  4497. {
  4498. paramMessage = RILRequest.obtain(85, paramMessage);
  4499. paramMessage.mParcel.writeInt(3);
  4500. paramMessage.mParcel.writeString(paramString);
  4501. paramMessage.mParcel.writeString(Integer.toString(paramInt1));
  4502. paramMessage.mParcel.writeString(Integer.toString(paramInt2));
  4503. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " : " + paramString);
  4504. send(paramMessage);
  4505. }
  4506.  
  4507. public void sendCDMAFeatureCode(String paramString, Message paramMessage)
  4508. {
  4509. paramMessage = RILRequest.obtain(84, paramMessage);
  4510. paramMessage.mParcel.writeString(paramString);
  4511. if (SHIP_BUILD)
  4512. {
  4513. if ((paramString == null) || (TextUtils.isEmpty(paramString))) {
  4514. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4515. }
  4516. for (;;)
  4517. {
  4518. send(paramMessage);
  4519. return;
  4520. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " : ...(" + paramString.length() + ")");
  4521. }
  4522. }
  4523. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " : " + paramString);
  4524. send(paramMessage);
  4525. }
  4526.  
  4527. public void sendCdmaSms(byte[] paramArrayOfByte, Message paramMessage)
  4528. {
  4529. paramMessage = RILRequest.obtain(87, paramMessage);
  4530. constructCdmaSendSmsRilRequest(paramMessage, paramArrayOfByte);
  4531. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4532. send(paramMessage);
  4533. }
  4534.  
  4535. public void sendCdmaSmsMore(byte[] paramArrayOfByte, Message paramMessage)
  4536. {
  4537. paramMessage = RILRequest.obtain(10020, paramMessage);
  4538. constructCdmaSendSmsRilRequest(paramMessage, paramArrayOfByte);
  4539. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4540. send(paramMessage);
  4541. }
  4542.  
  4543. public void sendDtmf(char paramChar, Message paramMessage)
  4544. {
  4545. paramMessage = RILRequest.obtain(24, paramMessage);
  4546. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4547. paramMessage.mParcel.writeString(Character.toString(paramChar));
  4548. send(paramMessage);
  4549. }
  4550.  
  4551. public void sendEncodedUSSD(byte[] paramArrayOfByte, int paramInt1, int paramInt2, Message paramMessage)
  4552. {
  4553. paramMessage = RILRequest.obtain(10019, paramMessage);
  4554. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + IccUtils.bytesToHexString(paramArrayOfByte) + ", DCS : " + paramInt2);
  4555. paramMessage.mParcel.writeByteArray(paramArrayOfByte);
  4556. paramMessage.mParcel.writeInt(paramInt1);
  4557. paramMessage.mParcel.writeInt(paramInt2);
  4558. send(paramMessage);
  4559. }
  4560.  
  4561. public void sendEnvelope(String paramString, Message paramMessage)
  4562. {
  4563. paramMessage = RILRequest.obtain(69, paramMessage);
  4564. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4565. paramMessage.mParcel.writeString(paramString);
  4566. send(paramMessage);
  4567. }
  4568.  
  4569. public void sendEnvelopeWithStatus(String paramString, Message paramMessage)
  4570. {
  4571. paramMessage = RILRequest.obtain(107, paramMessage);
  4572. if (SHIP_BUILD) {
  4573. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4574. }
  4575. for (;;)
  4576. {
  4577. paramMessage.mParcel.writeString(paramString);
  4578. send(paramMessage);
  4579. return;
  4580. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + '[' + paramString + ']');
  4581. }
  4582. }
  4583.  
  4584. public void sendImsCdmaSms(byte[] paramArrayOfByte, int paramInt1, int paramInt2, Message paramMessage)
  4585. {
  4586. paramMessage = RILRequest.obtain(113, paramMessage);
  4587. paramMessage.mParcel.writeInt(2);
  4588. paramMessage.mParcel.writeByte((byte)paramInt1);
  4589. paramMessage.mParcel.writeInt(paramInt2);
  4590. constructCdmaSendSmsRilRequest(paramMessage, paramArrayOfByte);
  4591. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4592. send(paramMessage);
  4593. }
  4594.  
  4595. public void sendImsGsmSms(String paramString1, String paramString2, int paramInt1, int paramInt2, Message paramMessage)
  4596. {
  4597. paramMessage = RILRequest.obtain(113, paramMessage);
  4598. paramMessage.mParcel.writeInt(1);
  4599. paramMessage.mParcel.writeByte((byte)paramInt1);
  4600. paramMessage.mParcel.writeInt(paramInt2);
  4601. constructGsmSendSmsRilRequest(paramMessage, paramString1, paramString2);
  4602. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4603. send(paramMessage);
  4604. }
  4605.  
  4606. public void sendSMS(String paramString1, String paramString2, Message paramMessage)
  4607. {
  4608. paramMessage = RILRequest.obtain(25, paramMessage);
  4609. constructGsmSendSmsRilRequest(paramMessage, paramString1, paramString2);
  4610. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4611. send(paramMessage);
  4612. }
  4613.  
  4614. public void sendSMSExpectMore(String paramString1, String paramString2, Message paramMessage)
  4615. {
  4616. paramMessage = RILRequest.obtain(26, paramMessage);
  4617. constructGsmSendSmsRilRequest(paramMessage, paramString1, paramString2);
  4618. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4619. send(paramMessage);
  4620. }
  4621.  
  4622. public void sendSMSmore(String paramString1, String paramString2, Message paramMessage)
  4623. {
  4624. paramMessage = RILRequest.obtain(26, paramMessage);
  4625. Rlog.d("RILJ", "smscPDU: " + paramString1);
  4626. Rlog.d("RILJ", "pdu: " + paramString2);
  4627. constructGsmSendSmsRilRequest(paramMessage, paramString1, paramString2);
  4628. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4629. send(paramMessage);
  4630. }
  4631.  
  4632. public void sendTerminalResponse(String paramString, Message paramMessage)
  4633. {
  4634. paramMessage = RILRequest.obtain(70, paramMessage);
  4635. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4636. paramMessage.mParcel.writeString(paramString);
  4637. send(paramMessage);
  4638. }
  4639.  
  4640. public void sendUSSD(String paramString, Message paramMessage)
  4641. {
  4642. paramMessage = RILRequest.obtain(29, paramMessage);
  4643. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + "*******");
  4644. paramMessage.mParcel.writeString(paramString);
  4645. send(paramMessage);
  4646. }
  4647.  
  4648. public void separateConnection(int paramInt, Message paramMessage)
  4649. {
  4650. paramMessage = RILRequest.obtain(52, paramMessage);
  4651. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt);
  4652. paramMessage.mParcel.writeInt(1);
  4653. paramMessage.mParcel.writeInt(paramInt);
  4654. send(paramMessage);
  4655. }
  4656.  
  4657. public void setBandMode(int paramInt, Message paramMessage)
  4658. {
  4659. paramMessage = RILRequest.obtain(65, paramMessage);
  4660. paramMessage.mParcel.writeInt(1);
  4661. paramMessage.mParcel.writeInt(paramInt);
  4662. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt);
  4663. send(paramMessage);
  4664. }
  4665.  
  4666. public void setCLIR(int paramInt, Message paramMessage)
  4667. {
  4668. paramMessage = RILRequest.obtain(32, paramMessage);
  4669. paramMessage.mParcel.writeInt(1);
  4670. paramMessage.mParcel.writeInt(paramInt);
  4671. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt);
  4672. send(paramMessage);
  4673. }
  4674.  
  4675. public void setCallForward(int paramInt1, int paramInt2, int paramInt3, String paramString, int paramInt4, Message paramMessage)
  4676. {
  4677. paramMessage = RILRequest.obtain(34, paramMessage);
  4678. paramMessage.mParcel.writeInt(paramInt1);
  4679. paramMessage.mParcel.writeInt(paramInt2);
  4680. paramMessage.mParcel.writeInt(paramInt3);
  4681. paramMessage.mParcel.writeInt(PhoneNumberUtils.toaFromString(paramString));
  4682. paramMessage.mParcel.writeString(paramString);
  4683. paramMessage.mParcel.writeInt(paramInt4);
  4684. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt1 + " " + paramInt2 + " " + paramInt3 + " " + paramInt4);
  4685. send(paramMessage);
  4686. }
  4687.  
  4688. public void setCallWaiting(boolean paramBoolean, int paramInt, Message paramMessage)
  4689. {
  4690. paramMessage = RILRequest.obtain(36, paramMessage);
  4691. paramMessage.mParcel.writeInt(2);
  4692. Parcel localParcel = paramMessage.mParcel;
  4693. if (paramBoolean) {}
  4694. for (int i = 1;; i = 0)
  4695. {
  4696. localParcel.writeInt(i);
  4697. paramMessage.mParcel.writeInt(paramInt);
  4698. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramBoolean + ", " + paramInt);
  4699. send(paramMessage);
  4700. return;
  4701. }
  4702. }
  4703.  
  4704. public void setCdmaBroadcastActivation(boolean paramBoolean, Message paramMessage)
  4705. {
  4706. int i = 1;
  4707. paramMessage = RILRequest.obtain(94, paramMessage);
  4708. paramMessage.mParcel.writeInt(1);
  4709. Parcel localParcel = paramMessage.mParcel;
  4710. if (paramBoolean) {
  4711. i = 0;
  4712. }
  4713. localParcel.writeInt(i);
  4714. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4715. send(paramMessage);
  4716. }
  4717.  
  4718. public void setCdmaBroadcastConfig(CdmaSmsBroadcastConfigInfo[] paramArrayOfCdmaSmsBroadcastConfigInfo, Message paramMessage)
  4719. {
  4720. paramMessage = RILRequest.obtain(93, paramMessage);
  4721. Object localObject = new ArrayList();
  4722. int k = paramArrayOfCdmaSmsBroadcastConfigInfo.length;
  4723. int i = 0;
  4724. int j;
  4725. while (i < k)
  4726. {
  4727. CdmaSmsBroadcastConfigInfo localCdmaSmsBroadcastConfigInfo = paramArrayOfCdmaSmsBroadcastConfigInfo[i];
  4728. j = localCdmaSmsBroadcastConfigInfo.getFromServiceCategory();
  4729. while (j <= localCdmaSmsBroadcastConfigInfo.getToServiceCategory())
  4730. {
  4731. ((ArrayList)localObject).add(new CdmaSmsBroadcastConfigInfo(j, j, localCdmaSmsBroadcastConfigInfo.getLanguage(), localCdmaSmsBroadcastConfigInfo.isSelected()));
  4732. j += 1;
  4733. }
  4734. i += 1;
  4735. }
  4736. paramArrayOfCdmaSmsBroadcastConfigInfo = (CdmaSmsBroadcastConfigInfo[])((ArrayList)localObject).toArray(paramArrayOfCdmaSmsBroadcastConfigInfo);
  4737. paramMessage.mParcel.writeInt(paramArrayOfCdmaSmsBroadcastConfigInfo.length);
  4738. i = 0;
  4739. if (i < paramArrayOfCdmaSmsBroadcastConfigInfo.length)
  4740. {
  4741. paramMessage.mParcel.writeInt(paramArrayOfCdmaSmsBroadcastConfigInfo[i].getFromServiceCategory());
  4742. paramMessage.mParcel.writeInt(paramArrayOfCdmaSmsBroadcastConfigInfo[i].getLanguage());
  4743. localObject = paramMessage.mParcel;
  4744. if (paramArrayOfCdmaSmsBroadcastConfigInfo[i].isSelected()) {}
  4745. for (j = 1;; j = 0)
  4746. {
  4747. ((Parcel)localObject).writeInt(j);
  4748. i += 1;
  4749. break;
  4750. }
  4751. }
  4752. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " with " + paramArrayOfCdmaSmsBroadcastConfigInfo.length + " configs : ");
  4753. send(paramMessage);
  4754. }
  4755.  
  4756. public void setCdmaRoamingPreference(int paramInt, Message paramMessage)
  4757. {
  4758. paramMessage = RILRequest.obtain(78, paramMessage);
  4759. paramMessage.mParcel.writeInt(1);
  4760. paramMessage.mParcel.writeInt(paramInt);
  4761. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " : " + paramInt);
  4762. send(paramMessage);
  4763. }
  4764.  
  4765. public void setCdmaSubscriptionSource(int paramInt, Message paramMessage)
  4766. {
  4767. paramMessage = RILRequest.obtain(77, paramMessage);
  4768. paramMessage.mParcel.writeInt(1);
  4769. paramMessage.mParcel.writeInt(paramInt);
  4770. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " : " + paramInt);
  4771. send(paramMessage);
  4772. }
  4773.  
  4774. public void setCellInfoListRate(int paramInt, Message paramMessage)
  4775. {
  4776. riljLog("setCellInfoListRate: " + paramInt);
  4777. paramMessage = RILRequest.obtain(110, paramMessage);
  4778. paramMessage.mParcel.writeInt(1);
  4779. paramMessage.mParcel.writeInt(paramInt);
  4780. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4781. send(paramMessage);
  4782. }
  4783.  
  4784. public void setDataAllowed(boolean paramBoolean, Message paramMessage)
  4785. {
  4786. int i = 1;
  4787. paramMessage = RILRequest.obtain(123, paramMessage);
  4788. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4789. paramMessage.mParcel.writeInt(1);
  4790. Parcel localParcel = paramMessage.mParcel;
  4791. if (paramBoolean) {}
  4792. for (;;)
  4793. {
  4794. localParcel.writeInt(i);
  4795. send(paramMessage);
  4796. return;
  4797. i = 0;
  4798. }
  4799. }
  4800.  
  4801. public void setDataProfile(DataProfile[] paramArrayOfDataProfile, Message paramMessage)
  4802. {
  4803. riljLog("Set RIL_REQUEST_SET_DATA_PROFILE");
  4804. paramMessage = RILRequest.obtain(128, null);
  4805. DataProfile.toParcel(paramMessage.mParcel, paramArrayOfDataProfile);
  4806. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " with " + paramArrayOfDataProfile + " Data Profiles : ");
  4807. int i = 0;
  4808. while (i < paramArrayOfDataProfile.length)
  4809. {
  4810. riljLog(paramArrayOfDataProfile[i].toString());
  4811. i += 1;
  4812. }
  4813. send(paramMessage);
  4814. }
  4815.  
  4816. public void setFacilityLock(String paramString1, boolean paramBoolean, String paramString2, int paramInt, Message paramMessage)
  4817. {
  4818. setFacilityLockForApp(paramString1, paramBoolean, paramString2, paramInt, null, paramMessage);
  4819. }
  4820.  
  4821. public void setFacilityLockForApp(String paramString1, boolean paramBoolean, String paramString2, int paramInt, String paramString3, Message paramMessage)
  4822. {
  4823. RILRequest localRILRequest = RILRequest.obtain(43, paramMessage);
  4824. String str = localRILRequest.serialString() + "> " + requestToString(localRILRequest.mRequest) + " [" + paramString1 + " " + paramBoolean + " " + paramInt + " ";
  4825. paramMessage = str;
  4826. if (!SHIP_BUILD) {
  4827. paramMessage = str + paramString3;
  4828. }
  4829. riljLog(paramMessage + "]");
  4830. localRILRequest.mParcel.writeInt(5);
  4831. localRILRequest.mParcel.writeString(paramString1);
  4832. if (paramBoolean) {}
  4833. for (paramString1 = "1";; paramString1 = "0")
  4834. {
  4835. localRILRequest.mParcel.writeString(paramString1);
  4836. localRILRequest.mParcel.writeString(paramString2);
  4837. localRILRequest.mParcel.writeString(Integer.toString(paramInt));
  4838. localRILRequest.mParcel.writeString(paramString3);
  4839. send(localRILRequest);
  4840. return;
  4841. }
  4842. }
  4843.  
  4844. public void setGsmBroadcastActivation(boolean paramBoolean, Message paramMessage)
  4845. {
  4846. int i = 1;
  4847. paramMessage = RILRequest.obtain(91, paramMessage);
  4848. paramMessage.mParcel.writeInt(1);
  4849. Parcel localParcel = paramMessage.mParcel;
  4850. if (paramBoolean) {
  4851. i = 0;
  4852. }
  4853. localParcel.writeInt(i);
  4854. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4855. send(paramMessage);
  4856. }
  4857.  
  4858. public void setGsmBroadcastConfig(SmsBroadcastConfigInfo[] paramArrayOfSmsBroadcastConfigInfo, Message paramMessage)
  4859. {
  4860. paramMessage = RILRequest.obtain(90, paramMessage);
  4861. int k = paramArrayOfSmsBroadcastConfigInfo.length;
  4862. paramMessage.mParcel.writeInt(k);
  4863. int i = 0;
  4864. if (i < k)
  4865. {
  4866. paramMessage.mParcel.writeInt(paramArrayOfSmsBroadcastConfigInfo[i].getFromServiceId());
  4867. paramMessage.mParcel.writeInt(paramArrayOfSmsBroadcastConfigInfo[i].getToServiceId());
  4868. paramMessage.mParcel.writeInt(paramArrayOfSmsBroadcastConfigInfo[i].getFromCodeScheme());
  4869. paramMessage.mParcel.writeInt(paramArrayOfSmsBroadcastConfigInfo[i].getToCodeScheme());
  4870. Parcel localParcel = paramMessage.mParcel;
  4871. if (paramArrayOfSmsBroadcastConfigInfo[i].isSelected()) {}
  4872. for (int j = 1;; j = 0)
  4873. {
  4874. localParcel.writeInt(j);
  4875. i += 1;
  4876. break;
  4877. }
  4878. }
  4879. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " with " + k + " configs : ");
  4880. i = 0;
  4881. while (i < k)
  4882. {
  4883. riljLog(paramArrayOfSmsBroadcastConfigInfo[i].toString());
  4884. i += 1;
  4885. }
  4886. send(paramMessage);
  4887. }
  4888.  
  4889. public void setICBarring(String paramString1, int paramInt1, String paramString2, int paramInt2, Message paramMessage)
  4890. {
  4891. paramMessage = RILRequest.obtain(10028, paramMessage);
  4892. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " [" + paramString1 + " " + paramInt1 + " " + paramInt2 + " ]");
  4893. paramMessage.mParcel.writeInt(5);
  4894. paramMessage.mParcel.writeString(paramString1);
  4895. if (paramInt1 == 0) {
  4896. paramString1 = "0";
  4897. }
  4898. for (;;)
  4899. {
  4900. paramMessage.mParcel.writeString(paramString1);
  4901. paramMessage.mParcel.writeString(paramString2);
  4902. paramMessage.mParcel.writeString(Integer.toString(paramInt2));
  4903. paramMessage.mParcel.writeString("");
  4904. send(paramMessage);
  4905. return;
  4906. if (paramInt1 == 1)
  4907. {
  4908. paramString1 = "1";
  4909. }
  4910. else if (paramInt1 == 3)
  4911. {
  4912. paramString1 = "3";
  4913. }
  4914. else if (paramInt1 == 4)
  4915. {
  4916. paramString1 = "4";
  4917. }
  4918. else
  4919. {
  4920. Rlog.d("RILJ", "setICBarring: barring state is wrong value");
  4921. paramString1 = "1";
  4922. }
  4923. }
  4924. }
  4925.  
  4926. public void setInitialAttachApn(String paramString1, String paramString2, int paramInt, String paramString3, String paramString4, Message paramMessage)
  4927. {
  4928. paramMessage = RILRequest.obtain(111, null);
  4929. riljLog("Set RIL_REQUEST_SET_INITIAL_ATTACH_APN");
  4930. paramMessage.mParcel.writeString(paramString1);
  4931. paramMessage.mParcel.writeString(paramString2);
  4932. paramMessage.mParcel.writeInt(paramInt);
  4933. paramMessage.mParcel.writeString(paramString3);
  4934. paramMessage.mParcel.writeString(paramString4);
  4935. if (isDebugLevelNotLow()) {
  4936. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + ", apn:" + paramString1 + ", protocol:" + paramString2 + ", authType:" + paramInt + ", username:" + paramString3 + ", password:" + paramString4);
  4937. }
  4938. send(paramMessage);
  4939. }
  4940.  
  4941. public void setLocationUpdates(boolean paramBoolean, Message paramMessage)
  4942. {
  4943. int i = 1;
  4944. paramMessage = RILRequest.obtain(76, paramMessage);
  4945. paramMessage.mParcel.writeInt(1);
  4946. Parcel localParcel = paramMessage.mParcel;
  4947. if (paramBoolean) {}
  4948. for (;;)
  4949. {
  4950. localParcel.writeInt(i);
  4951. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + ": " + paramBoolean);
  4952. send(paramMessage);
  4953. return;
  4954. i = 0;
  4955. }
  4956. }
  4957.  
  4958. public void setLteBandMode(int paramInt, Message paramMessage)
  4959. {
  4960. paramMessage = RILRequest.obtain(10024, paramMessage);
  4961. paramMessage.mParcel.writeInt(1);
  4962. paramMessage.mParcel.writeInt(paramInt);
  4963. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt);
  4964. send(paramMessage);
  4965. }
  4966.  
  4967. public void setMute(boolean paramBoolean, Message paramMessage)
  4968. {
  4969. int i = 1;
  4970. paramMessage = RILRequest.obtain(53, paramMessage);
  4971. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramBoolean);
  4972. paramMessage.mParcel.writeInt(1);
  4973. Parcel localParcel = paramMessage.mParcel;
  4974. if (paramBoolean) {}
  4975. for (;;)
  4976. {
  4977. localParcel.writeInt(i);
  4978. send(paramMessage);
  4979. return;
  4980. i = 0;
  4981. }
  4982. }
  4983.  
  4984. public void setNetworkSelectionModeAutomatic(Message paramMessage)
  4985. {
  4986. paramMessage = RILRequest.obtain(46, paramMessage);
  4987. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  4988. send(paramMessage);
  4989. }
  4990.  
  4991. public void setNetworkSelectionModeManual(String paramString, Message paramMessage)
  4992. {
  4993. paramMessage = RILRequest.obtain(47, paramMessage);
  4994. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramString);
  4995. paramMessage.mParcel.writeString(paramString);
  4996. send(paramMessage);
  4997. }
  4998.  
  4999. public void setOnNITZTime(Handler paramHandler, int paramInt, Object paramObject)
  5000. {
  5001. super.setOnNITZTime(paramHandler, paramInt, paramObject);
  5002. if (this.mLastNITZTimeInfo != null)
  5003. {
  5004. this.mNITZTimeRegistrant.notifyRegistrant(new AsyncResult(null, this.mLastNITZTimeInfo, null));
  5005. this.mLastNITZTimeInfo = null;
  5006. }
  5007. }
  5008.  
  5009. public void setPhoneType(int paramInt)
  5010. {
  5011. riljLog("setPhoneType=" + paramInt + " old value=" + this.mPhoneType);
  5012. this.mPhoneType = paramInt;
  5013. }
  5014.  
  5015. public void setPreferredNetworkList(int paramInt1, String paramString1, String paramString2, int paramInt2, int paramInt3, int paramInt4, int paramInt5, Message paramMessage)
  5016. {
  5017. paramMessage = RILRequest.obtain(10015, paramMessage);
  5018. paramMessage.mParcel.writeInt(paramInt1);
  5019. paramMessage.mParcel.writeString(paramString1);
  5020. paramMessage.mParcel.writeString(paramString2);
  5021. paramMessage.mParcel.writeInt(paramInt2);
  5022. paramMessage.mParcel.writeInt(paramInt3);
  5023. paramMessage.mParcel.writeInt(paramInt4);
  5024. paramMessage.mParcel.writeInt(paramInt5);
  5025. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + ", " + paramInt1 + ", " + paramString1 + ", " + paramString2 + ", " + paramInt2 + "," + paramInt3 + ", " + paramInt4 + ", " + paramInt5);
  5026. send(paramMessage);
  5027. }
  5028.  
  5029. public void setPreferredNetworkType(int paramInt, Message paramMessage)
  5030. {
  5031. paramMessage = RILRequest.obtain(73, paramMessage);
  5032. paramMessage.mParcel.writeInt(1);
  5033. paramMessage.mParcel.writeInt(paramInt);
  5034. setInitialPhoneType(paramInt);
  5035. this.mPreferredNetworkType = paramInt;
  5036. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " : " + paramInt);
  5037. send(paramMessage);
  5038. }
  5039.  
  5040. public void setPreferredVoicePrivacy(boolean paramBoolean, Message paramMessage)
  5041. {
  5042. int i = 1;
  5043. paramMessage = RILRequest.obtain(82, paramMessage);
  5044. paramMessage.mParcel.writeInt(1);
  5045. Parcel localParcel = paramMessage.mParcel;
  5046. if (paramBoolean) {}
  5047. for (;;)
  5048. {
  5049. localParcel.writeInt(i);
  5050. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramBoolean);
  5051. send(paramMessage);
  5052. return;
  5053. i = 0;
  5054. }
  5055. }
  5056.  
  5057. public void setRadioPower(boolean paramBoolean, Message paramMessage)
  5058. {
  5059. int i = 1;
  5060. RILRequest localRILRequest = RILRequest.obtain(23, paramMessage);
  5061. localRILRequest.mParcel.writeInt(1);
  5062. paramMessage = localRILRequest.mParcel;
  5063. StringBuilder localStringBuilder;
  5064. if (paramBoolean)
  5065. {
  5066. paramMessage.writeInt(i);
  5067. localStringBuilder = new StringBuilder().append(localRILRequest.serialString()).append("> ").append(requestToString(localRILRequest.mRequest));
  5068. if (!paramBoolean) {
  5069. break label101;
  5070. }
  5071. }
  5072. label101:
  5073. for (paramMessage = " on";; paramMessage = " off")
  5074. {
  5075. riljLog(paramMessage);
  5076. send(localRILRequest);
  5077. return;
  5078. i = 0;
  5079. break;
  5080. }
  5081. }
  5082.  
  5083. public void setSimInitEvent(Message paramMessage)
  5084. {
  5085. paramMessage = RILRequest.obtain(10014, paramMessage);
  5086. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  5087. send(paramMessage);
  5088. }
  5089.  
  5090. public void setSimPower(int paramInt, Message paramMessage)
  5091. {
  5092. paramMessage = RILRequest.obtain(10023, paramMessage);
  5093. paramMessage.mParcel.writeInt(1);
  5094. paramMessage.mParcel.writeInt(paramInt);
  5095. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " int : " + paramInt);
  5096. send(paramMessage);
  5097. }
  5098.  
  5099. public void setSmscAddress(String paramString, Message paramMessage)
  5100. {
  5101. paramMessage = RILRequest.obtain(101, paramMessage);
  5102. paramMessage.mParcel.writeString(paramString);
  5103. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " : " + paramString);
  5104. send(paramMessage);
  5105. }
  5106.  
  5107. public void setSuppServiceNotifications(boolean paramBoolean, Message paramMessage)
  5108. {
  5109. int i = 1;
  5110. paramMessage = RILRequest.obtain(62, paramMessage);
  5111. paramMessage.mParcel.writeInt(1);
  5112. Parcel localParcel = paramMessage.mParcel;
  5113. if (paramBoolean) {}
  5114. for (;;)
  5115. {
  5116. localParcel.writeInt(i);
  5117. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  5118. send(paramMessage);
  5119. return;
  5120. i = 0;
  5121. }
  5122. }
  5123.  
  5124. public void setTTYMode(int paramInt, Message paramMessage)
  5125. {
  5126. paramMessage = RILRequest.obtain(80, paramMessage);
  5127. paramMessage.mParcel.writeInt(1);
  5128. paramMessage.mParcel.writeInt(paramInt);
  5129. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " : " + paramInt);
  5130. send(paramMessage);
  5131. }
  5132.  
  5133. public void setTransmitPower(int paramInt, Message paramMessage)
  5134. {
  5135. paramMessage = RILRequest.obtain(10007, paramMessage);
  5136. paramMessage.mParcel.writeInt(1);
  5137. paramMessage.mParcel.writeInt(paramInt);
  5138. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt);
  5139. send(paramMessage);
  5140. }
  5141.  
  5142. public void setUiccSubscription(int paramInt1, int paramInt2, int paramInt3, int paramInt4, Message paramMessage)
  5143. {
  5144. paramMessage = RILRequest.obtain(122, paramMessage);
  5145. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " slot: " + paramInt1 + " appIndex: " + paramInt2 + " subId: " + paramInt3 + " subStatus: " + paramInt4);
  5146. paramMessage.mParcel.writeInt(paramInt1);
  5147. paramMessage.mParcel.writeInt(paramInt2);
  5148. paramMessage.mParcel.writeInt(paramInt3);
  5149. paramMessage.mParcel.writeInt(paramInt4);
  5150. send(paramMessage);
  5151. }
  5152.  
  5153. public void setVoiceDomainPref(int paramInt, Message paramMessage)
  5154. {
  5155. paramMessage = RILRequest.obtain(10005, paramMessage);
  5156. paramMessage.mParcel.writeInt(1);
  5157. paramMessage.mParcel.writeInt(paramInt);
  5158. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramInt);
  5159. send(paramMessage);
  5160. }
  5161.  
  5162. public void setupDataCall(String paramString1, String paramString2, String paramString3, String paramString4, String paramString5, String paramString6, String paramString7, Message paramMessage)
  5163. {
  5164. paramMessage = RILRequest.obtain(27, paramMessage);
  5165. paramMessage.mParcel.writeInt(7);
  5166. paramMessage.mParcel.writeString(paramString1);
  5167. paramMessage.mParcel.writeString(paramString2);
  5168. paramMessage.mParcel.writeString(paramString3);
  5169. paramMessage.mParcel.writeString(paramString4);
  5170. paramMessage.mParcel.writeString(paramString5);
  5171. paramMessage.mParcel.writeString(paramString6);
  5172. paramMessage.mParcel.writeString(paramString7);
  5173. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " " + paramString1 + " " + paramString2 + " " + paramString3 + " " + paramString4 + " " + paramString5 + " " + paramString6 + " " + paramString7);
  5174. send(paramMessage);
  5175. }
  5176.  
  5177. public void startDtmf(char paramChar, Message paramMessage)
  5178. {
  5179. paramMessage = RILRequest.obtain(49, paramMessage);
  5180. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  5181. paramMessage.mParcel.writeString(Character.toString(paramChar));
  5182. send(paramMessage);
  5183. }
  5184.  
  5185. public void stopDtmf(Message paramMessage)
  5186. {
  5187. paramMessage = RILRequest.obtain(50, paramMessage);
  5188. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  5189. send(paramMessage);
  5190. }
  5191.  
  5192. public void supplyIccPerso(String paramString, Message paramMessage)
  5193. {
  5194. paramMessage = RILRequest.obtain(10018, paramMessage);
  5195. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  5196. paramMessage.mParcel.writeInt(1);
  5197. paramMessage.mParcel.writeString(paramString);
  5198. send(paramMessage);
  5199. }
  5200.  
  5201. public void supplyIccPin(String paramString, Message paramMessage)
  5202. {
  5203. supplyIccPinForApp(paramString, null, paramMessage);
  5204. }
  5205.  
  5206. public void supplyIccPin2(String paramString, Message paramMessage)
  5207. {
  5208. supplyIccPin2ForApp(paramString, null, paramMessage);
  5209. }
  5210.  
  5211. public void supplyIccPin2ForApp(String paramString1, String paramString2, Message paramMessage)
  5212. {
  5213. paramMessage = RILRequest.obtain(4, paramMessage);
  5214. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  5215. paramMessage.mParcel.writeInt(2);
  5216. paramMessage.mParcel.writeString(paramString1);
  5217. paramMessage.mParcel.writeString(paramString2);
  5218. send(paramMessage);
  5219. }
  5220.  
  5221. public void supplyIccPinForApp(String paramString1, String paramString2, Message paramMessage)
  5222. {
  5223. paramMessage = RILRequest.obtain(2, paramMessage);
  5224. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  5225. paramMessage.mParcel.writeInt(2);
  5226. paramMessage.mParcel.writeString(paramString1);
  5227. paramMessage.mParcel.writeString(paramString2);
  5228. send(paramMessage);
  5229. }
  5230.  
  5231. public void supplyIccPuk(String paramString1, String paramString2, Message paramMessage)
  5232. {
  5233. supplyIccPukForApp(paramString1, paramString2, null, paramMessage);
  5234. }
  5235.  
  5236. public void supplyIccPuk2(String paramString1, String paramString2, Message paramMessage)
  5237. {
  5238. supplyIccPuk2ForApp(paramString1, paramString2, null, paramMessage);
  5239. }
  5240.  
  5241. public void supplyIccPuk2ForApp(String paramString1, String paramString2, String paramString3, Message paramMessage)
  5242. {
  5243. paramMessage = RILRequest.obtain(5, paramMessage);
  5244. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  5245. paramMessage.mParcel.writeInt(3);
  5246. paramMessage.mParcel.writeString(paramString1);
  5247. paramMessage.mParcel.writeString(paramString2);
  5248. paramMessage.mParcel.writeString(paramString3);
  5249. send(paramMessage);
  5250. }
  5251.  
  5252. public void supplyIccPukForApp(String paramString1, String paramString2, String paramString3, Message paramMessage)
  5253. {
  5254. paramMessage = RILRequest.obtain(3, paramMessage);
  5255. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  5256. paramMessage.mParcel.writeInt(3);
  5257. paramMessage.mParcel.writeString(paramString1);
  5258. paramMessage.mParcel.writeString(paramString2);
  5259. paramMessage.mParcel.writeString(paramString3);
  5260. send(paramMessage);
  5261. }
  5262.  
  5263. public void supplyNetworkDepersonalization(String paramString, int paramInt, Message paramMessage)
  5264. {
  5265. paramMessage = RILRequest.obtain(8, paramMessage);
  5266. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + " Type:" + "PERSOSUBSTATE_SIM_NETWORK");
  5267. paramMessage.mParcel.writeInt(paramInt);
  5268. paramMessage.mParcel.writeString(paramString);
  5269. send(paramMessage);
  5270. }
  5271.  
  5272. public void supplyNetworkDepersonalization(String paramString, Message paramMessage)
  5273. {
  5274. paramMessage = RILRequest.obtain(8, paramMessage);
  5275. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  5276. paramMessage.mParcel.writeInt(1);
  5277. paramMessage.mParcel.writeString(paramString);
  5278. send(paramMessage);
  5279. }
  5280.  
  5281. public void switchWaitingOrHoldingAndActive(Message paramMessage)
  5282. {
  5283. paramMessage = RILRequest.obtain(15, paramMessage);
  5284. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest));
  5285. send(paramMessage);
  5286. }
  5287.  
  5288. public void testingEmergencyCall()
  5289. {
  5290. riljLog("testingEmergencyCall");
  5291. this.mTestingEmergencyCall.set(true);
  5292. }
  5293.  
  5294. public void uiccGbaAuthenticateBootstrap(String paramString, byte[] paramArrayOfByte1, byte[] paramArrayOfByte2, Message paramMessage)
  5295. {
  5296. paramMessage = RILRequest.obtain(10025, paramMessage);
  5297. paramArrayOfByte1 = IccUtils.bytesToHexString(paramArrayOfByte1);
  5298. paramArrayOfByte2 = IccUtils.bytesToHexString(paramArrayOfByte2);
  5299. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + "[" + paramString + "," + paramArrayOfByte1 + "," + paramArrayOfByte2 + "]");
  5300. paramMessage.mParcel.writeString(paramString);
  5301. paramMessage.mParcel.writeString(paramArrayOfByte1);
  5302. paramMessage.mParcel.writeString(paramArrayOfByte2);
  5303. send(paramMessage);
  5304. }
  5305.  
  5306. public void uiccGbaAuthenticateNaf(String paramString, byte[] paramArrayOfByte1, byte[] paramArrayOfByte2, Message paramMessage)
  5307. {
  5308. paramMessage = RILRequest.obtain(10026, paramMessage);
  5309. paramArrayOfByte1 = IccUtils.bytesToHexString(paramArrayOfByte1);
  5310. paramArrayOfByte2 = IccUtils.bytesToHexString(paramArrayOfByte2);
  5311. riljLog(paramMessage.serialString() + "> " + requestToString(paramMessage.mRequest) + "[" + paramString + "," + paramArrayOfByte1 + "]");
  5312. paramMessage.mParcel.writeString(paramString);
  5313. paramMessage.mParcel.writeString(paramArrayOfByte1);
  5314. paramMessage.mParcel.writeString(paramArrayOfByte2);
  5315. send(paramMessage);
  5316. }
  5317.  
  5318. /* Error */
  5319. public void updateStackBinding(int paramInt1, int paramInt2, Message paramMessage)
  5320. {
  5321. // Byte code:
  5322. // 0: new 2074 java/io/ByteArrayOutputStream
  5323. // 3: dup
  5324. // 4: invokespecial 2075 java/io/ByteArrayOutputStream:<init> ()V
  5325. // 7: astore 5
  5326. // 9: new 2077 java/io/DataOutputStream
  5327. // 12: dup
  5328. // 13: aload 5
  5329. // 15: invokespecial 2080 java/io/DataOutputStream:<init> (Ljava/io/OutputStream;)V
  5330. // 18: astore 4
  5331. // 20: ldc 63
  5332. // 22: ldc_w 3119
  5333. // 25: invokestatic 406 android/telephony/Rlog:d (Ljava/lang/String;Ljava/lang/String;)I
  5334. // 28: pop
  5335. // 29: aload 4
  5336. // 31: iconst_2
  5337. // 32: invokevirtual 2083 java/io/DataOutputStream:writeByte (I)V
  5338. // 35: aload 4
  5339. // 37: bipush 98
  5340. // 39: invokevirtual 2083 java/io/DataOutputStream:writeByte (I)V
  5341. // 42: aload 4
  5342. // 44: bipush 6
  5343. // 46: invokevirtual 2086 java/io/DataOutputStream:writeShort (I)V
  5344. // 49: aload 4
  5345. // 51: iload_1
  5346. // 52: invokevirtual 2083 java/io/DataOutputStream:writeByte (I)V
  5347. // 55: aload 4
  5348. // 57: iload_2
  5349. // 58: invokevirtual 2083 java/io/DataOutputStream:writeByte (I)V
  5350. // 61: aload 4
  5351. // 63: invokevirtual 2089 java/io/DataOutputStream:close ()V
  5352. // 66: aload_0
  5353. // 67: aload 5
  5354. // 69: invokevirtual 2092 java/io/ByteArrayOutputStream:toByteArray ()[B
  5355. // 72: aload_3
  5356. // 73: invokevirtual 2096 com/android/internal/telephony/RIL:invokeOemRilRequestRaw ([BLandroid/os/Message;)V
  5357. // 76: return
  5358. // 77: astore_3
  5359. // 78: aload 4
  5360. // 80: invokevirtual 2089 java/io/DataOutputStream:close ()V
  5361. // 83: return
  5362. // 84: astore_3
  5363. // 85: return
  5364. // 86: astore_3
  5365. // 87: aload 4
  5366. // 89: invokevirtual 2089 java/io/DataOutputStream:close ()V
  5367. // 92: aload_3
  5368. // 93: athrow
  5369. // 94: astore 4
  5370. // 96: goto -30 -> 66
  5371. // 99: astore 4
  5372. // 101: goto -9 -> 92
  5373. // Local variable table:
  5374. // start length slot name signature
  5375. // 0 104 0 this RIL
  5376. // 0 104 1 paramInt1 int
  5377. // 0 104 2 paramInt2 int
  5378. // 0 104 3 paramMessage Message
  5379. // 18 70 4 localDataOutputStream java.io.DataOutputStream
  5380. // 94 1 4 localException1 Exception
  5381. // 99 1 4 localException2 Exception
  5382. // 7 61 5 localByteArrayOutputStream java.io.ByteArrayOutputStream
  5383. // Exception table:
  5384. // from to target type
  5385. // 29 61 77 java/io/IOException
  5386. // 78 83 84 java/lang/Exception
  5387. // 29 61 86 finally
  5388. // 61 66 94 java/lang/Exception
  5389. // 87 92 99 java/lang/Exception
  5390. }
  5391.  
  5392. public void writeSmsToRuim(int paramInt, String paramString, Message paramMessage)
  5393. {
  5394. paramInt = translateStatus(paramInt);
  5395. paramMessage = RILRequest.obtain(96, paramMessage);
  5396. paramMessage.mParcel.writeInt(paramInt);
  5397. paramMessage.mParcel.writeString(paramString);
  5398. send(paramMessage);
  5399. }
  5400.  
  5401. public void writeSmsToSim(int paramInt, String paramString1, String paramString2, Message paramMessage)
  5402. {
  5403. paramInt = translateStatus(paramInt);
  5404. paramMessage = RILRequest.obtain(63, paramMessage);
  5405. paramMessage.mParcel.writeInt(paramInt);
  5406. paramMessage.mParcel.writeString(paramString2);
  5407. paramMessage.mParcel.writeString(paramString1);
  5408. send(paramMessage);
  5409. }
  5410.  
  5411. class RILReceiver
  5412. implements Runnable
  5413. {
  5414. byte[] buffer = new byte['?'];
  5415.  
  5416. RILReceiver() {}
  5417.  
  5418. /* Error */
  5419. public void run()
  5420. {
  5421. // Byte code:
  5422. // 0: iconst_0
  5423. // 1: istore_1
  5424. // 2: aconst_null
  5425. // 3: astore 5
  5426. // 5: aload_0
  5427. // 6: getfield 17 com/android/internal/telephony/RIL$RILReceiver:this$0 Lcom/android/internal/telephony/RIL;
  5428. // 9: invokestatic 34 com/android/internal/telephony/RIL:access$500 (Lcom/android/internal/telephony/RIL;)Ljava/lang/Integer;
  5429. // 12: ifnull +16 -> 28
  5430. // 15: aload_0
  5431. // 16: getfield 17 com/android/internal/telephony/RIL$RILReceiver:this$0 Lcom/android/internal/telephony/RIL;
  5432. // 19: invokestatic 34 com/android/internal/telephony/RIL:access$500 (Lcom/android/internal/telephony/RIL;)Ljava/lang/Integer;
  5433. // 22: invokevirtual 40 java/lang/Integer:intValue ()I
  5434. // 25: ifne +207 -> 232
  5435. // 28: getstatic 44 com/android/internal/telephony/RIL:SOCKET_NAME_RIL [Ljava/lang/String;
  5436. // 31: iconst_0
  5437. // 32: aaload
  5438. // 33: astore 4
  5439. // 35: new 46 android/net/LocalSocket
  5440. // 38: dup
  5441. // 39: invokespecial 47 android/net/LocalSocket:<init> ()V
  5442. // 42: astore 6
  5443. // 44: aload 6
  5444. // 46: new 49 android/net/LocalSocketAddress
  5445. // 49: dup
  5446. // 50: aload 4
  5447. // 52: getstatic 55 android/net/LocalSocketAddress$Namespace:RESERVED Landroid/net/LocalSocketAddress$Namespace;
  5448. // 55: invokespecial 58 android/net/LocalSocketAddress:<init> (Ljava/lang/String;Landroid/net/LocalSocketAddress$Namespace;)V
  5449. // 58: invokevirtual 62 android/net/LocalSocket:connect (Landroid/net/LocalSocketAddress;)V
  5450. // 61: iconst_0
  5451. // 62: istore_3
  5452. // 63: aload_0
  5453. // 64: getfield 17 com/android/internal/telephony/RIL$RILReceiver:this$0 Lcom/android/internal/telephony/RIL;
  5454. // 67: aload 6
  5455. // 69: putfield 66 com/android/internal/telephony/RIL:mSocket Landroid/net/LocalSocket;
  5456. // 72: ldc 68
  5457. // 74: new 70 java/lang/StringBuilder
  5458. // 77: dup
  5459. // 78: invokespecial 71 java/lang/StringBuilder:<init> ()V
  5460. // 81: ldc 73
  5461. // 83: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5462. // 86: aload 4
  5463. // 88: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5464. // 91: ldc 79
  5465. // 93: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5466. // 96: invokevirtual 83 java/lang/StringBuilder:toString ()Ljava/lang/String;
  5467. // 99: invokestatic 89 android/telephony/Rlog:i (Ljava/lang/String;Ljava/lang/String;)I
  5468. // 102: pop
  5469. // 103: iconst_0
  5470. // 104: istore_1
  5471. // 105: iconst_0
  5472. // 106: istore_2
  5473. // 107: aload_0
  5474. // 108: getfield 17 com/android/internal/telephony/RIL$RILReceiver:this$0 Lcom/android/internal/telephony/RIL;
  5475. // 111: getfield 66 com/android/internal/telephony/RIL:mSocket Landroid/net/LocalSocket;
  5476. // 114: invokevirtual 93 android/net/LocalSocket:getInputStream ()Ljava/io/InputStream;
  5477. // 117: astore 5
  5478. // 119: iload_2
  5479. // 120: istore_1
  5480. // 121: aload 5
  5481. // 123: aload_0
  5482. // 124: getfield 22 com/android/internal/telephony/RIL$RILReceiver:buffer [B
  5483. // 127: invokestatic 97 com/android/internal/telephony/RIL:access$600 (Ljava/io/InputStream;[B)I
  5484. // 130: istore_2
  5485. // 131: iload_2
  5486. // 132: ifge +239 -> 371
  5487. // 135: ldc 68
  5488. // 137: new 70 java/lang/StringBuilder
  5489. // 140: dup
  5490. // 141: invokespecial 71 java/lang/StringBuilder:<init> ()V
  5491. // 144: ldc 99
  5492. // 146: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5493. // 149: aload 4
  5494. // 151: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5495. // 154: ldc 79
  5496. // 156: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5497. // 159: invokevirtual 83 java/lang/StringBuilder:toString ()Ljava/lang/String;
  5498. // 162: invokestatic 89 android/telephony/Rlog:i (Ljava/lang/String;Ljava/lang/String;)I
  5499. // 165: pop
  5500. // 166: aload_0
  5501. // 167: getfield 17 com/android/internal/telephony/RIL$RILReceiver:this$0 Lcom/android/internal/telephony/RIL;
  5502. // 170: getstatic 105 com/android/internal/telephony/CommandsInterface$RadioState:RADIO_UNAVAILABLE Lcom/android/internal/telephony/CommandsInterface$RadioState;
  5503. // 173: invokevirtual 109 com/android/internal/telephony/RIL:setRadioState (Lcom/android/internal/telephony/CommandsInterface$RadioState;)V
  5504. // 176: aload_0
  5505. // 177: getfield 17 com/android/internal/telephony/RIL$RILReceiver:this$0 Lcom/android/internal/telephony/RIL;
  5506. // 180: getfield 66 com/android/internal/telephony/RIL:mSocket Landroid/net/LocalSocket;
  5507. // 183: invokevirtual 112 android/net/LocalSocket:close ()V
  5508. // 186: aload_0
  5509. // 187: getfield 17 com/android/internal/telephony/RIL$RILReceiver:this$0 Lcom/android/internal/telephony/RIL;
  5510. // 190: aconst_null
  5511. // 191: putfield 66 com/android/internal/telephony/RIL:mSocket Landroid/net/LocalSocket;
  5512. // 194: invokestatic 117 com/android/internal/telephony/RILRequest:resetSerial ()V
  5513. // 197: aload_0
  5514. // 198: getfield 17 com/android/internal/telephony/RIL$RILReceiver:this$0 Lcom/android/internal/telephony/RIL;
  5515. // 201: iconst_1
  5516. // 202: iconst_0
  5517. // 203: invokestatic 121 com/android/internal/telephony/RIL:access$800 (Lcom/android/internal/telephony/RIL;IZ)V
  5518. // 206: iload_3
  5519. // 207: istore_1
  5520. // 208: goto -206 -> 2
  5521. // 211: astore 4
  5522. // 213: ldc 68
  5523. // 215: ldc 123
  5524. // 217: aload 4
  5525. // 219: invokestatic 127 android/telephony/Rlog:e (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
  5526. // 222: pop
  5527. // 223: aload_0
  5528. // 224: getfield 17 com/android/internal/telephony/RIL$RILReceiver:this$0 Lcom/android/internal/telephony/RIL;
  5529. // 227: iconst_m1
  5530. // 228: invokestatic 131 com/android/internal/telephony/RIL:access$900 (Lcom/android/internal/telephony/RIL;I)V
  5531. // 231: return
  5532. // 232: getstatic 44 com/android/internal/telephony/RIL:SOCKET_NAME_RIL [Ljava/lang/String;
  5533. // 235: aload_0
  5534. // 236: getfield 17 com/android/internal/telephony/RIL$RILReceiver:this$0 Lcom/android/internal/telephony/RIL;
  5535. // 239: invokestatic 34 com/android/internal/telephony/RIL:access$500 (Lcom/android/internal/telephony/RIL;)Ljava/lang/Integer;
  5536. // 242: invokevirtual 40 java/lang/Integer:intValue ()I
  5537. // 245: aaload
  5538. // 246: astore 4
  5539. // 248: goto -213 -> 35
  5540. // 251: astore 6
  5541. // 253: aload 5
  5542. // 255: ifnull +8 -> 263
  5543. // 258: aload 5
  5544. // 260: invokevirtual 112 android/net/LocalSocket:close ()V
  5545. // 263: iload_1
  5546. // 264: bipush 8
  5547. // 266: if_icmpne +56 -> 322
  5548. // 269: ldc 68
  5549. // 271: new 70 java/lang/StringBuilder
  5550. // 274: dup
  5551. // 275: invokespecial 71 java/lang/StringBuilder:<init> ()V
  5552. // 278: ldc -123
  5553. // 280: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5554. // 283: aload 4
  5555. // 285: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5556. // 288: ldc -121
  5557. // 290: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5558. // 293: iload_1
  5559. // 294: invokevirtual 138 java/lang/StringBuilder:append (I)Ljava/lang/StringBuilder;
  5560. // 297: ldc -116
  5561. // 299: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5562. // 302: invokevirtual 83 java/lang/StringBuilder:toString ()Ljava/lang/String;
  5563. // 305: invokestatic 142 android/telephony/Rlog:e (Ljava/lang/String;Ljava/lang/String;)I
  5564. // 308: pop
  5565. // 309: ldc2_w 143
  5566. // 312: invokestatic 150 java/lang/Thread:sleep (J)V
  5567. // 315: iload_1
  5568. // 316: iconst_1
  5569. // 317: iadd
  5570. // 318: istore_1
  5571. // 319: goto -317 -> 2
  5572. // 322: iload_1
  5573. // 323: ifle -14 -> 309
  5574. // 326: iload_1
  5575. // 327: bipush 8
  5576. // 329: if_icmpge -20 -> 309
  5577. // 332: ldc 68
  5578. // 334: new 70 java/lang/StringBuilder
  5579. // 337: dup
  5580. // 338: invokespecial 71 java/lang/StringBuilder:<init> ()V
  5581. // 341: ldc -123
  5582. // 343: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5583. // 346: aload 4
  5584. // 348: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5585. // 351: ldc -104
  5586. // 353: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5587. // 356: invokevirtual 83 java/lang/StringBuilder:toString ()Ljava/lang/String;
  5588. // 359: invokestatic 89 android/telephony/Rlog:i (Ljava/lang/String;Ljava/lang/String;)I
  5589. // 362: pop
  5590. // 363: goto -54 -> 309
  5591. // 366: astore 4
  5592. // 368: goto -155 -> 213
  5593. // 371: iload_2
  5594. // 372: istore_1
  5595. // 373: invokestatic 158 android/os/Parcel:obtain ()Landroid/os/Parcel;
  5596. // 376: astore 6
  5597. // 378: iload_2
  5598. // 379: istore_1
  5599. // 380: aload 6
  5600. // 382: aload_0
  5601. // 383: getfield 22 com/android/internal/telephony/RIL$RILReceiver:buffer [B
  5602. // 386: iconst_0
  5603. // 387: iload_2
  5604. // 388: invokevirtual 162 android/os/Parcel:unmarshall ([BII)V
  5605. // 391: iload_2
  5606. // 392: istore_1
  5607. // 393: aload 6
  5608. // 395: iconst_0
  5609. // 396: invokevirtual 166 android/os/Parcel:setDataPosition (I)V
  5610. // 399: iload_2
  5611. // 400: istore_1
  5612. // 401: aload_0
  5613. // 402: getfield 17 com/android/internal/telephony/RIL$RILReceiver:this$0 Lcom/android/internal/telephony/RIL;
  5614. // 405: aload 6
  5615. // 407: invokestatic 170 com/android/internal/telephony/RIL:access$700 (Lcom/android/internal/telephony/RIL;Landroid/os/Parcel;)V
  5616. // 410: iload_2
  5617. // 411: istore_1
  5618. // 412: aload 6
  5619. // 414: invokevirtual 173 android/os/Parcel:recycle ()V
  5620. // 417: iload_2
  5621. // 418: istore_1
  5622. // 419: goto -298 -> 121
  5623. // 422: astore 5
  5624. // 424: ldc 68
  5625. // 426: new 70 java/lang/StringBuilder
  5626. // 429: dup
  5627. // 430: invokespecial 71 java/lang/StringBuilder:<init> ()V
  5628. // 433: ldc -81
  5629. // 435: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5630. // 438: aload 4
  5631. // 440: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5632. // 443: ldc -79
  5633. // 445: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5634. // 448: invokevirtual 83 java/lang/StringBuilder:toString ()Ljava/lang/String;
  5635. // 451: aload 5
  5636. // 453: invokestatic 179 android/telephony/Rlog:i (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
  5637. // 456: pop
  5638. // 457: goto -322 -> 135
  5639. // 460: astore 5
  5640. // 462: ldc 68
  5641. // 464: new 70 java/lang/StringBuilder
  5642. // 467: dup
  5643. // 468: invokespecial 71 java/lang/StringBuilder:<init> ()V
  5644. // 471: ldc -75
  5645. // 473: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5646. // 476: iload_1
  5647. // 477: invokevirtual 138 java/lang/StringBuilder:append (I)Ljava/lang/StringBuilder;
  5648. // 480: ldc -73
  5649. // 482: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5650. // 485: aload 5
  5651. // 487: invokevirtual 184 java/lang/Throwable:toString ()Ljava/lang/String;
  5652. // 490: invokevirtual 77 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5653. // 493: invokevirtual 83 java/lang/StringBuilder:toString ()Ljava/lang/String;
  5654. // 496: invokestatic 142 android/telephony/Rlog:e (Ljava/lang/String;Ljava/lang/String;)I
  5655. // 499: pop
  5656. // 500: goto -365 -> 135
  5657. // 503: astore 5
  5658. // 505: goto -242 -> 263
  5659. // 508: astore 4
  5660. // 510: goto -195 -> 315
  5661. // 513: astore 4
  5662. // 515: goto -329 -> 186
  5663. // 518: astore 5
  5664. // 520: aload 6
  5665. // 522: astore 5
  5666. // 524: goto -271 -> 253
  5667. // Local variable table:
  5668. // start length slot name signature
  5669. // 0 527 0 this RILReceiver
  5670. // 1 476 1 i int
  5671. // 106 312 2 j int
  5672. // 62 145 3 k int
  5673. // 33 117 4 str1 String
  5674. // 211 7 4 localThrowable1 Throwable
  5675. // 246 101 4 str2 String
  5676. // 366 73 4 localThrowable2 Throwable
  5677. // 508 1 4 localInterruptedException InterruptedException
  5678. // 513 1 4 localIOException1 IOException
  5679. // 3 256 5 localInputStream InputStream
  5680. // 422 30 5 localIOException2 IOException
  5681. // 460 26 5 localThrowable3 Throwable
  5682. // 503 1 5 localIOException3 IOException
  5683. // 518 1 5 localIOException4 IOException
  5684. // 522 1 5 localObject Object
  5685. // 42 26 6 localLocalSocket LocalSocket
  5686. // 251 1 6 localIOException5 IOException
  5687. // 376 145 6 localParcel Parcel
  5688. // Exception table:
  5689. // from to target type
  5690. // 44 61 211 java/lang/Throwable
  5691. // 63 103 211 java/lang/Throwable
  5692. // 135 176 211 java/lang/Throwable
  5693. // 176 186 211 java/lang/Throwable
  5694. // 186 206 211 java/lang/Throwable
  5695. // 424 457 211 java/lang/Throwable
  5696. // 462 500 211 java/lang/Throwable
  5697. // 35 44 251 java/io/IOException
  5698. // 5 28 366 java/lang/Throwable
  5699. // 28 35 366 java/lang/Throwable
  5700. // 35 44 366 java/lang/Throwable
  5701. // 232 248 366 java/lang/Throwable
  5702. // 258 263 366 java/lang/Throwable
  5703. // 269 309 366 java/lang/Throwable
  5704. // 309 315 366 java/lang/Throwable
  5705. // 332 363 366 java/lang/Throwable
  5706. // 107 119 422 java/io/IOException
  5707. // 121 131 422 java/io/IOException
  5708. // 373 378 422 java/io/IOException
  5709. // 380 391 422 java/io/IOException
  5710. // 393 399 422 java/io/IOException
  5711. // 401 410 422 java/io/IOException
  5712. // 412 417 422 java/io/IOException
  5713. // 107 119 460 java/lang/Throwable
  5714. // 121 131 460 java/lang/Throwable
  5715. // 373 378 460 java/lang/Throwable
  5716. // 380 391 460 java/lang/Throwable
  5717. // 393 399 460 java/lang/Throwable
  5718. // 401 410 460 java/lang/Throwable
  5719. // 412 417 460 java/lang/Throwable
  5720. // 258 263 503 java/io/IOException
  5721. // 309 315 508 java/lang/InterruptedException
  5722. // 176 186 513 java/io/IOException
  5723. // 44 61 518 java/io/IOException
  5724. }
  5725. }
  5726.  
  5727. class RILSender
  5728. extends Handler
  5729. implements Runnable
  5730. {
  5731. byte[] dataLength = new byte[4];
  5732.  
  5733. public RILSender(Looper paramLooper)
  5734. {
  5735. super();
  5736. }
  5737.  
  5738. /* Error */
  5739. public void handleMessage(Message arg1)
  5740. {
  5741. // Byte code:
  5742. // 0: aload_1
  5743. // 1: getfield 35 android/os/Message:obj Ljava/lang/Object;
  5744. // 4: checkcast 37 com/android/internal/telephony/RILRequest
  5745. // 7: checkcast 37 com/android/internal/telephony/RILRequest
  5746. // 10: astore 4
  5747. // 12: aload_1
  5748. // 13: getfield 41 android/os/Message:what I
  5749. // 16: tableswitch default:+24->40, 1:+25->41, 2:+317->333
  5750. // 40: return
  5751. // 41: aload_0
  5752. // 42: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
  5753. // 45: getfield 45 com/android/internal/telephony/RIL:mSocket Landroid/net/LocalSocket;
  5754. // 48: astore_1
  5755. // 49: aload_1
  5756. // 50: ifnonnull +68 -> 118
  5757. // 53: aload 4
  5758. // 55: iconst_1
  5759. // 56: aconst_null
  5760. // 57: invokevirtual 49 com/android/internal/telephony/RILRequest:onError (ILjava/lang/Object;)V
  5761. // 60: aload 4
  5762. // 62: invokevirtual 53 com/android/internal/telephony/RILRequest:release ()V
  5763. // 65: aload_0
  5764. // 66: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
  5765. // 69: invokestatic 57 com/android/internal/telephony/RIL:access$200 (Lcom/android/internal/telephony/RIL;)V
  5766. // 72: return
  5767. // 73: astore_1
  5768. // 74: ldc 59
  5769. // 76: ldc 61
  5770. // 78: aload_1
  5771. // 79: invokestatic 67 android/telephony/Rlog:e (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
  5772. // 82: pop
  5773. // 83: aload_0
  5774. // 84: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
  5775. // 87: aload 4
  5776. // 89: getfield 70 com/android/internal/telephony/RILRequest:mSerial I
  5777. // 92: invokestatic 74 com/android/internal/telephony/RIL:access$300 (Lcom/android/internal/telephony/RIL;I)Lcom/android/internal/telephony/RILRequest;
  5778. // 95: ifnull -55 -> 40
  5779. // 98: aload 4
  5780. // 100: iconst_1
  5781. // 101: aconst_null
  5782. // 102: invokevirtual 49 com/android/internal/telephony/RILRequest:onError (ILjava/lang/Object;)V
  5783. // 105: aload 4
  5784. // 107: invokevirtual 53 com/android/internal/telephony/RILRequest:release ()V
  5785. // 110: aload_0
  5786. // 111: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
  5787. // 114: invokestatic 57 com/android/internal/telephony/RIL:access$200 (Lcom/android/internal/telephony/RIL;)V
  5788. // 117: return
  5789. // 118: aload_0
  5790. // 119: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
  5791. // 122: getfield 78 com/android/internal/telephony/RIL:mRequestList Landroid/util/SparseArray;
  5792. // 125: astore 5
  5793. // 127: aload 5
  5794. // 129: monitorenter
  5795. // 130: aload_0
  5796. // 131: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
  5797. // 134: getfield 78 com/android/internal/telephony/RIL:mRequestList Landroid/util/SparseArray;
  5798. // 137: aload 4
  5799. // 139: getfield 70 com/android/internal/telephony/RILRequest:mSerial I
  5800. // 142: aload 4
  5801. // 144: invokevirtual 83 android/util/SparseArray:append (ILjava/lang/Object;)V
  5802. // 147: aload 5
  5803. // 149: monitorexit
  5804. // 150: aload 4
  5805. // 152: getfield 87 com/android/internal/telephony/RILRequest:mParcel Landroid/os/Parcel;
  5806. // 155: invokevirtual 93 android/os/Parcel:marshall ()[B
  5807. // 158: astore 5
  5808. // 160: aload 4
  5809. // 162: getfield 87 com/android/internal/telephony/RILRequest:mParcel Landroid/os/Parcel;
  5810. // 165: invokevirtual 96 android/os/Parcel:recycle ()V
  5811. // 168: aload 4
  5812. // 170: aconst_null
  5813. // 171: putfield 87 com/android/internal/telephony/RILRequest:mParcel Landroid/os/Parcel;
  5814. // 174: aload 5
  5815. // 176: arraylength
  5816. // 177: sipush 8192
  5817. // 180: if_icmple +83 -> 263
  5818. // 183: new 29 java/lang/RuntimeException
  5819. // 186: dup
  5820. // 187: new 98 java/lang/StringBuilder
  5821. // 190: dup
  5822. // 191: invokespecial 100 java/lang/StringBuilder:<init> ()V
  5823. // 194: ldc 102
  5824. // 196: invokevirtual 105 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5825. // 199: aload 5
  5826. // 201: arraylength
  5827. // 202: invokevirtual 108 java/lang/StringBuilder:append (I)Ljava/lang/StringBuilder;
  5828. // 205: invokevirtual 112 java/lang/StringBuilder:toString ()Ljava/lang/String;
  5829. // 208: invokespecial 115 java/lang/RuntimeException:<init> (Ljava/lang/String;)V
  5830. // 211: athrow
  5831. // 212: astore_1
  5832. // 213: ldc 59
  5833. // 215: ldc 117
  5834. // 217: aload_1
  5835. // 218: invokestatic 67 android/telephony/Rlog:e (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
  5836. // 221: pop
  5837. // 222: aload_0
  5838. // 223: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
  5839. // 226: aload 4
  5840. // 228: getfield 70 com/android/internal/telephony/RILRequest:mSerial I
  5841. // 231: invokestatic 74 com/android/internal/telephony/RIL:access$300 (Lcom/android/internal/telephony/RIL;I)Lcom/android/internal/telephony/RILRequest;
  5842. // 234: ifnull -194 -> 40
  5843. // 237: aload 4
  5844. // 239: iconst_2
  5845. // 240: aconst_null
  5846. // 241: invokevirtual 49 com/android/internal/telephony/RILRequest:onError (ILjava/lang/Object;)V
  5847. // 244: aload 4
  5848. // 246: invokevirtual 53 com/android/internal/telephony/RILRequest:release ()V
  5849. // 249: aload_0
  5850. // 250: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
  5851. // 253: invokestatic 57 com/android/internal/telephony/RIL:access$200 (Lcom/android/internal/telephony/RIL;)V
  5852. // 256: return
  5853. // 257: astore_1
  5854. // 258: aload 5
  5855. // 260: monitorexit
  5856. // 261: aload_1
  5857. // 262: athrow
  5858. // 263: aload_0
  5859. // 264: getfield 22 com/android/internal/telephony/RIL$RILSender:dataLength [B
  5860. // 267: astore 6
  5861. // 269: aload_0
  5862. // 270: getfield 22 com/android/internal/telephony/RIL$RILSender:dataLength [B
  5863. // 273: iconst_1
  5864. // 274: iconst_0
  5865. // 275: bastore
  5866. // 276: aload 6
  5867. // 278: iconst_0
  5868. // 279: iconst_0
  5869. // 280: bastore
  5870. // 281: aload_0
  5871. // 282: getfield 22 com/android/internal/telephony/RIL$RILSender:dataLength [B
  5872. // 285: iconst_2
  5873. // 286: aload 5
  5874. // 288: arraylength
  5875. // 289: bipush 8
  5876. // 291: ishr
  5877. // 292: sipush 255
  5878. // 295: iand
  5879. // 296: i2b
  5880. // 297: bastore
  5881. // 298: aload_0
  5882. // 299: getfield 22 com/android/internal/telephony/RIL$RILSender:dataLength [B
  5883. // 302: iconst_3
  5884. // 303: aload 5
  5885. // 305: arraylength
  5886. // 306: sipush 255
  5887. // 309: iand
  5888. // 310: i2b
  5889. // 311: bastore
  5890. // 312: aload_1
  5891. // 313: invokevirtual 123 android/net/LocalSocket:getOutputStream ()Ljava/io/OutputStream;
  5892. // 316: aload_0
  5893. // 317: getfield 22 com/android/internal/telephony/RIL$RILSender:dataLength [B
  5894. // 320: invokevirtual 129 java/io/OutputStream:write ([B)V
  5895. // 323: aload_1
  5896. // 324: invokevirtual 123 android/net/LocalSocket:getOutputStream ()Ljava/io/OutputStream;
  5897. // 327: aload 5
  5898. // 329: invokevirtual 129 java/io/OutputStream:write ([B)V
  5899. // 332: return
  5900. // 333: aload_0
  5901. // 334: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
  5902. // 337: getfield 78 com/android/internal/telephony/RIL:mRequestList Landroid/util/SparseArray;
  5903. // 340: astore_1
  5904. // 341: aload_1
  5905. // 342: monitorenter
  5906. // 343: aload_0
  5907. // 344: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
  5908. // 347: invokestatic 133 com/android/internal/telephony/RIL:access$400 (Lcom/android/internal/telephony/RIL;)Z
  5909. // 350: ifeq +118 -> 468
  5910. // 353: aload_0
  5911. // 354: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
  5912. // 357: getfield 78 com/android/internal/telephony/RIL:mRequestList Landroid/util/SparseArray;
  5913. // 360: invokevirtual 137 android/util/SparseArray:size ()I
  5914. // 363: istore_3
  5915. // 364: ldc 59
  5916. // 366: new 98 java/lang/StringBuilder
  5917. // 369: dup
  5918. // 370: invokespecial 100 java/lang/StringBuilder:<init> ()V
  5919. // 373: ldc -117
  5920. // 375: invokevirtual 105 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5921. // 378: iload_3
  5922. // 379: invokevirtual 108 java/lang/StringBuilder:append (I)Ljava/lang/StringBuilder;
  5923. // 382: invokevirtual 112 java/lang/StringBuilder:toString ()Ljava/lang/String;
  5924. // 385: invokestatic 143 android/telephony/Rlog:d (Ljava/lang/String;Ljava/lang/String;)I
  5925. // 388: pop
  5926. // 389: iconst_0
  5927. // 390: istore_2
  5928. // 391: iload_2
  5929. // 392: iload_3
  5930. // 393: if_icmpge +75 -> 468
  5931. // 396: aload_0
  5932. // 397: getfield 17 com/android/internal/telephony/RIL$RILSender:this$0 Lcom/android/internal/telephony/RIL;
  5933. // 400: getfield 78 com/android/internal/telephony/RIL:mRequestList Landroid/util/SparseArray;
  5934. // 403: iload_2
  5935. // 404: invokevirtual 147 android/util/SparseArray:valueAt (I)Ljava/lang/Object;
  5936. // 407: checkcast 37 com/android/internal/telephony/RILRequest
  5937. // 410: astore 4
  5938. // 412: ldc 59
  5939. // 414: new 98 java/lang/StringBuilder
  5940. // 417: dup
  5941. // 418: invokespecial 100 java/lang/StringBuilder:<init> ()V
  5942. // 421: iload_2
  5943. // 422: invokevirtual 108 java/lang/StringBuilder:append (I)Ljava/lang/StringBuilder;
  5944. // 425: ldc -107
  5945. // 427: invokevirtual 105 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5946. // 430: aload 4
  5947. // 432: getfield 70 com/android/internal/telephony/RILRequest:mSerial I
  5948. // 435: invokevirtual 108 java/lang/StringBuilder:append (I)Ljava/lang/StringBuilder;
  5949. // 438: ldc -105
  5950. // 440: invokevirtual 105 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5951. // 443: aload 4
  5952. // 445: getfield 154 com/android/internal/telephony/RILRequest:mRequest I
  5953. // 448: invokestatic 158 com/android/internal/telephony/RIL:requestToString (I)Ljava/lang/String;
  5954. // 451: invokevirtual 105 java/lang/StringBuilder:append (Ljava/lang/String;)Ljava/lang/StringBuilder;
  5955. // 454: invokevirtual 112 java/lang/StringBuilder:toString ()Ljava/lang/String;
  5956. // 457: invokestatic 143 android/telephony/Rlog:d (Ljava/lang/String;Ljava/lang/String;)I
  5957. // 460: pop
  5958. // 461: iload_2
  5959. // 462: iconst_1
  5960. // 463: iadd
  5961. // 464: istore_2
  5962. // 465: goto -74 -> 391
  5963. // 468: aload_1
  5964. // 469: monitorexit
  5965. // 470: return
  5966. // 471: astore 4
  5967. // 473: aload_1
  5968. // 474: monitorexit
  5969. // 475: aload 4
  5970. // 477: athrow
  5971. // Local variable table:
  5972. // start length slot name signature
  5973. // 0 478 0 this RILSender
  5974. // 390 75 2 i int
  5975. // 363 31 3 j int
  5976. // 10 434 4 localRILRequest RILRequest
  5977. // 471 5 4 localObject1 Object
  5978. // 267 10 6 arrayOfByte byte[]
  5979. // Exception table:
  5980. // from to target type
  5981. // 41 49 73 java/io/IOException
  5982. // 53 72 73 java/io/IOException
  5983. // 118 130 73 java/io/IOException
  5984. // 150 212 73 java/io/IOException
  5985. // 261 263 73 java/io/IOException
  5986. // 263 276 73 java/io/IOException
  5987. // 281 332 73 java/io/IOException
  5988. // 41 49 212 java/lang/RuntimeException
  5989. // 53 72 212 java/lang/RuntimeException
  5990. // 118 130 212 java/lang/RuntimeException
  5991. // 150 212 212 java/lang/RuntimeException
  5992. // 261 263 212 java/lang/RuntimeException
  5993. // 263 276 212 java/lang/RuntimeException
  5994. // 281 332 212 java/lang/RuntimeException
  5995. // 130 150 257 finally
  5996. // 258 261 257 finally
  5997. // 343 389 471 finally
  5998. // 396 461 471 finally
  5999. // 468 470 471 finally
  6000. // 473 475 471 finally
  6001. }
  6002.  
  6003. public void run() {}
  6004. }
  6005.  
  6006. public final class UnsolOemHookBuffer
  6007. {
  6008. private byte[] mData;
  6009. private int mRilInstance;
  6010.  
  6011. public UnsolOemHookBuffer(int paramInt, byte[] paramArrayOfByte)
  6012. {
  6013. this.mRilInstance = paramInt;
  6014. this.mData = paramArrayOfByte;
  6015. }
  6016.  
  6017. public int getRilInstance()
  6018. {
  6019. return this.mRilInstance;
  6020. }
  6021.  
  6022. public byte[] getUnsolOemHookBuffer()
  6023. {
  6024. return this.mData;
  6025. }
  6026. }
  6027. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement