• Wenn du ebenfalls von dem Problem betroffen bist, dass dir die mögliche Maximalstärke über Bluetooth zu gering erscheint, so findest du hier evtl. eine Lösung, bzw. einen derzeitigen Workaround. ==> Lautstärke über Bluetooth zu gering <==

Themes und Homescreen Blur - Effekt

Hen Ry

Rikscha Fahrer
Blur-Effekt in der Statusleiste, Power und Recentmenü

bearbeitet werden:
- MiuiSystemUI.apk - Statusleiste
- Services.jar - Powermenü

gibt es für:
- MIUI 8 Android 6/7
- MIUI9 Android 6/7/8

Code:
FÜR MIUI 9, ANDROID 7

MiuiSystemUI.apk
res\layout\status_bar_expanded.xml

finde
<View android:id="@id/expanded_bg" android:background="@drawable/notification_panel_bg" android:layout_width="fill_parent" android:layout_height="fill_parent" />
ersetze
<com.android.systemui.statusbar.phone.BlurBackground android:id="@id/expanded_bg" android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="centerCrop" />
    <View android:id="@id/expanded_bg" android:layout_width="fill_parent" android:layout_height="fill_parent" />
    

res\layout\status_bar_expanded_single_page.xml
finde
<View android:id="@id/expanded_bg" android:background="@drawable/notification_panel_bg" android:layout_width="fill_parent" android:layout_height="fill_parent" />
ersetze
<com.android.systemui.statusbar.phone.BlurBackground android:id="@id/expanded_bg" android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="centerCrop" />
    <View android:id="@id/expanded_bg" android:layout_width="fill_parent" android:layout_height="fill_parent" />
    
res\layout\recents.xml
finde
 xmlns:android="http://schemas.android.com/apk/res/android">
danach einfügen
<com.android.systemui.statusbar.phone.BlurBackground android:id="@id/background" android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="centerCrop" />

services.jar - Powermenü
smali\com\android\server\policy\MiuiGlobalActions.smali

finde
.method public showDialog(ZZ)V

finde
    const-string/jumbo v3, "android"

    const/high16 v4, 0x10000

    invoke-interface {v1, v4, v2, v3}, Lcom/android/internal/statusbar/IStatusBarService;->disable(ILandroid/os/IBinder;Ljava/lang/String;)V
    :try_end_b3

nach 
try_end ist eine Zeichenfolge, die mit .catch Landroid / os / RemoteException beginnt; Wählen Sie alles aus und bis zur Zeile .end-Methode  
ersetzen
    .catch Landroid/os/RemoteException; {:try_start_a7 .. :try_end_b3} :catch_e4

    iget-object v4, p0, Lcom/android/server/policy/MiuiGlobalActions;->mContext:Landroid/content/Context;

    const v3, 0xa

    int-to-float v3, v3

    const/high16 v0, 0x41200000    # 10.0f

    div-float v3, v3, v0

    const/4 v2, 0x0

    const/4 v1, 0x0

    const/4 v0, 0x1

    invoke-static {v4, v3, v2, v1, v0}, Lmiui/util/ScreenshotUtils;->getScreenshot(Landroid/content/Context;FIIZ)Landroid/graphics/Bitmap;

    move-result-object v1

    const v3, 0x39

    invoke-static {v1, v2, v3}, Lmiui/graphics/BitmapFactory;->fastBlur(Landroid/graphics/Bitmap;Landroid/graphics/Bitmap;I)Landroid/graphics/Bitmap;

    move-result-object v3

    new-instance v2, Landroid/graphics/Canvas;

    invoke-direct {v2, v3}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    const-string v1, "#80000000"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v2, v1}, Landroid/graphics/Canvas;->drawColor(I)V

    new-instance v0, Landroid/graphics/drawable/BitmapDrawable;

    invoke-direct {v0, v3}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/graphics/Bitmap;)V

    iget-object v3, p0, Lcom/android/server/policy/MiuiGlobalActions;->mRoot:Lcom/android/server/policy/MiuiGlobalActions$GlobalActionsMamlView;

    invoke-virtual {v3, v0}, Lcom/android/server/policy/MiuiGlobalActions$GlobalActionsMamlView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    :goto_e3
    return-void

    :catch_e4
    move-exception v7

    invoke-virtual {v7}, Landroid/os/RemoteException;->printStackTrace()V

    goto :goto_e3
.end method

Nur MiuiPro
In der MiuiPro müssen wegen dem Statusleisten-Mod noch 6 weitere xml bearbeitet werden.

- status_bar_expanded_single_page_new.xml
- status_bar_expanded_single_page_ios.xml
- status_bar_expanded_single_page_wimpes.xml

und

- status_bar_expanded_new.xml
- status_bar_expanded_ios.xml
- status_bar_expanded_wimpes.xml
 

Anhänge

  • photo_2018-03-12_19-18-48 (2).jpg
    photo_2018-03-12_19-18-48 (2).jpg
    69,7 KB · Aufrufe: 89
  • photo_2018-03-11_23-20-33.jpg
    photo_2018-03-11_23-20-33.jpg
    40,8 KB · Aufrufe: 92
  • photo_2018-03-11_23-20-33 (2).jpg
    photo_2018-03-11_23-20-33 (2).jpg
    39 KB · Aufrufe: 89
Oben Unten