Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function executesnapshot()
- {
- echo "####################################################################" >> $SNAPSHOTPATH
- echo "###-------------[$1]---------------###" >> $SNAPSHOTPATH
- echo "####################################################################" >> $SNAPSHOTPATH
- $1 >> $SNAPSHOTPATH
- echo "" >> $SNAPSHOTPATH
- }
- SNAPSHOTPATH="/cache/logs/snapshotwhenpull.txt"
- echo "=================ADB-PULL-SNAP-SHOT-START========================" > $SNAPSHOTPATH
- date >> $SNAPSHOTPATH
- executesnapshot "getprop"
- executesnapshot "ps -t"
- executesnapshot "dumpsys batterystats"
- executesnapshot "dumpsys SurfaceFlinger"
- executesnapshot "dmesg"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement