Loading core/java/android/app/ActivityThread.java +6 −0 Original line number Diff line number Diff line Loading @@ -1593,6 +1593,12 @@ public final class ActivityThread { } public static String currentPackageName() { ActivityThread am = currentActivityThread(); return (am != null && am.mBoundApplication != null) ? am.mBoundApplication.appInfo.packageName : null; } public static String currentProcessName() { ActivityThread am = currentActivityThread(); return (am != null && am.mBoundApplication != null) ? am.mBoundApplication.processName : null; Loading packages/FakeOemFeatures/src/com/android/fakeoemfeatures/FakeApp.java +1 −1 Original line number Diff line number Diff line Loading @@ -86,7 +86,7 @@ public class FakeApp extends Application { @Override public void onCreate() { String processName = ActivityThread.currentPackageName(); String processName = ActivityThread.currentProcessName(); Slog.i("FakeOEMFeatures", "Creating app in process: " + processName); if (!getApplicationInfo().packageName.equals(processName)) { // If we are not in the main process of the app, then don't do Loading Loading
core/java/android/app/ActivityThread.java +6 −0 Original line number Diff line number Diff line Loading @@ -1593,6 +1593,12 @@ public final class ActivityThread { } public static String currentPackageName() { ActivityThread am = currentActivityThread(); return (am != null && am.mBoundApplication != null) ? am.mBoundApplication.appInfo.packageName : null; } public static String currentProcessName() { ActivityThread am = currentActivityThread(); return (am != null && am.mBoundApplication != null) ? am.mBoundApplication.processName : null; Loading
packages/FakeOemFeatures/src/com/android/fakeoemfeatures/FakeApp.java +1 −1 Original line number Diff line number Diff line Loading @@ -86,7 +86,7 @@ public class FakeApp extends Application { @Override public void onCreate() { String processName = ActivityThread.currentPackageName(); String processName = ActivityThread.currentProcessName(); Slog.i("FakeOEMFeatures", "Creating app in process: " + processName); if (!getApplicationInfo().packageName.equals(processName)) { // If we are not in the main process of the app, then don't do Loading