Revert "Collect dependencies of updatable apexes only for AOSP APEX"

Revert submission 3444766-non-aosp-allowed-deps

Reason for revert: <Droidmonitor created revert due to b/389580262.Will be verified through ABTD for standard investigation.>

Reverted changes: /q/submissionid:3444766-non-aosp-allowed-deps

Change-Id: I13e0e5cc12c63601995b010db34ebc71efab27f0
diff --git a/apex/apex_singleton.go b/apex/apex_singleton.go
index 263e0a5..7b3acb5 100644
--- a/apex/apex_singleton.go
+++ b/apex/apex_singleton.go
@@ -18,7 +18,6 @@
 
 import (
 	"encoding/json"
-	"strings"
 
 	"github.com/google/blueprint"
 
@@ -95,9 +94,7 @@
 			apexInfo, _ := android.OtherModuleProvider(ctx, module, android.ApexInfoProvider)
 			if path := binaryInfo.FlatListPath(); path != nil {
 				if binaryInfo.Updatable() || apexInfo.Updatable {
-					if strings.HasPrefix(module.String(), "com.android.") {
-						updatableFlatLists = append(updatableFlatLists, path)
-					}
+					updatableFlatLists = append(updatableFlatLists, path)
 				}
 			}
 		}