大家好,又见面了,我是你们的朋友全栈君。
状态栏全透明步骤:
1,反编译SystemUI.apk
2,SystemUIreslayoutnavigation_bar.xml
找到
将后面的
android:background=”#FF000000″改为android:background=”#00000000″
3,SystemUIreslayoutstatus_bar.xml
找到
将后面的android:background=”@drawable/status_bar_background”
改为android:background=”#00000000″
4,SystemUIDataresvaluesdrawables.xml
找到#ff000000
改为#00000000
5,反编译android.policy.jar
6,android.policy.jar.outsmalicomandroidinternalpolicyimplPhoneWindowManager.smali
找到.method public getSystemDecorRectLw(Landroid/graphics/Rect;)I
以及这一段结尾的
.end method
把这一段替换为
.method public getSystemDecorRectLw(Landroid/graphics/Rect;)I
.locals 1
.parameter “systemRect”
.prologue
.line 3208
iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemLeft:I
iput v0, p1, Landroid/graphics/Rect;->left:I
.line 3209
iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemTop:I
iput v0, p1, Landroid/graphics/Rect;->top:I
.line 3210
iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemRight:I
iput v0, p1, Landroid/graphics/Rect;->right:I
.line 3211
iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemBottom:I
iput v0, p1, Landroid/graphics/Rect;->bottom:I
.line 3212
const/4 v0, 0x0
return v0
.end method
锁屏全透明步骤:
1,反编译android.policy.jar
android.policyDatasmalicomandroidinternalpolicyimplkeyguardKeyguardViewBase.smali
将.field private static final BACKGROUND_COLOR:I = 0x70000000
改为.field private static final BACKGROUND_COLOR:I = 0x00000000
2,android.policyDatasmalicomandroidinternalpolicyimplkeyguardKeyguardViewBase$1.smali
将const/high16 v0, 0x7000
改为const/high16 v0, 0x0000
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/188654.html原文链接:https://javaforall.cn