Add registerAppInfo to the VMRuntime object
This adds the native function registerAppInfo() to the VMRuntime
object. It is called by the ActivityThread in the framework
to tell the runtime about application info.
Bug: 11539952
Change-Id: I3958a40af5afd513f943093fb483885c2b6b119e
diff --git a/libart/src/main/java/dalvik/system/VMRuntime.java b/libart/src/main/java/dalvik/system/VMRuntime.java
index 0e14912..39cd326 100644
--- a/libart/src/main/java/dalvik/system/VMRuntime.java
+++ b/libart/src/main/java/dalvik/system/VMRuntime.java
@@ -268,4 +268,9 @@
* already loaded. Typically used after Zygote preloading.
*/
public native void preloadDexCaches();
+
+ /**
+ * Register application info
+ */
+ public static native void registerAppInfo(String appDir, String processName);
}
diff --git a/libdvm/src/main/java/dalvik/system/VMRuntime.java b/libdvm/src/main/java/dalvik/system/VMRuntime.java
index fc83948..f4acf47 100644
--- a/libdvm/src/main/java/dalvik/system/VMRuntime.java
+++ b/libdvm/src/main/java/dalvik/system/VMRuntime.java
@@ -265,4 +265,11 @@
* already loaded. Typically used after Zygote preloading.
*/
public native void preloadDexCaches();
+
+ /**
+ * Register application info
+ */
+ public static void registerAppInfo(String appDir, String processName) {
+ // Nothing to do in dalvik.
+ }
}