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

Posted by Gungume
,