Script/Batch
[Batch] adb shell에서 su권한으로 실행하기
Gungume
2014. 5. 12. 16:54
command? 부분에 세미콜론 단위로 구분해서 원하는 명령어 실행
adb shell "su -c 'command1; command2; command3'"
예제: /data, /data/data 디렉토리의 접근 권한 설정하기.
adb shell "su -c 'chmod 777 /data; chmod 777 /data/data;'"
참고자료: http://stackoverflow.com/questions/8761992/launch-a-script-as-root-through-adb