Revert^2 "Don't start the navigation activity for User 0 (Headless..."

This reverts commit ffdd3bbd1aa6934efd962db49f67a8cd439f27f8.

Reason for revert: Roll forward the orginial CL with the fix of the package name change.

=== Original CL ===
Don't start the navigation activity for User 0 (HeadlessSystemUser).

- It's waste of the system resource and this could be reduce the boottime somewhat.
Bug: 166670668
Test: Verify the logcat log to see if Maps was invoked for User 0.

Change-Id: I2e3cd01e4762a935135553db800a0cf34cda5ba9
Merged-In: I2e3cd01e4762a935135553db800a0cf34cda5ba9
(cherry-picked from commit 23629be746af67ab95884b12e2ca748db86da2c8)
diff --git a/Android.bp b/Android.bp
index 2103020..8010684 100644
--- a/Android.bp
+++ b/Android.bp
@@ -34,6 +34,7 @@
 
     static_libs: [
         "android.car.cluster.navigation",
+        "android.car.userlib",
         "androidx.legacy_legacy-support-v4",
         "androidx-constraintlayout_constraintlayout",
         "car-arch-common",
diff --git a/src/android/car/cluster/ClusterRenderingService.java b/src/android/car/cluster/ClusterRenderingService.java
index acaa4b2..50d7b15 100644
--- a/src/android/car/cluster/ClusterRenderingService.java
+++ b/src/android/car/cluster/ClusterRenderingService.java
@@ -28,6 +28,7 @@
 import android.car.cluster.renderer.InstrumentClusterRenderingService;
 import android.car.cluster.renderer.NavigationRenderer;
 import android.car.navigation.CarNavigationInstrumentCluster;
+import android.car.userlib.UserHelper;
 import android.content.BroadcastReceiver;
 import android.content.ComponentName;
 import android.content.Context;
@@ -189,6 +190,10 @@
                 return;
             }
             userId = ActivityManager.getCurrentUser();
+            if (UserHelper.isHeadlessSystemUser(userId)) {
+                Log.i(TAG, "Skipping the navigation activity for User 0");
+                return;
+            }
             startFixedActivityModeForDisplayAndUser(intent, options, userId);
         } else {
             intent = getMainClusterActivityIntent();