Saturday, July 13, 2019

Guide add search bar in QS panel


Search Bar in QS panel



ok, let's start



1. Decompile your Systemui.apk

2. Merge all filles

3. Open SystemUIApplication.smali

4. Search this .method public onCreate()V and Add this .method above that


 .method public qsSearch(Landroid/view/View;)V
    .locals 3
    .param p1, "v"    # Landroid/view/View;

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

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

    .line 2432
    const-string v1, "com.android.browser"

    const-string v2, "com.android.browser.BrowserActivity"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const/high16 v2, 0x10000000

    invoke-virtual {v0, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    move-result-object v0

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

    const-string v1, "statusbar"

    invoke-virtual {p0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/StatusBarManager;

    invoke-virtual {v0}, Landroid/app/StatusBarManager;->collapsePanels()V

    .line 1720
    return-void
.end method 

5. Add this line in your qs_panel.xml


< FrameLayout android:layout_gravity="bottom" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content">
	< include android:layout_gravity="bottom" layout="@layout/qs_search" />
< /FrameLayout>
6. Recompile, sign, Done!.


*Material

Guide add search bar in QS panel.zip



Thanks To

MAIR
MAAAD
Nanank Haryounow
Rentjong OS
SKYMOD
Y0U :*
Me (Aryo Wysata)

Fri, 08-Jun-2019 Jatirejo, Nagan Raya, Aceh.