Reference: https://developer.android.com/studio/command-line/apksigner

(1) Go to build tools path.

cd /Users/username/Library/Android/sdk/28.0.0

(2) Run the apksigner tool.

./apksigner verify --print-certs your-apk.apk