[Android Q&A, Help & Troubleshooting] GalaxyA325G:
I can ad hoc open any given Activity on the Android phone while connected over USB to adb on the Windows PC, but how do I DUPLICATE the SAME THING, but from the phone itself?

For example, how can I run this Activity, ad hoc, on the Android phone?

For illustrative purposes, below is a trivial example of ad hoc opening the "Reset Advertiser ID" Activity on the Android phone.

1. Install & test adb on your PC (I tested this only on Windows 10)

2. Connect your Android device over USB (mine is Samsung, Android 11)

3. Paste this command into a Windows command window:

C:\> adb shell am start -n com.google.android.gms/.ads.settings.AdsSettingsActivity

That's just a trivial example where I can't yet figure out yet how to duplicate that popping up of a given Activity on the android phone for any given Activity, if all I know is the name of that given Activity (and which isn't already found in a static list inside of the shortcut creator apps).

Here are more examples I've tested for other Activities.

C:\> adb shell am start -n com.android.settings/.Settings

C:\> adb shell am start -n com.google.android.gms/.ads.settings.AdsSettingsActivity

C:\> adb shell am start -n com.google.android.gms/.location.settings.LocationAccuracyActivity

C:\> adb shell am start -n com.android.settings/.applications.ManageApplications

C:\> adb shell am start -n com.google.android.gms/.update.SystemUpdateActivity

C:\> adb shell am start -n com.samsung.android.secsoundpicker/.SecSoundPickerActivity

C:\> adb shell am start -n com.android.settings/.Settings\$NotificationAppListActivity

C:\> adb shell am start -n com.android.settings/.Settings\$AppMemoryUsageActivity

C:\> adb shell am start -n com.android.settings/.Settings\$NotificationAppListActivity

C:\> adb shell am start -n com.android.settings/.Settings\$SecDisabledAppsActivity

C:\> adb shell am start -n com.android.settings/.Settings\$PowerUsageSummaryActivity

C:\> adb shell am start -n com.android.settings/.Settings\$AppAndNotificationDashboardActivity

C:\> adb shell am start -n com.google.android.gms/.app.settings.GoogleSettingsLink
C:\> adb shell am start -n com.google.android.gms/.app.settings.GoogleSettingsIALink

C:\> adb shell am start -n com.google.android.gms/co.g.Space

C:\> adb shell am start -n com.google.android.gms/.gcm.GcmDiagnostics

C:\> adb shell am start -n com.google.android.gms/.nearby.exposurenotification.settings.SettingsActivity

C:\> adb shell am start -n com.google.android.gms/.nearby.sharing.ContactSelectActivity

C:\> adb shell am start -n com.google.android.gms/.mdm.settings.AdmSettingsActivity

C:\> adb shell am start -n com.android.settings/.network.telephony.MobileNetworkActivity

After each command line above you can close the previous results using the adb command shown below (because you can't open an Android Settings Activity on top of an existing Android Settings Activity):

C:\> adb shell am force-stop com.android.settings

I'm well aware that we can create permanent homescreen shortcuts using shortcut creator applications; but this question is not about creating a homescreen shortcut for permanent access to Android Activities.

This question is how to instantly open ANY given Activity ad hoc (i.e., on a case-by-case basis) on Android whenever you want to -

just from the name like we did above using adb

(but without needing adb to do it).