Abstract
Android malware continues to threaten user privacy and data security. Static API-based detection uses code-level evidence, but a single relation granularity cannot retain local API connections, class combinations and their repetition equally well. We present DGDroid, a static Android malware detector that constructs within-method API adjacency and class co-occurrence graphs. Binary features preserve relation identity, while saturated support features encode repetition across methods. Shared method sampling and cross-view alignment support joint pretraining, after which the encoders are frozen and their standardized outputs are fused with the explicit relation features. DGDroid achieves accuracies of 97.57%, 97.82% and 99.26% on Drebin, CIC2017 and CIC2020, respectively. Under the tested independent-method insertions, the complete model achieves higher F1 than either single-view model and retains strong detection performance in most random relation-deletion settings.