When performing adb pull /
on a non-rooted device, I see hundreds of items with pathnames that begin with /proc/self/root/proc/self/root/proc/self/root/proc/self/root/proc/self/root/proc/self/root/proc/self/root/proc/self/root/proc/self/root/proc/self/root/proc/self/root/proc/self/root
?
That's not a typo. That is literally how the path of each of these items is prefaced.
It looks recursive or like an infinite loop, but eventually the repetition ends with a unique file or folder name.
What is going on? What is adb
doing here?
chroot
and/or mount namespace./proc/<pid>/root
points to therootfs
a process is seeing. Doingadb pull
on "entire device" doesn't make sense. You should at maximum pull only persistent storage partitions, not pseudo filesystems. – Irfan Latif Mar 09 '21 at 07:19/data
. – Irfan Latif Mar 09 '21 at 07:53/
is just tmpfs in RAM and does not survive reboot. there is no benefit in pulling/
no matter device is rooted or unrooted. it makes lot more sense to pull physical partitions, although only one partition is of any use – alecxs Mar 09 '21 at 12:14/dev/zero
and/dev/urandom
) have no end of file. You'll get an infinitely increasing file. – Irfan Latif Mar 09 '21 at 13:01