OSDN Git Service

frameworks/base: Set LOCAL_SDK_VERSION where possible.
authorAnton Hansson <hansson@google.com>
Fri, 23 Feb 2018 12:57:51 +0000 (12:57 +0000)
committerAnton Hansson <hansson@google.com>
Wed, 7 Mar 2018 11:42:04 +0000 (11:42 +0000)
commitd137c872cdc5e157c0ff65076689f7c4552a9013
tree3c2dffe6115c25dc65faf975c7d3bc12f397bde4
parentaa79f03ca6c4c5a3a262aeaf2b608ffd4807ab13
frameworks/base: Set LOCAL_SDK_VERSION where possible.

This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Exempt-From-Owner-Approval: Global cleanup
Change-Id: I26458e41ecb84de91ac9a356a5d4bafb44f463c1
30 files changed:
cmds/statsd/tools/dogfood/Android.mk
cmds/statsd/tools/loadtest/Android.mk
core/tests/BroadcastRadioTests/Android.mk
core/tests/featureflagtests/Android.mk
core/tests/webkit/Android.mk
packages/CaptivePortalLogin/Android.mk
packages/CarrierDefaultApp/Android.mk
packages/CarrierDefaultApp/tests/unit/Android.mk
packages/SettingsLib/tests/integ/Android.mk
packages/SettingsLib/tests/robotests/Android.mk
packages/SimAppDialog/Android.mk
packages/SystemUI/Android.mk
packages/SystemUI/plugin/Android.mk
packages/SystemUI/shared/Android.mk
packages/SystemUI/shared/tests/Android.mk
packages/SystemUI/tests/Android.mk
services/robotests/Android.mk
tests/AppLaunchWear/Android.mk
tests/net/Android.mk
tools/aapt2/integration-tests/AutoVersionTest/Android.mk
tools/aapt2/integration-tests/BasicTest/Android.mk
tools/aapt2/integration-tests/NamespaceTest/App/Android.mk
tools/aapt2/integration-tests/NamespaceTest/LibOne/Android.mk
tools/aapt2/integration-tests/NamespaceTest/LibTwo/Android.mk
tools/aapt2/integration-tests/NamespaceTest/Split/Android.mk
tools/aapt2/integration-tests/StaticLibTest/App/Android.mk
tools/aapt2/integration-tests/StaticLibTest/LibOne/Android.mk
tools/aapt2/integration-tests/StaticLibTest/LibTwo/Android.mk
tools/aapt2/integration-tests/SymlinkTest/Android.mk
wifi/tests/Android.mk