Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | for user in `adb $* shell ls /data/system/users | grep -v xml` | ||||
4 | do | ||||
5 | user=${user/$'\r'/} | ||||
6 | adb shell mkdir /data/user/${user}/users | ||||
7 | for photo in `adb $* shell ls /data/system/users | grep -v xml` | ||||
8 | do | ||||
9 | photo=${photo/$'\r'/} | ||||
10 | adb shell mkdir /data/user/${user}/users/${photo} | ||||
11 | adb pull /data/system/users/${photo}/photo.png | ||||
12 | adb push photo.png /data/user/${user}/users/${photo} | ||||
13 | done | ||||
14 | done |