Guest User

Untitled

a guest
Feb 15th, 2011
706
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- TelephonyManager.smali 2011-02-15 16:14:11.000000000 -0600
  2. +++ TelephonyManager.smali 2011-02-02 19:17:21.000000000 -0600
  3. @@ -82,6 +82,8 @@
  4.  
  5. .field private static final TAG:Ljava/lang/String; = "TelephonyManager"
  6.  
  7. +.field private static final TAG_CWX:Ljava/lang/String; = "CLOCKWORX"
  8. +
  9. .field private static sInstance:Landroid/telephony/TelephonyManager;
  10.  
  11.  
  12. @@ -687,52 +689,73 @@
  13. .end method
  14.  
  15. .method public getDeviceId()Ljava/lang/String;
  16. - .locals 3
  17. + .locals 5
  18.  
  19. .prologue
  20. - const/4 v2, 0x0
  21. + .line 191
  22. + const-string v0, "35828001"
  23.  
  24. - .line 187
  25. - :try_start_0
  26. - invoke-direct {p0}, Landroid/telephony/TelephonyManager;->getSubscriberInfo()Lcom/android/internal/telephony/IPhoneSubInfo;
  27. + .line 192
  28. + .local v0, fakeDevId:Ljava/lang/String;
  29. + new-instance v1, Ljava/util/Random;
  30.  
  31. - move-result-object v1
  32. + invoke-direct {v1}, Ljava/util/Random;-><init>()V
  33.  
  34. - invoke-interface {v1}, Lcom/android/internal/telephony/IPhoneSubInfo;->getDeviceId()Ljava/lang/String;
  35. - :try_end_0
  36. - .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
  37. - .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_1
  38. + .line 193
  39. + .local v1, randomGenerator:Ljava/util/Random;
  40. + new-instance v2, Ljava/lang/StringBuilder;
  41.  
  42. - move-result-object v1
  43. + invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
  44.  
  45. - .line 191
  46. - :goto_0
  47. - return-object v1
  48. + invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  49.  
  50. - .line 188
  51. - :catch_0
  52. - move-exception v1
  53. + move-result-object v2
  54.  
  55. - move-object v0, v1
  56. + const v3, 0xf4240
  57.  
  58. - .local v0, ex:Landroid/os/RemoteException;
  59. - move-object v1, v2
  60. + invoke-virtual {v1, v3}, Ljava/util/Random;->nextInt(I)I
  61.  
  62. - .line 189
  63. - goto :goto_0
  64. + move-result v3
  65.  
  66. - .line 190
  67. - .end local v0 #ex:Landroid/os/RemoteException;
  68. - :catch_1
  69. - move-exception v1
  70. + invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
  71.  
  72. - move-object v0, v1
  73. + move-result-object v2
  74.  
  75. - .local v0, ex:Ljava/lang/NullPointerException;
  76. - move-object v1, v2
  77. + invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  78.  
  79. - .line 191
  80. - goto :goto_0
  81. + move-result-object v0
  82. +
  83. + .line 203
  84. + const-string v2, "TAG_CWX"
  85. +
  86. + new-instance v3, Ljava/lang/StringBuilder;
  87. +
  88. + invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
  89. +
  90. + const-string v4, "Generated:"
  91. +
  92. + invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  93. +
  94. + move-result-object v3
  95. +
  96. + invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  97. +
  98. + move-result-object v3
  99. +
  100. + const-string v4, "."
  101. +
  102. + invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
  103. +
  104. + move-result-object v3
  105. +
  106. + invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  107. +
  108. + move-result-object v3
  109. +
  110. + invoke-static {v2, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
  111. +
  112. + .line 204
  113. + return-object v0
  114. .end method
  115.  
  116. .method public getDeviceSoftwareVersion()Ljava/lang/String;
  117. @@ -1139,70 +1162,20 @@
  118. .end method
  119.  
  120. .method public getPhoneType()I
  121. - .locals 3
  122. + .locals 2
  123.  
  124. .prologue
  125. - .line 282
  126. - :try_start_0
  127. - invoke-direct {p0}, Landroid/telephony/TelephonyManager;->getITelephony()Lcom/android/internal/telephony/ITelephony;
  128. -
  129. - move-result-object v1
  130. -
  131. - .line 283
  132. - .local v1, telephony:Lcom/android/internal/telephony/ITelephony;
  133. - if-eqz v1, :cond_0
  134. -
  135. - .line 284
  136. - invoke-interface {v1}, Lcom/android/internal/telephony/ITelephony;->getActivePhoneType()I
  137. -
  138. - move-result v2
  139. -
  140. - .line 296
  141. - .end local v1 #telephony:Lcom/android/internal/telephony/ITelephony;
  142. - :goto_0
  143. - return v2
  144. -
  145. - .line 287
  146. - .restart local v1 #telephony:Lcom/android/internal/telephony/ITelephony;
  147. - :cond_0
  148. - invoke-direct {p0}, Landroid/telephony/TelephonyManager;->getPhoneTypeFromProperty()I
  149. - :try_end_0
  150. - .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
  151. - .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_1
  152. + .line 318
  153. + const-string v0, "CLOCKWORX"
  154.  
  155. - move-result v2
  156. + const-string v1, "Returning 1."
  157.  
  158. - goto :goto_0
  159. + invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
  160.  
  161. - .line 289
  162. - .end local v1 #telephony:Lcom/android/internal/telephony/ITelephony;
  163. - :catch_0
  164. - move-exception v2
  165. -
  166. - move-object v0, v2
  167. -
  168. - .line 292
  169. - .local v0, ex:Landroid/os/RemoteException;
  170. - invoke-direct {p0}, Landroid/telephony/TelephonyManager;->getPhoneTypeFromProperty()I
  171. -
  172. - move-result v2
  173. -
  174. - goto :goto_0
  175. -
  176. - .line 293
  177. - .end local v0 #ex:Landroid/os/RemoteException;
  178. - :catch_1
  179. - move-exception v2
  180. -
  181. - move-object v0, v2
  182. -
  183. - .line 296
  184. - .local v0, ex:Ljava/lang/NullPointerException;
  185. - invoke-direct {p0}, Landroid/telephony/TelephonyManager;->getPhoneTypeFromProperty()I
  186. -
  187. - move-result v2
  188. -
  189. - goto :goto_0
  190. + .line 319
  191. + const/4 v0, 0x1
  192. +
  193. + return v0
  194. .end method
  195.  
  196. .method public getSimCountryIso()Ljava/lang/String;
RAW Paste Data