Skip to content

Commit

Permalink
Allow 3rd party apps to install
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Tanuj Tekriwal <[email protected]>
  • Loading branch information
tanujtekriwal committed Oct 21, 2021
1 parent 219951b commit 7335024
Showing 1 changed file with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
From 0909bebf770e9bc4f73431374beafba8103cd26c Mon Sep 17 00:00:00 2001
From: Tanuj Tekriwal <[email protected]>
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 <[email protected]>
---
.../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

0 comments on commit 7335024

Please sign in to comment.