lin
2025-08-14 dae8bad597b6607a449b32bf76c523423f7720ed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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