| | | |
Offset 20, 17 lines modified | Offset 20, 15 lines modified |
20 | #·static·fields | 20 | #·static·fields |
21 | .field·public·static·final·CURRENT_GENERATION_CLAUSE:Ljava/lang/String;·=·"SELECT·generation·FROM·local_metadata" | 21 | .field·public·static·final·CURRENT_GENERATION_CLAUSE:Ljava/lang/String;·=·"SELECT·generation·FROM·local_metadata" |
| |
22 | .field·static·final·EXTERNAL_DATABASE_NAME:Ljava/lang/String;·=·"external.db" | 22 | .field·static·final·EXTERNAL_DATABASE_NAME:Ljava/lang/String;·=·"external.db" |
| |
23 | .field·static·final·INTERNAL_DATABASE_NAME:Ljava/lang/String;·=·"internal.db" | 23 | .field·static·final·INTERNAL_DATABASE_NAME:Ljava/lang/String;·=·"internal.db" |
| |
24 | .field·private·static·final·NOTIFY_BATCH_SIZE:I·=·0x100 | |
| |
25 | .field·private·static·final·PASSTHROUGH_WAIT_TIMEOUT:J·=·0x2710L | 24 | .field·private·static·final·RENAME_TIMEOUT:J·=·0x2710L |
| |
26 | .field·static·final·VERSION_J:I·=·0x1fd | 25 | .field·static·final·VERSION_J:I·=·0x1fd |
| |
27 | .field·static·final·VERSION_K:I·=·0x2bc | 26 | .field·static·final·VERSION_K:I·=·0x2bc |
| |
28 | .field·static·final·VERSION_L:I·=·0x2bc | 27 | .field·static·final·VERSION_L:I·=·0x2bc |
| |
Offset 56, 16 lines modified | Offset 54, 14 lines modified |
56 | ············"Landroid/util/ArraySet<", | 54 | ············"Landroid/util/ArraySet<", |
57 | ············"Ljava/lang/String;", | 55 | ············"Ljava/lang/String;", |
58 | ············">;" | 56 | ············">;" |
59 | ········} | 57 | ········} |
60 | ····.end·annotation | 58 | ····.end·annotation |
61 | .end·field | 59 | .end·field |
| |
62 | .field·private·static·sMigrationLock:Ljava/lang/Object; | |
| |
| |
63 | #·instance·fields | 60 | #·instance·fields |
64 | .field·final·mColumnAnnotation:Ljava/lang/Class; | 61 | .field·final·mColumnAnnotation:Ljava/lang/Class; |
65 | ····.annotation·system·Ldalvik/annotation/Signature; | 62 | ····.annotation·system·Ldalvik/annotation/Signature; |
66 | ········value·=·{ | 63 | ········value·=·{ |
67 | ············"Ljava/lang/Class<", | 64 | ············"Ljava/lang/Class<", |
68 | ············"+", | 65 | ············"+", |
Offset 101, 15 lines modified | Offset 97, 15 lines modified |
101 | ····.end·annotation | 97 | ····.end·annotation |
102 | .end·field | 98 | .end·field |
| |
103 | .field·final·mInternal:Z | 99 | .field·final·mInternal:Z |
| |
104 | .field·final·mLegacyProvider:Z | 100 | .field·final·mLegacyProvider:Z |
| |
105 | .field·private·final·mMigrationFileName:Ljava/lang/String; | 101 | .field·mMigrateFromLegacy:Z |
| |
106 | .field·final·mMigrationListener:Lcom/android/providers/media/DatabaseHelper$OnLegacyMigrationListener; | 102 | .field·final·mMigrationListener:Lcom/android/providers/media/DatabaseHelper$OnLegacyMigrationListener; |
| |
107 | .field·final·mName:Ljava/lang/String; | 103 | .field·final·mName:Ljava/lang/String; |
| |
108 | .field·private·final·mProjectionMapCache:Landroid/util/ArrayMap; | 104 | .field·private·final·mProjectionMapCache:Landroid/util/ArrayMap; |
109 | ····.annotation·system·Ldalvik/annotation/Signature; | 105 | ····.annotation·system·Ldalvik/annotation/Signature; |
Offset 148, 22 lines modified | Offset 144, 15 lines modified |
148 | .field·final·mVolumeName:Ljava/lang/String; | 144 | .field·final·mVolumeName:Ljava/lang/String; |
| |
| |
149 | #·direct·methods | 145 | #·direct·methods |
150 | .method·static·constructor·<clinit>()V | 146 | .method·static·constructor·<clinit>()V |
151 | ····.locals·1 | 147 | ····.locals·1 |
| |
152 | ····.line·138 | |
153 | ····new-instance·v0,·Ljava/lang/Object; | |
| |
154 | ····invoke-direct·{v0},·Ljava/lang/Object;-><init>()V | |
| |
155 | ····sput-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrationLock:Ljava/lang/Object; | |
| |
156 | ····.line·1098 | 148 | ····.line·919 |
157 | ····new-instance·v0,·Landroid/util/ArraySet; | 149 | ····new-instance·v0,·Landroid/util/ArraySet; |
| |
158 | ····invoke-direct·{v0},·Landroid/util/ArraySet;-><init>()V | 150 | ····invoke-direct·{v0},·Landroid/util/ArraySet;-><init>()V |
| |
159 | ····sput-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; | 151 | ····sput-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; |
| |
160 | ····return-void | 152 | ····return-void |
Offset 188, 267 lines modified | Offset 177, 224 lines modified |
188 | ············"Ljava/lang/String;", | 177 | ············"Ljava/lang/String;", |
189 | ············">;)V" | 178 | ············">;)V" |
190 | ········} | 179 | ········} |
191 | ····.end·annotation | 180 | ····.end·annotation |
| |
192 | ····const/4·v0,·0x0 | 181 | ····const/4·v0,·0x0 |
| |
193 | ····.line·181 | 182 | ····.line·176 |
194 | ····invoke-direct·{p0,·p1,·p2,·v0,·p3},·Landroid/database/sqlite/SQLiteOpenHelper;-><init>(Landroid/content/Context;Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;I)V | 183 | ····invoke-direct·{p0,·p1,·p2,·v0,·p3},·Landroid/database/sqlite/SQLiteOpenHelper;-><init>(Landroid/content/Context;Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;I)V |
| |
195 | ····.line·120 | 184 | ····.line·111 |
196 | ····new-instance·v0,·Landroid/util/ArraySet; | 185 | ····new-instance·v0,·Landroid/util/ArraySet; |
| |
197 | ····invoke-direct·{v0},·Landroid/util/ArraySet;-><init>()V | 186 | ····invoke-direct·{v0},·Landroid/util/ArraySet;-><init>()V |
| |
198 | ····iput-object·v0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mFilterVolumeNames:Ljava/util/Set; | 187 | ····iput-object·v0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mFilterVolumeNames:Ljava/util/Set; |
| |
199 | ····.line·136 | 188 | ····.line·133 |
200 | ····new-instance·v0,·Ljava/util/concurrent/locks/ReentrantReadWriteLock; | 189 | ····new-instance·v0,·Ljava/util/concurrent/locks/ReentrantReadWriteLock; |
| |
201 | ····invoke-direct·{v0},·Ljava/util/concurrent/locks/ReentrantReadWriteLock;-><init>()V | 190 | ····invoke-direct·{v0},·Ljava/util/concurrent/locks/ReentrantReadWriteLock;-><init>()V |
| |
202 | ····iput-object·v0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mSchemaLock:Ljava/util/concurrent/locks/ReentrantReadWriteLock; | 191 | ····iput-object·v0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mSchemaLock:Ljava/util/concurrent/locks/ReentrantReadWriteLock; |
| |
203 | ····.line·397 | 192 | ····.line·384 |
204 | ····new-instance·v0,·Landroid/util/ArrayMap; | 193 | ····new-instance·v0,·Landroid/util/ArrayMap; |
| |
205 | ····invoke-direct·{v0},·Landroid/util/ArrayMap;-><init>()V | 194 | ····invoke-direct·{v0},·Landroid/util/ArrayMap;-><init>()V |
| |
206 | ····iput-object·v0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mProjectionMapCache:Landroid/util/ArrayMap; | 195 | ····iput-object·v0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mProjectionMapCache:Landroid/util/ArrayMap; |
| |
207 | ····.line·442 | 196 | ····.line·429 |
208 | ····new-instance·v0,·Ljava/lang/ThreadLocal; | 197 | ····new-instance·v0,·Ljava/lang/ThreadLocal; |
| |
209 | ····invoke-direct·{v0},·Ljava/lang/ThreadLocal;-><init>()V | 198 | ····invoke-direct·{v0},·Ljava/lang/ThreadLocal;-><init>()V |
| |
210 | ····iput-object·v0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mTransactionState:Ljava/lang/ThreadLocal; | 199 | ····iput-object·v0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mTransactionState:Ljava/lang/ThreadLocal; |
| |
211 | ····.line·1101 | 200 | ····.line·922 |
212 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; | 201 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; |
| |
213 | ····const-string·v1,·"_id" | 202 | ····const-string·v1,·"_id" |
| |
214 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z | 203 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z |
| |
215 | ····.line·1102 | 204 | ····.line·923 |
216 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; | 205 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; |
| |
217 | ····const-string·v1,·"_data" | 206 | ····const-string·v1,·"_data" |
| |
218 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z | 207 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z |
| |
219 | ····.line·1103 | 208 | ····.line·924 |
220 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; | 209 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; |
| |
221 | ····const-string·v1,·"volume_name" | 210 | ····const-string·v1,·"volume_name" |
| |
222 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z | 211 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z |
| |
223 | ····.line·1104 | 212 | ····.line·925 |
224 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; | 213 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; |
| |
225 | ····const-string·v1,·"media_type" | 214 | ····const-string·v1,·"media_type" |
| |
226 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z | 215 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z |
| |
227 | ····.line·1106 | 216 | ····.line·927 |
228 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; | 217 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; |
| |
229 | ····const-string·v1,·"date_added" | 218 | ····const-string·v1,·"date_added" |
| |
230 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z | 219 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z |
| |
231 | ····.line·1107 | 220 | ····.line·928 |
232 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; | 221 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; |
| |
233 | ····const-string·v1,·"date_expires" | 222 | ····const-string·v1,·"date_expires" |
| |
234 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z | 223 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z |
| |
235 | ····.line·1108 | 224 | ····.line·929 |
236 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; | 225 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; |
| |
237 | ····const-string·v1,·"is_pending" | 226 | ····const-string·v1,·"is_pending" |
| |
238 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z | 227 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z |
| |
239 | ····.line·1109 | 228 | ····.line·930 |
240 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; | 229 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; |
| |
241 | ····const-string·v1,·"is_trashed" | 230 | ····const-string·v1,·"is_trashed" |
| |
242 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z | 231 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z |
| |
243 | ····.line·1110 | 232 | ····.line·931 |
244 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; | 233 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; |
| |
245 | ····const-string·v1,·"is_favorite" | 234 | ····const-string·v1,·"is_favorite" |
| |
246 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z | 235 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z |
| |
247 | ····.line·1111 | 236 | ····.line·932 |
248 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; | 237 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; |
| |
249 | ····const-string·v1,·"owner_package_name" | 238 | ····const-string·v1,·"owner_package_name" |
| |
250 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z | 239 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z |
| |
251 | ····.line·1113 | 240 | ····.line·934 |
252 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; | |
| |
253 | ····const-string·v1,·"orientation" | |
| |
254 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z | |
| |
255 | ····.line·1114 | |
256 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; | |
| |
257 | ····const-string·v1,·"parent" | |
| |
258 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z | |
| |
259 | ····.line·1116 | |
260 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; | 241 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; |
| |
261 | ····const-string·v1,·"bookmark" | 242 | ····const-string·v1,·"bookmark" |
| |
262 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z | 243 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z |
| |
263 | ····.line·1118 | 244 | ····.line·936 |
264 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; | 245 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; |
| |
265 | ····const-string·v2,·"tags" | 246 | ····const-string·v2,·"tags" |
| |
266 | ····invoke-virtual·{v0,·v2},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z | 247 | ····invoke-virtual·{v0,·v2},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z |
| |
267 | ····.line·1119 | 248 | ····.line·937 |
268 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; | 249 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; |
| |
269 | ····const-string·v2,·"category" | 250 | ····const-string·v2,·"category" |
| |
270 | ····invoke-virtual·{v0,·v2},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z | 251 | ····invoke-virtual·{v0,·v2},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z |
| |
| 252 | ····.line·938 |
271 | ····.line·1120 | |
272 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; | |
| |
273 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z | |
| |
274 | ····.line·1122 | |
275 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; | 253 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; |
| |
276 | ····const-string·v1,·"isprivate" | |
| |
277 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z | 254 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z |
| |
278 | ····.line·1124 | 255 | ····.line·940 |
279 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; | 256 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; |
| |
280 | ····const-string·v1,·"download_uri" | 257 | ····const-string·v1,·"download_uri" |
| |
281 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z | 258 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z |
| |
282 | ····.line·1125 | 259 | ····.line·941 |
283 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; | 260 | ····sget-object·v0,·Lcom/android/providers/media/DatabaseHelper;->sMigrateColumns:Landroid/util/ArraySet; |
| |
284 | ····const-string·v1,·"referer_uri" | 261 | ····const-string·v1,·"referer_uri" |
| |
285 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z | 262 | ····invoke-virtual·{v0,·v1},·Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z |
| |
286 | ····.line·182 | 263 | ····.line·177 |
287 | ····iput-object·p1,·p0,·Lcom/android/providers/media/DatabaseHelper;->mContext:Landroid/content/Context; | 264 | ····iput-object·p1,·p0,·Lcom/android/providers/media/DatabaseHelper;->mContext:Landroid/content/Context; |
| |
288 | ····.line·183 | 265 | ····.line·178 |
289 | ····iput-object·p2,·p0,·Lcom/android/providers/media/DatabaseHelper;->mName:Ljava/lang/String; | 266 | ····iput-object·p2,·p0,·Lcom/android/providers/media/DatabaseHelper;->mName:Ljava/lang/String; |
| |
290 | ····.line·184 | 267 | ····.line·179 |
291 | ····iput·p3,·p0,·Lcom/android/providers/media/DatabaseHelper;->mVersion:I | 268 | ····iput·p3,·p0,·Lcom/android/providers/media/DatabaseHelper;->mVersion:I |
| |
292 | ····const-string·p1,·"internal" | 269 | ····const-string·p1,·"internal" |
| |
293 | ····if-eqz·p4,·:cond_0 | 270 | ····if-eqz·p4,·:cond_0 |
| |
294 | ····move-object·p2,·p1 | 271 | ····move-object·p2,·p1 |
| |
295 | ····goto·:goto_0 | 272 | ····goto·:goto_0 |
| |
296 | ····:cond_0 | 273 | ····:cond_0 |
297 | ····const-string·p2,·"external" | 274 | ····const-string·p2,·"external" |
| |
298 | ····.line·185 | 275 | ····.line·180 |
299 | ····:goto_0 | 276 | ····:goto_0 |
300 | ····iput-object·p2,·p0,·Lcom/android/providers/media/DatabaseHelper;->mVolumeName:Ljava/lang/String; | 277 | ····iput-object·p2,·p0,·Lcom/android/providers/media/DatabaseHelper;->mVolumeName:Ljava/lang/String; |
| |
301 | ····.line·186 | 278 | ····.line·181 |
302 | ····iput-boolean·p4,·p0,·Lcom/android/providers/media/DatabaseHelper;->mInternal:Z | 279 | ····iput-boolean·p4,·p0,·Lcom/android/providers/media/DatabaseHelper;->mInternal:Z |
| |
303 | ····.line·187 | 280 | ····.line·182 |
304 | ····iput-boolean·p5,·p0,·Lcom/android/providers/media/DatabaseHelper;->mEarlyUpgrade:Z | 281 | ····iput-boolean·p5,·p0,·Lcom/android/providers/media/DatabaseHelper;->mEarlyUpgrade:Z |
| |
305 | ····.line·188 | 282 | ····.line·183 |
306 | ····iput-boolean·p6,·p0,·Lcom/android/providers/media/DatabaseHelper;->mLegacyProvider:Z | 283 | ····iput-boolean·p6,·p0,·Lcom/android/providers/media/DatabaseHelper;->mLegacyProvider:Z |
| |
307 | ····.line·189 | 284 | ····.line·184 |
308 | ····iput-object·p7,·p0,·Lcom/android/providers/media/DatabaseHelper;->mColumnAnnotation:Ljava/lang/Class; | 285 | ····iput-object·p7,·p0,·Lcom/android/providers/media/DatabaseHelper;->mColumnAnnotation:Ljava/lang/Class; |
| |
309 | ····.line·190 | 286 | ····.line·185 |
310 | ····iput-object·p8,·p0,·Lcom/android/providers/media/DatabaseHelper;->mSchemaListener:Lcom/android/providers/media/DatabaseHelper$OnSchemaChangeListener; | 287 | ····iput-object·p8,·p0,·Lcom/android/providers/media/DatabaseHelper;->mSchemaListener:Lcom/android/providers/media/DatabaseHelper$OnSchemaChangeListener; |
| |
311 | ····.line·191 | 288 | ····.line·186 |
312 | ····iput-object·p9,·p0,·Lcom/android/providers/media/DatabaseHelper;->mFilesListener:Lcom/android/providers/media/DatabaseHelper$OnFilesChangeListener; | 289 | ····iput-object·p9,·p0,·Lcom/android/providers/media/DatabaseHelper;->mFilesListener:Lcom/android/providers/media/DatabaseHelper$OnFilesChangeListener; |
| |
313 | ····.line·192 | 290 | ····.line·187 |
314 | ····iput-object·p10,·p0,·Lcom/android/providers/media/DatabaseHelper;->mMigrationListener:Lcom/android/providers/media/DatabaseHelper$OnLegacyMigrationListener; | 291 | ····iput-object·p10,·p0,·Lcom/android/providers/media/DatabaseHelper;->mMigrationListener:Lcom/android/providers/media/DatabaseHelper$OnLegacyMigrationListener; |
| |
315 | ····.line·193 | 292 | ····.line·188 |
316 | ····iput-object·p11,·p0,·Lcom/android/providers/media/DatabaseHelper;->mIdGenerator:Ljava/util/function/UnaryOperator; | 293 | ····iput-object·p11,·p0,·Lcom/android/providers/media/DatabaseHelper;->mIdGenerator:Ljava/util/function/UnaryOperator; |
| |
| 294 | ····if-eqz·p4,·:cond_1 |
317 | ····.line·194 | |
318 | ····new-instance·p2,·Ljava/lang/StringBuilder; | |
| |
319 | ····invoke-direct·{p2},·Ljava/lang/StringBuilder;-><init>()V | |
| |
320 | ····const-string·p3,·"." | |
| |
321 | ····invoke-virtual·{p2,·p3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | |
| |
322 | ····iget-object·p3,·p0,·Lcom/android/providers/media/DatabaseHelper;->mVolumeName:Ljava/lang/String; | |
| |
323 | ····invoke-virtual·{p2,·p3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | |
| |
324 | ····invoke-virtual·{p2},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | |
| |
325 | ····move-result-object·p2 | |
| |
326 | ····iput-object·p2,·p0,·Lcom/android/providers/media/DatabaseHelper;->mMigrationFileName:Ljava/lang/String; | |
| |
327 | ····.line·197 | 295 | ····.line·192 |
328 | ····iget-boolean·p2,·p0,·Lcom/android/providers/media/DatabaseHelper;->mInternal:Z | |
| |
329 | ····if-eqz·p2,·:cond_1 | |
| |
330 | ····.line·198 | |
331 | ····iget-object·p2,·p0,·Lcom/android/providers/media/DatabaseHelper;->mFilterVolumeNames:Ljava/util/Set; | 296 | ····iget-object·p2,·p0,·Lcom/android/providers/media/DatabaseHelper;->mFilterVolumeNames:Ljava/util/Set; |
| |
332 | ····invoke-interface·{p2,·p1},·Ljava/util/Set;->add(Ljava/lang/Object;)Z | 297 | ····invoke-interface·{p2,·p1},·Ljava/util/Set;->add(Ljava/lang/Object;)Z |
| |
333 | ····goto·:goto_1 | 298 | ····goto·:goto_1 |
| |
334 | ····.line·200 | 299 | ····.line·194 |
335 | ····:cond_1 | 300 | ····:cond_1 |
336 | ····iget-object·p1,·p0,·Lcom/android/providers/media/DatabaseHelper;->mFilterVolumeNames:Ljava/util/Set; | 301 | ····iget-object·p1,·p0,·Lcom/android/providers/media/DatabaseHelper;->mFilterVolumeNames:Ljava/util/Set; |
| |
337 | ····const-string·p2,·"external_primary" | 302 | ····const-string·p2,·"external_primary" |
| |
338 | ····invoke-interface·{p1,·p2},·Ljava/util/Set;->add(Ljava/lang/Object;)Z | 303 | ····invoke-interface·{p1,·p2},·Ljava/util/Set;->add(Ljava/lang/Object;)Z |
| |
339 | ····:goto_1 | 304 | ····:goto_1 |
340 | ····const/4·p1,·0x1 | 305 | ····const/4·p1,·0x1 |
| |
341 | ····.line·203 | 306 | ····.line·197 |
342 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteOpenHelper;->setWriteAheadLoggingEnabled(Z)V | 307 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteOpenHelper;->setWriteAheadLoggingEnabled(Z)V |
| |
343 | ····return-void | 308 | ····return-void |
344 | .end·method | 309 | .end·method |
| |
345 | .method·public·constructor·<init>(Landroid/content/Context;Ljava/lang/String;ZZZLjava/lang/Class;Lcom/android/providers/media/DatabaseHelper$OnSchemaChangeListener;Lcom/android/providers/media/DatabaseHelper$OnFilesChangeListener;Lcom/android/providers/media/DatabaseHelper$OnLegacyMigrationListener;Ljava/util/function/UnaryOperator;)V | 310 | .method·public·constructor·<init>(Landroid/content/Context;Ljava/lang/String;ZZZLjava/lang/Class;Lcom/android/providers/media/DatabaseHelper$OnSchemaChangeListener;Lcom/android/providers/media/DatabaseHelper$OnFilesChangeListener;Lcom/android/providers/media/DatabaseHelper$OnLegacyMigrationListener;Ljava/util/function/UnaryOperator;)V |
346 | ····.locals·12 | 311 | ····.locals·12 |
Offset 467, 15 lines modified | Offset 413, 15 lines modified |
467 | ············"Lcom/android/providers/media/DatabaseHelper$OnLegacyMigrationListener;", | 413 | ············"Lcom/android/providers/media/DatabaseHelper$OnLegacyMigrationListener;", |
468 | ············"Ljava/util/function/UnaryOperator<", | 414 | ············"Ljava/util/function/UnaryOperator<", |
469 | ············"Ljava/lang/String;", | 415 | ············"Ljava/lang/String;", |
470 | ············">;)V" | 416 | ············">;)V" |
471 | ········} | 417 | ········} |
472 | ····.end·annotation | 418 | ····.end·annotation |
| |
473 | ····.line·170 | 419 | ····.line·165 |
474 | ····invoke-static·{p1},·Lcom/android/providers/media/DatabaseHelper;->getDatabaseVersion(Landroid/content/Context;)I | 420 | ····invoke-static·{p1},·Lcom/android/providers/media/DatabaseHelper;->getDatabaseVersion(Landroid/content/Context;)I |
| |
475 | ····move-result·v3 | 421 | ····move-result·v3 |
| |
476 | ····move-object·v0,·p0 | 422 | ····move-object·v0,·p0 |
| |
477 | ····move-object·v1,·p1 | 423 | ····move-object·v1,·p1 |
Offset 502, 446 lines modified | Offset 448, 408 lines modified |
| |
502 | ····return-void | 448 | ····return-void |
503 | .end·method | 449 | .end·method |
| |
504 | .method·private·beginTransactionInternal()V | 450 | .method·private·beginTransactionInternal()V |
505 | ····.locals·3 | 451 | ····.locals·3 |
| |
506 | ····.line·489 | 452 | ····.line·476 |
507 | ····iget-object·v0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mTransactionState:Ljava/lang/ThreadLocal; | 453 | ····iget-object·v0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mTransactionState:Ljava/lang/ThreadLocal; |
| |
508 | ····invoke-virtual·{v0},·Ljava/lang/ThreadLocal;->get()Ljava/lang/Object; | 454 | ····invoke-virtual·{v0},·Ljava/lang/ThreadLocal;->get()Ljava/lang/Object; |
| |
509 | ····move-result-object·v0 | 455 | ····move-result-object·v0 |
| |
510 | ····if-nez·v0,·:cond_0 | 456 | ····if-nez·v0,·:cond_0 |
| |
511 | ····.line·492 | 457 | ····.line·479 |
512 | ····iget-object·v0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mTransactionState:Ljava/lang/ThreadLocal; | 458 | ····iget-object·v0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mTransactionState:Ljava/lang/ThreadLocal; |
| |
513 | ····new-instance·v1,·Lcom/android/providers/media/DatabaseHelper$TransactionState; | 459 | ····new-instance·v1,·Lcom/android/providers/media/DatabaseHelper$TransactionState; |
| |
514 | ····const/4·v2,·0x0 | 460 | ····const/4·v2,·0x0 |
| |
515 | ····invoke-direct·{v1,·v2},·Lcom/android/providers/media/DatabaseHelper$TransactionState;-><init>(Lcom/android/providers/media/DatabaseHelper$1;)V | 461 | ····invoke-direct·{v1,·v2},·Lcom/android/providers/media/DatabaseHelper$TransactionState;-><init>(Lcom/android/providers/media/DatabaseHelper$1;)V |
| |
516 | ····invoke-virtual·{v0,·v1},·Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V | 462 | ····invoke-virtual·{v0,·v1},·Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V |
| |
517 | ····.line·494 | 463 | ····.line·481 |
518 | ····invoke-super·{p0},·Landroid/database/sqlite/SQLiteOpenHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase; | 464 | ····invoke-super·{p0},·Landroid/database/sqlite/SQLiteOpenHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase; |
| |
519 | ····move-result-object·v0 | 465 | ····move-result-object·v0 |
| |
520 | ····.line·495 | 466 | ····.line·482 |
521 | ····iget-object·p0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mSchemaLock:Ljava/util/concurrent/locks/ReentrantReadWriteLock; | 467 | ····iget-object·p0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mSchemaLock:Ljava/util/concurrent/locks/ReentrantReadWriteLock; |
| |
522 | ····invoke-virtual·{p0},·Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock; | 468 | ····invoke-virtual·{p0},·Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock; |
| |
523 | ····move-result-object·p0 | 469 | ····move-result-object·p0 |
| |
524 | ····invoke-virtual·{p0},·Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->lock()V | 470 | ····invoke-virtual·{p0},·Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->lock()V |
| |
525 | ····.line·496 | 471 | ····.line·483 |
526 | ····invoke-virtual·{v0},·Landroid/database/sqlite/SQLiteDatabase;->beginTransaction()V | 472 | ····invoke-virtual·{v0},·Landroid/database/sqlite/SQLiteDatabase;->beginTransaction()V |
| |
527 | ····const-string·p0,·"UPDATE·local_metadata·SET·generation=generation+1;" | 473 | ····const-string·p0,·"UPDATE·local_metadata·SET·generation=generation+1;" |
| |
528 | ····.line·497 | 474 | ····.line·484 |
529 | ····invoke-virtual·{v0,·p0},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 475 | ····invoke-virtual·{v0,·p0},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
530 | ····return-void | 476 | ····return-void |
| |
531 | ····.line·490 | 477 | ····.line·477 |
532 | ····:cond_0 | 478 | ····:cond_0 |
533 | ····new-instance·p0,·Ljava/lang/IllegalStateException; | 479 | ····new-instance·p0,·Ljava/lang/IllegalStateException; |
| |
534 | ····const-string·v0,·"Nested·transactions·not·supported" | 480 | ····const-string·v0,·"Nested·transactions·not·supported" |
| |
535 | ····invoke-direct·{p0,·v0},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V | 481 | ····invoke-direct·{p0,·v0},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V |
| |
536 | ····throw·p0 | 482 | ····throw·p0 |
537 | .end·method | 483 | .end·method |
| |
538 | .method·private·static·createLatestIndexes(Landroid/database/sqlite/SQLiteDatabase;Z)V | 484 | .method·private·static·createLatestIndexes(Landroid/database/sqlite/SQLiteDatabase;Z)V |
539 | ····.locals·0 | 485 | ····.locals·0 |
| |
540 | ····.line·1269 | 486 | ····.line·1085 |
541 | ····invoke-static·{p0},·Lcom/android/providers/media/DatabaseHelper;->makePristineIndexes(Landroid/database/sqlite/SQLiteDatabase;)V | 487 | ····invoke-static·{p0},·Lcom/android/providers/media/DatabaseHelper;->makePristineIndexes(Landroid/database/sqlite/SQLiteDatabase;)V |
| |
542 | ····const-string·p1,·"CREATE·INDEX·image_id_index·on·thumbnails(image_id)" | 488 | ····const-string·p1,·"CREATE·INDEX·image_id_index·on·thumbnails(image_id)" |
| |
543 | ····.line·1271 | 489 | ····.line·1087 |
544 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 490 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
545 | ····const-string·p1,·"CREATE·INDEX·video_id_index·on·videothumbnails(video_id)" | 491 | ····const-string·p1,·"CREATE·INDEX·video_id_index·on·videothumbnails(video_id)" |
| |
546 | ····.line·1272 | 492 | ····.line·1088 |
547 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 493 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
548 | ····const-string·p1,·"CREATE·INDEX·album_id_idx·ON·files(album_id)" | 494 | ····const-string·p1,·"CREATE·INDEX·album_id_idx·ON·files(album_id)" |
| |
549 | ····.line·1273 | 495 | ····.line·1089 |
550 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 496 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
551 | ····const-string·p1,·"CREATE·INDEX·artist_id_idx·ON·files(artist_id)" | 497 | ····const-string·p1,·"CREATE·INDEX·artist_id_idx·ON·files(artist_id)" |
| |
552 | ····.line·1274 | 498 | ····.line·1090 |
553 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 499 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
554 | ····const-string·p1,·"CREATE·INDEX·genre_id_idx·ON·files(genre_id)" | 500 | ····const-string·p1,·"CREATE·INDEX·genre_id_idx·ON·files(genre_id)" |
| |
555 | ····.line·1275 | 501 | ····.line·1091 |
556 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 502 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
557 | ····const-string·p1,·"CREATE·INDEX·bucket_index·on·files(bucket_id,media_type,datetaken,·_id)" | 503 | ····const-string·p1,·"CREATE·INDEX·bucket_index·on·files(bucket_id,media_type,datetaken,·_id)" |
| |
558 | ····.line·1276 | 504 | ····.line·1092 |
559 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 505 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
560 | ····const-string·p1,·"CREATE·INDEX·bucket_name·on·files(bucket_id,media_type,bucket_display_name)" | 506 | ····const-string·p1,·"CREATE·INDEX·bucket_name·on·files(bucket_id,media_type,bucket_display_name)" |
| |
561 | ····.line·1277 | 507 | ····.line·1093 |
562 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 508 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
563 | ····const-string·p1,·"CREATE·INDEX·format_index·ON·files(format)" | 509 | ····const-string·p1,·"CREATE·INDEX·format_index·ON·files(format)" |
| |
564 | ····.line·1278 | 510 | ····.line·1094 |
565 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 511 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
566 | ····const-string·p1,·"CREATE·INDEX·media_type_index·ON·files(media_type)" | 512 | ····const-string·p1,·"CREATE·INDEX·media_type_index·ON·files(media_type)" |
| |
567 | ····.line·1279 | 513 | ····.line·1095 |
568 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 514 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
569 | ····const-string·p1,·"CREATE·INDEX·parent_index·ON·files(parent)" | 515 | ····const-string·p1,·"CREATE·INDEX·parent_index·ON·files(parent)" |
| |
570 | ····.line·1280 | 516 | ····.line·1096 |
571 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 517 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
572 | ····const-string·p1,·"CREATE·INDEX·path_index·ON·files(_data)" | 518 | ····const-string·p1,·"CREATE·INDEX·path_index·ON·files(_data)" |
| |
573 | ····.line·1281 | 519 | ····.line·1097 |
574 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 520 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
575 | ····const-string·p1,·"CREATE·INDEX·sort_index·ON·files(datetaken·ASC,·_id·ASC)" | 521 | ····const-string·p1,·"CREATE·INDEX·sort_index·ON·files(datetaken·ASC,·_id·ASC)" |
| |
576 | ····.line·1282 | 522 | ····.line·1098 |
577 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 523 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
578 | ····const-string·p1,·"CREATE·INDEX·title_idx·ON·files(title)" | 524 | ····const-string·p1,·"CREATE·INDEX·title_idx·ON·files(title)" |
| |
579 | ····.line·1283 | 525 | ····.line·1099 |
580 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 526 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
581 | ····const-string·p1,·"CREATE·INDEX·titlekey_index·ON·files(title_key)" | 527 | ····const-string·p1,·"CREATE·INDEX·titlekey_index·ON·files(title_key)" |
| |
582 | ····.line·1284 | 528 | ····.line·1100 |
583 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 529 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
584 | ····return-void | 530 | ····return-void |
585 | .end·method | 531 | .end·method |
| |
586 | .method·private·createLatestSchema(Landroid/database/sqlite/SQLiteDatabase;)V | 532 | .method·private·createLatestSchema(Landroid/database/sqlite/SQLiteDatabase;)V |
587 | ····.locals·8 | 533 | ····.locals·7 |
| |
588 | ····const-string·v0,·"MediaProvider" | |
| |
589 | ····.line·752 | 534 | ····.line·738 |
590 | ····:try_start_0 | 535 | ····:try_start_0 |
591 | ····iget-object·v1,·p0,·Lcom/android/providers/media/DatabaseHelper;->mContext:Landroid/content/Context; | 536 | ····iget-object·v0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mContext:Landroid/content/Context; |
| |
592 | ····invoke-virtual·{v1},·Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; | 537 | ····invoke-virtual·{v0},·Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; |
| |
593 | ····move-result-object·v1 | 538 | ····move-result-object·v0 |
| |
594 | ····iget-object·v2,·p0,·Lcom/android/providers/media/DatabaseHelper;->mContext:Landroid/content/Context; | 539 | ····iget-object·v1,·p0,·Lcom/android/providers/media/DatabaseHelper;->mContext:Landroid/content/Context; |
| |
595 | ····.line·753 | 540 | ····.line·739 |
596 | ····invoke-virtual·{v2},·Landroid/content/Context;->getPackageName()Ljava/lang/String; | 541 | ····invoke-virtual·{v1},·Landroid/content/Context;->getPackageName()Ljava/lang/String; |
| |
597 | ····move-result-object·v2 | 542 | ····move-result-object·v1 |
| |
598 | ····const/16·v3,·0x8 | 543 | ····const/16·v2,·0x8 |
| |
599 | ····.line·752 | 544 | ····.line·738 |
600 | ····invoke-virtual·{v1,·v2,·v3},·Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo; | 545 | ····invoke-virtual·{v0,·v1,·v2},·Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo; |
| |
601 | ····move-result-object·v1 | 546 | ····move-result-object·v0 |
| |
602 | ····if-eqz·v1,·:cond_0 | 547 | ····if-eqz·v0,·:cond_0 |
| |
603 | ····.line·754 | 548 | ····.line·740 |
604 | ····iget-object·v2,·v1,·Landroid/content/pm/PackageInfo;->providers:[Landroid/content/pm/ProviderInfo; | 549 | ····iget-object·v1,·v0,·Landroid/content/pm/PackageInfo;->providers:[Landroid/content/pm/ProviderInfo; |
| |
605 | ····if-eqz·v2,·:cond_0 | 550 | ····if-eqz·v1,·:cond_0 |
| |
606 | ····.line·755 | 551 | ····.line·741 |
607 | ····iget-object·v1,·v1,·Landroid/content/pm/PackageInfo;->providers:[Landroid/content/pm/ProviderInfo; | 552 | ····iget-object·v0,·v0,·Landroid/content/pm/PackageInfo;->providers:[Landroid/content/pm/ProviderInfo; |
| |
608 | ····array-length·v2,·v1 | 553 | ····array-length·v1,·v0 |
| |
609 | ····const/4·v3,·0x0 | 554 | ····const/4·v2,·0x0 |
| |
610 | ····:goto_0 | 555 | ····:goto_0 |
611 | ····if-ge·v3,·v2,·:cond_0 | 556 | ····if-ge·v2,·v1,·:cond_0 |
| |
612 | ····aget-object·v4,·v1,·v3 | 557 | ····aget-object·v3,·v0,·v2 |
| |
613 | ····.line·756 | 558 | ····.line·742 |
614 | ····iget-object·v5,·p0,·Lcom/android/providers/media/DatabaseHelper;->mContext:Landroid/content/Context; | 559 | ····iget-object·v4,·p0,·Lcom/android/providers/media/DatabaseHelper;->mContext:Landroid/content/Context; |
| |
615 | ····new-instance·v6,·Ljava/lang/StringBuilder; | 560 | ····new-instance·v5,·Ljava/lang/StringBuilder; |
| |
616 | ····invoke-direct·{v6},·Ljava/lang/StringBuilder;-><init>()V | 561 | ····invoke-direct·{v5},·Ljava/lang/StringBuilder;-><init>()V |
| |
617 | ····const-string·v7,·"content://" | 562 | ····const-string·v6,·"content://" |
| |
618 | ····invoke-virtual·{v6,·v7},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 563 | ····invoke-virtual·{v5,·v6},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
619 | ····iget-object·v4,·v4,·Landroid/content/pm/ProviderInfo;->authority:Ljava/lang/String; | 564 | ····iget-object·v3,·v3,·Landroid/content/pm/ProviderInfo;->authority:Ljava/lang/String; |
| |
620 | ····invoke-virtual·{v6,·v4},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 565 | ····invoke-virtual·{v5,·v3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
621 | ····invoke-virtual·{v6},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | 566 | ····invoke-virtual·{v5},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
| |
622 | ····move-result-object·v4 | 567 | ····move-result-object·v3 |
| |
623 | ····invoke-static·{v4},·Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri; | 568 | ····invoke-static·{v3},·Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri; |
| |
624 | ····move-result-object·v4 | 569 | ····move-result-object·v3 |
| |
625 | ····const/4·v6,·0x3 | 570 | ····const/4·v5,·0x3 |
| |
626 | ····invoke-virtual·{v5,·v4,·v6},·Landroid/content/Context;->revokeUriPermission(Landroid/net/Uri;I)V | 571 | ····invoke-virtual·{v4,·v3,·v5},·Landroid/content/Context;->revokeUriPermission(Landroid/net/Uri;I)V |
627 | ····:try_end_0 | 572 | ····:try_end_0 |
628 | ····.catch·Ljava/lang/Exception;·{:try_start_0·..·:try_end_0}·:catch_0 | 573 | ····.catch·Ljava/lang/Exception;·{:try_start_0·..·:try_end_0}·:catch_0 |
| |
629 | ····add-int/lit8·v3,·v3,·0x1 | 574 | ····add-int/lit8·v2,·v2,·0x1 |
| |
630 | ····goto·:goto_0 | 575 | ····goto·:goto_0 |
| |
631 | ····:catch_0 | 576 | ····:catch_0 |
632 | ····move-exception·v1 | 577 | ····move-exception·v0 |
| |
| 578 | ····const-string·v1,·"MediaProvider" |
| |
633 | ····const-string·v2,·"Failed·to·revoke·permissions" | 579 | ····const-string·v2,·"Failed·to·revoke·permissions" |
| |
634 | ····.line·762 | 580 | ····.line·748 |
635 | ····invoke-static·{v0,·v2,·v1},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I | 581 | ····invoke-static·{v1,·v2,·v0},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I |
| |
636 | ····.line·765 | 582 | ····.line·751 |
637 | ····:cond_0 | 583 | ····:cond_0 |
638 | ····invoke-static·{p1},·Lcom/android/providers/media/DatabaseHelper;->makePristineSchema(Landroid/database/sqlite/SQLiteDatabase;)V | 584 | ····invoke-static·{p1},·Lcom/android/providers/media/DatabaseHelper;->makePristineSchema(Landroid/database/sqlite/SQLiteDatabase;)V |
| |
639 | ····const-string·v1,·"CREATE·TABLE·local_metadata·(generation·INTEGER·DEFAULT·0)" | 585 | ····const-string·v0,·"CREATE·TABLE·local_metadata·(generation·INTEGER·DEFAULT·0)" |
| |
640 | ····.line·767 | 586 | ····.line·753 |
641 | ····invoke-virtual·{p1,·v1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 587 | ····invoke-virtual·{p1,·v0},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
642 | ····const-string·v1,·"INSERT·INTO·local_metadata·VALUES·(0)" | 588 | ····const-string·v0,·"INSERT·INTO·local_metadata·VALUES·(0)" |
| |
643 | ····.line·768 | 589 | ····.line·754 |
644 | ····invoke-virtual·{p1,·v1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 590 | ····invoke-virtual·{p1,·v0},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
645 | ····const-string·v1,·"CREATE·TABLE·android_metadata·(locale·TEXT)" | 591 | ····const-string·v0,·"CREATE·TABLE·android_metadata·(locale·TEXT)" |
| |
646 | ····.line·770 | 592 | ····.line·756 |
647 | ····invoke-virtual·{p1,·v1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 593 | ····invoke-virtual·{p1,·v0},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
648 | ····const-string·v1,·"CREATE·TABLE·thumbnails·(_id·INTEGER·PRIMARY·KEY,_data·TEXT,image_id·INTEGER,kind·INTEGER,width·INTEGER,height·INTEGER)" | 594 | ····const-string·v0,·"CREATE·TABLE·thumbnails·(_id·INTEGER·PRIMARY·KEY,_data·TEXT,image_id·INTEGER,kind·INTEGER,width·INTEGER,height·INTEGER)" |
| |
649 | ····.line·771 | 595 | ····.line·757 |
650 | ····invoke-virtual·{p1,·v1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 596 | ····invoke-virtual·{p1,·v0},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
651 | ····const-string·v1,·"CREATE·TABLE·album_art·(album_id·INTEGER·PRIMARY·KEY,_data·TEXT)" | 597 | ····const-string·v0,·"CREATE·TABLE·album_art·(album_id·INTEGER·PRIMARY·KEY,_data·TEXT)" |
| |
652 | ····.line·773 | 598 | ····.line·759 |
653 | ····invoke-virtual·{p1,·v1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 599 | ····invoke-virtual·{p1,·v0},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
654 | ····const-string·v1,·"CREATE·TABLE·videothumbnails·(_id·INTEGER·PRIMARY·KEY,_data·TEXT,video_id·INTEGER,kind·INTEGER,width·INTEGER,height·INTEGER)" | 600 | ····const-string·v0,·"CREATE·TABLE·videothumbnails·(_id·INTEGER·PRIMARY·KEY,_data·TEXT,video_id·INTEGER,kind·INTEGER,width·INTEGER,height·INTEGER)" |
| |
655 | ····.line·774 | 601 | ····.line·760 |
656 | ····invoke-virtual·{p1,·v1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 602 | ····invoke-virtual·{p1,·v0},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
657 | ····const-string·v1,·"CREATE·TABLE·files·(_id·INTEGER·PRIMARY·KEY·AUTOINCREMENT,_data·TEXT·UNIQUE·COLLATE·NOCASE,_size·INTEGER,format·INTEGER,parent·INTEGER,date_added·INTEGER,date_modified·INTEGER,mime_type·TEXT,title·TEXT,description·TEXT,_display_name·TEXT,picasa_id·TEXT,orientation·INTEGER,latitude·DOUBLE,longitude·DOUBLE,datetaken·INTEGER,mini_thumb_magic·INTEGER,bucket_id·TEXT,bucket_display_name·TEXT,isprivate·INTEGER,title_key·TEXT,artist_id·INTEGER,album_id·INTEGER,composer·TEXT,track·INTEGER,year·INTEGER·CHECK(year!=0),is_ringtone·INTEGER,is_music·INTEGER,is_alarm·INTEGER,is_notification·INTEGER,is_podcast·INTEGER,album_artist·TEXT,duration·INTEGER,bookmark·INTEGER,artist·TEXT,album·TEXT,resolution·TEXT,tags·TEXT,category·TEXT,language·TEXT,mini_thumb_data·TEXT,name·TEXT,media_type·INTEGER,old_id·INTEGER,is_drm·INTEGER,width·INTEGER,·height·INTEGER,·title_resource_uri·TEXT,owner_package_name·TEXT·DEFAULT·NULL,color_standard·INTEGER,·color_transfer·INTEGER,·color_range·INTEGER,_hash·BLOB·DEFAULT·NULL,·is_pending·INTEGER·DEFAULT·0,is_download·INTEGER·DEFAULT·0,·download_uri·TEXT·DEFAULT·NULL,referer_uri·TEXT·DEFAULT·NULL,·is_audiobook·INTEGER·DEFAULT·0,date_expires·INTEGER·DEFAULT·NULL,is_trashed·INTEGER·DEFAULT·0,group_id·INTEGER·DEFAULT·NULL,primary_directory·TEXT·DEFAULT·NULL,secondary_directory·TEXT·DEFAULT·NULL,document_id·TEXT·DEFAULT·NULL,instance_id·TEXT·DEFAULT·NULL,original_document_id·TEXT·DEFAULT·NULL,relative_path·TEXT·DEFAULT·NULL,volume_name·TEXT·DEFAULT·NULL,artist_key·TEXT·DEFAULT·NULL,album_key·TEXT·DEFAULT·NULL,genre·TEXT·DEFAULT·NULL,genre_key·TEXT·DEFAULT·NULL,genre_id·INTEGER,author·TEXT·DEFAULT·NULL,·bitrate·INTEGER·DEFAULT·NULL,capture_framerate·REAL·DEFAULT·NULL,·cd_track_number·TEXT·DEFAULT·NULL,compilation·INTEGER·DEFAULT·NULL,·disc_number·TEXT·DEFAULT·NULL,is_favorite·INTEGER·DEFAULT·0,·num_tracks·INTEGER·DEFAULT·NULL,writer·TEXT·DEFAULT·NULL,·exposure_time·TEXT·DEFAULT·NULL,f_number·TEXT·DEFAULT·NULL,·iso·INTEGER·DEFAULT·NULL,scene_capture_type·INTEGER·DEFAULT·NULL,·generation_added·INTEGER·DEFAULT·0,generation_modified·INTEGER·DEFAULT·0,·xmp·BLOB·DEFAULT·NULL)" | 603 | ····const-string·v0,·"CREATE·TABLE·files·(_id·INTEGER·PRIMARY·KEY·AUTOINCREMENT,_data·TEXT·UNIQUE·COLLATE·NOCASE,_size·INTEGER,format·INTEGER,parent·INTEGER,date_added·INTEGER,date_modified·INTEGER,mime_type·TEXT,title·TEXT,description·TEXT,_display_name·TEXT,picasa_id·TEXT,orientation·INTEGER,latitude·DOUBLE,longitude·DOUBLE,datetaken·INTEGER,mini_thumb_magic·INTEGER,bucket_id·TEXT,bucket_display_name·TEXT,isprivate·INTEGER,title_key·TEXT,artist_id·INTEGER,album_id·INTEGER,composer·TEXT,track·INTEGER,year·INTEGER·CHECK(year!=0),is_ringtone·INTEGER,is_music·INTEGER,is_alarm·INTEGER,is_notification·INTEGER,is_podcast·INTEGER,album_artist·TEXT,duration·INTEGER,bookmark·INTEGER,artist·TEXT,album·TEXT,resolution·TEXT,tags·TEXT,category·TEXT,language·TEXT,mini_thumb_data·TEXT,name·TEXT,media_type·INTEGER,old_id·INTEGER,is_drm·INTEGER,width·INTEGER,·height·INTEGER,·title_resource_uri·TEXT,owner_package_name·TEXT·DEFAULT·NULL,color_standard·INTEGER,·color_transfer·INTEGER,·color_range·INTEGER,_hash·BLOB·DEFAULT·NULL,·is_pending·INTEGER·DEFAULT·0,is_download·INTEGER·DEFAULT·0,·download_uri·TEXT·DEFAULT·NULL,referer_uri·TEXT·DEFAULT·NULL,·is_audiobook·INTEGER·DEFAULT·0,date_expires·INTEGER·DEFAULT·NULL,is_trashed·INTEGER·DEFAULT·0,group_id·INTEGER·DEFAULT·NULL,primary_directory·TEXT·DEFAULT·NULL,secondary_directory·TEXT·DEFAULT·NULL,document_id·TEXT·DEFAULT·NULL,instance_id·TEXT·DEFAULT·NULL,original_document_id·TEXT·DEFAULT·NULL,relative_path·TEXT·DEFAULT·NULL,volume_name·TEXT·DEFAULT·NULL,artist_key·TEXT·DEFAULT·NULL,album_key·TEXT·DEFAULT·NULL,genre·TEXT·DEFAULT·NULL,genre_key·TEXT·DEFAULT·NULL,genre_id·INTEGER,author·TEXT·DEFAULT·NULL,·bitrate·INTEGER·DEFAULT·NULL,capture_framerate·REAL·DEFAULT·NULL,·cd_track_number·TEXT·DEFAULT·NULL,compilation·INTEGER·DEFAULT·NULL,·disc_number·TEXT·DEFAULT·NULL,is_favorite·INTEGER·DEFAULT·0,·num_tracks·INTEGER·DEFAULT·NULL,writer·TEXT·DEFAULT·NULL,·exposure_time·TEXT·DEFAULT·NULL,f_number·TEXT·DEFAULT·NULL,·iso·INTEGER·DEFAULT·NULL,scene_capture_type·INTEGER·DEFAULT·NULL,·generation_added·INTEGER·DEFAULT·0,generation_modified·INTEGER·DEFAULT·0,·xmp·BLOB·DEFAULT·NULL)" |
| |
658 | ····.line·776 | 604 | ····.line·762 |
659 | ····invoke-virtual·{p1,·v1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 605 | ····invoke-virtual·{p1,·v0},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
660 | ····const-string·v1,·"CREATE·TABLE·log·(time·DATETIME,·message·TEXT)" | 606 | ····const-string·v0,·"CREATE·TABLE·log·(time·DATETIME,·message·TEXT)" |
| |
661 | ····.line·810 | 607 | ····.line·796 |
662 | ····invoke-virtual·{p1,·v1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 608 | ····invoke-virtual·{p1,·v0},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
663 | ····.line·811 | 609 | ····.line·797 |
664 | ····iget-boolean·v1,·p0,·Lcom/android/providers/media/DatabaseHelper;->mInternal:Z | 610 | ····iget-boolean·v0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mInternal:Z |
| |
665 | ····if-nez·v1,·:cond_1 | 611 | ····if-nez·v0,·:cond_1 |
| |
666 | ····const-string·v1,·"CREATE·TABLE·audio_playlists_map·(_id·INTEGER·PRIMARY·KEY,audio_id·INTEGER·NOT·NULL,playlist_id·INTEGER·NOT·NULL,play_order·INTEGER·NOT·NULL)" | 612 | ····const-string·v0,·"CREATE·TABLE·audio_playlists_map·(_id·INTEGER·PRIMARY·KEY,audio_id·INTEGER·NOT·NULL,playlist_id·INTEGER·NOT·NULL,play_order·INTEGER·NOT·NULL)" |
| |
667 | ····.line·812 | 613 | ····.line·798 |
668 | ····invoke-virtual·{p1,·v1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 614 | ····invoke-virtual·{p1,·v0},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
669 | ····.line·817 | 615 | ····.line·803 |
670 | ····:cond_1 | 616 | ····:cond_1 |
671 | ····iget-boolean·v1,·p0,·Lcom/android/providers/media/DatabaseHelper;->mInternal:Z | 617 | ····iget-boolean·v0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mInternal:Z |
| |
672 | ····invoke-direct·{p0,·p1,·v1},·Lcom/android/providers/media/DatabaseHelper;->createLatestViews(Landroid/database/sqlite/SQLiteDatabase;Z)V | 618 | ····invoke-direct·{p0,·p1,·v0},·Lcom/android/providers/media/DatabaseHelper;->createLatestViews(Landroid/database/sqlite/SQLiteDatabase;Z)V |
| |
673 | ····.line·818 | 619 | ····.line·804 |
674 | ····iget-boolean·v1,·p0,·Lcom/android/providers/media/DatabaseHelper;->mInternal:Z | 620 | ····iget-boolean·v0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mInternal:Z |
| |
675 | ····invoke-static·{p1,·v1},·Lcom/android/providers/media/DatabaseHelper;->createLatestTriggers(Landroid/database/sqlite/SQLiteDatabase;Z)V | 621 | ····invoke-static·{p1,·v0},·Lcom/android/providers/media/DatabaseHelper;->createLatestTriggers(Landroid/database/sqlite/SQLiteDatabase;Z)V |
| |
676 | ····.line·819 | 622 | ····.line·805 |
677 | ····iget-boolean·v1,·p0,·Lcom/android/providers/media/DatabaseHelper;->mInternal:Z | 623 | ····iget-boolean·v0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mInternal:Z |
| |
678 | ····invoke-static·{p1,·v1},·Lcom/android/providers/media/DatabaseHelper;->createLatestIndexes(Landroid/database/sqlite/SQLiteDatabase;Z)V | 624 | ····invoke-static·{p1,·v0},·Lcom/android/providers/media/DatabaseHelper;->createLatestIndexes(Landroid/database/sqlite/SQLiteDatabase;Z)V |
| |
679 | ····.line·823 | 625 | ····.line·809 |
680 | ····iget-boolean·p1,·p0,·Lcom/android/providers/media/DatabaseHelper;->mLegacyProvider:Z | 626 | ····iget-boolean·p1,·p0,·Lcom/android/providers/media/DatabaseHelper;->mLegacyProvider:Z |
| |
681 | ····if-nez·p1,·:cond_2 | 627 | ····if-nez·p1,·:cond_2 |
| |
| 628 | ····const/4·p1,·0x1 |
682 | ····.line·825 | |
683 | ····:try_start_1 | |
684 | ····new-instance·p1,·Ljava/io/File; | |
| |
685 | ····iget-object·v1,·p0,·Lcom/android/providers/media/DatabaseHelper;->mContext:Landroid/content/Context; | |
| |
686 | ····invoke-virtual·{v1},·Landroid/content/Context;->getFilesDir()Ljava/io/File; | |
| |
687 | ····move-result-object·v1 | |
| |
688 | ····iget-object·v2,·p0,·Lcom/android/providers/media/DatabaseHelper;->mMigrationFileName:Ljava/lang/String; | |
| |
689 | ····invoke-direct·{p1,·v1,·v2},·Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V | |
| |
690 | ····invoke-virtual·{p1},·Ljava/io/File;->createNewFile()Z | |
691 | ····:try_end_1 | |
692 | ····.catch·Ljava/io/IOException;·{:try_start_1·..·:try_end_1}·:catch_1 | |
| |
693 | ····goto·:goto_1 | |
| |
694 | ····:catch_1 | |
695 | ····move-exception·p1 | |
| |
696 | ····.line·827 | |
697 | ····new-instance·v1,·Ljava/lang/StringBuilder; | |
| |
698 | ····invoke-direct·{v1},·Ljava/lang/StringBuilder;-><init>()V | |
| |
699 | ····const-string·v2,·"Failed·to·create·a·migration·file:·." | |
| |
700 | ····invoke-virtual·{v1,·v2},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | |
| |
701 | ····iget-object·p0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mVolumeName:Ljava/lang/String; | |
| |
702 | ····invoke-virtual·{v1,·p0},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | |
| |
703 | ····invoke-virtual·{v1},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | |
| |
704 | ····move-result-object·p0 | |
| |
705 | ····invoke-static·{v0,·p0,·p1},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I | 629 | ····.line·810 |
| 630 | ····iput-boolean·p1,·p0,·Lcom/android/providers/media/DatabaseHelper;->mMigrateFromLegacy:Z |
| |
706 | ····:cond_2 | 631 | ····:cond_2 |
707 | ····:goto_1 | |
708 | ····return-void | 632 | ····return-void |
709 | .end·method | 633 | .end·method |
| |
710 | .method·private·static·createLatestTriggers(Landroid/database/sqlite/SQLiteDatabase;Z)V | 634 | .method·private·static·createLatestTriggers(Landroid/database/sqlite/SQLiteDatabase;Z)V |
711 | ····.locals·0 | 635 | ····.locals·0 |
| |
712 | ····.line·1236 | 636 | ····.line·1052 |
713 | ····invoke-static·{p0},·Lcom/android/providers/media/DatabaseHelper;->makePristineTriggers(Landroid/database/sqlite/SQLiteDatabase;)V | 637 | ····invoke-static·{p0},·Lcom/android/providers/media/DatabaseHelper;->makePristineTriggers(Landroid/database/sqlite/SQLiteDatabase;)V |
| |
714 | ····const-string·p1,·"CREATE·TRIGGER·files_insert·AFTER·INSERT·ON·files·BEGIN·SELECT·_INSERT(new.volume_name||\':\'||new._id||\':\'||new.media_type||\':\'||new.is_download);·END" | 638 | ····const-string·p1,·"CREATE·TRIGGER·files_insert·AFTER·INSERT·ON·files·BEGIN·SELECT·_INSERT(new.volume_name||\':\'||new._id||\':\'||new.media_type||\':\'||new.is_download);·END" |
| |
715 | ····.line·1249 | 639 | ····.line·1065 |
716 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 640 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
717 | ····const-string·p1,·"CREATE·TRIGGER·files_update·AFTER·UPDATE·ON·files·BEGIN·SELECT·_UPDATE(old.volume_name||\':\'||old._id||\':\'||old.media_type||\':\'||old.is_download||\':\'||new._id||\':\'||new.media_type||\':\'||new.is_download||\':\'||ifnull(old.owner_package_name,\'null\')||\':\'||ifnull(new.owner_package_name,\'null\')||\':\'||old._data);·END" | 641 | ····const-string·p1,·"CREATE·TRIGGER·files_update·AFTER·UPDATE·ON·files·BEGIN·SELECT·_UPDATE(old.volume_name||\':\'||old._id||\':\'||old.media_type||\':\'||old.is_download||\':\'||new._id||\':\'||new.media_type||\':\'||new.is_download||\':\'||ifnull(old.owner_package_name,\'null\')||\':\'||ifnull(new.owner_package_name,\'null\')||\':\'||old._data);·END" |
| |
718 | ····.line·1251 | 642 | ····.line·1067 |
719 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 643 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
720 | ····const-string·p1,·"CREATE·TRIGGER·files_delete·AFTER·DELETE·ON·files·BEGIN·SELECT·_DELETE(old.volume_name||\':\'||old._id||\':\'||old.media_type||\':\'||old.is_download||\':\'||ifnull(old.owner_package_name,\'null\')||\':\'||old._data);·END" | 644 | ····const-string·p1,·"CREATE·TRIGGER·files_delete·AFTER·DELETE·ON·files·BEGIN·SELECT·_DELETE(old.volume_name||\':\'||old._id||\':\'||old.media_type||\':\'||old.is_download||\':\'||ifnull(old.owner_package_name,\'null\')||\':\'||old._data);·END" |
| |
721 | ····.line·1253 | 645 | ····.line·1069 |
722 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 646 | ····invoke-virtual·{p0,·p1},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
723 | ····return-void | 647 | ····return-void |
724 | .end·method | 648 | .end·method |
| |
725 | .method·private·createLatestViews(Landroid/database/sqlite/SQLiteDatabase;Z)V | 649 | .method·private·createLatestViews(Landroid/database/sqlite/SQLiteDatabase;Z)V |
726 | ····.locals·5 | 650 | ····.locals·5 |
| |
727 | ····.line·1139 | 651 | ····.line·955 |
728 | ····invoke-static·{p1},·Lcom/android/providers/media/DatabaseHelper;->makePristineViews(Landroid/database/sqlite/SQLiteDatabase;)V | 652 | ····invoke-static·{p1},·Lcom/android/providers/media/DatabaseHelper;->makePristineViews(Landroid/database/sqlite/SQLiteDatabase;)V |
| |
729 | ····.line·1141 | 653 | ····.line·957 |
730 | ····iget-object·v0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mColumnAnnotation:Ljava/lang/Class; | 654 | ····iget-object·v0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mColumnAnnotation:Ljava/lang/Class; |
| |
731 | ····if-nez·v0,·:cond_0 | 655 | ····if-nez·v0,·:cond_0 |
| |
732 | ····const-string·p0,·"MediaProvider" | 656 | ····const-string·p0,·"MediaProvider" |
| |
733 | ····const-string·p1,·"No·column·annotation·provided;·not·creating·views" | 657 | ····const-string·p1,·"No·column·annotation·provided;·not·creating·views" |
| |
734 | ····.line·1142 | 658 | ····.line·958 |
735 | ····invoke-static·{p0,·p1},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I | 659 | ····invoke-static·{p0,·p1},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I |
| |
736 | ····return-void | 660 | ····return-void |
| |
737 | ····.line·1147 | 661 | ····.line·963 |
738 | ····:cond_0 | 662 | ····:cond_0 |
739 | ····iget-object·v0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mFilterVolumeNames:Ljava/util/Set; | 663 | ····iget-object·v0,·p0,·Lcom/android/providers/media/DatabaseHelper;->mFilterVolumeNames:Ljava/util/Set; |
| |
740 | ····monitor-enter·v0 | 664 | ····monitor-enter·v0 |
| |
741 | ····.line·1148 | 665 | ····.line·964 |
742 | ····:try_start_0 | 666 | ····:try_start_0 |
743 | ····iget-object·v1,·p0,·Lcom/android/providers/media/DatabaseHelper;->mFilterVolumeNames:Ljava/util/Set; | 667 | ····iget-object·v1,·p0,·Lcom/android/providers/media/DatabaseHelper;->mFilterVolumeNames:Ljava/util/Set; |
| |
744 | ····invoke-interface·{v1},·Ljava/util/Set;->toArray()[Ljava/lang/Object; | 668 | ····invoke-interface·{v1},·Ljava/util/Set;->toArray()[Ljava/lang/Object; |
| |
745 | ····move-result-object·v1 | 669 | ····move-result-object·v1 |
| |
746 | ····invoke-static·{v1},·Lcom/android/providers/media/util/DatabaseUtils;->bindList([Ljava/lang/Object;)Ljava/lang/String; | 670 | ····invoke-static·{v1},·Lcom/android/providers/media/util/DatabaseUtils;->bindList([Ljava/lang/Object;)Ljava/lang/String; |
| |
747 | ····move-result-object·v1 | 671 | ····move-result-object·v1 |
| |
748 | ····.line·1149 | 672 | ····.line·965 |
749 | ····monitor-exit·v0 | 673 | ····monitor-exit·v0 |
750 | ····:try_end_0 | 674 | ····:try_end_0 |
751 | ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0 | 675 | ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0 |
| |
752 | ····const/4·v0,·0x0 | 676 | ····const/4·v0,·0x0 |
| |
753 | ····const/4·v2,·0x1 | 677 | ····const/4·v2,·0x1 |
| |
754 | ····if-nez·p2,·:cond_1 | 678 | ····if-nez·p2,·:cond_1 |
| |
755 | ····.line·1152 | 679 | ····.line·968 |
756 | ····new-instance·p2,·Ljava/lang/StringBuilder; | 680 | ····new-instance·p2,·Ljava/lang/StringBuilder; |
| |
757 | ····invoke-direct·{p2},·Ljava/lang/StringBuilder;-><init>()V | 681 | ····invoke-direct·{p2},·Ljava/lang/StringBuilder;-><init>()V |
| |
758 | ····const-string·v3,·"CREATE·VIEW·audio_playlists·AS·SELECT·" | 682 | ····const-string·v3,·"CREATE·VIEW·audio_playlists·AS·SELECT·" |
| |
759 | ····invoke-virtual·{p2,·v3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 683 | ····invoke-virtual·{p2,·v3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
760 | ····new-array·v3,·v2,·[Ljava/lang/Class; | 684 | ····new-array·v3,·v2,·[Ljava/lang/Class; |
| |
761 | ····const-class·v4,·Landroid/provider/MediaStore$Audio$Playlists; | 685 | ····const-class·v4,·Landroid/provider/MediaStore$Audio$Playlists; |
| |
762 | ····aput-object·v4,·v3,·v0 | 686 | ····aput-object·v4,·v3,·v0 |
| |
763 | ····.line·1153 | 687 | ····.line·969 |
764 | ····invoke-virtual·{p0,·v3},·Lcom/android/providers/media/DatabaseHelper;->getProjectionMap([Ljava/lang/Class;)Landroid/util/ArrayMap; | 688 | ····invoke-virtual·{p0,·v3},·Lcom/android/providers/media/DatabaseHelper;->getProjectionMap([Ljava/lang/Class;)Landroid/util/ArrayMap; |
| |
765 | ····move-result-object·v3 | 689 | ····move-result-object·v3 |
| |
766 | ····invoke-virtual·{v3},·Landroid/util/ArrayMap;->keySet()Ljava/util/Set; | 690 | ····invoke-virtual·{v3},·Landroid/util/ArrayMap;->keySet()Ljava/util/Set; |
| |
767 | ····move-result-object·v3 | 691 | ····move-result-object·v3 |
Offset 958, 44 lines modified | Offset 866, 44 lines modified |
| |
958 | ····invoke-virtual·{p2,·v3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 866 | ····invoke-virtual·{p2,·v3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
959 | ····invoke-virtual·{p2},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | 867 | ····invoke-virtual·{p2},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
| |
960 | ····move-result-object·p2 | 868 | ····move-result-object·p2 |
| |
961 | ····.line·1152 | 869 | ····.line·968 |
962 | ····invoke-virtual·{p1,·p2},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 870 | ····invoke-virtual·{p1,·p2},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
963 | ····:cond_1 | 871 | ····:cond_1 |
964 | ····const-string·p2,·"CREATE·VIEW·searchhelpertitle·AS·SELECT·*·FROM·audio·ORDER·BY·title_key" | 872 | ····const-string·p2,·"CREATE·VIEW·searchhelpertitle·AS·SELECT·*·FROM·audio·ORDER·BY·title_key" |
| |
965 | ····.line·1157 | 873 | ····.line·973 |
966 | ····invoke-virtual·{p1,·p2},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 874 | ····invoke-virtual·{p1,·p2},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
967 | ····const-string·p2,·"CREATE·VIEW·search·AS·SELECT·_id,\'artist\'·AS·mime_type,artist,NULL·AS·album,NULL·AS·title,artist·AS·text1,NULL·AS·text2,number_of_albums·AS·data1,number_of_tracks·AS·data2,artist_key·AS·match,\'content://media/external/audio/artists/\'||_id·AS·suggest_intent_data,1·AS·grouporder·FROM·artist_info·WHERE·(artist!=\'<unknown>\')·UNION·ALL·SELECT·_id,\'album\'·AS·mime_type,artist,album,NULL·AS·title,album·AS·text1,artist·AS·text2,NULL·AS·data1,NULL·AS·data2,artist_key||\'·\'||album_key·AS·match,\'content://media/external/audio/albums/\'||_id·AS·suggest_intent_data,2·AS·grouporder·FROM·album_info·WHERE·(album!=\'<unknown>\')·UNION·ALL·SELECT·searchhelpertitle._id·AS·_id,mime_type,artist,album,title,title·AS·text1,artist·AS·text2,NULL·AS·data1,NULL·AS·data2,artist_key||\'·\'||album_key||\'·\'||title_key·AS·match,\'content://media/external/audio/media/\'||searchhelpertitle._id·AS·suggest_intent_data,3·AS·grouporder·FROM·searchhelpertitle·WHERE·(title·!=·\'\')" | 875 | ····const-string·p2,·"CREATE·VIEW·search·AS·SELECT·_id,\'artist\'·AS·mime_type,artist,NULL·AS·album,NULL·AS·title,artist·AS·text1,NULL·AS·text2,number_of_albums·AS·data1,number_of_tracks·AS·data2,artist_key·AS·match,\'content://media/external/audio/artists/\'||_id·AS·suggest_intent_data,1·AS·grouporder·FROM·artist_info·WHERE·(artist!=\'<unknown>\')·UNION·ALL·SELECT·_id,\'album\'·AS·mime_type,artist,album,NULL·AS·title,album·AS·text1,artist·AS·text2,NULL·AS·data1,NULL·AS·data2,artist_key||\'·\'||album_key·AS·match,\'content://media/external/audio/albums/\'||_id·AS·suggest_intent_data,2·AS·grouporder·FROM·album_info·WHERE·(album!=\'<unknown>\')·UNION·ALL·SELECT·searchhelpertitle._id·AS·_id,mime_type,artist,album,title,title·AS·text1,artist·AS·text2,NULL·AS·data1,NULL·AS·data2,artist_key||\'·\'||album_key||\'·\'||title_key·AS·match,\'content://media/external/audio/media/\'||searchhelpertitle._id·AS·suggest_intent_data,3·AS·grouporder·FROM·searchhelpertitle·WHERE·(title·!=·\'\')" |
| |
968 | ····.line·1158 | 876 | ····.line·974 |
969 | ····invoke-virtual·{p1,·p2},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 877 | ····invoke-virtual·{p1,·p2},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
970 | ····.line·1176 | 878 | ····.line·992 |
971 | ····new-instance·p2,·Ljava/lang/StringBuilder; | 879 | ····new-instance·p2,·Ljava/lang/StringBuilder; |
| |
972 | ····invoke-direct·{p2},·Ljava/lang/StringBuilder;-><init>()V | 880 | ····invoke-direct·{p2},·Ljava/lang/StringBuilder;-><init>()V |
| |
973 | ····const-string·v3,·"CREATE·VIEW·audio·AS·SELECT·" | 881 | ····const-string·v3,·"CREATE·VIEW·audio·AS·SELECT·" |
| |
974 | ····invoke-virtual·{p2,·v3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 882 | ····invoke-virtual·{p2,·v3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
975 | ····new-array·v3,·v2,·[Ljava/lang/Class; | 883 | ····new-array·v3,·v2,·[Ljava/lang/Class; |
| |
976 | ····const-class·v4,·Landroid/provider/MediaStore$Audio$Media; | 884 | ····const-class·v4,·Landroid/provider/MediaStore$Audio$Media; |
| |
977 | ····aput-object·v4,·v3,·v0 | 885 | ····aput-object·v4,·v3,·v0 |
| |
978 | ····.line·1177 | 886 | ····.line·993 |
979 | ····invoke-virtual·{p0,·v3},·Lcom/android/providers/media/DatabaseHelper;->getProjectionMap([Ljava/lang/Class;)Landroid/util/ArrayMap; | 887 | ····invoke-virtual·{p0,·v3},·Lcom/android/providers/media/DatabaseHelper;->getProjectionMap([Ljava/lang/Class;)Landroid/util/ArrayMap; |
| |
980 | ····move-result-object·v3 | 888 | ····move-result-object·v3 |
| |
981 | ····invoke-virtual·{v3},·Landroid/util/ArrayMap;->keySet()Ljava/util/Set; | 889 | ····invoke-virtual·{v3},·Landroid/util/ArrayMap;->keySet()Ljava/util/Set; |
| |
982 | ····move-result-object·v3 | 890 | ····move-result-object·v3 |
Offset 1012, 33 lines modified | Offset 920, 33 lines modified |
| |
1012 | ····invoke-virtual·{p2,·v3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 920 | ····invoke-virtual·{p2,·v3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
1013 | ····invoke-virtual·{p2},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | 921 | ····invoke-virtual·{p2},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
| |
1014 | ····move-result-object·p2 | 922 | ····move-result-object·p2 |
| |
1015 | ····.line·1176 | 923 | ····.line·992 |
1016 | ····invoke-virtual·{p1,·p2},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 924 | ····invoke-virtual·{p1,·p2},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
1017 | ····.line·1179 | 925 | ····.line·995 |
1018 | ····new-instance·p2,·Ljava/lang/StringBuilder; | 926 | ····new-instance·p2,·Ljava/lang/StringBuilder; |
| |
1019 | ····invoke-direct·{p2},·Ljava/lang/StringBuilder;-><init>()V | 927 | ····invoke-direct·{p2},·Ljava/lang/StringBuilder;-><init>()V |
| |
1020 | ····const-string·v3,·"CREATE·VIEW·video·AS·SELECT·" | 928 | ····const-string·v3,·"CREATE·VIEW·video·AS·SELECT·" |
| |
1021 | ····invoke-virtual·{p2,·v3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 929 | ····invoke-virtual·{p2,·v3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
1022 | ····new-array·v3,·v2,·[Ljava/lang/Class; | 930 | ····new-array·v3,·v2,·[Ljava/lang/Class; |
| |
1023 | ····const-class·v4,·Landroid/provider/MediaStore$Video$Media; | 931 | ····const-class·v4,·Landroid/provider/MediaStore$Video$Media; |
| |
1024 | ····aput-object·v4,·v3,·v0 | 932 | ····aput-object·v4,·v3,·v0 |
| |
1025 | ····.line·1180 | 933 | ····.line·996 |
1026 | ····invoke-virtual·{p0,·v3},·Lcom/android/providers/media/DatabaseHelper;->getProjectionMap([Ljava/lang/Class;)Landroid/util/ArrayMap; | 934 | ····invoke-virtual·{p0,·v3},·Lcom/android/providers/media/DatabaseHelper;->getProjectionMap([Ljava/lang/Class;)Landroid/util/ArrayMap; |
| |
1027 | ····move-result-object·v3 | 935 | ····move-result-object·v3 |
| |
1028 | ····invoke-virtual·{v3},·Landroid/util/ArrayMap;->keySet()Ljava/util/Set; | 936 | ····invoke-virtual·{v3},·Landroid/util/ArrayMap;->keySet()Ljava/util/Set; |
| |
1029 | ····move-result-object·v3 | 937 | ····move-result-object·v3 |
Offset 1055, 33 lines modified | Offset 963, 33 lines modified |
| |
1055 | ····invoke-virtual·{p2,·v3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 963 | ····invoke-virtual·{p2,·v3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
1056 | ····invoke-virtual·{p2},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | 964 | ····invoke-virtual·{p2},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
| |
1057 | ····move-result-object·p2 | 965 | ····move-result-object·p2 |
| |
1058 | ····.line·1179 | 966 | ····.line·995 |
1059 | ····invoke-virtual·{p1,·p2},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 967 | ····invoke-virtual·{p1,·p2},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
1060 | ····.line·1182 | 968 | ····.line·998 |
1061 | ····new-instance·p2,·Ljava/lang/StringBuilder; | 969 | ····new-instance·p2,·Ljava/lang/StringBuilder; |
| |
1062 | ····invoke-direct·{p2},·Ljava/lang/StringBuilder;-><init>()V | 970 | ····invoke-direct·{p2},·Ljava/lang/StringBuilder;-><init>()V |
| |
1063 | ····const-string·v3,·"CREATE·VIEW·images·AS·SELECT·" | 971 | ····const-string·v3,·"CREATE·VIEW·images·AS·SELECT·" |
| |
1064 | ····invoke-virtual·{p2,·v3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 972 | ····invoke-virtual·{p2,·v3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
1065 | ····new-array·v3,·v2,·[Ljava/lang/Class; | 973 | ····new-array·v3,·v2,·[Ljava/lang/Class; |
| |
1066 | ····const-class·v4,·Landroid/provider/MediaStore$Images$Media; | 974 | ····const-class·v4,·Landroid/provider/MediaStore$Images$Media; |
| |
1067 | ····aput-object·v4,·v3,·v0 | 975 | ····aput-object·v4,·v3,·v0 |
| |
1068 | ····.line·1183 | 976 | ····.line·999 |
1069 | ····invoke-virtual·{p0,·v3},·Lcom/android/providers/media/DatabaseHelper;->getProjectionMap([Ljava/lang/Class;)Landroid/util/ArrayMap; | 977 | ····invoke-virtual·{p0,·v3},·Lcom/android/providers/media/DatabaseHelper;->getProjectionMap([Ljava/lang/Class;)Landroid/util/ArrayMap; |
| |
1070 | ····move-result-object·v3 | 978 | ····move-result-object·v3 |
| |
1071 | ····invoke-virtual·{v3},·Landroid/util/ArrayMap;->keySet()Ljava/util/Set; | 979 | ····invoke-virtual·{v3},·Landroid/util/ArrayMap;->keySet()Ljava/util/Set; |
| |
1072 | ····move-result-object·v3 | 980 | ····move-result-object·v3 |
Offset 1098, 33 lines modified | Offset 1006, 33 lines modified |
| |
1098 | ····invoke-virtual·{p2,·v3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 1006 | ····invoke-virtual·{p2,·v3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
1099 | ····invoke-virtual·{p2},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | 1007 | ····invoke-virtual·{p2},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
| |
1100 | ····move-result-object·p2 | 1008 | ····move-result-object·p2 |
| |
1101 | ····.line·1182 | 1009 | ····.line·998 |
1102 | ····invoke-virtual·{p1,·p2},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 1010 | ····invoke-virtual·{p1,·p2},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
1103 | ····.line·1185 | 1011 | ····.line·1001 |
1104 | ····new-instance·p2,·Ljava/lang/StringBuilder; | 1012 | ····new-instance·p2,·Ljava/lang/StringBuilder; |
| |
1105 | ····invoke-direct·{p2},·Ljava/lang/StringBuilder;-><init>()V | 1013 | ····invoke-direct·{p2},·Ljava/lang/StringBuilder;-><init>()V |
| |
1106 | ····const-string·v3,·"CREATE·VIEW·downloads·AS·SELECT·" | 1014 | ····const-string·v3,·"CREATE·VIEW·downloads·AS·SELECT·" |
| |
1107 | ····invoke-virtual·{p2,·v3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 1015 | ····invoke-virtual·{p2,·v3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
1108 | ····new-array·v2,·v2,·[Ljava/lang/Class; | 1016 | ····new-array·v2,·v2,·[Ljava/lang/Class; |
| |
1109 | ····const-class·v3,·Landroid/provider/MediaStore$Downloads; | 1017 | ····const-class·v3,·Landroid/provider/MediaStore$Downloads; |
| |
1110 | ····aput-object·v3,·v2,·v0 | 1018 | ····aput-object·v3,·v2,·v0 |
| |
1111 | ····.line·1186 | 1019 | ····.line·1002 |
1112 | ····invoke-virtual·{p0,·v2},·Lcom/android/providers/media/DatabaseHelper;->getProjectionMap([Ljava/lang/Class;)Landroid/util/ArrayMap; | 1020 | ····invoke-virtual·{p0,·v2},·Lcom/android/providers/media/DatabaseHelper;->getProjectionMap([Ljava/lang/Class;)Landroid/util/ArrayMap; |
| |
1113 | ····move-result-object·p0 | 1021 | ····move-result-object·p0 |
| |
1114 | ····invoke-virtual·{p0},·Landroid/util/ArrayMap;->keySet()Ljava/util/Set; | 1022 | ····invoke-virtual·{p0},·Landroid/util/ArrayMap;->keySet()Ljava/util/Set; |
| |
1115 | ····move-result-object·p0 | 1023 | ····move-result-object·p0 |
Offset 1141, 18 lines modified | Offset 1049, 18 lines modified |
| |
1141 | ····invoke-virtual·{p2,·p0},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 1049 | ····invoke-virtual·{p2,·p0},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
1142 | ····invoke-virtual·{p2},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | 1050 | ····invoke-virtual·{p2},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
| |
1143 | ····move-result-object·p0 | 1051 | ····move-result-object·p0 |
| |
1144 | ····.line·1185 | 1052 | ····.line·1001 |
1145 | ····invoke-virtual·{p1,·p0},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 1053 | ····invoke-virtual·{p1,·p0},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
1146 | ····.line·1189 | 1054 | ····.line·1005 |
1147 | ····new-instance·p0,·Ljava/lang/StringBuilder; | 1055 | ····new-instance·p0,·Ljava/lang/StringBuilder; |
| |
1148 | ····invoke-direct·{p0},·Ljava/lang/StringBuilder;-><init>()V | 1056 | ····invoke-direct·{p0},·Ljava/lang/StringBuilder;-><init>()V |
| |
1149 | ····const-string·p2,·"CREATE·VIEW·audio_artists·AS·SELECT···artist_id·AS·_id,·MIN(artist)·AS·artist,·artist_key·AS·artist_key,·COUNT(DISTINCT·album_id)·AS·number_of_albums,·COUNT(DISTINCT·_id)·AS·number_of_tracks·FROM·audio·WHERE·is_music=1·AND·volume_name·IN·" | 1057 | ····const-string·p2,·"CREATE·VIEW·audio_artists·AS·SELECT···artist_id·AS·_id,·MIN(artist)·AS·artist,·artist_key·AS·artist_key,·COUNT(DISTINCT·album_id)·AS·number_of_albums,·COUNT(DISTINCT·_id)·AS·number_of_tracks·FROM·audio·WHERE·is_music=1·AND·volume_name·IN·" |
| |
1150 | ····invoke-virtual·{p0,·p2},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 1058 | ····invoke-virtual·{p0,·p2},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
Offset 1165, 15 lines modified | Offset 1073, 15 lines modified |
| |
1165 | ····invoke-virtual·{p0},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | 1073 | ····invoke-virtual·{p0},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
| |
1166 | ····move-result-object·p0 | 1074 | ····move-result-object·p0 |
| |
1167 | ····invoke-virtual·{p1,·p0},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 1075 | ····invoke-virtual·{p1,·p0},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
1168 | ····.line·1199 | 1076 | ····.line·1015 |
1169 | ····new-instance·p0,·Ljava/lang/StringBuilder; | 1077 | ····new-instance·p0,·Ljava/lang/StringBuilder; |
| |
1170 | ····invoke-direct·{p0},·Ljava/lang/StringBuilder;-><init>()V | 1078 | ····invoke-direct·{p0},·Ljava/lang/StringBuilder;-><init>()V |
| |
1171 | ····const-string·p2,·"CREATE·VIEW·audio_albums·AS·SELECT···album_id·AS·_id,·album_id·AS·album_id,·MIN(album)·AS·album,·album_key·AS·album_key,·artist_id·AS·artist_id,·artist·AS·artist,·artist_key·AS·artist_key,·COUNT(DISTINCT·_id)·AS·numsongs,·COUNT(DISTINCT·_id)·AS·numsongs_by_artist,·MIN(year)·AS·minyear,·MAX(year)·AS·maxyear,·NULL·AS·album_art·FROM·audio·WHERE·is_music=1·AND·volume_name·IN·" | 1079 | ····const-string·p2,·"CREATE·VIEW·audio_albums·AS·SELECT···album_id·AS·_id,·album_id·AS·album_id,·MIN(album)·AS·album,·album_key·AS·album_key,·artist_id·AS·artist_id,·artist·AS·artist,·artist_key·AS·artist_key,·COUNT(DISTINCT·_id)·AS·numsongs,·COUNT(DISTINCT·_id)·AS·numsongs_by_artist,·MIN(year)·AS·minyear,·MAX(year)·AS·maxyear,·NULL·AS·album_art·FROM·audio·WHERE·is_music=1·AND·volume_name·IN·" |
| |
1172 | ····invoke-virtual·{p0,·p2},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 1080 | ····invoke-virtual·{p0,·p2},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
Offset 1186, 15 lines modified | Offset 1094, 15 lines modified |
| |
1186 | ····invoke-virtual·{p0},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | 1094 | ····invoke-virtual·{p0},·Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
| |
1187 | ····move-result-object·p0 | 1095 | ····move-result-object·p0 |
| |
1188 | ····invoke-virtual·{p1,·p0},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 1096 | ····invoke-virtual·{p1,·p0},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
1189 | ····.line·1216 | 1097 | ····.line·1032 |
1190 | ····new-instance·p0,·Ljava/lang/StringBuilder; | 1098 | ····new-instance·p0,·Ljava/lang/StringBuilder; |
| |
1191 | ····invoke-direct·{p0},·Ljava/lang/StringBuilder;-><init>()V | 1099 | ····invoke-direct·{p0},·Ljava/lang/StringBuilder;-><init>()V |
| |
1192 | ····const-string·p2,·"CREATE·VIEW·audio_genres·AS·SELECT···genre_id·AS·_id,·MIN(genre)·AS·name·FROM·audio·WHERE·volume_name·IN·" | 1100 | ····const-string·p2,·"CREATE·VIEW·audio_genres·AS·SELECT···genre_id·AS·_id,·MIN(genre)·AS·name·FROM·audio·WHERE·volume_name·IN·" |
| |
1193 | ····invoke-virtual·{p0,·p2},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 1101 | ····invoke-virtual·{p0,·p2},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
Offset 1212, 295 lines modified | Offset 1120, 71 lines modified |
1212 | ····invoke-virtual·{p1,·p0},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V | 1120 | ····invoke-virtual·{p1,·p0},·Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V |
| |
1213 | ····return-void | 1121 | ····return-void |
| |
1214 | ····:catchall_0 | 1122 | ····:catchall_0 |
1215 | ····move-exception·p0 | 1123 | ····move-exception·p0 |
| |
1216 | ····.line·1149 | 1124 | ····.line·965 |
1217 | ····:try_start_1 | 1125 | ····:try_start_1 |
1218 | ····monitor-exit·v0 | 1126 | ····monitor-exit·v0 |
1219 | ····:try_end_1 | 1127 | ····:try_end_1 |
1220 | ····.catchall·{:try_start_1·..·:try_end_1}·:catchall_0 | 1128 | ····.catchall·{:try_start_1·..·:try_end_1}·:catchall_0 |
| |
1221 | ····throw·p0 | 1129 | ····throw·p0 |
Max diff block lines reached; 162428/209591 bytes (77.50%) of diff not shown.
|