First Install "adb" as command
1- print
echo $path
2- open editor
vim /etc/paths
3- to make “insert” mode
Click on “I”
4- copy/past the environment variable example:
/Users/abdallahandroid/Library/Android/sdk/platform-tools
/Users/abdallahandroid/Library/Android/sdk/platform-tools/adb
/Users/abdallahandroid/Library/Android/sdk/emulator
5- Press ""Esc"" then write + write colon”:” it will navigate to last line of editor
6- write “wq” + click enter
7- close terminal and open again, test print
echo $path
Case when save print error "E212" see
bug: vim when save print "/etc/paths" E212:
Second: Run Emulator :
1- set path of emulator path of sdk
/Users/abdallahandroid/Library/Android/sdk/emulator
(Save in paths, then restart terminal )
2- to run specific emulator format
emulator -avd avd_name
Example:
emulator -avd Pixel_4_API_28
How To Print Pending Intent
termnial write to see all Pending Intent :
adb shell dumpsys alarm
dumpsys alarm
. I've updated the answer. – Wotan