[DEV] remove night mode for WIFI? - HTC Vivid, Raider, Velocity

Original Thread
http://forum.xda-developers.com/showthread.php?t=1590884
It is a power save setting that is supposedly embedded and it turns WiFi off at midnight.
(Thanks mikeyxda, in reference to http://forum.xda-developers.com/show...&postcount=292)
diff source for setting.apk
diff -uNr Settings_original/smali/com/android/settings/framework/activity/powersaver/SmartSyncDataLinkTurnOffReceiver.smali Settings_fix/smali/com/android/settings/framework/activity/powersaver/SmartSyncDataLinkTurnOffReceiver.smali
--- Settings_original/smali/com/android/settings/framework/activity/powersaver/SmartSyncDataLinkTurnOffReceiver.smali Mon Jun 11 11:49:45 2012
+++ Settings_fix/smali/com/android/settings/framework/activity/powersaver/SmartSyncDataLinkTurnOffReceiver.smali Mon Jun 11 11:49:12 2012
@@ -1694,6 +1694,8 @@
.method public SetAlarmTurnOffMobileDataLink(Landroid/content/Context;I)V
.locals 11
+ goto :goto_0
+
const/4 v10, 0x0
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
@@ -1738,12 +1740,15 @@
sput-object v6, Lcom/android/settings/framework/activity/powersaver/SmartSyncDataLinkTurnOffReceiver;->mPendingIntent_APTurnOffMobile:Landroid/app/PendingIntent;
+ :goto_0
return-void
.end method
.method public SetAlarmTurnOffWifiDataLink(Landroid/content/Context;I)V
.locals 9
+ goto :goto_0
+
const/4 v8, 0x0
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
@@ -1784,6 +1789,7 @@
sput-object v4, Lcom/android/settings/framework/activity/powersaver/SmartSyncDataLinkTurnOffReceiver;->mPendingIntent_APTurnOffWifi:Landroid/app/PendingIntent;
+ :goto_0
return-void
.end method
diff -uNr Settings_original/smali/com/android/settings/framework/activity/powersaver/SmartSyncScreenOnOffTimeReceiver.smali Settings_fix/smali/com/android/settings/framework/activity/powersaver/SmartSyncScreenOnOffTimeReceiver.smali
--- Settings_original/smali/com/android/settings/framework/activity/powersaver/SmartSyncScreenOnOffTimeReceiver.smali Mon Jun 11 11:49:45 2012
+++ Settings_fix/smali/com/android/settings/framework/activity/powersaver/SmartSyncScreenOnOffTimeReceiver.smali Mon Jun 11 11:49:12 2012
@@ -6167,6 +6167,8 @@
.method public SetAlarmTurnOffMobileDataLink(Landroid/content/Context;I)V
.locals 11
+ goto :goto_0
+
const/4 v10, 0x0
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
@@ -6211,12 +6213,15 @@
sput-object v6, Lcom/android/settings/framework/activity/powersaver/SmartSyncScreenOnOffTimeReceiver;->mPendingIntent_TurnOffMobilebycheck:Landroid/app/PendingIntent;
+ :goto_0
return-void
.end method
.method public SetAlarmTurnOffWifiDataLink(Landroid/content/Context;I)V
.locals 9
+ goto :goto_0
+
const/4 v8, 0x0
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
@@ -6257,6 +6262,7 @@
sput-object v4, Lcom/android/settings/framework/activity/powersaver/SmartSyncScreenOnOffTimeReceiver;->mPendingIntent_TurnOffWifibycheck:Landroid/app/PendingIntent;
+ :goto_0
return-void
.end method
Click to expand...
Click to collapse
patch for Holics

Related

[GUIDE]How To Replace Standered Platlogo With Lollipop Platlogo

HELLLO EVERYONE!! I AM BACK WITH MY GUIDE WHICH WILL HELP YOU REPLACE THE STANDARD PLATLOGO WITH THE LATEST LOLLIPOP PLATLOGO......​REQUIREMENTS
[*]Apktool
[*]Java Runtime Environment
[*]Java Development Kit
[*]Notepad++
[*]A WORKING BRAIN!!
LETS GET STARTED.....
[*]Decompile Framework.jar
[*]goto framework.jar.out\smali\com\android\internal\app
[*]Open PlatLogoActivity.xml
[*]Replace The Whole Code With Mine
Code:
.class public Lcom/android/internal/app/PlatLogoActivity;
.super Landroid/app/Activity;
.source "PlatLogoActivity.java"
# direct methods
.method public constructor <init>()V
.locals 0
.prologue
.line 12
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
return-void
.end method
# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
.locals 5
.param p1, "savedInstanceState" # Landroid/os/Bundle;
.prologue
.line 16
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
.line 18
new-instance v1, Landroid/content/Intent;
const-string v2, "android.intent.action.MAIN"
invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
.line 19
.local v1, "intent":Landroid/content/Intent;
new-instance v2, Landroid/content/ComponentName;
const-string v3, "areeb.xposed.eggster"
const-string v4, "areeb.xposed.eggster.lp.PlatLogoActivity"
invoke-direct {v2, v3, v4}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
invoke-virtual {v1, v2}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
.line 23
:try_start_0
invoke-virtual {p0, v1}, Lcom/android/internal/app/PlatLogoActivity;->startActivity(Landroid/content/Intent;)V
:try_end_0
.catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
.line 39
:goto_0
invoke-virtual {p0}, Lcom/android/internal/app/PlatLogoActivity;->finish()V
.line 41
return-void
.line 31
:catch_0
move-exception v0
.line 35
.local v0, "e":Landroid/content/ActivityNotFoundException;
const-string v2, "First install that app Chetan told you to!"
const/4 v3, 0x0
invoke-static {p0, v2, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v2
invoke-virtual {v2}, Landroid/widget/Toast;->show()V
goto :goto_0
.end method
[*]Save The XML
[*]Recompile The Framework
[*]Now Download The 2 APK's From Attachments And Install Them Before Pushing The Framework
[*]Push The framework.jar To Device
[*]ENJOY!!
AND THE MOST IMPORTANT THING..............HIT THANKS IF YOU LIKE M WORK!!
i can't see any code
+1
WAIT
AuliaYF said:
i can't see any code
Click to expand...
Click to collapse
I am making the thread now bro......wait
AuliaYF said:
i can't see any code
Click to expand...
Click to collapse
Added It!!HIT THANKS IF I HELPED U!!

[GUIDE][PORT] [cm11] Dinamic statusbar

what is Dinamic statusbar??
can you see here
or here my original facebook post​
i comparing from another rom include this feature to pure CM11 base
big thanks to
Allah swt
my family
@ocoot
@bamzzz
@qoejohn
prabu siliwangi
anggi muhammad
syaeful anwar
deddy kitul
you
REQUIREMENT:
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk and JAR file
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/ or else ( i use apktool 1.5.2 )
- download file recources below
Settings.apk
Decompile Settings.apk
add string
Code:
<string name="dynamic_system_bars_title">Dynamic system bars</string>
<string name="dynamic_status_bar_title">Dynamic status bar</string>
<string name="dynamic_status_bar_summary">Automatically update the background of the status bar</string>
<string name="dynamic_navigation_bar_title">Dynamic navigation bar</string>
<string name="dynamic_navigation_bar_summary">Automatically update the background of the navigation bar</string>
<string name="dynamic_system_bars_gradient_title">System bar gradient</string>
<string name="dynamic_system_bars_gradient_summary">Overlay a gradient on the system bars</string>
<string name="dynamic_status_bar_filter_title">Darker status bar</string>
<string name="dynamic_status_bar_filter_summary">Overlay a darkening filter on the status bar</string>
open
res/xml/display_settings.xml
add wherever you want
Code:
<PreferenceScreen android:title="Dinamic Status Bar" android:fragment="com.android.settings.oplosandev.DSBSettings" />
place DSBSettings.smali into folder "smali" ,after recompile and decompile automatic place directories name smali
Recompile
Decompile
open
DSBSettings.smali
matched
const v0, 0x7f050071 #type="xml" name="dsb_settings"
Recompile
sign
push
SystemUI.apk
decompile SystemUI
open
Code:
Lcom/android/systemui/statusbar/phone/PhoneStatusBarTransitions.smali
find
# instance fields
add above
Code:
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/android/systemui/statusbar/phone/PhoneStatusBarTransitions$1;,
Lcom/android/systemui/statusbar/phone/PhoneStatusBarTransitions$GradientObserver;,
Lcom/android/systemui/statusbar/phone/PhoneStatusBarTransitions$PhoneStatusBarBackgroundDrawable;
}
.end annotation
findmethod
Code:
.method public constructor <init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;)V
replace with
Code:
.method public constructor <init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;)V
.locals 4
.parameter "view"
.prologue
const/4 v3, 0x1
.line 47
new-instance v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBarTransitions$PhoneStatusBarBackgroundDrawable;
invoke-virtual {p1}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->getContext()Landroid/content/Context;
move-result-object v2
invoke-direct {v1, v2}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarTransitions$PhoneStatusBarBackgroundDrawable;-><init>(Landroid/content/Context;)V
invoke-direct {p0, p1, v1}, Lcom/android/systemui/statusbar/phone/BarTransitions;-><init>(Landroid/view/View;Lcom/android/systemui/statusbar/phone/BarTransitions$BarBackgroundDrawable;)V
.line 48
iput-object p1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBarTransitions;->mView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;
.line 49
iget-object v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBarTransitions;->mView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;
invoke-virtual {v1}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->getContext()Landroid/content/Context;
move-result-object v1
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
.line 50
.local v0, res:Landroid/content/res/Resources;
const v1, 0x7f0b002b #type="dimen" name="status_bar_icon_drawing_alpha"
invoke-virtual {v0, v1, v3, v3}, Landroid/content/res/Resources;->getFraction(III)F
move-result v1
iput v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBarTransitions;->mIconAlphaWhenOpaque:F
.line 51
return-void
.end method
skip this step if in your have it
add this
dimens.xml
Code:
<item type="dimen" name="status_bar_icon_drawing_alpha">75.0%</item>
colors.xml
Code:
<color name="status_bar_background_opaque">#ff000000</color>
<color name="status_bar_background_semi_transparent">#66000000</color>
intergers.xml
Code:
<integer name="dsb_transition_duration">500</integer>
push smali
recoompile
decompile
open public.xml
and matched all id
Lcom/android/systemui/statusbar/phone/PhoneStatusBarTransitions$PhoneStatusBarBackgroundDrawable.smali
Code:
const v1, 0x7f07000a #type="color" name="status_bar_background_opaque"
const v3, 0x7f07000b #type="color" name="status_bar_background_semi_transparent"
const v4, 0x7f0201dd #type="drawable" name="status_background"
Lcom/android/systemui/statusbar/phone/BarTransitions$BarBackgroundDrawable.smali
Code:
const v1, 0x7f090015 #type="integer" name="dsb_transition_duration"
Navbar
open
Lcom/android/systemui/statusbar/phone/NavigationBarTransitions;
find code
Code:
# instance fields
.field private final mBarService:Lcom/android/internal/statusbar/IStatusBarService;
add above
Code:
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/android/systemui/statusbar/phone/NavigationBarTransitions$GradientObserver;,
Lcom/android/systemui/statusbar/phone/NavigationBarTransitions$NavigationBarBackgroundDrawable;
}
.end annotation
find
Code:
.method public constructor
change like it
Code:
# direct methods
.method public constructor <init>(Lcom/android/systemui/statusbar/phone/NavigationBarView;)V
.locals 3
.parameter "view"
.prologue
.line 50
new-instance v0, Lcom/android/systemui/statusbar/phone/NavigationBarTransitions$NavigationBarBackgroundDrawable;
invoke-virtual {p1}, Lcom/android/systemui/statusbar/phone/NavigationBarView;->getContext()Landroid/content/Context;
move-result-object v1
invoke-direct {v0, v1}, Lcom/android/systemui/statusbar/phone/NavigationBarTransitions$NavigationBarBackgroundDrawable;-><init>(Landroid/content/Context;)V
invoke-direct {p0, p1, v0}, Lcom/android/systemui/statusbar/phone/BarTransitions;-><init>(Landroid/view/View;Lcom/android/systemui/statusbar/phone/BarTransitions$BarBackgroundDrawable;)V
.line 242
new-instance v0, Lcom/android/systemui/statusbar/phone/NavigationBarTransitions$2;
invoke-direct {v0, p0}, Lcom/android/systemui/statusbar/phone/NavigationBarTransitions$2;-><init>(Lcom/android/systemui/statusbar/phone/NavigationBarTransitions;)V
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/NavigationBarTransitions;->mLightsOutListener:Landroid/view/View$OnTouchListener;
.line 52
iput-object p1, p0, Lcom/android/systemui/statusbar/phone/NavigationBarTransitions;->mView:Lcom/android/systemui/statusbar/phone/NavigationBarView;
.line 53
const-string v0, "statusbar"
invoke-static {v0}, Landroid/os/ServiceManager;->getService(Ljava/lang/String;)Landroid/os/IBinder;
move-result-object v0
invoke-static {v0}, Lcom/android/internal/statusbar/IStatusBarService$Stub;->asInterface(Landroid/os/IBinder;)Lcom/android/internal/statusbar/IStatusBarService;
move-result-object v0
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/NavigationBarTransitions;->mBarService:Lcom/android/internal/statusbar/IStatusBarService;
.line 55
return-void
.end method
save
open
Lcom/android/systemui/statusbar/phone/NavigationBarView$StatusBarBlockerTransitions;
find
Code:
.method public constructor
change to
Code:
# direct methods
.method public constructor <init>(Landroid/view/View;)V
.locals 5
.parameter "statusBarBlocker"
.prologue
.line 1268
new-instance v0, Lcom/android/systemui/statusbar/phone/BarTransitions$BarBackgroundDrawable;
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object v1
const v2, 0x7f07000a #type="color" name="status_bar_background_opaque"
const v3, 0x7f07000b #type="color" name="status_bar_background_semi_transparent"
const v4, 0x7f0201dd #type="drawable" name="status_background"
invoke-direct {v0, v1, v2, v3, v4}, Lcom/android/systemui/statusbar/phone/BarTransitions$BarBackgroundDrawable;-><init>(Landroid/content/Context;III)V
invoke-direct {p0, p1, v0}, Lcom/android/systemui/statusbar/phone/BarTransitions;-><init>(Landroid/view/View;Lcom/android/systemui/statusbar/phone/BarTransitions$BarBackgroundDrawable;)V
.line 1273
return-void
.end method
and matched all id
Code:
const v2, 0x7f07000a #type="color" name="status_bar_background_opaque"
const v3, 0x7f07000b #type="color" name="status_bar_background_semi_transparent"
const v4, 0x7f0201dd #type="drawable" name="status_background"
do enabling navigation bar via build.prop
add this code at ADDITIONAL_BUILD_PROPERTIES
Code:
qemu.hw.mainkeys=0
push
Settings.apk /system/priv-app/here
SystemUI.apk /system/priv-app/here
systemui.so /system/lib
or other way, u can try methode flasahble.zip,adb,or other
RESERVED !!!
great tutorial om
Awesome sir
dugeriss said:
what is Dinamic statusbar??
can you see here
or here my original facebook post​
i comparing from another rom include this feature to pure CM11 base
big thanks to
Allah swt
my family
@ocoot
@bamzzz
@qoejohn
prabu siliwangi
anggi muhammad
syaeful anwar
deddy kitul
you
REQUIREMENT:
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk and JAR file
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/ or else ( i use apktool 1.5.2 )
- download file recources below
Click to expand...
Click to collapse
I tried on nexus 4 with 5.1.1 rooted stock rom and it doesn't work
Request
Sir can you make a guide of card stack view of paranoid android for cm11 too I want that with DSbar
Its only for cm11 roms or U can try it into ur kk

[Guide][2.3+][Add Marshmallow platlogo in ur ROM]

Hi Guyz! Today I'll tell you how to add Marshmallow Platlogo and game in your phone.
It is a part of open source.. So, you can use it your rom and mod it according to your needs but don't forget to give credits to Suraj Kumar aka @Droidbuster and his team AndroStark Developers.. He worked hard and made it from scratch, and made it possible to work even in Gingerbread devices
Ok Let's Start Now
You need-
- Romtoolpcv3 (you may get .parameter errors if you use other tools)
- Framework2.jar (For KitKat ROMs)
And, Framework.jar (for other ROMs)
- MEgg.apk (I've attached link below)
- Marshmallow Game (by Moblynx) - download from Play Store
1. Decomiple Framework.jar or Framework2.jar (for kitkat)..
2. Go to smali/com/android/internal/app..
3. Open PlatLogoActivity.smali (create it if it is not there )
4. Remove all the lines from that smali and paste below below lines
Code:
.class public Lcom/android/internal/app/PlatLogoActivity;
.super Landroid/app/Activity;
.source "PlatLogoActivity.java"
# direct methods
.method public constructor <init>()V
.locals 0
.prologue
.line 12
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
return-void
.end method
# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
.locals 5
.param p1, "savedInstanceState" # Landroid/os/Bundle;
.prologue
.line 16
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
.line 18
new-instance v1, Landroid/content/Intent;
const-string v2, "android.intent.action.MAIN"
invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
.line 19
.local v1, "intent":Landroid/content/Intent;
new-instance v2, Landroid/content/ComponentName;
const-string v3, "androstarkdeveloper.marshamlloweasteregg"
const-string v4, "androstarkdeveloper.marshamlloweasteregg.MainActivity"
invoke-direct {v2, v3, v4}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
invoke-virtual {v1, v2}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
.line 23
:try_start_0
invoke-virtual {p0, v1}, Lcom/android/internal/app/PlatLogoActivity;->startActivity(Landroid/content/Intent;)V
:try_end_0
.catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
.line 39
:goto_0
invoke-virtual {p0}, Lcom/android/internal/app/PlatLogoActivity;->finish()V
.line 41
return-void
.line 31
:catch_0
move-exception v0
.line 35
.local v0, "e":Landroid/content/ActivityNotFoundException;
const-string v2, "First install that app Droidbuster told you to!"
const/4 v3, 0x0
invoke-static {p0, v2, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v2
invoke-virtual {v2}, Landroid/widget/Toast;->show()V
goto :goto_0
.end method
5. Recompile and sign..
6. Push framework.jar/framework2.jar to system/framework
7. Download MEgg.apk from attachments and push to system/priv-app.. Done :good:
Join Androstark Facebook community
Don't forget to Hit thanks :good: if I helped you
Reserved
itsraj011 said:
You need-
- Romtoolpcv3 (you may get .parameter errors if you use other tools)
- Framework2.jar (For KitKat ROMs)
And, Framework.jar (for other ROMs)
- MEgg.apk (I've attached link below)
- Marshmallow Game (by Moblynx) - download from Play Store
Click to expand...
Click to collapse
please upload link for Romtoolpcv3 dear sir Raj
thanks in advance
Very useful..
Thanks for sharing
It is possible in cm7
itsraj011 said:
Hi Guyz! Today I'll tell you how to add Marshmallow Platlogo and game in your phone.
It is a part of open source.. So, you can use it your rom and mod it according to your needs but don't forget to give credits to Suraj Kumar aka @Droidbuster and his team AndroStark Developers.. He worked hard and made it from scratch, and made it possible to work even in Gingerbread devices
Ok Let's Start Now
You need-
- Romtoolpcv3 (you may get .parameter errors if you use other tools)
- Framework2.jar (For KitKat ROMs)
And, Framework.jar (for other ROMs)
- MEgg.apk (I've attached link below)
- Marshmallow Game (by Moblynx) - download from Play Store
1. Decomiple Framework.jar or Framework2.jar (for kitkat)..
2. Go to smali/com/android/internal/app..
3. Open PlatLogoActivity.smali (create it if it is not there )
4. Remove all the lines from that smali and paste below below lines
Code:
.class public Lcom/android/internal/app/PlatLogoActivity;
.super Landroid/app/Activity;
.source "PlatLogoActivity.java"
# direct methods
.method public constructor <init>()V
.locals 0
.prologue
.line 12
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
return-void
.end method
# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
.locals 5
.param p1, "savedInstanceState" # Landroid/os/Bundle;
.prologue
.line 16
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
.line 18
new-instance v1, Landroid/content/Intent;
const-string v2, "android.intent.action.MAIN"
invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
.line 19
.local v1, "intent":Landroid/content/Intent;
new-instance v2, Landroid/content/ComponentName;
const-string v3, "androstarkdeveloper.marshamlloweasteregg"
const-string v4, "androstarkdeveloper.marshamlloweasteregg.MainActivity"
invoke-direct {v2, v3, v4}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
invoke-virtual {v1, v2}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
.line 23
:try_start_0
invoke-virtual {p0, v1}, Lcom/android/internal/app/PlatLogoActivity;->startActivity(Landroid/content/Intent;)V
:try_end_0
.catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
.line 39
:goto_0
invoke-virtual {p0}, Lcom/android/internal/app/PlatLogoActivity;->finish()V
.line 41
return-void
.line 31
:catch_0
move-exception v0
.line 35
.local v0, "e":Landroid/content/ActivityNotFoundException;
const-string v2, "First install that app Droidbuster told you to!"
const/4 v3, 0x0
invoke-static {p0, v2, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v2
invoke-virtual {v2}, Landroid/widget/Toast;->show()V
goto :goto_0
.end method
5. Recompile and sign..
6. Push framework.jar/framework2.jar to system/framework
7. Download MEgg.apk from attachments and push to system/priv-app.. Done :good:
Join Androstark Facebook community
Don't forget to Hit thanks :good: if I helped you
Click to expand...
Click to collapse
Showing error

[guide][tut]lp/cm12/12.1 custom header backgroound (omni header machine)

Hello friends this is my first thread
Okay let's start
REQUIREMENT:
- BRAIN.apk
- Patient.jar
- experience.zip
- Know how to decompile/recompiling Apk file
- Know how to decompile/recompiling jar Apk file
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/ or else
STEP 1
- Decompile your SystemUI.apk
- Download Atached, Extract and merge to your Decompiled SystemUI.apk
- Open /res/layout/status_bar_expanded_header.xml
- Add the red line
Code:
http://schemas.android.com/apk/res/android" xmlns:systemui="http://schemas.android.com/apk/res-auto">
[COLOR="red"] <ImageView android:layout_gravity="center" android:id="@+id/background_image" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:scaleType="centerCrop" android:adjustViewBounds="true" />[/COLOR]
<com.android.systemui.statusbar.phone.MultiUserSwitch
SAVE
Decompile then Recompile again
STEP -2
- Open /res/values/public.xml and let standby here
- Open smali/com/android/systemui/statusbar/phone/PhoneStatusbar.smali
Find thi line
# instance fields
Add the red line below
Code:
[COLOR="red"] .field private mStatusBarHeaderMachine:Lcom/android/systemui/omni/StatusBarHeaderMachine;[/COLOR]
SAVE
Find this method .method protected makeStatusBarView()V
In this method find this line
Code:
iput-object v2, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mWeatherController:Lcom/android/systemui/statusbar/policy/WeatherControllerImpl;
And add the red line
LiKE this
Code:
iput-object v2, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mWeatherController:Lcom/android/systemui/statusbar/policy/WeatherControllerImpl;
[COLOR="red"].line 1249
new-instance v2, Lcom/android/systemui/omni/StatusBarHeaderMachine;
move-object/from16 v0, p0
iget-object v3, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;
invoke-direct {v2, v3}, Lcom/android/systemui/omni/StatusBarHeaderMachine;-><init>(Landroid/content/Context;)V
move-object/from16 v0, p0
iput-object v2, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarHeaderMachine:Lcom/android/systemui/omni/StatusBarHeaderMachine;[/COLOR]
.line 1250
:cond_1b
new-instance
SAVE
NEXT
Find this line
Code:
invoke-virtual {v2}, Lcom/android/systemui/statusbar/policy/UserInfoController;->reloadUserInfo()V
And Add the red line below
Like this
Code:
invoke-virtual {v2}, Lcom/android/systemui/statusbar/policy/UserInfoController;->reloadUserInfo()V
[COLOR="red"].line 1298
move-object/from16 v0, p0
iget-object v2, v0,Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarHeaderMachine:Lcom/android/systemui/omni/StatusBarHeaderMachine;
invoke-virtual {v2}, Lcom/android/systemui/omni/StatusBarHeaderMachine;->updateEnablement()V[/COLOR]
.line 1299
move-object/from16 v0, p0
iget-object v2, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mHeader:Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;
SAVE
STEP -3
- Open com/android/systemui/statusbar/phone/StatusBarHeaderView.smali
Find this line # interfaces
And add the red line
Like this
Code:
# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Lcom/android/systemui/statusbar/policy/NextAlarmController$NextAlarmChangeCallback;
.implements Lcom/android/systemui/statusbar/policy/WeatherController$Callback;
[COLOR="red"].implements Lcom/android/systemui/omni/StatusBarHeaderMachine$IStatusBarHeaderMachineObserver;[/COLOR]
SAVE
NEXT
Find this Line # instance fields
Add the ted linr
Like this
Code:
# instance fields
[COLOR="red"].field private mBackgroundImage:Landroid/widget/ImageView;[/COLOR]
.field private mCollapsedHeight:I
[COLOR="red"].field private mCurrentBackground:Landroid/graphics/drawable/Drawable;[/COLOR]
.field private mCurrentT:F
.field private mExpanded:Z
.field private mExpandedHeight:I
[COLOR="red"] .field private mLastHeight:F[/COLOR]
NEXT
Find This method .method static synthetic access$900(Lcom/android/systemui/statusbar/phone/StatusBarHeaderViewLandroid/widget/Switch;
Add the red line
Like this
Code:
.method static synthetic access$900(Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;)Landroid/widget/Switch;
.locals 1
.param p0, "x0" # Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;
.prologue
.line 70
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mQsDetailHeaderSwitch:Landroid/widget/Switch;
return-object v0
.end method
[COLOR="red"].method static synthetic access$1000007(Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;Landroid/graphics/drawable/Drawable;Z)V
.locals 8
move-object v0, p0
move-object v1, p1
move v2, p2
move-object v5, v0
move-object v6, v1
move v7, v2
invoke-direct {v5, v6, v7}, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->doUpdateStatusBarCustomHeader(Landroid/graphics/drawable/Drawable;Z)V
return-void
.end method
.method static synthetic access$L1000005(Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;)Landroid/widget/ImageView;
.locals 4
move-object v0, p0
move-object v3, v0
iget-object v3, v3, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mBackgroundImage:Landroid/widget/ImageView;
move-object v0, v3
return-object v0
.end method
.method static synthetic access$L1000006(Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;)Landroid/graphics/drawable/Drawable;
.locals 4
move-object v0, p0
move-object v3, v0
iget-object v3, v3, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mCurrentBackground:Landroid/graphics/drawable/Drawable;
move-object v0, v3
return-object v0
.end method
.method static synthetic access$S1000005(Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;Landroid/widget/ImageView;)V
.locals 6
move-object v0, p0
move-object v1, p1
move-object v4, v0
move-object v5, v1
iput-object v5, v4, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mBackgroundImage:Landroid/widget/ImageView;
return-void
.end method
.method static synthetic access$S1000006(Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;Landroid/graphics/drawable/Drawable;)V
.locals 6
move-object v0, p0
move-object v1, p1
move-object v4, v0
move-object v5, v1
iput-object v5, v4, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mCurrentBackground:Landroid/graphics/drawable/Drawable;
return-void
.end method
.method private doUpdateStatusBarCustomHeader(Landroid/graphics/drawable/Drawable;Z)V
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/graphics/drawable/Drawable;",
"Z)V"
}
.end annotation
.prologue
.line 32
move-object v0, p0
move-object v1, p1
move v2, p2
move-object v4, v1
if-eqz v4, :cond_1
.line 33
move-object v4, v1
move-object v5, v0
iget-object v5, v5, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mCurrentBackground:Landroid/graphics/drawable/Drawable;
if-eq v4, v5, :cond_0
.line 35
move-object v4, v0
iget-object v4, v4, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mBackgroundImage:Landroid/widget/ImageView;
const/4 v5, 0x0
invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setVisibility(I)V
.line 36
move-object v4, v0
move-object v5, v1
move v6, v2
invoke-direct {v4, v5, v6}, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->setNotificationPanelHeaderBackground(Landroid/graphics/drawable/Drawable;Z)V
.line 37
move-object v4, v0
move-object v5, v1
iput-object v5, v4, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mCurrentBackground:Landroid/graphics/drawable/Drawable;
.line 41
:cond_0
:goto_0
return-void
.line 40
:cond_1
move-object v4, v0
const/4 v5, 0x0
check-cast v5, Landroid/graphics/drawable/Drawable;
iput-object v5, v4, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mCurrentBackground:Landroid/graphics/drawable/Drawable;
.line 41
move-object v4, v0
iget-object v4, v4, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mBackgroundImage:Landroid/widget/ImageView;
const/16 v5, 0x8
invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setVisibility(I)V
goto :goto_0
.end method
.method private setNotificationPanelHeaderBackground(Landroid/graphics/drawable/Drawable;Z)V
.locals 11
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/graphics/drawable/Drawable;",
"Z)V"
}
.end annotation
.prologue
.line 98
move-object v0, p0
move-object v1, p1
move v2, p2
move-object v7, v0
iget-object v7, v7, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mBackgroundImage:Landroid/widget/ImageView;
invoke-virtual {v7}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
move-result-object v7
if-eqz v7, :cond_0
move v7, v2
if-nez v7, :cond_0
.line 99
const/4 v7, 0x2
new-array v7, v7, [Landroid/graphics/drawable/Drawable;
move-object v4, v7
.line 100
move-object v7, v4
const/4 v8, 0x0
move-object v9, v0
iget-object v9, v9, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mBackgroundImage:Landroid/widget/ImageView;
invoke-virtual {v9}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
move-result-object v9
aput-object v9, v7, v8
.line 101
move-object v7, v4
const/4 v8, 0x1
move-object v9, v1
aput-object v9, v7, v8
.line 103
new-instance v7, Landroid/graphics/drawable/TransitionDrawable;
move-object v10, v7
move-object v7, v10
move-object v8, v10
move-object v9, v4
invoke-direct {v8, v9}, Landroid/graphics/drawable/TransitionDrawable;-><init>([Landroid/graphics/drawable/Drawable;)V
move-object v5, v7
.line 104
move-object v7, v5
const/4 v8, 0x1
invoke-virtual {v7, v8}, Landroid/graphics/drawable/TransitionDrawable;->setCrossFadeEnabled(Z)V
.line 105
move-object v7, v0
iget-object v7, v7, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mBackgroundImage:Landroid/widget/ImageView;
move-object v8, v5
invoke-virtual {v7, v8}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
.line 106
move-object v7, v5
const/16 v8, 0x3e8
invoke-virtual {v7, v8}, Landroid/graphics/drawable/TransitionDrawable;->startTransition(I)V
.line 108
:goto_0
return-void
:cond_0
move-object v7, v0
iget-object v7, v7, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mBackgroundImage:Landroid/widget/ImageView;
move-object v8, v1
invoke-virtual {v7, v8}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
goto :goto_0
.end method[/COLOR]
NEXT
Finf this Line # virtual methods
And add the red line below
Code:
# virtual method
[COLOR="red"].method public disableHeader()V
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.prologue
.line 123
move-object v0, p0
move-object v2, v0
new-instance v3, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView$100000002;
move-object v6, v3
move-object v3, v6
move-object v4, v6
move-object v5, v0
invoke-direct {v4, v5}, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView$100000002;-><init>(Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;)V
invoke-virtual {v2, v3}, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->post(Ljava/lang/Runnable;)Z
move-result v2
return-void
.end method
.method public updateHeader(Landroid/graphics/drawable/Drawable;Z)V
.locals 11
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/graphics/drawable/Drawable;",
"Z)V"
}
.end annotation
.prologue
.line 114
move-object v0, p0
move-object v1, p1
move v2, p2
move-object v4, v0
new-instance v5, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView$100000001;
move-object v10, v5
move-object v5, v10
move-object v6, v10
move-object v7, v0
move-object v8, v1
move v9, v2
invoke-direct {v6, v7, v8, v9}, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView$100000001;-><init>(Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;Landroid/graphics/drawable/Drawable;Z)V
invoke-virtual {v4, v5}, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->post(Ljava/lang/Runnable;)Z
move-result v4
return-void
.end method[/COLOR]
NEXT
FIND this Method .method protected onFinishInflate()V
Find this line
Code:
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mDateExpanded:Landroid/widget/TextView;
And add the red line
Code:
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mDateExpanded:Landroid/widget/TextView;
[COLOR="red"] .line 31
const v0, 0x7f0f016b </android:id="@id/background_image" >
invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/ImageView;
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mBackgroundImage:Landroid/widget/ImageView;[/COLOR]
.line 168
const v0, 0x7f0f0114
NEXT
Find this method .method public setExpansion(F)V
Delete and replace with this method
Code:
.method public setExpansion(F)V
.locals 12
.annotation system Ldalvik/annotation/Signature;
value = {
"(F)V"
}
.end annotation
.prologue
.line 49
move-object v0, p0
move v1, p1
move-object v6, v0
iget-boolean v6, v6, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mExpanded:Z
if-nez v6, :cond_0
.line 51
const/4 v6, 0x0
move v1, v6
.line 53
:cond_0
move-object v6, v0
move v7, v1
iput v7, v6, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mCurrentT:F
.line 54
move-object v6, v0
iget v6, v6, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mCollapsedHeight:I
int-to-float v6, v6
move v7, v1
move-object v8, v0
iget v8, v8, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mExpandedHeight:I
move-object v9, v0
iget v9, v9, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mCollapsedHeight:I
sub-int/2addr v8, v9
int-to-float v8, v8
mul-float/2addr v7, v8
add-float/2addr v6, v7
move v3, v6
.line 55
move v6, v3
move-object v7, v0
iget v7, v7, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mLastHeight:F
cmpl-float v6, v6, v7
if-eqz v6, :cond_3
.line 56
move v6, v3
move-object v7, v0
iget v7, v7, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mCollapsedHeight:I
int-to-float v7, v7
cmpg-float v6, v6, v7
if-gez v6, :cond_1
.line 57
move-object v6, v0
iget v6, v6, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mCollapsedHeight:I
int-to-float v6, v6
move v3, v6
.line 59
:cond_1
move v6, v3
move-object v7, v0
iget v7, v7, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mExpandedHeight:I
int-to-float v7, v7
cmpl-float v6, v6, v7
if-lez v6, :cond_2
.line 60
move-object v6, v0
iget v6, v6, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mExpandedHeight:I
int-to-float v6, v6
move v3, v6
.line 62
:cond_2
move v6, v3
move v4, v6
.line 63
move-object v6, v0
move v7, v4
invoke-direct {v6, v7}, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->setClipping(F)V
.line 65
move-object v6, v0
new-instance v7, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView$100000000;
move-object v11, v7
move-object v7, v11
move-object v8, v11
move-object v9, v0
move v10, v4
invoke-direct {v8, v9, v10}, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView$100000000;-><init>(Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;F)V
invoke-virtual {v6, v7}, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->post(Ljava/lang/Runnable;)Z
move-result v6
.line 73
move-object v6, v0
move v7, v1
invoke-direct {v6, v7}, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->updateLayoutValues(F)V
.line 74
move-object v6, v0
move v7, v4
iput v7, v6, Lcom/android/systemui/statusbar/phone/StatusBarHeaderView;->mLastHeight:F
:cond_3
return-void
.end method
SAVE And DONE[/B
STEP -4
OPEN com/android/systemui/omni/DaylightHeaderProvider.smali
Replace all id below with id public.xml of your SystemUI
Code:
0x7f020004 <public type="drawable" name="notifhead_afternoon" id="0x7×××××" />
0x7f020005 <public type="drawable" name="notifhead_christmas" id="0x7×××××" />
0x7f020006 <public type="drawable" name="notifhead_evening" id="0x7×××××" />
0x7f020007 <public type="drawable" name="notifhead_hbd" id="0x7×××××" />
0x7f020008 <public type="drawable" name="notifhead_lebaran" id="0x7×××××" />
0x7f020009 <public type="drawable" name="notifhead_morning" id="0x7×××××" />
0x7f02000a <public type="drawable" name="notifhead_newyearseve" id="0x7×××××" />
0x7f02000b <public type="drawable" name="notifhead_night" id="0x7×××××" />
0x7f02000c <public type="drawable" name="notifhead_noon" id="0x7×××××" />
0x7f02000d <public type="drawable" name="notifhead_sore" id="0x7×××××" />
0x7f02000e <public type="drawable" name="notifhead_sunrise" id="0x7×××××" />
0x7f02000f <public type="drawable" name="notifhead_sunset" id="0x7×××××" />
0x7f020011 <public type="drawable" name="notification_panel_bg" id="0x7×××××" />
SAVE AND DONE
RECOMPILE
SIGN
PUSH
#CREDITS
KIDO1611 a.k.a Abdusy-sensei for basic training java
Omni Rom project for awesome source java
CyanogenMod ROM for first testing ROM
github
Aide
MAAaD Reborn "Mediatek Android Art and Dev - Reborn"
RSERVED
Amajing
nice sir.. nice share...
:thumbup::thumbup::thumbup:
awesome mbah
kingdj said:
awesome mbah
Click to expand...
Click to collapse
Hatur thank you mbah
How to decompile sir?
awesome :good:
qoejohn said:
awesome :good:
Click to expand...
Click to collapse
Thx bro

(guide) how to port blur with option (cm13/6.0 cm12,cm12.1 and stock)

Hello guys this time i wana share you how to port blur effect to your expanded&recent, it has option to switch on or off the blur just like xposed module do but this time we do it via smali huge thanks to @serajr for source&tips fix also to @psidco as builder&thinker
If you not familiar with smali or dcrc your system app i suggest you dig about that before doing this guide/mod
ALWAYS BACKUP BEFORE YOU MODIFY YOUR ROM
I don.t take any responsibility for any damage that may occur while you doing this, you are free no force to do this
GUIDE Expanded Blur With Realtime Change Effect
This Blur Was Already Tested On
Samsung S3 Cm13 Pure By Me Via Smali
Samsung Note2 Cm13 Pure Build From Source
And Many Os&Device On Maaadr Group Fb
Salute&Credit For
Dedy Prayetno/psidco Creator&Builder Of The Mod
Serajr For The Source&Fix Tips Of Headsup Blur And Blank Lockscreen
Maaadr (Mediatek Android Art&Dev Reborn )
You
RESPECT OUR JOB&HARDWORK GIVE PROPER CREDIT IF YOU WANT TO USE ON YOUR ROM OR MOD
WE DIDN.T ASK FOR NOTHING ONLY PROPER CREDIT FOR OUR COUNTLESS TIME DURING BUILD THIS MOD
YOU HAD NO IDEA HOW MUCH TIME&HEADACHE WE FEEL FOR THIS MOD
OKE SKIP BLA BLA BLA LETS START
OPEN notifpanelview smali
PASTE THIS LINE
Code:
# static fields
[COLOR="Blue"]
.field public static kontek:Landroid/content/Context;
.field private static mBlurRadius:I
.field private static mBlurScale:I
.field private static mBlurredStatusBarExpandedEnabled:Z
.field private static mBlurredView:Landroid/widget/FrameLayout;
.field private static mColorFilter:Landroid/graphics/ColorFilter;
.field public static mDimen:[I
.field private static final mDummyDirtyRect:Landroid/graphics/Rect;
.field private static mKeyguardShowing:Z
.field public static tmp:Landroid/graphics/Bitmap;[/COLOR]
Delete Field Keyguardshowing That Already Exist On Your Smali That.S Not Needeed Anymore
Paste This Line At The End Of Your Method Static Synthetic Accsess
Code:
[COLOR="Blue"]
.method static synthetic access$L1000028()I
.locals 1
sget v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurScale:I
return v0
.end method
.method static synthetic access$L1000029()I
.locals 1
sget v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurRadius:I
return v0
.end method
.method static synthetic access$L1000030()Z
.locals 1
sget-boolean v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurredStatusBarExpandedEnabled:Z
return v0
.end method
.method static synthetic access$S1000028(I)V
.locals 0
sput p0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurScale:I
return-void
.end method
.method static synthetic access$S1000029(I)V
.locals 0
sput p0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurRadius:I
return-void
.end method
.method static synthetic access$S1000030(Z)V
.locals 0
sput-boolean p0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurredStatusBarExpandedEnabled:Z
return-void
.end method[/COLOR]
Above Method .method private calculatePanelHeightQsExpanded()I
Code:
[COLOR="Blue"]
.method public static apdet()V
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.prologue
const/4 v1, 0x4
const/4 v5, 0x0
.line 564
invoke-static {}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->apdetBlur()V
.line 566
invoke-static {}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->isKeyguard()Z
move-result v0
if-eqz v0, :cond_0
.line 567
sget-object v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurredView:Landroid/widget/FrameLayout;
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V
.line 588
:goto_0
return-void
.line 571
:cond_0
invoke-static {}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->ena()Z
move-result v0
if-eqz v0, :cond_1
.line 572
invoke-static {}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->getTemp()Landroid/graphics/Bitmap;
move-result-object v0
.line 573
invoke-static {}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->getDimens()[I
move-result-object v1
.line 574
invoke-static {}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->getScala()I
move-result v2
.line 575
aget v3, v1, v5
div-int/2addr v3, v2
.line 576
const/4 v4, 0x1
aget v4, v1, v4
div-int v2, v4, v2
.line 578
invoke-static {v0, v3, v2, v5}, Landroid/graphics/Bitmap;->createScaledBitmap(Landroid/graphics/Bitmap;IIZ)Landroid/graphics/Bitmap;
move-result-object v0
.line 579
invoke-static {}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->getRadius()I
move-result v2
invoke-static {v0, v2}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->blurBitmap(Landroid/graphics/Bitmap;I)Landroid/graphics/Bitmap;
move-result-object v0
.line 580
sget-object v2, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurredView:Landroid/widget/FrameLayout;
invoke-virtual {v2}, Landroid/widget/FrameLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v2
aget v1, v1, v5
iput v1, v2, Landroid/view/ViewGroup$LayoutParams;->width:I
.line 581
sget-object v1, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurredView:Landroid/widget/FrameLayout;
invoke-virtual {v1}, Landroid/widget/FrameLayout;->requestLayout()V
.line 582
new-instance v1, Landroid/graphics/drawable/BitmapDrawable;
invoke-direct {v1, v0}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/graphics/Bitmap;)V
.line 583
new-instance v0, Landroid/graphics/PorterDuffColorFilter;
const v2, -0xbbbbbc
sget-object v3, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;
invoke-direct {v0, v2, v3}, Landroid/graphics/PorterDuffColorFilter;-><init>(ILandroid/graphics/PorterDuff$Mode;)V
invoke-virtual {v1, v0}, Landroid/graphics/drawable/BitmapDrawable;->setColorFilter(Landroid/graphics/ColorFilter;)V
.line 584
sget-object v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurredView:Landroid/widget/FrameLayout;
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setBackground(Landroid/graphics/drawable/Drawable;)V
.line 585
sget-object v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurredView:Landroid/widget/FrameLayout;
invoke-virtual {v0, v5}, Landroid/widget/FrameLayout;->setVisibility(I)V
goto :goto_0
.line 588
:cond_1
sget-object v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurredView:Landroid/widget/FrameLayout;
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V
goto :goto_0
.end method
.method public static apdetBlur()V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.prologue
const/4 v3, 0x3
const/4 v0, 0x1
.line 553
sget-object v1, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->kontek:Landroid/content/Context;
invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v1
.line 555
const-string v2, "BLUR_SCALA"
invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
move-result v2
sput v2, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurScale:I
.line 557
const-string v2, "BLUR_RADIUS"
invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
move-result v2
sput v2, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurRadius:I
.line 559
const-string v2, "BLUR"
invoke-static {v1, v2, v0}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
move-result v1
if-eq v1, v0, :cond_0
const/4 v0, 0x0
:cond_0
sput-boolean v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurredStatusBarExpandedEnabled:Z
return-void
.end method
.method public static blurBitmap(Landroid/graphics/Bitmap;I)Landroid/graphics/Bitmap;
.locals 4
.prologue
.line 585
sget-object v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->kontek:Landroid/content/Context;
invoke-static {v0}, Landroid/renderscript/RenderScript;->create(Landroid/content/Context;)Landroid/renderscript/RenderScript;
move-result-object v0
.line 586
invoke-static {v0}, Landroid/renderscript/Element;->U8_4(Landroid/renderscript/RenderScript;)Landroid/renderscript/Element;
move-result-object v1
invoke-static {v0, v1}, Landroid/renderscript/ScriptIntrinsicBlur;->create(Landroid/renderscript/RenderScript;Landroid/renderscript/Element;)Landroid/renderscript/ScriptIntrinsicBlur;
move-result-object v1
.line 587
invoke-static {v0, p0}, Landroid/renderscript/Allocation;->createFromBitmap(Landroid/renderscript/RenderScript;Landroid/graphics/Bitmap;)Landroid/renderscript/Allocation;
move-result-object v2
.line 588
invoke-virtual {v2}, Landroid/renderscript/Allocation;->getType()Landroid/rcript/Type;
ove-result-objectSS v3
invoke-static {v0, v3}, Landroid/renderscript/Allocation;->createTyped(Landroid/renderscript/RenderScript;Landroid/renderscript/Type;)Landroid/renderscript/Allocation;
move-result-object v0
.line 589
int-to-float v3, p1
invoke-virtual {v1, v3}, Landroid/renderscript/ScriptIntrinsicBlur;->setRadius(F)V
.line 590
invoke-virtual {v1, v2}, Landroid/renderscript/ScriptIntrinsicBlur;->setInput(Landroid/renderscript/Allocation;)V
.line 591
invoke-virtual {v1, v0}, Landroid/renderscript/ScriptIntrinsicBlur;->forEach(Landroid/renderscript/Allocation;)V
.line 592
invoke-virtual {v0, p0}, Landroid/renderscript/Allocation;->copyTo(Landroid/graphics/Bitmap;)V
.line 593
return-object p0
.end method[/COLOR]
Above Method .method private flingExpandsQs(F)Z
Code:
[COLOR="Blue"]
.method public static ena()Z
.locals 1
.prologue
.line 539
sget-boolean v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurredStatusBarExpandedEnabled:Z
return v0
.end method[/COLOR]
Above Method .method private getFadeoutAlpha()F
Code:
[COLOR="Blue"]
.method public static getDimens()[I
.locals 1
.prologue
.line 549
sget-object v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mDimen:[I
return-object v0
.end method[/COLOR]
Above Method .method private getScrollViewScrollY()I
Code:
[COLOR="Blue"].method public static getRadius()I
.locals 1
.prologue
.line 545
sget v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurRadius:I
return v0
.end method
.method public static getScala()I
.locals 1
.prologue
.line 542
sget v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurScale:I
return v0
.end method[/COLOR]
Above Method .method private getTempQsMaxExpansion()I
Code:
[COLOR="Blue"]
.method public static getTemp()Landroid/graphics/Bitmap;
.locals 1
.prologue
.line 533
sget-object v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->tmp:Landroid/graphics/Bitmap;
return-object v0
.end method[/COLOR]
Below Method .method private isInSettings()Z
Code:
[COLOR="Blue"]
.method public static isKeyguard()Z
.locals 1
.prologue
.line 537
sget-boolean v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mKeyguardShowing:Z
return v0
.end method[/COLOR]
Above Method .method private requestScrollerTopPaddingUpdate(Z)V
Code:
[COLOR="Blue"]
.method public static recycle()V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.prologue
const/4 v1, 0x0
.line 613
sget-object v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurredView:Landroid/widget/FrameLayout;
if-eqz v0, :cond_1
sget-object v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurredView:Landroid/widget/FrameLayout;
invoke-virtual {v0}, Landroid/widget/FrameLayout;->getBackground()Landroid/graphics/drawable/Drawable;
move-result-object v0
if-eqz v0, :cond_1
.line 615
sget-object v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurredView:Landroid/widget/FrameLayout;
invoke-virtual {v0}, Landroid/widget/FrameLayout;->getBackground()Landroid/graphics/drawable/Drawable;
move-result-object v0
instance-of v0, v0, Landroid/graphics/drawable/BitmapDrawable;
if-eqz v0, :cond_0
.line 616
sget-object v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurredView:Landroid/widget/FrameLayout;
invoke-virtual {v0}, Landroid/widget/FrameLayout;->getBackground()Landroid/graphics/drawable/Drawable;
move-result-object v0
check-cast v0, Landroid/graphics/drawable/BitmapDrawable;
invoke-virtual {v0}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;
move-result-object v0
.line 617
if-eqz v0, :cond_0
.line 618
invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V
move-object v0, v1
.line 619
check-cast v0, Landroid/graphics/Bitmap;
.line 623
:cond_0
sget-object v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurredView:Landroid/widget/FrameLayout;
check-cast v1, Landroid/graphics/drawable/Drawable;
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setBackground(Landroid/graphics/drawable/Drawable;)V
.line 625
:cond_1
sget-object v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurredView:Landroid/widget/FrameLayout;
const/4 v1, 0x4
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V
return-void
.end method[/COLOR]
Below Method .method private shouldQuickSettingsIntercept(FFF)Z
Code:
[COLOR="Blue"]
.method public static startBlurTask()V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.prologue
.line 610
sget-object v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->kontek:Landroid/content/Context;
invoke-static {v0}, Lcom/android/systemui/statusbar/phone/BlurAnu;->ss(Landroid/content/Context;)Landroid/graphics/Bitmap;
move-result-object v0
.line 611
sput-object v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->tmp:Landroid/graphics/Bitmap;
.line 612
sget-object v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->kontek:Landroid/content/Context;
invoke-static {v0}, Lcom/android/systemui/statusbar/phone/BlurAnu;->ukuranLayar(Landroid/content/Context;)[I
move-result-object v0
sput-object v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mDimen:[I
.line 614
invoke-static {}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->isKeyguard()Z
move-result v0
if-eqz v0, :cond_0
.line 615
sget-object v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurredView:Landroid/widget/FrameLayout;
const/4 v1, 0x4
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V
.line 620
:goto_0
return-void
.line 619
:cond_0
invoke-static {}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->apdetBlur()V
.line 620
invoke-static {}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->apdet()V
goto :goto_0
.end method[/COLOR]
Below Method .method protected isTrackingBlocked()Z
Code:
[COLOR="Blue"]
.method public jancuk()V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.prologue
const/4 v3, 0x0
const/4 v2, -0x1
.line 519
invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->getContext()Landroid/content/Context;
move-result-object v0
sput-object v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->kontek:Landroid/content/Context;
.line 525
new-instance v0, Landroid/widget/FrameLayout;
iget-object v1, p0, Landroid/view/View;->mContext:Landroid/content/Context;
invoke-direct {v0, v1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
sput-object v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurredView:Landroid/widget/FrameLayout;
.line 526
sget-object v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurredView:Landroid/widget/FrameLayout;
new-instance v1, Landroid/widget/FrameLayout$LayoutParams;
invoke-direct {v1, v2, v2}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V
invoke-virtual {p0, v0, v3, v1}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
.line 528
invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->requestLayout()V
.line 530
sget-object v0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mBlurredView:Landroid/widget/FrameLayout;
invoke-virtual {v0, v3}, Landroid/widget/FrameLayout;->setVisibility(I)V
return-void
.end method[/COLOR]
On Method Protected Onfinish Inflate Add
Code:
[COLOR="Blue"]
.line 437
invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->jancuk()V[/COLOR]
Looks Like This Below
Code:
[COLOR="Blue"]
check-cast v0, Lcom/android/systemui/qs/QSDragPanel;
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mQsPanel:Lcom/android/systemui/qs/QSDragPanel;
.line 437
invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->jancuk()V
[/COLOR]
NEXT
PhoneStatusBar.smali
On Method .method private updateKeyguardState(ZZ)V
Code:
[COLOR="Blue"]
.line 4570
:goto_1
invoke-static {}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->recycle()V[/COLOR]
Looks Like Below
Code:
[COLOR="Blue"].line 4565
iget-object v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mIconPolicy:Lcom/android/systemui/statusbar/phone/PhoneStatusBarPolicy;
invoke-virtual {v1, v0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarPolicy;->setKeyguardShowing(Z)V
.line 4570
:goto_1
invoke-static {}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->recycle()V
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNotificationPanel:Lcom/android/systemui/statusbar/phone/NotificationPanelView;
iget v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mState:I[/COLOR]
On Method .method makeExpandedInvisible()V
Add
Code:
[COLOR="Blue"].line 2786
:cond_1
invoke-static {}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->recycle()V[/COLOR]
Looks like below
Code:
[COLOR="Blue"].line 2781
iget-boolean v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedVisible:Z
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;
if-nez v0, :cond_1
.line 2782
:cond_0
return-void
.line 2786
:cond_1
invoke-static {}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->recycle()V[/COLOR]
On Method .method makeExpandedVisible(Z)V
Add
Code:
[COLOR="Blue"]
.line 2673
invoke-static {}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->startBlurTask()V/[/COLOR]
Looks Like Below
Code:
[COLOR="Blue"].line 2672
invoke-virtual {p0, v1, v1}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->setInteracting(IZ)V
.line 2673
invoke-static {}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->startBlurTask()V
.line 2655
return-void
.line 2658
:cond_2
return-void
:cond_3
move v0, v1
.line 2671
goto :goto_0
.end method[/COLOR]
NEXT
NOTE!!!!!!!!!!!!
You Must Change Default Instance Inside Your Smali
Example
BEFORE
Code:
[COLOR="Blue"]iget-boolean v3, p0,Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mKeyguardShowing:Z[/COLOR]
AFTER
Code:
[COLOR="Blue"]sget-boolean v3, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mKeyguardShowing:Z[/COLOR]
Do That On Every Line Inside Your Notifpanel Smali That Have End Line Like This "mkeyguardshowing;Z"
On My Smali I Had To Change About 15 Until 20 Line So Check Carefully Yours
If You Forgot 1 Line It Will Fc
The Point Is To Change From Instance To Be Static Field
​
Continue to part2
PART 2 BLUR RECENT
OPEN Recentactivity.smali
Paste Line Below
Code:
# static fields
[COLOR="Blue"]
.field public static kontek:Landroid/content/Context;
.field private static mBlurRadius:I
.field private static mBlurScale:I
.field private static mBlurredRecentAppsEnabled:Z
.field private static mColorFilter:Landroid/graphics/ColorFilter;
.field private static mRecentsActivityRootView:Landroid/widget/FrameLayout;
.field static mRecentsView:Lcom/android/systemui/recents/views/RecentsView;[/COLOR]
Delete Field Default That Already Exist On Your Smali
Code:
[COLOR="Red"].field mRecentsView:Lcom/android/systemui/recents/views/RecentsView[/COLOR]
NEXT
Above
.method private getResizeTaskDebugDialog()Lcom/android/systemui/recents/RecentsResizeTaskDialog;
Paste Line Below
Code:
[COLOR="Blue"].method public static apdetBlur()V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.prologue
const/4 v3, 0x3
const/4 v0, 0x1
.line 489
sget-object v1, Lcom/android/systemui/recents/RecentsActivity;->kontek:Landroid/content/Context;
invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v1
.line 491
const-string v2, "BLUR_SCALA"
invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
move-result v2
sput v2, Lcom/android/systemui/recents/RecentsActivity;->mBlurScale:I
.line 493
const-string v2, "BLUR_RADIUS"
invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
move-result v2
sput v2, Lcom/android/systemui/recents/RecentsActivity;->mBlurRadius:I
.line 495
const-string v2, "BLUR_RECENT"
invoke-static {v1, v2, v0}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
move-result v1
if-eq v1, v0, :cond_0
const/4 v0, 0x0
:cond_0
sput-boolean v0, Lcom/android/systemui/recents/RecentsActivity;->mBlurredRecentAppsEnabled:Z
return-void
.end method
.method public static blur()Landroid/graphics/Bitmap;
.locals 6
.prologue
const/4 v5, 0x0
.line 411
sget-object v0, Lcom/android/systemui/recents/RecentsActivity;->kontek:Landroid/content/Context;
invoke-static {v0}, Lcom/android/systemui/statusbar/phone/BlurAnu;->ss(Landroid/content/Context;)Landroid/graphics/Bitmap;
move-result-object v0
.line 412
invoke-static {}, Lcom/android/systemui/recents/RecentsActivity;->getDimens()[I
move-result-object v1
.line 413
invoke-static {}, Lcom/android/systemui/recents/RecentsActivity;->getScala()I
move-result v2
.line 414
aget v3, v1, v5
div-int/2addr v3, v2
.line 415
const/4 v4, 0x1
aget v1, v1, v4
div-int/2addr v1, v2
.line 417
invoke-static {v0, v3, v1, v5}, Landroid/graphics/Bitmap;->createScaledBitmap(Landroid/graphics/Bitmap;IIZ)Landroid/graphics/Bitmap;
move-result-object v0
.line 418
invoke-static {}, Lcom/android/systemui/recents/RecentsActivity;->getRadius()I
move-result v1
invoke-static {v0, v1}, Lcom/android/systemui/recents/RecentsActivity;->blurBitmap(Landroid/graphics/Bitmap;I)Landroid/graphics/Bitmap;
move-result-object v0
.line 419
return-object v0
.end method
.method public static blurBitmap(Landroid/graphics/Bitmap;I)Landroid/graphics/Bitmap;
.locals 4
.prologue
.line 500
sget-object v0, Lcom/android/systemui/recents/RecentsActivity;->kontek:Landroid/content/Context;
invoke-static {v0}, Landroid/renderscript/RenderScript;->create(Landroid/content/Context;)Landroid/renderscript/RenderScript;
move-result-object v0
.line 501
invoke-static {v0}, Landroid/renderscript/Element;->U8_4(Landroid/renderscript/RenderScript;)Landroid/renderscript/Element;
move-result-object v1
invoke-static {v0, v1}, Landroid/renderscript/ScriptIntrinsicBlur;->create(Landroid/renderscript/RenderScript;Landroid/renderscript/Element;)Landroid/renderscript/ScriptIntrinsicBlur;
move-result-object v1
.line 502
invoke-static {v0, p0}, Landroid/renderscript/Allocation;->createFromBitmap(Landroid/renderscript/RenderScript;Landroid/graphics/Bitmap;)Landroid/renderscript/Allocation;
move-result-object v2
.line 503
invoke-virtual {v2}, Landroid/renderscript/Allocation;->getType()Landroid/renderscript/Type;
move-result-object v3
invoke-static {v0, v3}, Landroid/renderscript/Allocation;->createTyped(Landroid/renderscript/RenderScript;Landroid/renderscript/Type;)Landroid/renderscript/Allocation;
move-result-object v0
.line 504
int-to-float v3, p1
invoke-virtual {v1, v3}, Landroid/renderscript/ScriptIntrinsicBlur;->setRadius(F)V
.line 505
invoke-virtual {v1, v2}, Landroid/renderscript/ScriptIntrinsicBlur;->setInput(Landroid/renderscript/Allocation;)V
.line 506
invoke-virtual {v1, v0}, Landroid/renderscript/ScriptIntrinsicBlur;->forEach(Landroid/renderscript/Allocation;)V
.line 507
invoke-virtual {v0, p0}, Landroid/renderscript/Allocation;->copyTo(Landroid/graphics/Bitmap;)V
.line 508
return-object p0
.end method
.method public static ena()Z
.locals 1
.prologue
.line 475
sget-boolean v0, Lcom/android/systemui/recents/RecentsActivity;->mBlurredRecentAppsEnabled:Z
return v0
.end method
.method public static getDimens()[I
.locals 1
.prologue
.line 484
sget-object v0, Lcom/android/systemui/recents/RecentsActivity;->kontek:Landroid/content/Context;
invoke-static {v0}, Lcom/android/systemui/statusbar/phone/BlurAnu;->ukuranLayar(Landroid/content/Context;)[I
move-result-object v0
.line 485
return-object v0
.end method
.method public static getRadius()I
.locals 1
.prologue
.line 481
sget v0, Lcom/android/systemui/recents/RecentsActivity;->mBlurRadius:I
return v0
.end method[/COLOR]
Above This Method Paste
# virtual methods
.method dismissRecentsToFocusedTaskOrHome(Z)Z
Code:
[COLOR="Blue"].method public static getScala()I
.locals 1
.prologue
.line 478
sget v0, Lcom/android/systemui/recents/RecentsActivity;->mBlurScale:I
return v0
.end method
.method public static jancuk()V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.prologue
.line 422
sget-object v0, Lcom/android/systemui/recents/RecentsActivity;->mRecentsView:Lcom/android/systemui/recents/views/RecentsView;
invoke-virtual {v0}, Lcom/android/systemui/recents/views/RecentsView;->getContext()Landroid/content/Context;
move-result-object v0
sput-object v0, Lcom/android/systemui/recents/RecentsActivity;->kontek:Landroid/content/Context;
.line 423
invoke-static {}, Lcom/android/systemui/recents/RecentsActivity;->apdetBlur()V
.line 424
sget-object v0, Lcom/android/systemui/recents/RecentsActivity;->mRecentsView:Lcom/android/systemui/recents/views/RecentsView;
invoke-virtual {v0}, Lcom/android/systemui/recents/views/RecentsView;->getParent()Landroid/view/ViewParent;
move-result-object v0
check-cast v0, Landroid/widget/FrameLayout;
sput-object v0, Lcom/android/systemui/recents/RecentsActivity;->mRecentsActivityRootView:Landroid/widget/FrameLayout;
.line 425
invoke-static {}, Lcom/android/systemui/recents/RecentsActivity;->jret()V
return-void
.end method
.method public static jret()V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.prologue
.line 435
sget-object v0, Lcom/android/systemui/recents/RecentsActivity;->mRecentsActivityRootView:Landroid/widget/FrameLayout;
if-eqz v0, :cond_0
.line 436
sget-object v1, Lcom/android/systemui/recents/RecentsActivity;->mRecentsActivityRootView:Landroid/widget/FrameLayout;
const/4 v0, 0x0
check-cast v0, Landroid/graphics/drawable/Drawable;
invoke-virtual {v1, v0}, Landroid/widget/FrameLayout;->setBackground(Landroid/graphics/drawable/Drawable;)V
.line 439
:cond_0
sget-boolean v0, Lcom/android/systemui/recents/RecentsActivity;->mBlurredRecentAppsEnabled:Z
if-nez v0, :cond_2
.line 450
:cond_1
:goto_0
return-void
.line 442
:cond_2
invoke-static {}, Lcom/android/systemui/recents/RecentsActivity;->blur()Landroid/graphics/Bitmap;
move-result-object v0
.line 443
invoke-static {}, Lcom/android/systemui/recents/RecentsActivity;->ena()Z
move-result v1
if-eqz v1, :cond_1
if-eqz v0, :cond_1
.line 446
new-instance v1, Landroid/graphics/drawable/BitmapDrawable;
invoke-direct {v1, v0}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/graphics/Bitmap;)V
.line 447
sget-object v0, Lcom/android/systemui/recents/RecentsActivity;->mColorFilter:Landroid/graphics/ColorFilter;
invoke-virtual {v1, v0}, Landroid/graphics/drawable/BitmapDrawable;->setColorFilter(Landroid/graphics/ColorFilter;)V
.line 450
sget-object v0, Lcom/android/systemui/recents/RecentsActivity;->mRecentsActivityRootView:Landroid/widget/FrameLayout;
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setBackground(Landroid/graphics/drawable/Drawable;)V
goto :goto_0
.end method
.method public static onConfigurationChanged()V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.prologue
.line 431
invoke-static {}, Lcom/android/systemui/recents/RecentsActivity;->recycle()V
return-void
.end method
.method private static recycle()V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.prologue
const/4 v1, 0x0
.line 455
sget-object v0, Lcom/android/systemui/recents/RecentsActivity;->mRecentsActivityRootView:Landroid/widget/FrameLayout;
if-nez v0, :cond_1
.line 469
:cond_0
:goto_0
return-void
.line 459
:cond_1
sget-object v0, Lcom/android/systemui/recents/RecentsActivity;->mRecentsActivityRootView:Landroid/widget/FrameLayout;
invoke-virtual {v0}, Landroid/widget/FrameLayout;->getBackground()Landroid/graphics/drawable/Drawable;
move-result-object v0
if-eqz v0, :cond_0
.line 462
sget-object v0, Lcom/android/systemui/recents/RecentsActivity;->mRecentsActivityRootView:Landroid/widget/FrameLayout;
invoke-virtual {v0}, Landroid/widget/FrameLayout;->getBackground()Landroid/graphics/drawable/Drawable;
move-result-object v0
check-cast v0, Landroid/graphics/drawable/BitmapDrawable;
invoke-virtual {v0}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;
move-result-object v0
.line 463
if-eqz v0, :cond_2
.line 465
invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V
move-object v0, v1
.line 466
check-cast v0, Landroid/graphics/Bitmap;
.line 469
:cond_2
sget-object v0, Lcom/android/systemui/recents/RecentsActivity;->mRecentsActivityRootView:Landroid/widget/FrameLayout;
check-cast v1, Landroid/graphics/drawable/Drawable;
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setBackground(Landroid/graphics/drawable/Drawable;)V
goto :goto_0
.end method[/COLOR]
NEXT
On method public onCreate(Landroid/os/BundleV
Code:
[COLOR="Blue"].line 400
invoke-static {}, Lcom/android/systemui/recents/RecentsActivity;->jancuk()V
penampakan /looks like below
.line 372
invoke-virtual {p0}, Lcom/android/systemui/recents/RecentsActivity;->inflateDebugOverlay()V
.line 400
invoke-static {}, Lcom/android/systemui/recents/RecentsActivity;->jancuk()V[/COLOR]
NEXT
BaseStatusbar.smalI
On .method protected toggleRecents()V
Code:
[COLOR="Blue"].line 1165
invoke-static {}, Lcom/android/systemui/recents/RecentsActivity;->jret()V[/COLOR]
penampakan /looks like below
Code:
.method protected toggleRecents()V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.prologue
.line 1163
iget-object v0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mRecents:Lcom/android/systemui/RecentsComponent;
if-eqz v0, :cond_0
[COLOR="Blue"].line 1165
invoke-static {}, Lcom/android/systemui/recents/RecentsActivity;->jret()V[/COLOR]
.line 1166
iget-object v0, p0, Lcom/android/systemui/SystemUI;->mContext:Landroid/content/Context;
NOTE!!!!!!!!!!!!
again you should change default field from iget to be sget
like we did before on notifpanel smali
BEFORE
Code:
iget-object v1, p0,Lcom/android/systemui/recents/RecentsActivity;->mRecentsView:Lcom/android/systemui/recents/views/RecentsView;[/HIDE]
AFTER
Code:
sget-object v1, Lcom/android/systemui/recents/RecentsActivity;->mRecentsView:Lcom/android/systemui/recents/views/RecentsView;[/HIDE]
Do It On Every Line That Have End Line Like Thi
Code:
Lcom/android/systemui/recents/RecentsActivity;->mRecentsView:Lcom/android/systemui/recents/views/RecentsView;[/HIDE]
About 15 Or 20 Change Just Follow My Guide It Should Fine
PART 3 Settings
For Non Qs Edit Tile Option Use This For Include In To Setting
Code:
"realtime_effect_blur_expanded_recent_para****"
you must complete the blur guide before apply this mod
#For non QSsetting like Pure CM13,
tested: DU 10.1 Sprout Device
DC your Settings.apk
Remove The Stuff In To The Place
Add This To display_settings.xml or wherever you like
Code:
<PreferenceScreen android:title="Expanded Blurr" android:key="blur" android:fragment="in.para****.BlurFragment" />
Add To Your Androidmanifest.xml Above </application>
Code:
<activity android:label="Blur Setting" android:name="in.para****.BlurFragment">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
RC and DC again..
Change Public id 0x7f080093 > xml="blur" with your own public values
oke? DONE!
Credit::
Dedy Prayetno/psidco
Serajr
Abdullah Ba'agil/ kingdj
MAAaDr (mediatek android art&dev) on fb
sidik ahmad (for non apk guide)
Screenshoot
Thank to @@DSttr for help to create this guide
Screenrecord
https://m.youtube.com/watch?v=t0QnosnXjJk&feature=youtu.be
NO BUG SO FAR EXCEPT THAT HEADSUP BLUR WILL TRY TO UPDATE THE GUIDE FOR REMOVE IT
:v :v good work sir
Amazing job
Envoyé de mon D6503 en utilisant Tapatalk
niaboc79 said:
Amazing job
Envoyé de mon D6503 en utilisant Tapatalk
Click to expand...
Click to collapse
Waiting for feedback
Waiting @serajr release the new live blur code ?
Sent from my GT-N7100 using XDA-Developers mobile app
psidco said:
Waiting @serajr release the new live blur code
Sent from my GT-N7100 using XDA-Developers mobile app
Click to expand...
Click to collapse
Can.t wait to taste the new source
Masterpiece!
I really like to see part of my work being ported everywhere, but this time with so such mastery... omg!!
Hats off!!
there is something wrong,? wkwkwk [emoji12]
Sent from my MI 3W using XDA-Developers mobile app
..
serajr said:
I really like to see part of my work being ported everywhere, but this time with so such mastery... omg!!
Hats off!!
Click to expand...
Click to collapse
Its happen because of you mate
Your blur make me crazy to always use it on any device and new api level hats off to you
Can.t wait to to see your new code of realtime blur. That.s must be awesome:good::good::good:
@DSttr said:
there is something wrong,? wkwkwk [emoji12]
Sent from my MI 3W using XDA-Developers mobile app
Click to expand...
Click to collapse
Yes kang, you *headshoot*
sorry I am not good at typing and speaking english ??? ?????
Sent from my MI 3W using XDA-Developers mobile app
serajr said:
I really like to see part of my work being ported everywhere, but this time with so such mastery... omg!!
Hats off!!
Click to expand...
Click to collapse
No sir,its your work im just make it for non exposed user,big thanks to you ,btw i need help on recent blur,whenever i change the background its always null,like that the recentrootview is not initialized
Edit: and yes its renderscript,gaussian seems broke on api 23,its give me a broken television bitmap bg lol
Sent from my GT-N7100 using XDA-Developers mobile app
kingdj said:
Its happen because of you mate
Your blur make me crazy to always use it on any device and new api level hats off to you
Can.t wait to to see your new code of realtime blur. That.s must be awesome:good::good::good:
Click to expand...
Click to collapse
psidco said:
No sir,its your work im just make it for non exposed user,big thanks to you ,btw i need help on recent blur,whenever i change the background its always null,like that the recentrootview is not initialized
Edit: and yes its renderscript,gaussian seems broke on api 23,its give me a broken television bitmap bg lol
Sent from my GT-N7100 using XDA-Developers mobile app
Click to expand...
Click to collapse
Great job guys... :good:
Btw... It is not broken, it's is working as expected. My xposed module for MM (api 23) makes use of it and is working like a charm.
You need to double check your code.
serajr said:
Great job guys... :good:
Btw... It is not broken, it's is working as expected. My xposed module for MM (api 23) makes use of it and is working like a charm.
You need to double check your code.
Click to expand...
Click to collapse
I will update it when u release it then , btw i remove the async task thing,cause its hard when use it for realtime efect,i think its make some problem occurs
Sent from my GT-N7100 using XDA-Developers mobile app
serajr said:
Great job guys... :good:
Btw... It is not broken, it's is working as expected. My xposed module for MM (api 23) makes use of it and is working like a charm.
You need to double check your code.
Click to expand...
Click to collapse
Really bro?
kingdj said:
Waiting for feedback
Click to expand...
Click to collapse
I will try asap
How to add the settings inside the quick settings edit first pane? The 2 sliders and switches.
Envoyé de mon D6503 en utilisant Tapatalk
niaboc79 said:
I will try asap
How to add the settings inside the quick settings edit first pane? The 2 sliders and switches.
Envoyé de mon D6503 en utilisant Tapatalk
Click to expand...
Click to collapse
Simply. Adding line to qs.setting xml
And modify qs.setting smali also adding helper smali.will give it soon
Already added on 1st post bro

Categories

Resources