-
2017/12/24 - android adb logcat 파일저장
2017/12/24 - android adb shell if문
2017/12/24 - android adb shell read menu문
2011/12/09 - Android adb shell devices
2011/03/03 - Adb Superuser cmding
2011/03/03 - ADB shell command
echo "파일 쓰고 읽기"
adb shell "id | $BB grep -c root" > rooted.txt
rooted=$(cat rooted.txt | tr -d "\r\n ")
surooted=$(cat rooted.txt | tr -d "\r\n ")
if [ "$rooted" = 1 ]; then
echo "rooted == 1"
else
echo "rooted != 1"
fi
if [ "$surooted" = 1 ]; then
echo "surooted == 1"
else
echo "surooted != 1"
fi
elif도 가능