Get Android activities and sub activities path programmatically
Based on this question from StackOverflow, you can try the following:

adb shell dumpsys package | grep -i "com." | grep Activity


It will list all activities from packages whose names start with com.. You can apply the same command for packages that start with net. or org. or whatever by substituting com.