• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

frameworks/base


Commit MetaInfo

Révision21af7a4109cf0989a0c6dc1627bf7137e0e83d8b (tree)
l'heure2019-11-08 09:19:33
AuteurTodd Kennedy <toddke@goog...>
CommiterKyriakos Ispoglou

Message de Log

Only allow INSTALL_ALLOW_TEST from shell or root

Bug: 141169173
Test: Manual. App can't be installed as test-only
Change-Id: Ib6dcca7901aa549d620448c0165c22270a3042be
Merged-In: Ib6dcca7901aa549d620448c0165c22270a3042be
(cherry picked from commit 702d394762a9b162cb2a2b04bb726fd8053f24d3)

Change Summary

Modification

--- a/services/core/java/com/android/server/pm/PackageInstallerService.java
+++ b/services/core/java/com/android/server/pm/PackageInstallerService.java
@@ -440,6 +440,7 @@ public class PackageInstallerService extends IPackageInstaller.Stub {
440440
441441 params.installFlags &= ~PackageManager.INSTALL_FROM_ADB;
442442 params.installFlags &= ~PackageManager.INSTALL_ALL_USERS;
443+ params.installFlags &= ~PackageManager.INSTALL_ALLOW_TEST;
443444 params.installFlags |= PackageManager.INSTALL_REPLACE_EXISTING;
444445 if ((params.installFlags & PackageManager.INSTALL_VIRTUAL_PRELOAD) != 0
445446 && !mPm.isCallerVerifier(callingUid)) {