Under Windows:
Press "window key + R key" to open the "Run" window of the computer, enter "cmd", enter the directory where your adb.exe is located, enter " adb shell "dumpsys window | grep mCurrentFocus" ", the double quotes inside need to be Add, Enter key, then you will see the package name and activity name you want.
Note: Before the operation, you need to open the current operation APP