OSDN Git Service

Deprecating secure setting install_non_market_apps
authorSuprabh Shukla <suprabh@google.com>
Fri, 3 Feb 2017 04:01:11 +0000 (20:01 -0800)
committerSuprabh Shukla <suprabh@google.com>
Tue, 7 Feb 2017 00:08:00 +0000 (16:08 -0800)
commite3745eed8b9599de6f413d48a81098209fd41791
tree61aea45f57564a64791d97becb1ef3e75bd56186
parent763aeb5b94c206b4893f3ee2d25117dc47f1ffb0
Deprecating secure setting install_non_market_apps

Apps targetting Android O or higher should use the new api
canRequestPackageInstalls in package manager. The secure setting
INSTALL_NON_MARKET_APPS which was used is set to 1 to make the
change transparent to apps who are already querying for this setting's
value.

Test: adb shell am instrument -e class\
'com.android.providers.settings.InstallNonMarketAppsDeprecationTest' -w\
'com.android.providers.setting.test/android.support.test.runner.AndroidJUnitRunner'

Bug: 33947615

Change-Id: Ie38d130bfccd022483a566270fce071acbdb00b7
packages/SettingsProvider/res/values/defaults.xml
packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java
packages/SettingsProvider/test/src/com/android/providers/settings/InstallNonMarketAppsDeprecationTest.java [new file with mode: 0644]
services/core/java/com/android/server/pm/UserRestrictionsUtils.java