From 7335024a73509efa7a96780cf3c3ad4b6a5c666a Mon Sep 17 00:00:00 2001 From: Tanuj Tekriwal Date: Thu, 21 Oct 2021 09:30:33 +0530 Subject: [PATCH] Allow 3rd party apps to install This patch will allow 3rd party apps to install without ask from allowing permission in settings. This is the customer ask. Tracked-On: OAM-99340 Signed-off-by: Luhai Chen Signed-off-by: Tanuj Tekriwal --- ...ps-from-untrusted-sources-to-install.patch | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 aosp_diff/caas_cfc/frameworks/base/02_0002-Allow-Apps-from-untrusted-sources-to-install.patch diff --git a/aosp_diff/caas_cfc/frameworks/base/02_0002-Allow-Apps-from-untrusted-sources-to-install.patch b/aosp_diff/caas_cfc/frameworks/base/02_0002-Allow-Apps-from-untrusted-sources-to-install.patch new file mode 100644 index 0000000000..bd63a11999 --- /dev/null +++ b/aosp_diff/caas_cfc/frameworks/base/02_0002-Allow-Apps-from-untrusted-sources-to-install.patch @@ -0,0 +1,32 @@ +From 0909bebf770e9bc4f73431374beafba8103cd26c Mon Sep 17 00:00:00 2001 +From: Tanuj Tekriwal +Date: Thu, 21 Oct 2021 09:21:26 +0530 +Subject: [PATCH] Allow Apps from untrusted sources to install + +This patch will allow apps from untrusted source +to install and will not ask to enable the settings +for the same. +This is the customer requirement. + +Tracked-On: OAM-99340 +Signed-off-by: Tanuj Tekriwal +--- + .../com/android/packageinstaller/PackageInstallerActivity.java | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/packages/PackageInstaller/src/com/android/packageinstaller/PackageInstallerActivity.java b/packages/PackageInstaller/src/com/android/packageinstaller/PackageInstallerActivity.java +index 665d262d8067..94846a5b36de 100644 +--- a/packages/PackageInstaller/src/com/android/packageinstaller/PackageInstallerActivity.java ++++ b/packages/PackageInstaller/src/com/android/packageinstaller/PackageInstallerActivity.java +@@ -429,7 +429,7 @@ public class PackageInstallerActivity extends AlertActivity { + return; + } + +- if (mAllowUnknownSources || !isInstallRequestFromUnknownSource(getIntent())) { ++ if (true || mAllowUnknownSources || !isInstallRequestFromUnknownSource(getIntent())) { + initiateInstall(); + } else { + // Check for unknown sources restrictions. +-- +2.17.1 +