1. 先用 apktool.bat 解包
2. 解包后到 \smali\com\opera\mini\android\Browser$2.smali 文件中,来到下面代码位置进行修改(已作注释)..
# virtual methods
.method public final run()V
.locals 4
.prologue
.line 676
iget-object v0, p0, Lcom/opera/mini/android/Browser$2;->Code:Landroid/app/Activity;
invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
move-result-object v1
.line 677
invoke-virtual {v1}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;
move-result-object v2
.line 678
iget v0, p0, Lcom/opera/mini/android/Browser$2;->I:I
if-gez v0, :cond_0 //删掉这句的话,它就设置成系统亮度.
const/high16 v0, -0x4080
:goto_0
iput v0, v2, Landroid/view/WindowManager$LayoutParams;->screenBrightness:F
.line 681
invoke-virtual {v1, v2}, Landroid/view/Window;->setAttributes(Landroid/view/WindowManager$LayoutParams;)V
.line 682
return-void
.line 678
:cond_0
iget v0, p0, Lcom/opera/mini/android/Browser$2;->I:I
int-to-float v0, v0
invoke-static {v0}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F
move-result v0
const/high16 v3, 0x437f //亮度运算的一个值, 值越大就越暗. 反之就越亮.(根据你个人需求修改吧)!
div-float/2addr v0, v3 //和上面那行的数值进行除法运算得到最终亮度设置值.
goto :goto_0
.end method
注意我修改的版本是欧鹏7.6 其它版本未测试