summaryrefslogtreecommitdiffstats
path: root/services/tests
diff options
context:
space:
mode:
authorSvet Ganov <svetoslavganov@google.com>2015-03-28 19:34:15 -0700
committerSvet Ganov <svetoslavganov@google.com>2015-03-28 20:14:58 -0700
commit12a692a5e8244cad6ae634cc0821e4e3590cfef6 (patch)
treef9abbe6a7344048c2b0cf998a35a4a452953136e /services/tests
parentc9755bc4f2183d6d8e035e6a448b2c948dcd3a01 (diff)
downloadframeworks_base-12a692a5e8244cad6ae634cc0821e4e3590cfef6.zip
frameworks_base-12a692a5e8244cad6ae634cc0821e4e3590cfef6.tar.gz
frameworks_base-12a692a5e8244cad6ae634cc0821e4e3590cfef6.tar.bz2
Fix runtime permissinos toggling and relax XML parsing.
1. Fixed the case where runtime permissons can be toggled by a developer via a system property. 2. Relaxed the runtime permission XML parsing to be more fault toelrant and consistent wiht the reset of the package manager parse code. 3. Fixed a deadlock due to calling in to the activity manager with the package manager lock held to kill an app. Change-Id: I11dfb57ad4d8119baea79227dc2a3fe5e2208515
Diffstat (limited to 'services/tests')
-rw-r--r--services/tests/servicestests/src/com/android/server/pm/PackageManagerSettingsTests.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/tests/servicestests/src/com/android/server/pm/PackageManagerSettingsTests.java b/services/tests/servicestests/src/com/android/server/pm/PackageManagerSettingsTests.java
index 4dc1131..6a471fe 100644
--- a/services/tests/servicestests/src/com/android/server/pm/PackageManagerSettingsTests.java
+++ b/services/tests/servicestests/src/com/android/server/pm/PackageManagerSettingsTests.java
@@ -134,7 +134,7 @@ public class PackageManagerSettingsTests extends AndroidTestCase {
public void testSettingsReadOld() {
// Write the package files and make sure they're parsed properly the first time
writeOldFiles();
- Settings settings = new Settings(getContext(), getContext().getFilesDir(), new Object());
+ Settings settings = new Settings(getContext().getFilesDir(), new Object());
assertEquals(true, settings.readLPw(null, null, 0, false));
assertNotNull(settings.peekPackageLPr(PACKAGE_NAME_3));
assertNotNull(settings.peekPackageLPr(PACKAGE_NAME_1));
@@ -152,7 +152,7 @@ public class PackageManagerSettingsTests extends AndroidTestCase {
public void testNewPackageRestrictionsFile() {
// Write the package files and make sure they're parsed properly the first time
writeOldFiles();
- Settings settings = new Settings(getContext(), getContext().getFilesDir(), new Object());
+ Settings settings = new Settings(getContext().getFilesDir(), new Object());
assertEquals(true, settings.readLPw(null, null, 0, false));
settings.writeLPr();