There is an app capture screen when shark android phone .
1)when app on active , capture screen without root .
2)when app back to stack , like return HOME, need root permission to capture screen .
i want to know the implement the function 2) with root permission .
in my mind, root permission means get a root shell, flush some command and exec . so i confuse how to capture screen in shell command .