Switch core platform api to use java_sdk_library

Changes both stable and legacy apis.

Test: m droid
Change-Id: I9e83b84da2db39a93458ad56eab70197992f05e6
5 files changed