Enforce deprecation policy for apps.
Android platform drops support for apps that target a
very old API level. Apps targeting version earlier than
Android Jelly Bean MR1 (2012) will show a warning dialog
when starting an activity.
Test: atest CtsActivityManagerDeviceTestCases:DeprecatedTargetSdkTest
Bug: 63926630
Change-Id: Ia849d67339d5172c09960725b6b1e200df0307d1
diff --git a/core/version_defaults.mk b/core/version_defaults.mk
index 3f5144f..8a7b684 100644
--- a/core/version_defaults.mk
+++ b/core/version_defaults.mk
@@ -284,5 +284,5 @@
# Used to set minimum supported target sdk version. Apps targeting sdk
# version lower than the set value will fail to install and run on android
# device.
- PLATFORM_MIN_SUPPORTED_TARGET_SDK_VERSION := 0
+ PLATFORM_MIN_SUPPORTED_TARGET_SDK_VERSION := 17
endif