-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathspotify_avrcp.patch
91 lines (74 loc) · 2.95 KB
/
spotify_avrcp.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
diff -crB original/smali/com/spotify/mobile/android/service/ad.smali com.spotify.mobile.android.ui-2/smali/com/spotify/mobile/android/service/ad.smali
*** original/smali/com/spotify/mobile/android/service/ad.smali 2012-09-28 12:48:43.000000000 -0400
--- com.spotify.mobile.android.ui-2/smali/com/spotify/mobile/android/service/ad.smali 2012-09-28 11:56:07.000000000 -0400
***************
*** 135,146 ****
.end method
.method public final d()V
! .locals 4
.prologue
.line 37
new-instance v1, Landroid/content/Intent;
const-string v0, "android.appwidget.action.APPWIDGET_UPDATE"
invoke-direct {v1, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
--- 135,158 ----
.end method
.method public final d()V
! .locals 7
.prologue
.line 37
new-instance v1, Landroid/content/Intent;
+ new-instance v4, Landroid/content/Intent;
+
+ const-string v5, "com.android.music.metachanged"
+
+ invoke-direct {v4, v5}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
+
+ const-string v5, "id"
+
+ const/4 v6, 0x1
+
+ invoke-virtual {v4, v5, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
+
const-string v0, "android.appwidget.action.APPWIDGET_UPDATE"
invoke-direct {v1, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
***************
*** 178,183 ****
--- 190,199 ----
invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
+ const-string v5, "track"
+
+ invoke-virtual {v4, v5, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
+
.line 42
const-string v0, "artist_name"
***************
*** 189,194 ****
--- 205,214 ----
invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
+ const-string v5, "artist"
+
+ invoke-virtual {v4, v5, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
+
.line 43
const-string v0, "album_name"
***************
*** 200,205 ****
--- 220,239 ----
invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
+ const-string v5, "album"
+
+ invoke-virtual {v4, v5, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
+
+ const-string v5, "playing"
+
+ const-string v6, "JustPlaying"
+
+ invoke-virtual {v4, v5, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
+
+ iget-object v5, p0, Lcom/spotify/mobile/android/service/ad;->a:Landroid/app/Service;
+
+ invoke-virtual {v5, v4}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V
+
.line 44
const-string v0, "paused"