Revert "Make dex2oat(d) visible for use as implicit dexpreopt to..."

Revert "Separate dexpreopt.GlobalSoongConfig to allow independen..."

Revert submission 1211982-dex2oat-soong-dep

Reason for revert: Build failures. See b/148312086.

Reverted Changes:
Ibc427a9a8: Make dex2oat(d) visible for use as implicit dexpre...
I71df11c1e: Move the Once cache for dexpreopt.GlobalConfig int...
I38317f2d5: Get the dex2oat host tool path from module depende...
I440a09dba: Separate dexpreopt.GlobalSoongConfig to allow inde...

Bug: 148312086
Bug: 145934348
Exempt-From-Owner-Approval: Plain revert
Change-Id: Ie3bae8a6007d2b9dd6a5138921247bc8323d8e61
diff --git a/dex2oat/Android.bp b/dex2oat/Android.bp
index 4f71c39..635a3d3 100644
--- a/dex2oat/Android.bp
+++ b/dex2oat/Android.bp
@@ -250,9 +250,6 @@
         "dex2oat-defaults",
         "dex2oat-pgo-defaults",
     ],
-    // Modules that do dexpreopting, e.g. android_app, depend implicitly on
-    // either dex2oat or dex2oatd in ART source builds.
-    visibility: ["//visibility:public"],
     shared_libs: [
         "libprofile",
         "libart-compiler",
@@ -304,9 +301,6 @@
         "art_debug_defaults",
         "dex2oat-defaults",
     ],
-    // Modules that do dexpreopting, e.g. android_app, depend implicitly on
-    // either dex2oat or dex2oatd in ART source builds.
-    visibility: ["//visibility:public"],
     shared_libs: [
         "libprofiled",
         "libartd-compiler",