0b1356ff1f3cd2fd06d770af1ad466822173cc3a |
|
21-Feb-2017 |
Suprabh Shukla <suprabh@google.com> |
Fix 'Modifying dpm.setSecureSetting call for install_non_market_apps' The previous change was reverted as it broke work profile provisioning. Clearing binder calling identity before calling into settings provider should fix the issue. Test: runtest managed-provisioning Test: runtest -x services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java Test: Manually tested that work profile is inflated with expected values of install_non_market_apps Bug: 33947615 Bug: 35590590 Change-Id: I3c31a73fef0c25c0e682e18f637272adad39b28d
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/InstallNonMarketAppsDeprecationTest.java
|
5663e051099cdf442bc3316a88e1a7600c58aaaa |
|
20-Feb-2017 |
Victor Chang <vichang@google.com> |
Revert "Modifying dpm.setSecureSetting call for install_non_market_apps" This reverts commit 2e7d6d64b9b16ea27634bc0e8843717a465142b4. Bug: 35590590 Fix: 35590106 Test: runtest managed-provisioning Test: manual verified that work profile can be inflated Change-Id: Ie780b94053e65bca2f96b32055937c0c9e8beae8
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/InstallNonMarketAppsDeprecationTest.java
|
2e7d6d64b9b16ea27634bc0e8843717a465142b4 |
|
10-Feb-2017 |
Suprabh Shukla <suprabh@google.com> |
Modifying dpm.setSecureSetting call for install_non_market_apps Starting from O, install_non_market_apps is deprecated and will not be checked by the package installer. Device admin apps should be using the user restriction instead. Since on managed profiles, the default value blocked install from unknown sources, the system will set the user restriction on behalf of the profile owners (if the profile has one). For non-managed profiles, the user had access to the settings to change the value of install_non_market_apps. So going forward, any request to change it's value by dpm#setSecureSetting in such users is going to be ignored. Test: Manually tested that: 1. For a profile with PO, when install_non_market_apps was set to 0, user restriction is set on upgrade 2. For a profile with PO, when install_non_market_apps was set to 1, user restriction is not set on upgrade 3. After upgrade, newly created managed profiles with PO have user restriction set Bug: 33947615 Change-Id: I063e9ee608b52086ffdf8ed2b24e2928574c58cd
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/InstallNonMarketAppsDeprecationTest.java
|
e3745eed8b9599de6f413d48a81098209fd41791 |
|
03-Feb-2017 |
Suprabh Shukla <suprabh@google.com> |
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
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/InstallNonMarketAppsDeprecationTest.java
|