VMRuntime: Default unset targetSdkVersion to 10000 rather than 0.

Before this CL, the value 0 rather than 10,000 was used in
 - the system server, where no --target-sdk-version was passed,
 - in vogar, which has no concept of targetSdkVersion.

Defaulting targetSdkVersion to a large value ensures that the
current development version's default behavior is used, since
small values trigger backwards compatible behavior.

This does not affect cases where targetSdkVersion is explicitly
set to 0, such as bug 35594029.

To be able to share the value 10000 with frameworks'
Build.VERSION_CODES.CUR_DEVELOPMENT, the definition of that
constant value is moved from frameworks into libcore.

Bug: 34072201
Test: CtsLibcoreTestCases

Change-Id: Id9f2d91fb374c0532787baa2343703917342897b
1 file changed