Add patch to use standard gallery intent
Change-Id: Id3ee3bfc8dfa47fecdde0b59470d3ae4736ef0d6
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
From 9eda50fdc94da67e223c0406040155567a411daf Mon Sep 17 00:00:00 2001
|
||||
From: Arian <arian.kulmer@web.de>
|
||||
Date: Mon, 13 Mar 2023 15:46:13 +0100
|
||||
Subject: [PATCH 1/7] ICustomCaptureResult: Add readout timestamp
|
||||
Subject: [PATCH 1/8] ICustomCaptureResult: Add readout timestamp
|
||||
|
||||
commit [1] added two arguments to the CaptureResultExtras constructor.
|
||||
Patch MiuiCamera to provide these arguments
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From f73bd633f5081be3e9589a07283d093f018d69e4 Mon Sep 17 00:00:00 2001
|
||||
From: Arian <arian.kulmer@web.de>
|
||||
Date: Fri, 8 Mar 2024 02:11:53 +0100
|
||||
Subject: [PATCH 2/7] Support third party galleries
|
||||
Subject: [PATCH 2/8] Support third party galleries
|
||||
|
||||
---
|
||||
smali/d/d/a/r4.smali | 9 ++-------
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 3a68b3351d0c027141dab90851e801fabc827cbc Mon Sep 17 00:00:00 2001
|
||||
From: Arian <arian.kulmer@web.de>
|
||||
Date: Tue, 15 Oct 2024 01:44:04 +0200
|
||||
Subject: [PATCH 3/7] Start gallery as a new task
|
||||
Subject: [PATCH 3/8] Start gallery as a new task
|
||||
|
||||
When launched from lockscreen user will have to unlock for the gallery to be opened, then the gallery is living in the camera process which is wrong.
|
||||
Let it create a new task for it.
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
From 317db7603d301e10fe460a46d273d35e9ca66856 Mon Sep 17 00:00:00 2001
|
||||
From: Arian <arian.kulmer@web.de>
|
||||
Date: Wed, 16 Oct 2024 01:29:58 +0200
|
||||
Subject: [PATCH 4/8] Change com.android.camera.action.REVIEW to
|
||||
android.provider.action.REVIEW
|
||||
|
||||
This is the standard intent for review actions
|
||||
---
|
||||
smali/d/d/a/r4.smali | 4 ++--
|
||||
smali/d/d/a/z5.smali | 2 +-
|
||||
2 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/smali/d/d/a/r4.smali b/smali/d/d/a/r4.smali
|
||||
index b359f481d..77e0e1358 100644
|
||||
--- a/smali/d/d/a/r4.smali
|
||||
+++ b/smali/d/d/a/r4.smali
|
||||
@@ -1060,7 +1060,7 @@
|
||||
|
||||
move-result p0
|
||||
|
||||
- const-string v0, "com.android.camera.action.REVIEW"
|
||||
+ const-string v0, "android.provider.action.REVIEW"
|
||||
|
||||
if-eqz p0, :cond_0
|
||||
|
||||
@@ -1129,7 +1129,7 @@
|
||||
|
||||
const-string p1, "GalleryHelper"
|
||||
|
||||
- const-string v1, "gotoGallery: com.android.camera.action.REVIEW"
|
||||
+ const-string v1, "gotoGallery: android.provider.action.REVIEW"
|
||||
|
||||
.line 10
|
||||
invoke-static {p1, v1, p0}, Lcom/android/camera/log/Log;->d(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
|
||||
diff --git a/smali/d/d/a/z5.smali b/smali/d/d/a/z5.smali
|
||||
index 451fe1cdf..b5b43f066 100644
|
||||
--- a/smali/d/d/a/z5.smali
|
||||
+++ b/smali/d/d/a/z5.smali
|
||||
@@ -175,7 +175,7 @@
|
||||
|
||||
.field public static d1:Ljava/lang/Integer; = null
|
||||
|
||||
-.field public static final e:Ljava/lang/String; = "com.android.camera.action.REVIEW"
|
||||
+.field public static final e:Ljava/lang/String; = "android.provider.action.REVIEW"
|
||||
|
||||
.field public static final e0:I = 0x7
|
||||
|
||||
--
|
||||
2.39.5
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 048b39b79486bd4cc6aef4dded86e21b99297fb8 Mon Sep 17 00:00:00 2001
|
||||
From fe5f37edc6c7d620b0a2e216cbb9d8e655d9df7a Mon Sep 17 00:00:00 2001
|
||||
From: danielml <daniel@danielml.dev>
|
||||
Date: Fri, 19 Apr 2024 17:32:08 +0200
|
||||
Subject: [PATCH 4/7] Assume that mod_device is global
|
||||
Subject: [PATCH 5/8] Assume that mod_device is global
|
||||
|
||||
Otherwise, the app tries to start a custom permissions dialog which
|
||||
has dependencies on HyperOS Security Center app
|
||||
@@ -1,7 +1,7 @@
|
||||
From 175870e6930b2ac7b28fdcbabd84dcd10b3f06a5 Mon Sep 17 00:00:00 2001
|
||||
From 9e073a6020760d78a553825434472756b990900e Mon Sep 17 00:00:00 2001
|
||||
From: Arian <arian.kulmer@web.de>
|
||||
Date: Tue, 23 Apr 2024 19:17:07 +0200
|
||||
Subject: [PATCH 5/7] Revert icon to cupid V14.0.2.0.TLCMICM
|
||||
Subject: [PATCH 6/8] Revert icon to cupid V14.0.2.0.TLCMICM
|
||||
|
||||
---
|
||||
res/mipmap-anydpi/ic_launcher_camera_cv.xml | 6 ++++++
|
||||
@@ -1,7 +1,7 @@
|
||||
From 996fd06f9ddc008379ecd2801d9f3d3f650f63dd Mon Sep 17 00:00:00 2001
|
||||
From 1616710aad76bf83a59263fd9f3b999251c075f2 Mon Sep 17 00:00:00 2001
|
||||
From: Arian <arian.kulmer@web.de>
|
||||
Date: Tue, 15 Oct 2024 18:58:34 +0200
|
||||
Subject: [PATCH 6/7] Read AOSP integer camera_launch_source intent in
|
||||
Subject: [PATCH 7/8] Read AOSP integer camera_launch_source intent in
|
||||
STILL_IMAGE_CAMERA case
|
||||
|
||||
MIUI changed the camera_launch_source to be a string, but AOSP provides integers.
|
||||
@@ -1,7 +1,7 @@
|
||||
From ac906597b89183b8cd886864d89d7953d7769cac Mon Sep 17 00:00:00 2001
|
||||
From dc0b4be20e39254b63f68aad1b64925d915f7a70 Mon Sep 17 00:00:00 2001
|
||||
From: Arian <arian.kulmer@web.de>
|
||||
Date: Tue, 15 Oct 2024 19:06:16 +0200
|
||||
Subject: [PATCH 7/7] Force enable StartActivityWhenLocked
|
||||
Subject: [PATCH 8/8] Force enable StartActivityWhenLocked
|
||||
|
||||
MIUI sends this with the intent, but on AOSP we don't get this parameter
|
||||
---
|
||||
Reference in New Issue
Block a user