可否加入“锁屏禁止下拉”选项?

可否加入“锁屏禁止下拉”选项?
0

#1

找不到这个选项。锁屏万一要是被别人关了网络就烦人了。。。


#2

原生是没有这样的选项的,默认锁屏就是可以下拉的,没有开关选项。


#3

确实可以加上,但我是直接禁了,没加选项。可以在smali下来改,在systemui.apk中。
下面是改动的PATCH.

--- F:\XiaoMi\SystemUI\NotificationPanelView.smali.o
+++ F:\XiaoMi\SystemUI\NotificationPanelView.smali
@@ -1884,6 +1884,13 @@
 
     .line 852
     :cond_27

+
+#===========================================
+    iget-boolean v1, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mKeyguardShowing:Z
+
+    if-nez v1, :cond_53    
+#===========================================
+
     iget-boolean v1, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mQsExpandImmediate:Z
 
     if-nez v1, :cond_53
@@ -3934,6 +3941,13 @@
     .param p1, "expanded"    # Z
 
     .prologue
+
+#==============================================
+    iget-boolean v1, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mKeyguardShowing:Z
+
+    if-nez v1, :cond_1e 
+#==============================================
+
     .line 1070
     iget-boolean v1, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mQsExpanded:Z
 
@@ -4264,9 +4278,10 @@
 
     .line 1444
     :cond_a
-    iget-boolean v3, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mKeyguardShowing:Z
+#=    iget-boolean v3, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mKeyguardShowing:Z
 
-    if-eqz v3, :cond_4f
+#=    if-eqz v3, :cond_4f
+    goto :cond_4f
 
     iget-object v0, p0, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->mKeyguardStatusBar:Lcom/android/systemui/statusbar/phone/KeyguardStatusBarView;
 
和另一处:
--- F:\XiaoMi\SystemUI\PhoneStatusBar.smali.o
+++ F:\XiaoMi\SystemUI\PhoneStatusBar.smali
@@ -14346,7 +14346,20 @@
     return-void
 .end method
 
+#======================================================
 .method public onDraggedDown(Landroid/view/View;I)Z
+    .registers 5
+    .param p1, "startingChild"    # Landroid/view/View;
+    .param p2, "dragLengthY"    # I
+
+    .prologue
+
+    const/4 v0, 0x0
+
+    return v0
+.end method
+#======================================================
+.method public onDraggedDown_Removed(Landroid/view/View;I)Z
     .registers 8
     .param p1, "startingChild"    # Landroid/view/View;
     .param p2, "dragLengthY"    # I

#4

我是玩机小白,看不懂这个😂要是能继集成在rom里就好了


#5

这样哈,有点可惜