Est-il possible de sortir le chemin absolu du fichier lors de l'exécution de ls -l
sur Android (par exemple via adb shell
ou dans une application de terminal) ?
Voici la sortie que j'obtiens avec ls -l /etc/
(j'ai un accès root) :
E:\Dropbox\Droid Explorer\src\main\resources\com\droid\explorer\adb>adb shell su root ls -l /etc/
-rw-r--r-- root root 16656 2009-01-01 03:00 CHANGELOG-CM.txt
-rw-r--r-- root root 9944 2009-01-01 03:00 CHANGES.txt
-rw-r--r-- root root 154482 2009-01-01 03:00 NOTICE.html.gz
drwxr-xr-x root root 2009-01-01 03:00 acdbdata
-rw-r--r-- root root 598006 2009-01-01 03:00 apns-conf.xml
-rw-r--r-- root root 5491 2009-01-01 03:00 audio_effects.conf
-rw-r--r-- root root 6198 2009-01-01 03:00 audio_policy.conf
drwxr-xr-x root root 2009-01-01 03:00 bash
drwxr-xr-x root root 2009-01-01 03:00 bluetooth
-rw-r--r-- root root 101774 2009-01-01 03:00 build-manifest.xml
-rw-r--r-- root root 1045 2009-01-01 03:00 clatd.conf
drwxr-xr-x root root 2009-01-01 03:00 dhcpcd
-rw-r--r-- root root 1362 2009-01-01 03:00 ethertypes
-rw-r--r-- root root 18300 2009-01-01 03:00 event-log-tags
-rw-r--r-- root root 14309 2009-01-01 03:00 fallback_fonts.xml
Ce que je voudrais obtenir est le chemin absolu, par exemple :
E:\Dropbox\Droid Explorer\src\main\resources\com\droid\explorer\adb>adb shell su root ls -l /etc/
-rw-r--r-- root root 16656 2009-01-01 03:00 /etc/CHANGELOG-CM.txt
-rw-r--r-- root root 9944 2009-01-01 03:00 /etc/CHANGES.txt
-rw-r--r-- root root 154482 2009-01-01 03:00 /etc/NOTICE.html.gz
drwxr-xr-x root root 2009-01-01 03:00 /etc/acdbdata
-rw-r--r-- root root 598006 2009-01-01 03:00 /etc/apns-conf.xml
-rw-r--r-- root root 5491 2009-01-01 03:00 /etc/audio_effects.conf
-rw-r--r-- root root 6198 2009-01-01 03:00 /etc/audio_policy.conf
drwxr-xr-x root root 2009-01-01 03:00 /etc/bash
drwxr-xr-x root root 2009-01-01 03:00 /etc/bluetooth
-rw-r--r-- root root 101774 2009-01-01 03:00 /etc/build-manifest.xml
-rw-r--r-- root root 1045 2009-01-01 03:00 /etc/clatd.conf
drwxr-xr-x root root 2009-01-01 03:00 /etc/dhcpcd
-rw-r--r-- root root 1362 2009-01-01 03:00 /etc/ethertypes
-rw-r--r-- root root 18300 2009-01-01 03:00 /etc/event-log-tags
-rw-r--r-- root root 14309 2009-01-01 03:00 /etc/fallback_fonts.xml