Get current ativity:
dumpsys activity activities | grep mResumedActivity
Uninstall app example:
pm uninstall -k --user 0 com.aura.oobe.samsung.gl
Restore removed app example:
pm install-existing com.aura.oobe.samsung.gl
AppCloud com.aura.oobe.samsung.gl |