Activity Manager
Tool for generating commands
As explained here https://pegasus-frontend.org/docs/user-guide/platform-android/ android does not allow cmd line launching apps. Instead ask the Activity Manager (am) to open a file or start an app.
To perform a shell exec with default file associated
am start --user 0 -a android.intent.action.VIEW -d "<path-to-file>"
If you can't use default we need to use (don't bother setting up defaults in android is IMPOSSIBLE!)
am start --user 0 -a android.intent.action.VIEW -n <activity-name> -d "<path-to-file>"
launch: am start --user 0 -a android.intent.action.VIEW -n org.dolphinemu.dolphinemu/.activities.AppLinkActivity -d {file.path}
activity-name
.activities.AppLinkActivity
app-name
org.dolphinemu.dolphinemu
The activity-name is pulled from AndroidManifest
https://github.com/dolphin-emu/dolphin/blob/master/Source/Android/app/src/main/AndroidManifest.xml
The app-name can be pulled from android/data hidden folder.