MiuiCamera: Fix register corruption in Camera.onCreate causing VerifyError
Change-Id: If38e1bfdf5cccfe4f65a46afc85ab8bcd1c39fee
This commit is contained in:
2 files changed
+5
-21
No files matched your search
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4c9473cbd96dfc630d3b2a28f71f883f5309cc31748e521b6c87d2a7d6e95344
|
||||
oid sha256:108e6ead6b44a2b2a45380eb1ec9db226a038fc5c5fed92db8a3296f4c9e00fb
|
||||
size 57067624
|
||||
@@ -1,4 +1,4 @@
|
||||
From 2adae50f252ebfe479b0bdcdd59e5b5c34404cb8 Mon Sep 17 00:00:00 2001
|
||||
From 1b9fd6465975c131f567c1e8e78f4d78dd7e528d Mon Sep 17 00:00:00 2001
|
||||
From: buxx <buxx@localhost>
|
||||
Date: Sat, 3 Oct 2026 16:28:45 +0000
|
||||
Subject: [PATCH] 0006 Fix actionbar and portrait bokeh crash
|
||||
@@ -8,10 +8,10 @@ Change-Id: Idaee29a78593a8fb7a1f7080e4abfbb4e2ba3ebe
|
||||
AndroidManifest.xml | 8 +++---
|
||||
res/values/styles.xml | 14 ++++++++--
|
||||
.../com/android/camera/ActivityBase.smali | 4 +++
|
||||
.../com/android/camera/Camera.smali | 13 +++++++++
|
||||
.../com/android/camera/Camera.smali | 4 +++
|
||||
smali_classes5/com/android/camera/Util.smali | 2 ++
|
||||
.../compat/MiCameraCompatBaseImpl.smali | 27 -------------------
|
||||
6 files changed, 35 insertions(+), 33 deletions(-)
|
||||
6 files changed, 26 insertions(+), 33 deletions(-)
|
||||
|
||||
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
|
||||
index 4b54e739..de8aedb8 100644
|
||||
@@ -109,7 +109,7 @@ index 99b2a38f..938ccd45 100644
|
||||
invoke-static {}, Lcom/android/camera/Util;->isContentViewExtendToTopEdges()Z
|
||||
|
||||
diff --git a/smali_classes5/com/android/camera/Camera.smali b/smali_classes5/com/android/camera/Camera.smali
|
||||
index 2785b806..53d1228a 100644
|
||||
index 2785b806..d1b475d2 100644
|
||||
--- a/smali_classes5/com/android/camera/Camera.smali
|
||||
+++ b/smali_classes5/com/android/camera/Camera.smali
|
||||
@@ -4579,6 +4579,10 @@
|
||||
@@ -123,22 +123,6 @@ index 2785b806..53d1228a 100644
|
||||
.line 1
|
||||
iget-object v0, p0, Lcom/android/camera/Camera;->TAG:Ljava/lang/String;
|
||||
|
||||
@@ -4966,6 +4970,15 @@
|
||||
.line 49
|
||||
invoke-virtual {p0, p1}, Landroid/app/Activity;->setContentView(I)V
|
||||
|
||||
+ invoke-virtual {p0}, Landroid/app/Activity;->getActionBar()Landroid/app/ActionBar;
|
||||
+
|
||||
+ move-result-object v0
|
||||
+
|
||||
+ if-eqz v0, :cond_no_ab
|
||||
+
|
||||
+ invoke-virtual {v0}, Landroid/app/ActionBar;->hide()V
|
||||
+
|
||||
+ :cond_no_ab
|
||||
.line 50
|
||||
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
||||
|
||||
diff --git a/smali_classes5/com/android/camera/Util.smali b/smali_classes5/com/android/camera/Util.smali
|
||||
index 6d06fa41..94df711b 100644
|
||||
--- a/smali_classes5/com/android/camera/Util.smali
|
||||
|
||||
Reference in new issue
Block a user