23f85ec14d
Test: make Change-Id: I3abb67e2b022737d2aa0226bb07f3966ad68fff7
15 lines
415 B
Bash
Executable File
15 lines
415 B
Bash
Executable File
#!/bin/bash
|
|
|
|
for user in `adb $* shell ls /data/system/users | grep -v xml`
|
|
do
|
|
user=${user/$'\r'/}
|
|
adb shell mkdir /data/user/${user}/users
|
|
for photo in `adb $* shell ls /data/system/users | grep -v xml`
|
|
do
|
|
photo=${photo/$'\r'/}
|
|
adb shell mkdir /data/user/${user}/users/${photo}
|
|
adb pull /data/system/users/${photo}/photo.png
|
|
adb push photo.png /data/user/${user}/users/${photo}
|
|
done
|
|
done
|