mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
082bc48c32
https://review.lineageos.org/q/topic:P_asb_2022-05 https://review.lineageos.org/q/topic:P_asb_2022-06 https://review.lineageos.org/q/topic:P_asb_2022-07 https://review.lineageos.org/q/topic:P_asb_2022-08 https://review.lineageos.org/q/topic:P_asb_2022-09 https://review.lineageos.org/q/topic:P_asb_2022-10 https://review.lineageos.org/q/topic:P_asb_2022-11 https://review.lineageos.org/q/topic:P_asb_2022-12 https://review.lineageos.org/q/topic:P_asb_2023-01 https://review.lineageos.org/q/topic:P_asb_2023-02 https://review.lineageos.org/q/topic:P_asb_2023-03 https://review.lineageos.org/q/topic:P_asb_2023-04 https://review.lineageos.org/q/topic:P_asb_2023-05 https://review.lineageos.org/q/topic:P_asb_2023-06 https://review.lineageos.org/q/topic:P_asb_2023-07 accounted for via manifest change: https://review.lineageos.org/c/LineageOS/android_external_freetype/+/361250 https://review.lineageos.org/q/topic:P_asb_2023-08 accounted for via manifest change: https://review.lineageos.org/c/LineageOS/android_external_freetype/+/364606 accounted for via patches: https://review.lineageos.org/c/LineageOS/android_system_ca-certificates/+/365328 https://review.lineageos.org/q/topic:P_asb_2023-09 https://review.lineageos.org/q/topic:P_asb_2023-10 https://review.lineageos.org/q/topic:P_asb_2023-11 accounted for via patches: https://review.lineageos.org/c/LineageOS/android_system_ca-certificates/+/374916 https://review.lineageos.org/q/topic:P_asb_2023-12 https://review.lineageos.org/q/topic:P_asb_2024-01 https://review.lineageos.org/q/topic:P_asb_2024-02 https://review.lineageos.org/q/topic:P_asb_2024-03 https://review.lineageos.org/q/topic:P_asb_2024-04 Signed-off-by: Tavi <tavi@divested.dev>
35 lines
1.4 KiB
Diff
35 lines
1.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Winson Chiu <chiuwinson@google.com>
|
|
Date: Fri, 6 Jan 2023 21:26:24 +0000
|
|
Subject: [PATCH] Encode Intent scheme when serializing to URI string RESTRICT
|
|
AUTOMERGE
|
|
|
|
Avoids deserialization error when the scheme contains a
|
|
reserved character.
|
|
|
|
Bug: 261858325
|
|
|
|
Test: atest android.content.cts.IntentTest#testEncoding
|
|
|
|
Merged-In: Ic34b3f796b762763db5aa7b5d7c109ae70607470
|
|
Change-Id: Ic34b3f796b762763db5aa7b5d7c109ae70607470
|
|
(cherry picked from commit 43437b4ee6424933d4e403f0375ef8c1f07986f4)
|
|
Merged-In: Ic34b3f796b762763db5aa7b5d7c109ae70607470
|
|
---
|
|
core/java/android/content/Intent.java | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java
|
|
index e4502ffdd61f..66c2658f9f13 100644
|
|
--- a/core/java/android/content/Intent.java
|
|
+++ b/core/java/android/content/Intent.java
|
|
@@ -9860,7 +9860,7 @@ public class Intent implements Parcelable, Cloneable {
|
|
private void toUriInner(StringBuilder uri, String scheme, String defAction,
|
|
String defPackage, int flags) {
|
|
if (scheme != null) {
|
|
- uri.append("scheme=").append(scheme).append(';');
|
|
+ uri.append("scheme=").append(Uri.encode(scheme)).append(';');
|
|
}
|
|
if (mAction != null && !mAction.equals(defAction)) {
|
|
uri.append("action=").append(Uri.encode(mAction)).append(';');
|