blob: 541610102e572559be5ea04741bcffe8abc42b10 [file] [log] [blame]
Jim Miller5ecd8112013-01-09 18:50:26 -08001#!/bin/bash
2
3for user in `adb $* shell ls /data/system/users | grep -v xml`
4do
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
14done