Add strict mode feature flag for low target sdk
Use the new MinInstallableTargetSdk__install_block_strict_mode_enabled feature flag to no longer give exemptions to install blocks when strict mode is enabled for: 1) All installs from adb 2) Any install where the installer package name is null (not installed from a store) Bug: 237321649 Test: adb shell device_config put package_manager_service MinInstallableTargetSdk__install_block_strict_mode_enabled true Test: adb shell device_config put package_manager_service MinInstallableTargetSdk__strict_mode_target_sdk 23 Test: adb install ~/install_target_sdk_22.apk (install blocked) Test: adb install --bypass-low-target-sdk-block ~/install_target_sdk_22.apk (install successful) Test: adb shell device_config put package_manager_service MinInstallableTargetSdk__install_block_strict_mode_enabled false Test: adb install ~/install_target_sdk_22.apk (install successful) Change-Id: Ie6d44b5f16bf7dd35d3c75f51a9c94fd4ef9dcb6
Loading
Please register or sign in to comment