Advertisement
v1ral_ITS

snapshotwhenpull.sh

Mar 30th, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.65 KB | None | 0 0
  1. function executesnapshot()
  2. {
  3. echo "####################################################################"  >> $SNAPSHOTPATH
  4. echo "###-------------[$1]---------------###"  >> $SNAPSHOTPATH
  5. echo "####################################################################"  >> $SNAPSHOTPATH
  6. $1 >> $SNAPSHOTPATH
  7. echo ""  >> $SNAPSHOTPATH
  8. }
  9.  
  10. SNAPSHOTPATH="/cache/logs/snapshotwhenpull.txt"
  11. echo "=================ADB-PULL-SNAP-SHOT-START========================" > $SNAPSHOTPATH
  12. date  >> $SNAPSHOTPATH
  13. executesnapshot "getprop"
  14. executesnapshot "ps -t"
  15. executesnapshot "dumpsys batterystats"
  16. executesnapshot "dumpsys SurfaceFlinger"
  17. executesnapshot "dmesg"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement