adb_shell.bat
890 Bytes
@echo
cd C:\Users\%USERNAME%\Desktop\batch_file
adb devices > C:\Users\%USERNAME%\Desktop\batch_file\device.txt
adb shell dumpsys alarm | grep -e "[set]" -e "[trigger]" -e "[remove]" | grep "com.sec.android.app.clockpackage" > C:\Users\%USERNAME%\Desktop\batch_file\alarm.txt
adb shell ps -Af > C:\Users\%USERNAME%\Desktop\batch_file\process.txt
adb shell uptime > C:\Users\%USERNAME%\Desktop\batch_file\uptime.txt
adb shell getprop ro.product.model > C:\Users\%USERNAME%\Desktop\batch_file\model.txt
adb shell getprop ro.build.version.release > C:\Users\%USERNAME%\Desktop\batch_file\sdk_version.txt
adb shell getprop ro.build.version.sdk > C:\Users\%USERNAME%\Desktop\batch_file\android_version.txt
adb install -r app-release.apk
start cmd.exe /k "node data.js"
adb shell am start -n com.example.dataextraction/com.example.dataextraction.LoadingActivity
@echo please execute the app
pause