I would like to get the content of the folder /data of my rooted android device. I tried with adb, but because /data/ is owned by root, I need to first copy the content of /data in the extcard, and then use adb pull. However when I tried to do that I had some strange thing that happened: lot's of folder were missing after the copy into the sdcard, while if I manually copy one by one everything works fine (if you know why, please tell me!).
So I tried then to use directly rsync and the application ssh helper on the android device to synchronize this folder owned by root. But because I need to run it at root, I can't just run a basic
rsync -av -e 'ssh -p 2222' [email protected]:/data /tmp/android_data/