mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-06-01 21:02:12 -04:00
Fixup + Churn
Signed-off-by: Tavi <tavi@divested.dev>
This commit is contained in:
parent
12faa352ee
commit
ce2a2ee149
21 changed files with 75 additions and 77 deletions
|
@ -1,4 +1,4 @@
|
|||
From af3b316fa1727a4b036d32e2c4eb4564ffef134f Mon Sep 17 00:00:00 2001
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Brian Osman <brianosman@google.com>
|
||||
Date: Tue, 27 Aug 2024 14:22:52 -0400
|
||||
Subject: [PATCH] RESTRICT AUTOMERGE: Avoid potential overflow when allocating
|
||||
|
@ -25,7 +25,7 @@ Change-Id: Ia35860371d45120baca63238e77faa5c0eb25d51
|
|||
1 file changed, 6 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/src/effects/SkEmbossMaskFilter.cpp b/src/effects/SkEmbossMaskFilter.cpp
|
||||
index 671025006e4..299456446df 100644
|
||||
index 671025006e..299456446d 100644
|
||||
--- a/src/effects/SkEmbossMaskFilter.cpp
|
||||
+++ b/src/effects/SkEmbossMaskFilter.cpp
|
||||
@@ -91,11 +91,13 @@ bool SkEmbossMaskFilter::filterMask(SkMask* dst, const SkMask& src,
|
||||
|
|
|
@ -11,10 +11,10 @@ need to be granted by default for all apps to maintain compatibility.
|
|||
2 files changed, 25 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java
|
||||
index 893268da7f36..f91fa76b53ce 100644
|
||||
index 19245c4f7e0f..e45494de030c 100644
|
||||
--- a/services/core/java/com/android/server/pm/PackageManagerService.java
|
||||
+++ b/services/core/java/com/android/server/pm/PackageManagerService.java
|
||||
@@ -19732,7 +19732,8 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
@@ -19736,7 +19736,8 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
}
|
||||
|
||||
// If this permission was granted by default, make sure it is.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
From 49838726eef570a382fdc3da6822f84089efb0d9 Mon Sep 17 00:00:00 2001
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Dmitry Dementyev <dementyev@google.com>
|
||||
Date: Tue, 2 Jul 2024 11:02:07 -0700
|
||||
Subject: [PATCH] Remove authenticator data if it was disabled.
|
||||
|
@ -15,10 +15,10 @@ Change-Id: I36bd6bf101da03c9c30a6d3c0080b801e7898bc6
|
|||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/services/core/java/com/android/server/accounts/AccountManagerService.java b/services/core/java/com/android/server/accounts/AccountManagerService.java
|
||||
index c5fff3652c283..5103db36f196e 100644
|
||||
index c5fff3652c28..5103db36f196 100644
|
||||
--- a/services/core/java/com/android/server/accounts/AccountManagerService.java
|
||||
+++ b/services/core/java/com/android/server/accounts/AccountManagerService.java
|
||||
@@ -1168,6 +1168,10 @@ private void validateAccountsInternal(
|
||||
@@ -1168,6 +1168,10 @@ public class AccountManagerService
|
||||
obsoleteAuthType.add(type);
|
||||
// And delete it from the TABLE_META
|
||||
accountsDb.deleteMetaByAuthTypeAndUid(type, uid);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
From ed3e90e0c1ff4f2a2b0e893ac354ef92503210f4 Mon Sep 17 00:00:00 2001
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Jean-Michel Trivi <jmtrivi@google.com>
|
||||
Date: Mon, 24 Jun 2024 17:29:14 -0700
|
||||
Subject: [PATCH] RingtoneManager: allow video ringtone URI
|
||||
|
@ -17,10 +17,10 @@ Change-Id: Iac9f27f14bae29e0fabc31e05da2357f6f4f16c7
|
|||
2 files changed, 13 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/media/java/android/media/RingtoneManager.java b/media/java/android/media/RingtoneManager.java
|
||||
index 0e03bfb2502a4..7a27b03fd731d 100644
|
||||
index 0e03bfb2502a..7a27b03fd731 100644
|
||||
--- a/media/java/android/media/RingtoneManager.java
|
||||
+++ b/media/java/android/media/RingtoneManager.java
|
||||
@@ -851,9 +851,13 @@ public static void setActualDefaultRingtoneUri(Context context, int type, Uri ri
|
||||
@@ -851,9 +851,13 @@ public class RingtoneManager {
|
||||
+ " ignored: failure to find mimeType (no access from this context?)");
|
||||
return;
|
||||
}
|
||||
|
@ -37,10 +37,10 @@ index 0e03bfb2502a4..7a27b03fd731d 100644
|
|||
}
|
||||
}
|
||||
diff --git a/packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java b/packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java
|
||||
index b65b612ecad5c..1cef725241222 100644
|
||||
index b65b612ecad5..1cef72524122 100644
|
||||
--- a/packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java
|
||||
+++ b/packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java
|
||||
@@ -1497,7 +1497,7 @@ private boolean mutateSystemSetting(String name, String value, int runAsUserId,
|
||||
@@ -1497,7 +1497,7 @@ public class SettingsProvider extends ContentProvider {
|
||||
cacheName = Settings.System.ALARM_ALERT_CACHE;
|
||||
}
|
||||
if (cacheName != null) {
|
||||
|
@ -49,7 +49,7 @@ index b65b612ecad5c..1cef725241222 100644
|
|||
return false;
|
||||
}
|
||||
final File cacheFile = new File(
|
||||
@@ -1532,7 +1532,7 @@ owningUserId, name, value, null, false, getCallingPackage(),
|
||||
@@ -1532,7 +1532,7 @@ public class SettingsProvider extends ContentProvider {
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -58,7 +58,7 @@ index b65b612ecad5c..1cef725241222 100644
|
|||
if (uri != null) {
|
||||
Uri audioUri = Uri.parse(uri);
|
||||
if (Settings.AUTHORITY.equals(
|
||||
@@ -1550,10 +1550,13 @@ private boolean isValidAudioUri(String name, String uri) {
|
||||
@@ -1550,10 +1550,13 @@ public class SettingsProvider extends ContentProvider {
|
||||
return false;
|
||||
}
|
||||
if (!(mimeType.startsWith("audio/") || mimeType.equals("application/ogg")
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
From ddc8e8afabfd0956ddd646f57e7b10670a9309a8 Mon Sep 17 00:00:00 2001
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: lpeter <lpeter@google.com>
|
||||
Date: Tue, 6 Aug 2024 09:22:12 +0000
|
||||
Subject: [PATCH] Disallow device admin package and protected packages to be
|
||||
|
@ -21,10 +21,10 @@ Change-Id: I4e913a12477fd4a64990033eaae533e30863e2a2
|
|||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java
|
||||
index 893268da7f361..19245c4f7e0f9 100644
|
||||
index 893268da7f36..19245c4f7e0f 100644
|
||||
--- a/services/core/java/com/android/server/pm/PackageManagerService.java
|
||||
+++ b/services/core/java/com/android/server/pm/PackageManagerService.java
|
||||
@@ -14284,6 +14284,9 @@ public int installExistingPackageAsUser(String packageName, int userId, int inst
|
||||
@@ -14284,6 +14284,9 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
(installFlags & PackageManager.INSTALL_INSTANT_APP) != 0;
|
||||
final boolean fullApp =
|
||||
(installFlags & PackageManager.INSTALL_FULL_APP) != 0;
|
||||
|
@ -34,7 +34,7 @@ index 893268da7f361..19245c4f7e0f9 100644
|
|||
|
||||
// writer
|
||||
synchronized (mPackages) {
|
||||
@@ -14291,7 +14294,8 @@ public int installExistingPackageAsUser(String packageName, int userId, int inst
|
||||
@@ -14291,7 +14294,8 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
if (pkgSetting == null) {
|
||||
return PackageManager.INSTALL_FAILED_INVALID_URI;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
From 8dde42c39537e40cbf642350801b4aaf6ba7a73d Mon Sep 17 00:00:00 2001
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Ben Murdoch <benm@google.com>
|
||||
Date: Fri, 30 Aug 2024 17:22:59 +0000
|
||||
Subject: [PATCH] [BACKPORT] Clear app-provided shortcut icons
|
||||
Subject: [PATCH] Clear app-provided shortcut icons
|
||||
|
||||
When displaying keyboard shortcuts provided by an app, clear
|
||||
any icon that may have been set (this is only possible via
|
||||
|
@ -18,10 +18,10 @@ Change-Id: If7e291eb2254c3cbec23673c65e7477e6ad45b09
|
|||
2 files changed, 20 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/core/java/android/view/KeyboardShortcutInfo.java b/core/java/android/view/KeyboardShortcutInfo.java
|
||||
index c934a4e31f985..136c19f3f11e3 100644
|
||||
index c934a4e31f98..136c19f3f11e 100644
|
||||
--- a/core/java/android/view/KeyboardShortcutInfo.java
|
||||
+++ b/core/java/android/view/KeyboardShortcutInfo.java
|
||||
@@ -29,7 +29,7 @@
|
||||
@@ -29,7 +29,7 @@ import android.os.Parcelable;
|
||||
*/
|
||||
public final class KeyboardShortcutInfo implements Parcelable {
|
||||
private final CharSequence mLabel;
|
||||
|
@ -30,7 +30,7 @@ index c934a4e31f985..136c19f3f11e3 100644
|
|||
private final char mBaseCharacter;
|
||||
private final int mKeycode;
|
||||
private final int mModifiers;
|
||||
@@ -115,6 +115,15 @@ public Icon getIcon() {
|
||||
@@ -115,6 +115,15 @@ public final class KeyboardShortcutInfo implements Parcelable {
|
||||
return mIcon;
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ index c934a4e31f985..136c19f3f11e3 100644
|
|||
/**
|
||||
* Returns the base keycode that, combined with the modifiers, triggers this shortcut. If the
|
||||
* base character was set instead, returns {@link KeyEvent#KEYCODE_UNKNOWN}. Valid keycodes are
|
||||
@@ -165,4 +174,4 @@ public KeyboardShortcutInfo[] newArray(int size) {
|
||||
@@ -165,4 +174,4 @@ public final class KeyboardShortcutInfo implements Parcelable {
|
||||
return new KeyboardShortcutInfo[size];
|
||||
}
|
||||
};
|
||||
|
@ -54,10 +54,10 @@ index c934a4e31f985..136c19f3f11e3 100644
|
|||
\ No newline at end of file
|
||||
+}
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/KeyboardShortcuts.java b/packages/SystemUI/src/com/android/systemui/statusbar/KeyboardShortcuts.java
|
||||
index 2d16d2209c9e5..5779aec216838 100644
|
||||
index 2d16d2209c9e..5779aec21683 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/KeyboardShortcuts.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/KeyboardShortcuts.java
|
||||
@@ -376,6 +376,7 @@ private void showKeyboardShortcuts(int deviceId) {
|
||||
@@ -376,6 +376,7 @@ public final class KeyboardShortcuts {
|
||||
@Override
|
||||
public void onKeyboardShortcutsReceived(
|
||||
final List<KeyboardShortcutGroup> result) {
|
||||
|
@ -65,7 +65,7 @@ index 2d16d2209c9e5..5779aec216838 100644
|
|||
result.add(getSystemShortcuts());
|
||||
final KeyboardShortcutGroup appShortcuts = getDefaultApplicationShortcuts();
|
||||
if (appShortcuts != null) {
|
||||
@@ -386,6 +387,14 @@ public void onKeyboardShortcutsReceived(
|
||||
@@ -386,6 +387,14 @@ public final class KeyboardShortcuts {
|
||||
}, deviceId);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
From 09df73fbe58059be8428b1325c0444a25cd3748b Mon Sep 17 00:00:00 2001
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Adam Bookatz <bookatz@google.com>
|
||||
Date: Mon, 22 Jul 2024 17:03:12 -0700
|
||||
Subject: [PATCH] startActivityForResult with new Intent
|
||||
|
@ -22,7 +22,7 @@ diff --git a/src/com/android/settings/users/AppRestrictionsFragment.java b/src/c
|
|||
index bf0f3da8d00..201d23ceab3 100644
|
||||
--- a/src/com/android/settings/users/AppRestrictionsFragment.java
|
||||
+++ b/src/com/android/settings/users/AppRestrictionsFragment.java
|
||||
@@ -648,7 +648,7 @@ public void onReceive(Context context, Intent intent) {
|
||||
@@ -648,7 +648,7 @@ public class AppRestrictionsFragment extends SettingsPreferenceFragment implemen
|
||||
int requestCode = generateCustomActivityRequestCode(
|
||||
RestrictionsResultReceiver.this.preference);
|
||||
AppRestrictionsFragment.this.startActivityForResult(
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
From 371cf5203e1140ba416a248ed626413257bac87d Mon Sep 17 00:00:00 2001
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Fan Wu <cechkahn@google.com>
|
||||
Date: Mon, 22 Jul 2024 16:12:46 +0800
|
||||
Subject: [PATCH] [BACKPORT] Checks cross user permission before handling
|
||||
intent
|
||||
Subject: [PATCH] Checks cross user permission before handling intent
|
||||
|
||||
Bug: 326057017
|
||||
|
||||
|
@ -21,7 +20,7 @@ diff --git a/src/com/android/settings/applications/AppInfoBase.java b/src/com/an
|
|||
index f8ed315bfd5..549ecbdd61e 100644
|
||||
--- a/src/com/android/settings/applications/AppInfoBase.java
|
||||
+++ b/src/com/android/settings/applications/AppInfoBase.java
|
||||
@@ -18,7 +18,9 @@
|
||||
@@ -18,7 +18,9 @@ package com.android.settings.applications;
|
||||
|
||||
import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
|
||||
|
||||
|
@ -31,7 +30,7 @@ index f8ed315bfd5..549ecbdd61e 100644
|
|||
import android.app.AlertDialog;
|
||||
import android.app.Dialog;
|
||||
import android.app.DialogFragment;
|
||||
@@ -37,6 +39,7 @@
|
||||
@@ -37,6 +39,7 @@ import android.os.IBinder;
|
||||
import android.os.ServiceManager;
|
||||
import android.os.UserHandle;
|
||||
import android.os.UserManager;
|
||||
|
@ -39,7 +38,7 @@ index f8ed315bfd5..549ecbdd61e 100644
|
|||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
|
||||
@@ -134,8 +137,13 @@ protected String retrieveAppEntry() {
|
||||
@@ -134,8 +137,13 @@ public abstract class AppInfoBase extends SettingsPreferenceFragment
|
||||
}
|
||||
}
|
||||
if (intent != null && intent.hasExtra(Intent.EXTRA_USER_HANDLE)) {
|
||||
|
@ -55,7 +54,7 @@ index f8ed315bfd5..549ecbdd61e 100644
|
|||
} else {
|
||||
mUserId = UserHandle.myUserId();
|
||||
}
|
||||
@@ -158,6 +166,32 @@ protected String retrieveAppEntry() {
|
||||
@@ -158,6 +166,32 @@ public abstract class AppInfoBase extends SettingsPreferenceFragment
|
||||
return mPackageName;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
From cfb96168e5e753a0bdcca4874b012c25a7f7737a Mon Sep 17 00:00:00 2001
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Brian Osman <brianosman@google.com>
|
||||
Date: Tue, 27 Aug 2024 14:22:52 -0400
|
||||
Subject: [PATCH] RESTRICT AUTOMERGE: Avoid potential overflow when allocating
|
||||
|
@ -25,7 +25,7 @@ Change-Id: Ia35860371d45120baca63238e77faa5c0eb25d51
|
|||
1 file changed, 6 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/src/effects/SkEmbossMaskFilter.cpp b/src/effects/SkEmbossMaskFilter.cpp
|
||||
index 2dcce2b9102..8ea8c08039b 100644
|
||||
index ef26520172..94ff73e908 100644
|
||||
--- a/src/effects/SkEmbossMaskFilter.cpp
|
||||
+++ b/src/effects/SkEmbossMaskFilter.cpp
|
||||
@@ -95,11 +95,13 @@ bool SkEmbossMaskFilter::filterMask(SkMask* dst, const SkMask& src,
|
||||
|
|
|
@ -11,10 +11,10 @@ need to be granted by default for all apps to maintain compatibility.
|
|||
2 files changed, 20 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java
|
||||
index d27b5ad0d646..32b022455451 100644
|
||||
index d304f29ec195..9a4edcc5ea39 100644
|
||||
--- a/services/core/java/com/android/server/pm/PackageManagerService.java
|
||||
+++ b/services/core/java/com/android/server/pm/PackageManagerService.java
|
||||
@@ -20218,7 +20218,8 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
@@ -20222,7 +20222,8 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
}
|
||||
|
||||
// If this permission was granted by default, make sure it is.
|
||||
|
|
|
@ -81,7 +81,7 @@ index a84d23b624bf..1ab293758ee7 100644
|
|||
|
||||
<!-- This string array can be overriden to enable test location providers initially. -->
|
||||
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java
|
||||
index 32b022455451..568cdcac1d47 100644
|
||||
index 9a4edcc5ea39..4e06b9a23624 100644
|
||||
--- a/services/core/java/com/android/server/pm/PackageManagerService.java
|
||||
+++ b/services/core/java/com/android/server/pm/PackageManagerService.java
|
||||
@@ -4203,8 +4203,20 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
From 3651d27fdb579b51ea8a9b12fc18ca6e495566da Mon Sep 17 00:00:00 2001
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Dmitry Dementyev <dementyev@google.com>
|
||||
Date: Tue, 2 Jul 2024 11:02:07 -0700
|
||||
Subject: [PATCH] Remove authenticator data if it was disabled.
|
||||
|
@ -15,10 +15,10 @@ Change-Id: I36bd6bf101da03c9c30a6d3c0080b801e7898bc6
|
|||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/services/core/java/com/android/server/accounts/AccountManagerService.java b/services/core/java/com/android/server/accounts/AccountManagerService.java
|
||||
index fb79904a5b3a8..5718071c2bc4e 100644
|
||||
index e8c8b32884e9..f99e82f74f6e 100644
|
||||
--- a/services/core/java/com/android/server/accounts/AccountManagerService.java
|
||||
+++ b/services/core/java/com/android/server/accounts/AccountManagerService.java
|
||||
@@ -1165,6 +1165,10 @@ private void validateAccountsInternal(
|
||||
@@ -1165,6 +1165,10 @@ public class AccountManagerService
|
||||
obsoleteAuthType.add(type);
|
||||
// And delete it from the TABLE_META
|
||||
accountsDb.deleteMetaByAuthTypeAndUid(type, uid);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
From 3f5562449aad196198d0d36c312e6461920cebce Mon Sep 17 00:00:00 2001
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Jean-Michel Trivi <jmtrivi@google.com>
|
||||
Date: Mon, 24 Jun 2024 17:29:14 -0700
|
||||
Subject: [PATCH] RingtoneManager: allow video ringtone URI
|
||||
|
@ -17,10 +17,10 @@ Change-Id: Iac9f27f14bae29e0fabc31e05da2357f6f4f16c7
|
|||
2 files changed, 13 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/media/java/android/media/RingtoneManager.java b/media/java/android/media/RingtoneManager.java
|
||||
index 918a9d8943dde..1e1142387d149 100644
|
||||
index ad4751165d30..ea1cddca99d1 100644
|
||||
--- a/media/java/android/media/RingtoneManager.java
|
||||
+++ b/media/java/android/media/RingtoneManager.java
|
||||
@@ -833,9 +833,13 @@ public static void setActualDefaultRingtoneUri(Context context, int type, Uri ri
|
||||
@@ -824,9 +824,13 @@ public class RingtoneManager {
|
||||
+ " ignored: failure to find mimeType (no access from this context?)");
|
||||
return;
|
||||
}
|
||||
|
@ -37,10 +37,10 @@ index 918a9d8943dde..1e1142387d149 100644
|
|||
}
|
||||
}
|
||||
diff --git a/packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java b/packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java
|
||||
index d3c10574ea134..f58016acd290f 100644
|
||||
index 7cb41275984e..02165eb8a213 100644
|
||||
--- a/packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java
|
||||
+++ b/packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java
|
||||
@@ -1781,7 +1781,7 @@ private boolean mutateSystemSetting(String name, String value, int runAsUserId,
|
||||
@@ -1734,7 +1734,7 @@ public class SettingsProvider extends ContentProvider {
|
||||
cacheName = Settings.System.ALARM_ALERT_CACHE;
|
||||
}
|
||||
if (cacheName != null) {
|
||||
|
@ -49,7 +49,7 @@ index d3c10574ea134..f58016acd290f 100644
|
|||
return false;
|
||||
}
|
||||
final File cacheFile = new File(
|
||||
@@ -1816,7 +1816,7 @@ owningUserId, name, value, null, false, getCallingPackage(),
|
||||
@@ -1769,7 +1769,7 @@ public class SettingsProvider extends ContentProvider {
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -58,7 +58,7 @@ index d3c10574ea134..f58016acd290f 100644
|
|||
if (uri != null) {
|
||||
Uri audioUri = Uri.parse(uri);
|
||||
if (Settings.AUTHORITY.equals(
|
||||
@@ -1834,10 +1834,13 @@ private boolean isValidAudioUri(String name, String uri) {
|
||||
@@ -1787,10 +1787,13 @@ public class SettingsProvider extends ContentProvider {
|
||||
return false;
|
||||
}
|
||||
if (!(mimeType.startsWith("audio/") || mimeType.equals("application/ogg")
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
From 527ea3afca9a6ae7d330e5f982f9d22011adab7d Mon Sep 17 00:00:00 2001
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Ben Murdoch <benm@google.com>
|
||||
Date: Fri, 30 Aug 2024 17:22:59 +0000
|
||||
Subject: [PATCH] RESTRICT AUTOMERGE Clear app-provided shortcut icons
|
||||
|
@ -18,10 +18,10 @@ Change-Id: If7e291eb2254c3cbec23673c65e7477e6ad45b09
|
|||
2 files changed, 20 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/core/java/android/view/KeyboardShortcutInfo.java b/core/java/android/view/KeyboardShortcutInfo.java
|
||||
index 2660e74dcb205..2075d77a9871e 100644
|
||||
index 2660e74dcb20..2075d77a9871 100644
|
||||
--- a/core/java/android/view/KeyboardShortcutInfo.java
|
||||
+++ b/core/java/android/view/KeyboardShortcutInfo.java
|
||||
@@ -29,7 +29,7 @@
|
||||
@@ -29,7 +29,7 @@ import android.os.Parcelable;
|
||||
*/
|
||||
public final class KeyboardShortcutInfo implements Parcelable {
|
||||
private final CharSequence mLabel;
|
||||
|
@ -30,7 +30,7 @@ index 2660e74dcb205..2075d77a9871e 100644
|
|||
private final char mBaseCharacter;
|
||||
private final int mKeycode;
|
||||
private final int mModifiers;
|
||||
@@ -115,6 +115,15 @@ public Icon getIcon() {
|
||||
@@ -115,6 +115,15 @@ public final class KeyboardShortcutInfo implements Parcelable {
|
||||
return mIcon;
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ index 2660e74dcb205..2075d77a9871e 100644
|
|||
/**
|
||||
* Returns the base keycode that, combined with the modifiers, triggers this shortcut. If the
|
||||
* base character was set instead, returns {@link KeyEvent#KEYCODE_UNKNOWN}. Valid keycodes are
|
||||
@@ -165,4 +174,4 @@ public KeyboardShortcutInfo[] newArray(int size) {
|
||||
@@ -165,4 +174,4 @@ public final class KeyboardShortcutInfo implements Parcelable {
|
||||
return new KeyboardShortcutInfo[size];
|
||||
}
|
||||
};
|
||||
|
@ -54,10 +54,10 @@ index 2660e74dcb205..2075d77a9871e 100644
|
|||
\ No newline at end of file
|
||||
+}
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/KeyboardShortcuts.java b/packages/SystemUI/src/com/android/systemui/statusbar/KeyboardShortcuts.java
|
||||
index 7e6ddcfea7620..cc373d3c8b0f1 100644
|
||||
index 7e6ddcfea762..cc373d3c8b0f 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/KeyboardShortcuts.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/KeyboardShortcuts.java
|
||||
@@ -378,6 +378,7 @@ private void showKeyboardShortcuts(int deviceId) {
|
||||
@@ -378,6 +378,7 @@ public final class KeyboardShortcuts {
|
||||
@Override
|
||||
public void onKeyboardShortcutsReceived(
|
||||
final List<KeyboardShortcutGroup> result) {
|
||||
|
@ -65,7 +65,7 @@ index 7e6ddcfea7620..cc373d3c8b0f1 100644
|
|||
result.add(getSystemShortcuts());
|
||||
final KeyboardShortcutGroup appShortcuts = getDefaultApplicationShortcuts();
|
||||
if (appShortcuts != null) {
|
||||
@@ -388,6 +389,14 @@ public void onKeyboardShortcutsReceived(
|
||||
@@ -388,6 +389,14 @@ public final class KeyboardShortcuts {
|
||||
}, deviceId);
|
||||
}
|
||||
|
||||
|
|
|
@ -69,10 +69,10 @@ index fce5758e1..817fb2958 100644
|
|||
}
|
||||
|
||||
diff --git a/service/java/com/android/server/wifi/WifiConfigurationUtil.java b/service/java/com/android/server/wifi/WifiConfigurationUtil.java
|
||||
index b8992a011..f47f42d1b 100644
|
||||
index 98d2cb31a..3830ee286 100644
|
||||
--- a/service/java/com/android/server/wifi/WifiConfigurationUtil.java
|
||||
+++ b/service/java/com/android/server/wifi/WifiConfigurationUtil.java
|
||||
@@ -242,7 +242,7 @@ public class WifiConfigurationUtil {
|
||||
@@ -247,7 +247,7 @@ public class WifiConfigurationUtil {
|
||||
public static boolean hasMacRandomizationSettingsChanged(WifiConfiguration existingConfig,
|
||||
WifiConfiguration newConfig) {
|
||||
if (existingConfig == null) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
From 57ac15dfd212fd91ef2501248ac6fab1ec3f6bc6 Mon Sep 17 00:00:00 2001
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Adam Bookatz <bookatz@google.com>
|
||||
Date: Mon, 22 Jul 2024 17:03:12 -0700
|
||||
Subject: [PATCH] startActivityForResult with new Intent
|
||||
|
@ -19,10 +19,10 @@ Change-Id: Id74e4b7ae261f2916eedaef04a679f83409a4b67
|
|||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/com/android/settings/users/AppRestrictionsFragment.java b/src/com/android/settings/users/AppRestrictionsFragment.java
|
||||
index 51624ca63b4..e9e60fb319e 100644
|
||||
index 7cf46b69245..3f06e870a02 100644
|
||||
--- a/src/com/android/settings/users/AppRestrictionsFragment.java
|
||||
+++ b/src/com/android/settings/users/AppRestrictionsFragment.java
|
||||
@@ -655,7 +655,7 @@ public void onReceive(Context context, Intent intent) {
|
||||
@@ -649,7 +649,7 @@ public class AppRestrictionsFragment extends SettingsPreferenceFragment implemen
|
||||
int requestCode = generateCustomActivityRequestCode(
|
||||
RestrictionsResultReceiver.this.preference);
|
||||
AppRestrictionsFragment.this.startActivityForResult(
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
From e02728d51e013033f3cc168e8630d0322ccfd803 Mon Sep 17 00:00:00 2001
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Fan Wu <cechkahn@google.com>
|
||||
Date: Mon, 22 Jul 2024 16:12:46 +0800
|
||||
Subject: [PATCH] [BACKPORT] Checks cross user permission before handling
|
||||
intent
|
||||
Subject: [PATCH] Checks cross user permission before handling intent
|
||||
|
||||
Bug: 326057017
|
||||
|
||||
|
@ -21,7 +20,7 @@ diff --git a/src/com/android/settings/applications/AppInfoBase.java b/src/com/an
|
|||
index 71043400ff8..ef5297acaec 100644
|
||||
--- a/src/com/android/settings/applications/AppInfoBase.java
|
||||
+++ b/src/com/android/settings/applications/AppInfoBase.java
|
||||
@@ -18,7 +18,9 @@
|
||||
@@ -18,7 +18,9 @@ package com.android.settings.applications;
|
||||
|
||||
import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
|
||||
|
||||
|
@ -31,7 +30,7 @@ index 71043400ff8..ef5297acaec 100644
|
|||
import android.app.Dialog;
|
||||
import android.app.admin.DevicePolicyManager;
|
||||
import android.app.settings.SettingsEnums;
|
||||
@@ -38,6 +40,7 @@
|
||||
@@ -38,6 +40,7 @@ import android.os.UserManager;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
|
||||
|
@ -39,7 +38,7 @@ index 71043400ff8..ef5297acaec 100644
|
|||
import androidx.appcompat.app.AlertDialog;
|
||||
import androidx.fragment.app.DialogFragment;
|
||||
import androidx.fragment.app.Fragment;
|
||||
@@ -134,8 +137,13 @@ protected String retrieveAppEntry() {
|
||||
@@ -134,8 +137,13 @@ public abstract class AppInfoBase extends SettingsPreferenceFragment
|
||||
}
|
||||
}
|
||||
if (intent != null && intent.hasExtra(Intent.EXTRA_USER_HANDLE)) {
|
||||
|
@ -55,7 +54,7 @@ index 71043400ff8..ef5297acaec 100644
|
|||
} else {
|
||||
mUserId = UserHandle.myUserId();
|
||||
}
|
||||
@@ -158,6 +166,32 @@ protected String retrieveAppEntry() {
|
||||
@@ -158,6 +166,32 @@ public abstract class AppInfoBase extends SettingsPreferenceFragment
|
||||
return mPackageName;
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ index 4cd4452d0..6e9845fc6 100644
|
|||
case IMAGES_MEDIA_ID:
|
||||
case DOWNLOADS_ID:
|
||||
+ // Check if the caller has the required permissions to do placement
|
||||
+ enforceCallingPermission(uri, extras, true);
|
||||
+ enforceCallingPermission(uri, true);
|
||||
break;
|
||||
default:
|
||||
throw new IllegalArgumentException("Movement of " + uri
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue