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
Change-Id: Ibcffec873a693d1c792ca210fb597d2bf37e9068
Merged-In: I4233b9091d9066c4fa69f3d24aaf367ea500f760
Also setup a test app for unit tests, with few test
cases added for NetworkConnection.
Bug: 62388032
Test: start OSU app with Boigno OSU provider via adb,
verify the OSU app is started and connected to
the Boingo OSU AP.
Test: frameworks/base/packages/Osu2/tests/runtests.sh
Change-Id: Id60bc85871f3251d83d779d430e1dd1eff47d86e
ProvisionService will be started when the OSU app is
started with "Provision" command. This service will
run on a separate thread from the Main thread, to avoid
blocking on the Main thread. This service doesn't
extend IntentService since it requires to perform
async operations.
Bug: 62388032
Test: am start -n com.android.osu/.MainActivity --es
"com.android.osu.extra.COMMAND" "Provision"
Change-Id: I32c4eb53830a6b0404af085da98f9533346203eb
This defines MainActivity, which is the entry point
to the app. All the resource files are copied from
the legacy Osu/ app, and might be updated in the future.
Bug: 62388032
Test: Manually start activity via adb
"am start -n com.android.osu/.MainActivity"
Change-Id: I5b81fb8fc58fd94d5de2dbdb1e46b7ff6a40760b