summaryrefslogtreecommitdiff
path: root/apex/statsd
diff options
context:
space:
mode:
author Howard Ro <yro@google.com> 2020-02-17 09:00:54 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2020-02-17 09:00:54 +0000
commita2ae63c433fec11f77873a1ac54e170f15da9968 (patch)
treefff3fb9d9512121828015ad87096b4a55e1a5566 /apex/statsd
parent10d16e52bc8b57f2b8bfa09ce118731130469749 (diff)
parent650c6a454d84b207552a4769685c51623a5aa7fd (diff)
Merge "Remove libstats_jni from the platform"
Diffstat (limited to 'apex/statsd')
-rw-r--r--apex/statsd/Android.bp2
-rw-r--r--apex/statsd/framework/java/android/util/StatsLog.java5
2 files changed, 5 insertions, 2 deletions
diff --git a/apex/statsd/Android.bp b/apex/statsd/Android.bp
index 1f9f18cd051a..c8aa526254b8 100644
--- a/apex/statsd/Android.bp
+++ b/apex/statsd/Android.bp
@@ -71,7 +71,5 @@ cc_library_shared {
apex_available: [
"com.android.os.statsd",
"test_com.android.os.statsd",
- //TODO (b/148620413): remove platform.
- "//apex_available:platform",
],
} \ No newline at end of file
diff --git a/apex/statsd/framework/java/android/util/StatsLog.java b/apex/statsd/framework/java/android/util/StatsLog.java
index 511bc01f521e..536b71a0e625 100644
--- a/apex/statsd/framework/java/android/util/StatsLog.java
+++ b/apex/statsd/framework/java/android/util/StatsLog.java
@@ -36,6 +36,11 @@ import com.android.internal.util.StatsdStatsLog;
* define custom metrics inside statsd.
*/
public final class StatsLog {
+
+ // Load JNI library
+ static {
+ System.loadLibrary("stats_jni");
+ }
private static final String TAG = "StatsLog";
private static final boolean DEBUG = false;
private static final int EXPERIMENT_IDS_FIELD_ID = 1;