[Galaxy Note 3 Android Development] Petreion:
hello i try this mod Quickconnect panel with toggle from :http://xdaforums.com/showpost.php?p=61159734&postcount=789 end systemUI fc

i have galaxy s5 sm-g900f android 5.0 boj2

.method private showHideQConnectLayout()V

.locals 14

.prologue

const/16 v13, 0x64

const/4 v6, 0x1

const v12, 0x7f0d01bb

const/16 v11, 0x8

const/4 v7, 0x0

.line 6178

iget-boolean v8, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mShowSFinderQConnectView:Z

if-eqz v8, :cond_5

iget-object v8, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mQconnectSfinderView:Lcom/android/systemui/statusbar/QconnectSfinderView;

iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;

invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v0

const-string v1, "quick_connect_toggle"

const/4 v2, 0x0

invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v0

if-nez v0, :cond_5

if-nez v8, :cond_0

iget-object v8, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mQsQConnectView:Landroid/view/View;

if-eqz v8, :cond_5

.line 6179

:cond_0

const/4 v1, 0x0

.line 6180

.local v1, "hide":Z

const-string v8, "quickconnect"

invoke-static {v8}, Landroid/os/ServiceManager;->getService(Ljava/lang/String;)Landroid/os/IBinder;

move-result-object v8

invoke-static {v8}, Lcom/samsung/android/quickconnect/IQuickConnectManager$Stub;->asInterface(Landroid/os/IBinder;)Lcom/samsung/android/quickconnect/IQuickConnectManager;

move-result-object v8

if-eqz v8, :cond_6

move v4, v6

.line 6182

.local v4, "qconnectServiceEnabled":Z

:goto_0

iget-object v8, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;

invoke-static {v8}, Landroid/app/enterprise/kioskmode/KioskMode;->getInstance(Landroid/content/Context;)Landroid/app/enterprise/kioskmode/KioskMode;

move-result-object v8

invoke-virtual {v8}, Landroid/app/enterprise/kioskmode/KioskMode;->isKioskModeEnabled()Z

move-result v2

.line 6183

.local v2, "isKioskEnabled":Z

invoke-static {}, Landroid/app/ActivityManager;->getCurrentUser()I

move-result v0

.line 6185

.local v0, "currentUserId":I

const-string v8, "STATUSBAR-PhoneStatusBar"

new-instance v9, Ljava/lang/StringBuilder;

invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

const-string v10, "showHideQConnectLayout userID : "

invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v9

invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

move-result-object v9

const-string v10, " emMode:"

invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v9

iget-boolean v10, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mEmergencyModeActivated:Z

invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

move-result-object v9

const-string v10, " mQconnectEnable:"

invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v9

iget-boolean v10, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mQconnectEnable:Z

invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

logcat :https://mega.nz/#!OdBBTYpT!DMvAeH83rBk5m_aT7ukHpzJiI4RRJ7vlWFaOzSGY7TA