Is it possible to output the absolute file path when executing ls -l
on Android (e.g. via adb shell
or in a terminal app)?
Here is the output I get from ls -l /etc/
(I have root access):
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
What I would like to get is the absolute path, ex:
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