Replace gatekeeper with software HIDL service.

Make cuttlefish use the default software implementation of gatekeeper.

Test: VtsHalGatekeeperV1_0TargetTest
      Also manually tested setting PIN and logging in.

Change-Id: I1e18491a9f812e0e35d9d00f603b8a313371efde
Merged-In: I1e18491a9f812e0e35d9d00f603b8a313371efde
diff --git a/shared/config/manifest.xml b/shared/config/manifest.xml
index 416f8e7..1649243 100644
--- a/shared/config/manifest.xml
+++ b/shared/config/manifest.xml
@@ -158,15 +158,6 @@
             <instance>default</instance>
         </interface>
     </hal>
-    <hal format="hidl">
-        <name>android.hardware.gatekeeper</name>
-        <transport>hwbinder</transport>
-        <version>1.0</version>
-        <interface>
-            <name>IGatekeeper</name>
-            <instance>default</instance>
-        </interface>
-    </hal>
     <!-- TODO (b/130074193): -->
     <hal format="hidl">
         <name>android.hardware.graphics.allocator</name>
diff --git a/shared/device.mk b/shared/device.mk
index 72951ce..f3fc092 100644
--- a/shared/device.mk
+++ b/shared/device.mk
@@ -260,9 +260,7 @@
 # Gatekeeper
 #
 PRODUCT_PACKAGES += \
-    gatekeeper.cutf \
-    android.hardware.gatekeeper@1.0-impl \
-    android.hardware.gatekeeper@1.0-service
+    android.hardware.gatekeeper@1.0-service.software
 
 #
 # GPS
diff --git a/shared/sepolicy/vendor/file_contexts b/shared/sepolicy/vendor/file_contexts
index f37af34..6576649 100644
--- a/shared/sepolicy/vendor/file_contexts
+++ b/shared/sepolicy/vendor/file_contexts
@@ -45,6 +45,7 @@
 /vendor/bin/hw/android\.hardware\.bluetooth@1\.0-service\.sim  u:object_r:hal_bluetooth_sim_exec:s0
 /vendor/bin/hw/android\.hardware\.drm@1\.1-service\.clearkey  u:object_r:hal_drm_default_exec:s0
 /vendor/bin/hw/android\.hardware\.dumpstate@1\.0-service\.cuttlefish  u:object_r:hal_dumpstate_impl_exec:s0
+/vendor/bin/hw/android\.hardware\.gatekeeper@1\.0-service\.software  u:object_r:hal_gatekeeper_default_exec:s0
 /vendor/bin/hw/android\.hardware\.health@2\.0-service\.cuttlefish  u:object_r:hal_health_default_exec:s0
 /vendor/bin/hw/android\.hardware\.health\.storage@1\.0-service\.cuttlefish u:object_r:hal_health_storage_default_exec:s0
 /vendor/bin/hw/android\.hardware\.neuralnetworks@1\.2-service-sample-.*   u:object_r:hal_neuralnetworks_sample_exec:s0