1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
415 B

#!/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