Build FrameworkStatsdTest test against the sdk

The limitation that it couldn't both link against module_current
and use implementation details from statsd has been fixed.

Bug: 147705194
Test: m FrameworkStatsdTest
Change-Id: Ie0c87b07de935167e51ec741ac70df96e04a4ec2
diff --git a/apex/framework/Android.bp b/apex/framework/Android.bp
index 8185bb0..986682e 100644
--- a/apex/framework/Android.bp
+++ b/apex/framework/Android.bp
@@ -166,10 +166,8 @@
 
 android_test {
     name: "FrameworkStatsdTest",
-    platform_apis: true,
+    sdk_version: "module_current",
     srcs: [
-        // TODO(b/147705194): Use framework-statsd as a lib dependency instead.
-        ":framework-statsd-sources",
         "test/**/*.java",
     ],
     manifest: "test/AndroidManifest.xml",
@@ -180,6 +178,7 @@
     libs: [
         "android.test.runner.stubs",
         "android.test.base.stubs",
+        "framework-statsd",
     ],
     test_suites: [
         "device-tests",