[Android Q&A, Help & Troubleshooting] michael08071984:
Hey Folks.

Found the List in the CommUtil.smali. I changed the second app, with the spotify package name. Compiled the modified launcher2.apk. Interchanged the Launcher2.apk with the modified. Restart but nothing happens. Still no Spotify Icon in the Dock. Heres the CommUtil.smali Code:

.class public final Lcom/android/launcher2/foryou/CommUtil;
.super Ljava/lang/Object;
.source "CommUtil.java"

# static fields
.field public static final DELAY_TIME:I = 0x5dc

.field public static final IS_FORBID_THIRD_APPS:Z

.field public static mMatrix:Landroid/graphics/Matrix;

.field public static parkingFlag:I

# direct methods
.method static constructor <clinit>()V
.locals 1

.prologue
.line 22
new-instance v0, Landroid/graphics/Matrix;

invoke-direct {v0}, Landroid/graphics/Matrix;-><init>()V

sput-object v0, Lcom/android/launcher2/foryou/CommUtil;->mMatrix:Landroid/graphics/Matrix;

.line 26
const/4 v0, 0x1

sput v0, Lcom/android/launcher2/foryou/CommUtil;->parkingFlag:I

.line 21
return-void
.end method

.method public constructor <init>()V
.locals 0

.prologue
.line 21
invoke-direct {p0}, Ljava/lang/Object;-><init>()V

return-void
.end method

.method public static getSortFlagApplicationInfo(Ljava/lang/String;)I
.locals 3
.parameter "pkg"

.prologue
const/16 v2, 0x19

const/4 v1, 0x4

.line 131
if-eqz p0, :cond_19

.line 132
const-string v0, "com.foryou.radio.activity"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_0

.line 133
const/4 v0, 0x1

.line 186
:goto_0
return v0

.line 134
:cond_0
const-string v0, "com.spotify.mobile.android.ui"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_1

.line 135
const/4 v0, 0x2

goto :goto_0

.line 136
:cond_1
const-string v0, "com.foryou.dab.activity"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_2

.line 137
const/4 v0, 0x3

goto :goto_0

.line 138
:cond_2
const-string v0, "com.foryou.mobilenavigation"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_3

move v0, v1

.line 139
goto :goto_0

.line 140
:cond_3
const-string v0, "com.navngo.igo.javaclient"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_4

move v0, v1

.line 141
goto :goto_0

.line 142
:cond_4
const-string v0, "com.navitel"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_5

move v0, v1

.line 143
goto :goto_0

.line 144
:cond_5
const-string v0, "com.navcol.quipu"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_6

move v0, v1

.line 145
goto :goto_0

.line 146
:cond_6
const-string v0, "com.sygic"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_7

move v0, v1

.line 147
goto :goto_0

.line 148
:cond_7
const-string v0, "cityguide.probki.net.co"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_8

move v0, v1

.line 149
goto :goto_0

.line 150
:cond_8
const-string v0, "com.metroview.nav"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_9

move v0, v1

.line 151
goto :goto_0

.line 152
:cond_9
const-string v0, "com.foryou.bt.activity"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_a

.line 153
const/4 v0, 0x5

goto :goto_0

.line 154
:cond_a
const-string v0, "com.android.contacts"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_b

.line 155
const/4 v0, 0x6

goto :goto_0

.line 156
:cond_b
const-string v0, "com.foryou.ipod.usb.activity"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_c

.line 157
const/4 v0, 0x7

goto :goto_0

.line 158
:cond_c
const-string v0, "com.android.music"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_d

.line 159
const/16 v0, 0x8

goto/16 :goto_0

.line 160
:cond_d
const-string v0, "com.foryou.rear.activity"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_e

.line 161
const/16 v0, 0x9

goto/16 :goto_0

.line 162
:cond_e
const-string v0, "com.foryou.video"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_f

.line 163
const/16 v0, 0xa

goto/16 :goto_0

.line 164
:cond_f
const-string v0, "com.foryou.dvbt.activity"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_10

.line 165
const/16 v0, 0xb

goto/16 :goto_0

.line 166
:cond_10
const-string v0, "com.foryou.dvr.activity"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_11

.line 167
const/16 v0, 0xc

goto/16 :goto_0

.line 168
:cond_11
const-string v0, "com.foryou.auxin1"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_12

.line 169
const/16 v0, 0xd

goto/16 :goto_0

.line 170
:cond_12
const-string v0, "com.foryou.auxin2"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_13

.line 171
const/16 v0, 0xe

goto/16 :goto_0

.line 172
:cond_13
const-string v0, "com.foryou.atv.activity"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_14

.line 173
const/16 v0, 0xf

goto/16 :goto_0

.line 174
:cond_14
const-string v0, "com.cooliris.media"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_15

.line 175
const/16 v0, 0x10

goto/16 :goto_0

.line 176
:cond_15
const-string v0, "com.foryou.camera"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_16

.line 177
const/16 v0, 0x11

goto/16 :goto_0

.line 178
:cond_16
const-string v0, "com.foryou.swc.activity"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_17

.line 179
const/16 v0, 0x12

goto/16 :goto_0

.line 180
:cond_17
const-string v0, "com.foryou.eq.activity"

invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_18

.line 181
const/16 v0, 0x13

goto/16 :goto_0

:cond_18
move v0, v2

.line 183
goto/16 :goto_0

:cond_19
move v0, v2

.line 186
goto/16 :goto_0
.end method

.method public static final isForyouAPP(Lcom/android/launcher2/ApplicationInfo;)Z
.locals 2
.parameter "appInfo"

.prologue
.line 37
invoke-virtual {p0}, Lcom/android/launcher2/ApplicationInfo;->getComponentName()Landroid/content/ComponentName;

move-result-object v1

invoke-virtual {v1}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;

move-result-object v0

.line 38
.local v0, pkgName:Ljava/lang/String;
invoke-static {v0}, Lcom/android/launcher2/foryou/CommUtil;->isForyouAPP(Ljava/lang/String;)Z

move-result v1

return v1
.end method

.method public static final isForyouAPP(Ljava/lang/String;)Z
.locals 1
.parameter "packageName"

.prologue
.line 44
const-string v0, "com.foryou"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-nez v0, :cond_0

.line 45
const-string v0, "com.android.music"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-nez v0, :cond_0

.line 46
const-string v0, "com.cooliris.media"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-nez v0, :cond_0

.line 47
const-string v0, "com.navngo.igo"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-nez v0, :cond_0

.line 48
const-string v0, "cityguide.probki.net"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-nez v0, :cond_0

.line 49
const-string v0, "com.metroview.nav"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-nez v0, :cond_0

.line 50
const-string v0, "com.navcol.quipu"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-nez v0, :cond_0

.line 51
const-string v0, "com.navitel"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-nez v0, :cond_0

.line 52
const-string v0, "com.sygic"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-eqz v0, :cond_1

.line 54
:cond_0
const/4 v0, 0x1

.line 56
:goto_0
return v0

:cond_1
const/4 v0, 0x0

goto :goto_0
.end method

.method public static final isForyouAPP2(Ljava/lang/String;)Z
.locals 1
.parameter "packageName"

.prologue
.line 60
const-string v0, "com.foryou"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-nez v0, :cond_0

.line 61
const-string v0, "com.android.music"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-nez v0, :cond_0

.line 62
const-string v0, "com.cooliris.media"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-eqz v0, :cond_1

.line 69
:cond_0
const/4 v0, 0x1

.line 71
:goto_0
return v0

:cond_1
const/4 v0, 0x0

goto :goto_0
.end method

.method public static final isNotForyouApps(Ljava/lang/String;)Z
.locals 1
.parameter "packageName"

.prologue
.line 81
const-string v0, "com.navngo.igo"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-nez v0, :cond_0

.line 82
const-string v0, "cityguide.probki.net.co"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-nez v0, :cond_0

.line 83
const-string v0, "com.metroview.nav"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-nez v0, :cond_0

.line 84
const-string v0, "com.navitel"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-nez v0, :cond_0

.line 85
const-string v0, "com.navcol.quipu"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-nez v0, :cond_0

.line 86
const-string v0, "com.sygic"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-nez v0, :cond_0

.line 87
const-string v0, "com.android.APKTools"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-nez v0, :cond_0

.line 88
const-string v0, "com.android.calendar"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-nez v0, :cond_0

.line 89
const-string v0, "com.android.deskclock"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-nez v0, :cond_0

.line 90
const-string v0, "com.android.settings"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-nez v0, :cond_0

.line 91
const-string v0, "com.foryou.settings"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-nez v0, :cond_0

.line 92
const-string v0, "com.google.android.apps.maps"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-nez v0, :cond_0

.line 93
const-string v0, "com.chartcross.gpstestplus"

invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

move-result v0

if-eqz v0, :cond_1

.line 95
:cond_0
const/4 v0, 0x1

.line 97
:goto_0
return v0

:cond_1
const/4 v0, 0x0

goto :goto_0
.end method

.method public static final scaleBitmap(Landroid/graphics/Bitmap;FF)Landroid/graphics/Bitmap;
.locals 7
.parameter "src"
.parameter "scaleX"
.parameter "scaleY"

.prologue
const/4 v1, 0x0

.line 110
sget-object v0, Lcom/android/launcher2/foryou/CommUtil;->mMatrix:Landroid/graphics/Matrix;

invoke-virtual {v0}, Landroid/graphics/Matrix;->reset()V

.line 111
sget-object v0, Lcom/android/launcher2/foryou/CommUtil;->mMatrix:Landroid/graphics/Matrix;

invoke-virtual {v0, p1, p2}, Landroid/graphics/Matrix;->postScale(FF)Z

.line 112
invoke-virtual {p0}, Landroid/graphics/Bitmap;->getWidth()I

move-result v3

invoke-virtual {p0}, Landroid/graphics/Bitmap;->getHeight()I

move-result v4

sget-object v5, Lcom/android/launcher2/foryou/CommUtil;->mMatrix:Landroid/graphics/Matrix;

const/4 v6, 0x1

move-object v0, p0

move v2, v1

invoke-static/range {v0 .. v6}, Landroid/graphics/Bitmap;->createBitmap(Landroid/graphics/Bitmap;IIIILandroid/graphics/Matrix;Z)Landroid/graphics/Bitmap;

move-result-object v0

return-object v0
.end method

.method public static final sendMessageToApp(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.locals 1
.parameter "who"
.parameter "receiver"
.parameter "messageTag"
.parameter "messageValue"

.prologue
.line 123
new-instance v0, Landroid/content/Intent;

invoke-direct {v0}, Landroid/content/Intent;-><init>()V

.line 124
.local v0, intent:Landroid/content/Intent;
invoke-virtual {v0, p1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

.line 125
invoke-virtual {v0, p2, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

.line 126
invoke-virtual {p0, v0}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V

.line 127
return-void
.end method

I hope anyone can help me. I become desperate. :-/